repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
dpino/snabb
src/lib/protocol/datagram.lua
8
14261
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- This class provides basic mechanisms for parsing, building and -- manipulating a hierarchy of protocol headers and associated payload -- contained in a data packet. In particular, it supports -- -- Parsing and in-place manipulation of...
apache-2.0
amin041/tele-dam-
lang/persian_lang.lua
13
27344
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Water.lua
12
2265
----------------------------------- -- Area: Chamber of Oracles -- NPC: Pedestal of Water -- Involved in Zilart Mission 7 -- @pos 199 -2 36 168 ------------------------------------- package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil; ------------------------------------- require("scripts/global...
gpl-3.0
Mleaf/mleaf_luci
modules/admin-full/luasrc/controller/admin/system.lua
24
10499
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Eastern_Altepa_Desert/npcs/Variko-Njariko_WW.lua
30
3075
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: Variko-Njariko, W.W. -- Outpost Conquest Guards -- @pos -258.041 7.473 -254.527 114 ----------------------------------- package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
Sponk/neotris
scripts/SDK/Sprite.lua
1
1080
dofile("Widget.lua") --- The Sprite class -- The sprite class contains primitives to load, display and -- manipulate sprites. -- -- See also: <a href="Widget.lua.html">Widget</a> -- -- Example: --[[ dofile("SDK/Graphics2D.lua") -- Load a sprite without caption sprite = Sprite(20,20,90,90,"maps/sprite.png", "") ...
gpl-3.0
ashkan1996/hunter002
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
mrbangi/mmb
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
ark120202/aabs
game/scripts/vscripts/util/modifier.lua
1
1408
function ModifyStacks(ability, caster, unit, modifier, stack_amount, refresh) if stack_amount > 0 then return AddStacks(ability, caster, unit, modifier, stack_amount, refresh) elseif stack_amount < 0 then return RemoveStacks(ability, unit, modifier, -stack_amount) end end function AddStacks(ability, caster, uni...
mit
Kthulupwns/darkstar
scripts/zones/Port_San_dOria/npcs/Anton.lua
19
1772
----------------------------------- -- Area: Port San d'Oria -- NPC: Anton -- @zone 232 -- @pos -19 -8 27 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyite...
gpl-3.0
rsergiu2003/Jump-Engine
Constants.lua
1
1066
--[[ Created by Rosu Sergiu on 30/Jun/2011 Jump Engine it's a game engine for createing jumping games for mobile devices. This file is part of Jump Engine. Jump Engine is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free...
gpl-3.0
ZeroNoFun/The-Aperture
lua/entities/gasl_floor_button_base.lua
2
13133
AddCSLuaFile() DEFINE_BASECLASS( "gasl_base_ent" ) local WireAddon = WireAddon or WIRE_CLIENT_INSTALLED local PortalButtons = PortalButtons local IsValid = IsValid local Vector = Vector local Angle = Angle local pairs = pairs local CurTime = CurTime local tobool = tobool local istable = istable local NULL = NULL loc...
mit
coinzen/coinage
includes/module.lua
1
1371
function module_invoke_all(hook, ...) local err local result, r = {} for name, m in pairs(ophal.modules) do if m[hook] then r, err = m[hook](...) -- call hook implementation if err then return nil, err end if type(r) == 'table' then for k, v in pairs(r) do v....
agpl-3.0
Wiladams/LJIT2Win32
tests/test_tcp_socket.lua
1
2322
package.path = package.path..";..\\?.lua;..\\core\\?.lua"; local ffi = require "ffi" local WinSock = require "WinSock_Utils" local SocketUtils = require "SocketUtils" local NativeSocket = require "NativeSocket" function pathFromResource(resource) print("pathFromResource: ", resource) local urloffset = resource:fi...
mit
Kthulupwns/darkstar
scripts/globals/items/puffball.lua
35
1188
----------------------------------------- -- ID: 4448 -- Item: puffball -- Food Effect: 5Min, All Races ----------------------------------------- -- Strength -4 -- Mind 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/spells/victory_march.lua
13
1418
----------------------------------------- -- Spell: Victory March -- Gives party members Haste ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spe...
gpl-3.0
springheeledjak/thrift
lib/lua/TFramedTransport.lua
71
2957
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Quicksand_Caves/npcs/qm2.lua
11
1244
----------------------------------- -- Area: Quicksand Caves -- NPC: qm2 -- Notes: Used to spawn Tribunus VII-I -- @pos -49.944 -0.891 -139.485 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand...
gpl-3.0
Mleaf/mleaf_luci
modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
37
8552
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- loc...
apache-2.0
Kthulupwns/darkstar
scripts/globals/mobskills/Optic_Induration.lua
6
1337
--------------------------------------------- -- Optic Induration -- -- Description: Charges up a powerful, calcifying beam directed at targets in a fan-shaped area of effect. Additional effect: Petrification &amp; enmity reset -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone...
gpl-3.0
Velkon/DarkRP
gamemode/modules/hitmenu/sv_init.lua
3
8158
local plyMeta = FindMetaTable("Player") local hits = {} local questionCallback /*--------------------------------------------------------------------------- Net messages ---------------------------------------------------------------------------*/ util.AddNetworkString("onHitAccepted") util.AddNetworkString("onHitComp...
mit
Kthulupwns/darkstar
scripts/zones/Norg/npcs/Heiji.lua
19
3125
----------------------------------- -- Area: Norg -- NPC: Heiji -- Starts and Ends Quest: Like a Shining Subligar -- @pos -1 -5 25 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
pengzj/skynet
3rd/lpeg/test.lua
12
42552
#!/usr/bin/env lua5.1 -- $Id: test.lua,v 1.101 2013/04/12 16:30:33 roberto Exp $ -- require"strict" -- just to be pedantic local m = require"lpeg" -- for general use local a, b, c, d, e, f, g, p, t -- compatibility with Lua 5.2 local unpack = rawget(table, "unpack") or unpack local loadstring = rawget(_G, "lo...
mit
Kthulupwns/darkstar
scripts/zones/Southern_San_dOria/npcs/Amutiyaal.lua
17
4461
----------------------------------- -- Area: Southern San d'Oria -- NPC: Amutiyaal -- Warp NPC (Aht Urhgan) -- @pos 116 0.1 84 230 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Lufaise_Meadows/Zone.lua
6
2813
----------------------------------- -- -- Zone: Lufaise_Meadows (24) -- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/globals/missions"); require("scripts/globals/titles"); require("scripts/globals/conquest"); -------------------...
gpl-3.0
jlopenwrtluci/luci
modules/luci-base/luasrc/controller/admin/servicectl.lua
1
1291
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.servicectl", package.seeall) function index() entry({"servicectl"}, alias("servicectl", "status")).sysauth = "admin" entry({"servicectl", "status"}, call("action_status")).leaf =...
apache-2.0
Kthulupwns/darkstar
scripts/globals/spells/dia.lua
8
1985
----------------------------------------- -- Spell: Dia -- Lowers an enemy's defense and gradually deals light elemental damage. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); --------------------------------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Windurst_Woods/npcs/Nya_Labiccio.lua
36
1548
----------------------------------- -- Area: Windurst Woods -- NPC: Nya Labiccio -- Only sells when Windurst controlls Gustaberg Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Port_Windurst/npcs/Gold_Skull.lua
19
2215
----------------------------------- -- Area: Port Windurst -- NPC: Gold Skull -- Mission NPC ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require(...
gpl-3.0
dpino/snabb
src/program/config/listen/listen.lua
3
6299
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local S = require("syscall") local ffi = require("ffi") local rpc = require("lib.yang.rpc") local data = require("lib.yang.data") local path_lib = require("lib.yang.path") local json_lib = require("lib.ptree.json...
apache-2.0
WhiteBluePL/ourGame
og-texts/texts_c.lua
1
1632
--------------------------------------------------------------------------------- -- Resource: og-texts/texts_c.lua -- Author: .WhiteBlue (admin@og-rpg.eu) -- Copyright (c) 2017 .WhiteBlue (admin@og-rpg.eu) --------------------------------------------------------------------------------- -- settings l...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Stellar_Fulcrum/npcs/_4z3.lua
36
1313
----------------------------------- -- Area: Stellar Fulcrum -- NPC: Qe'Lov Gate ------------------------------------- require("scripts/globals/status"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----------------...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/Sell/Kopia av runes.lua
2
6301
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCre...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Port_San_dOria/npcs/Bonmaurieut.lua
36
1824
----------------------------------- -- Area: Port San d'Oria -- NPC: Bonmaurieut -- Only sells when San d'Oria controlls Elshimo Uplands ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); requi...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Qulun_Dome/TextIDs.lua
5
1409
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6382; -- Obtained: <item> GIL_OBTAINED = 6383; -- Obtained <number> gil KEYITEM_OBTAINED = 6385; -- Obtain...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/items/nopales_salad.lua
35
1195
----------------------------------------- -- ID: 5701 -- Item: nopales_salad -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Strength 1 -- Agility 6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
FPtje/DarkRP
gamemode/modules/fpp/pp/server/antispam.lua
1
7508
FPP = FPP or {} FPP.AntiSpam = FPP.AntiSpam or {} function FPP.AntiSpam.GhostFreeze(ent, phys) ent:SetRenderMode(RENDERMODE_TRANSCOLOR) ent:DrawShadow(false) ent.OldColor = ent.OldColor or ent:GetColor() ent.StartPos = ent:GetPos() ent:SetColor(Color(ent.OldColor.r, ent.OldColor.g, ent.OldColor.b, ...
mit
Kthulupwns/darkstar
scripts/zones/Windurst_Woods/npcs/Jack_of_Spades.lua
33
1329
----------------------------------- -- Area: Windurst Woods -- NPC: Jack of Spades -- Adventurer's Assistant -- Working 100% ------------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; require("scripts/zones/Windurst_Woods/TextIDs");...
gpl-3.0
Velkon/DarkRP
gamemode/modules/fadmin/fadmin/commands/cl_concommands.lua
11
1236
local function AutoComplete(command, args) local autocomplete = {} args = string.Explode(" ", args) table.remove(args, 1) --Remove the first space if args[1] == "" then for k,v in pairs(FAdmin.Commands.List) do table.insert(autocomplete, command .. " " .. k) end elseif no...
mit
jlopenwrtluci/luci
applications/luci-app-olsr/luasrc/controller/olsr.lua
9
9924
module("luci.controller.olsr", package.seeall) local neigh_table = nil local ifaddr_table = nil function index() local ipv4,ipv6 if nixio.fs.access("/etc/config/olsrd") then ipv4 = 1 end if nixio.fs.access("/etc/config/olsrd6") then ipv6 = 1 end if not ipv4 and not ipv6 then return end require("luci.mo...
apache-2.0
Mleaf/mleaf_luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res-feature.lua
80
4201
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
telbbs/luci-0.12
applications/luci-statistics/luasrc/model/cbi/luci_statistics/collectd.lua
69
2332
--[[ Luci configuration model for statistics - general collectd configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
apache-2.0
scottcs/wyx
wyx/ui/TextEntry.lua
1
3791
local Class = require 'lib.hump.class' local Text = getClass 'wyx.ui.Text' local string_len = string.len local string_sub = string.sub local format = string.format local match = string.match -- TextEntry -- A text frame that gathers keyboard input. local TextEntry = Class{name='TextEntry', inherits=Text, function(s...
mit
ma-bo/lua-poco
examples/decompress.lua
1
2229
--[[ compress.lua This example shows how a the compress module can be used to create zip files and write them to a compatible ostream. Files and directories can be added via istreams and filesystem paths. --]] local decompress = assert(require("poco.zip.decompress")) local fileistream = assert(require("poco.f...
bsd-3-clause
GabrielNicolasAvellaneda/luvit-upstream
deps/childprocess.lua
1
2955
--[[ Copyright 2014 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
apache-2.0
jlopenwrtluci/luci
modules/luci-base/luasrc/model/firewall.lua
67
10658
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local type, pairs, ipairs, table, luci, math = type, pairs, ipairs, table, luci, math local tpl = require "luci.template.parser" local utl = require "luci.util" local uci = require "luci.model.uci" module "lu...
apache-2.0
jlopenwrtluci/luci
libs/luci-lib-nixio/docsrc/README.lua
62
4758
--- General Information. module "nixio.README" --- General error handling information. -- <ul> -- <li> Most of the functions available in this library may fail. If any error -- occurs the function returns <strong>nil or false</strong>, an error code -- (usually errno) and an additional error message text (if avaialabl...
apache-2.0
nicholaskh/strawberry
framework/views/rtpl.lua
1
1718
-- dep -- https://github.com/bungle/lua-resty-template local template = require "framework.template" local Registry = require('framework.registry'):new('sys') -- perf local error = error local pairs = pairs local setmetatable = setmetatable local View = {} function View:new(view_config) ngx.var.template_root = v...
bsd-2-clause
dios-game/dios-cocos-samples
src/lua-coin-tree/Resources/src/dxm/ui/widget_cache_manager.lua
3
6665
--region *.lua --Date --此文件由[BabeLua]插件自动生成 require("dxm/common/singleton") require("dxm/data_structures/list") dxm = dxm or {} dxm.CWidgetCache = class("CWidgetCache") local CWidgetCache = dxm.CWidgetCache -- 成员函数 function CWidgetCache:ctor(config) self.config = config -- 配置名称 self.template_widget = nil -...
mit
aa65535/luci
applications/luci-app-commands/luasrc/controller/commands.lua
17
6464
-- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.commands", package.seeall) function index() entry({"admin", "system", "commands"}, firstchild(), _("Custom Commands"), 80) entry({"admin", "system", "commands", "dashboard"}, template(...
apache-2.0
LubyRuffy/haka
modules/misc/asm/test/disas.lua
2
3935
-- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. TestAsmModule = {} function TestAsmModule:setUp() self.module = require("misc/asm") self.asm = self.module.new_disassembler('x86', '32') self.inst = self.module.new_instruction() end...
mpl-2.0
Kthulupwns/darkstar
scripts/zones/Southern_San_dOria/npcs/Aubejart.lua
36
1466
----------------------------------- -- Area: Southern San d'Oria -- NPC: Aubejart -- General Info NPC -- @zone 230 -- @pos 3 -2 46 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings");...
gpl-3.0
dpino/snabb
lib/luajit/dynasm/dasm_ppc.lua
27
57489
------------------------------------------------------------------------------ -- DynASM PPC/PPC64 module. -- -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. -- -- Support for various extensions contributed by Caio Souza Oliveira. ---------------------------------...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Port_Bastok/npcs/Sawyer.lua
36
1612
----------------------------------- -- Area: Port Bastok -- NPC: Sawyer -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; require("scripts/zones/Port_Bastok/TextIDs"); ...
gpl-3.0
shayanchabok555/tigerantispam007
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
himamm/uzzbot
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0
telbbs/luci-0.12
modules/failsafe/luasrc/controller/failsafe/failsafe.lua
35
5206
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org> Copyright 2012 Daniel Golle <dgolle@allnet.de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License...
apache-2.0
jlopenwrtluci/luci
libs/luci-lib-nixio/docsrc/nixio.TLSContext.lua
173
1393
--- Transport Layer Security Context Object. -- @cstyle instance module "nixio.TLSContext" --- Create a TLS Socket from a socket descriptor. -- @class function -- @name TLSContext.create -- @param socket Socket Object -- @return TLSSocket Object --- Assign a PEM certificate to this context. -- @class function -- @nam...
apache-2.0
geog-opensource/geog-linino
package/dragino/luci-app-iot-webpanel/usr/lib/lua/luci/sha256.lua
106
5170
-- -- Code merged by gravityscore at http://pastebin.com/gsFrNjbt -- -- Adaptation of the Secure Hashing Algorithm (SHA-244/256) -- Found Here: http://lua-users.org/wiki/SecureHashAlgorithm -- -- Using an adapted version of the bit library -- Found Here: https://bitbucket.org/Boolsheet/bslf/src/1ee664885805/bit....
gpl-2.0
telbbs/luci-0.12
protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
53
1276
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Mount_Zhayolm/npcs/qm1.lua
15
1173
----------------------------------- -- Area: Mount Zhayolm -- NPC: ??? (Spawn Brass Borer(ZNM T1)) -- @pos 399 -27 120 61 ----------------------------------- package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mount_Zhayolm/TextIDs"); --------------...
gpl-3.0
telergybot/telergybot
plugins/service_entergroup.lua
355
3585
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
Kthulupwns/darkstar
scripts/globals/limbus.lua
2
36613
require("scripts/globals/keyitems"); -- require("scripts/globals/limbus"); APPOLLYON_SE_NE = 1; --out 557 -1 441 128 APPOLLYON_NW_SW = 2; --out -561 0 443 242 TEMENOS = 3; --WHITE_CARD = 349; --RED_CARD = 350; --BLACK_CARD = 351; --COSMOCLEANSE ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Port_San_dOria/npcs/Gulemont.lua
34
2421
----------------------------------- -- Area: Port San d'Oria -- NPC: Gulemont -- Type: Quest Giver -- @zone: 232 -- @pos -69 -5 -38 -- -- Starts and Finishes Quest: The Dismayed Customer ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; --------------------...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Windurst_Waters/npcs/Mokyokyo.lua
19
2695
----------------------------------- -- Area: Windurst Waters -- NPC: Mokyoko -- Starts Windurst Missions -- @pos -55 -8 227 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; package.loaded["scripts/globals/missions"] = nil; ----------------------------------...
gpl-3.0
mlody1039/ModernOts
data/actions/scripts/tools/rope.lua
3
1137
local spotId = {384, 418, 8278, 8592} local holeId = { 294, 369, 370, 383, 392, 408, 409, 427, 428, 430, 462, 469, 470, 482, 484, 485, 489, 924, 3135, 3136, 7933, 7938, 8170, 8286, 8285, 8284, 8281, 8280, 8279, 8277, 8276, 8323, 8380, 8567, 8585, 8596, 8595, 8249, 8250, 8251, 8252, 8253, 8254, 8255, 8256, 897...
gpl-3.0
Kthulupwns/darkstar
scripts/globals/weaponskills/arching_arrow.lua
30
1377
----------------------------------- -- Arching Arrow -- Archery weapon skill -- Skill level: 225 -- Delivers a single-hit attack. Chance of params.critical varies with TP. -- Aligned with the Flame Gorget & Light Gorget. -- Aligned with the Flame Belt & Light Belt. -- Element: None -- Modifiers: STR:16% ; AGI:2...
gpl-3.0
aa65535/luci
applications/luci-app-adblock/luasrc/controller/adblock.lua
2
2174
-- Copyright 2017 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 module("luci.controller.adblock", package.seeall) local fs = require("nixio.fs") local util = require("luci.util") local template = require("luci.template") local i18n = require("luci.i18n") func...
apache-2.0
FPtje/DarkRP
gamemode/modules/fadmin/fadmin/restrict/sv_restrict.lua
3
2669
sql.Query("CREATE TABLE IF NOT EXISTS FADMIN_RESTRICTEDENTS('TYPE' TEXT NOT NULL, 'ENTITY' TEXT NOT NULL, 'ADMIN_GROUP' TEXT NOT NULL, PRIMARY KEY(TYPE, ENTITY));") local Restricted = {} Restricted.Weapons = {} local function RetrieveRestricted() local Query = sql.Query("SELECT * FROM FADMIN_RESTRICTEDENTS") or {...
mit
StepDevelop/Minetest_Vanilla_Decor
vanilla_decor/chair.lua
2
4537
--[[ Copyright (C) 2016 Stefano <StepDevelop> Peris <stefanop.dev@gmail.com> vanilla_decor is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later ver...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Northern_San_dOria/npcs/Helaku.lua
9
3042
----------------------------------- -- Area: Northern San d'Oria -- NPC: Helaku -- Involved in Missions 2-3 -- @zone 231 -- @pos 49 -2 -12 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/setting...
gpl-3.0
mlody1039/ModernOts
data/npc/scripts/Pemaret.lua
1
2062
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) e...
gpl-3.0
nicholaskh/strawberry
framework/libs/http.lua
1
20793
local http_headers = require "framework.libs.http_headers" local ngx_socket_tcp = ngx.socket.tcp local ngx_req = ngx.req local ngx_req_socket = ngx_req.socket local ngx_req_get_headers = ngx_req.get_headers local ngx_req_get_method = ngx_req.get_method local str_gmatch = string.gmatch local str_lower = string.lower lo...
bsd-2-clause
AGTMADCAT/naev
dat/missions/empire/collective/ec01.lua
11
4463
--[[ Collective Espionage I Author: bobbens minor edits by Infiltrator Second mission in the mini collective campaign. You must inspect a system for wireless communications. ]]-- lang = naev.lang() if lang == "es" then -- not translated atm else -- default english bar_desc = "You notice Lt...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Port_San_dOria/npcs/Fiva.lua
36
1834
----------------------------------- -- Area: Port San d'Oria -- NPC: Fiva -- Only sells when San d'Oria controls Kolshushu ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/g...
gpl-3.0
GabrielNicolasAvellaneda/luvit-upstream
tests/to-convert/test-fiber-bug319.lua
6
2070
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
apache-2.0
dpino/snabb
src/program/snabbnfv/fuzz/fuzz.lua
9
5129
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local lib = require("core.lib") local usage = require("program.snabbnfv.fuzz.README_inc") function run (args) if #args ~= 2 then print(usage) main.exit(1) end local spec_path, output_path = unpack(args) ...
apache-2.0
Kthulupwns/darkstar
scripts/zones/Outer_RaKaznar/npcs/Liseran_Door_Exit.lua
15
1226
----------------------------------- -- Area: Outer Ra'Kaznar -- NPC: Liseran Door Exit -- Zones out to Kamihr Drifts (zone 267) -- @zone 274 -- @pos -34.549 -181.334 -20.031 ----------------------------------- package.loaded["scripts/zones/Outer_RaKaznar/TextIDs"] = nil; ----------------------------------- r...
gpl-3.0
FPtje/DarkRP
gamemode/modules/fadmin/fadmin/messaging/sh_shared.lua
1
4193
FAdmin.Messages = {} FAdmin.Messages.MsgTypes = { ERROR = {TEXTURE = "icon16/exclamation.png", COLOR = Color(255,180,0,80)}, NOTIFY = {TEXTURE = "vgui/notices/error", COLOR = Color(255,255,0,80)}, QUESTION = {TEXTURE = "vgui/notices/hint", COLOR = Color(0,0,255,80)}, GOOD = {TEXTURE = "icon16/tick.png"...
mit
scottcs/wyx
wyx/event/EventManager.lua
1
6366
local Class = require 'lib.hump.class' -- EventManager -- Provides a class that registers objects with itself, then notifies -- those object when events occur. local Event = getClass 'wyx.event.Event' local eventsMT = {__mode = 'k'} local format = string.format -- EventManager class local EventManager = Class{name='...
mit
Kthulupwns/darkstar
scripts/globals/spells/wind_carol.lua
13
1501
----------------------------------------- -- Spell: Wind Carol -- Increases wind resistance for party members within the area of effect. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -------------...
gpl-3.0
davegoopot/mcrcd-minetest-game
games/mcr_coderdojo/mods/farming/api.lua
1
7424
-- Wear out hoes, place soil -- TODO Ignore group:flower farming.hoe_on_use = function(itemstack, user, pointed_thing, uses) local pt = pointed_thing -- check if pointing at a node if not pt then return end if pt.type ~= "node" then return end local under = minetest.get_node(pt.under) local p = {x=pt.unde...
lgpl-3.0
Kthulupwns/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Riyadahf.lua
7
2119
----------------------------------- -- Area: Aht'Urhgan Whitegate -- NPC: Riyadahf -- Map Seller NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitem...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Hall_of_the_Gods/npcs/_6z0.lua
19
1717
----------------------------------- -- Area: Hall of the Gods -- NPC: Cermet Gate -- Gives qualified players access to Ru'Aun Gardens. -- @pos 0 -12 48 251 ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); -----...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Justinius.lua
21
1877
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Justinius -- Involved in mission : COP2-3 -- @pos 76 -34 68 26 ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("sc...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Prince_Seere.lua
19
1250
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Prince Seere ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Beaucedine_Glacier/npcs/Gueriette.lua
17
1810
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Gueriette -- Type: Outpost Vendor -- @pos -24 -59 -120 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("script...
gpl-3.0
jlopenwrtluci/luci
modules/luci-base/luasrc/cbi.lua
19
42590
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.cbi", package.seeall) require("luci.template") local util = require("luci.util") require("luci.http") --local event = require "luci.sys.event" local fs = require("nixio.fs") local uc...
apache-2.0
mlody1039/ModernOts
data/talkactions/scripts/balance.lua
1
3456
local function isValidMoney(value) if(value == nil) then return false end return (value > 0 and value <= 99999999999999) end function onSay(cid, words, param, channel) local guild = getPlayerGuildId(cid) if(guild == 0) then return false ...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/The_Eldieme_Necropolis/npcs/_5fc.lua
34
1106
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Titan's Gate -- @pos 260 -34 -71 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs")...
gpl-3.0
Velkon/DarkRP
gamemode/modules/fpp/pp/sh_cppi.lua
11
2780
CPPI = CPPI or {} CPPI.CPPI_DEFER = 102112 --\102\112 = fp CPPI.CPPI_NOTIMPLEMENTED = 7080 --\70\80 = FP function CPPI:GetName() return "Falco's prop protection" end function CPPI:GetVersion() return "universal.1" end function CPPI:GetInterfaceVersion() return 1.3 end function CPPI:GetNameFromUID(uid) return CP...
mit
dpino/snabb
src/lib/hash/base.lua
15
2923
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. -- Abstract base class for hash functions. -- -- A subclass must define the instance variable "_size" as the number -- of bits in the output of the hash function. The standard -- constructor expects that the hash size is at least 32 and is...
apache-2.0
Velkon/DarkRP
gamemode/config/ammotypes.lua
5
2106
/*--------------------------------------------------------------------------- /*--------------------------------------------------------------------------- Ammo types --------------------------------------------------------------------------- Ammo boxes that can be purchased in the F4 menu. Add your custom ammo types ...
mit
Kthulupwns/darkstar
scripts/zones/Southern_San_dOria/npcs/Fulchia.lua
37
1069
----------------------------------- -- Area: Southern San d'Oria -- NPC: Fulchia -- General Info NPC ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Southern...
gpl-3.0
daid/EmptyEpsilon
scripts/scenario_49_allies.lua
1
310581
-- Name: Allies and Enemies -- Description: The Arlenians are your allies. The Kraylors and Exuari are your enemies and will try to prevent you from completing your missions. Duration: approximately 30 minutes --- --- Version 1 - Nov2021 --- --- Three missions available in current version. Tested with EE version 201909...
gpl-2.0
drakmaniso/Flapoline
src/physics.lua
1
2754
physics = {} --------------------------------------------------------------------------------------------------- local function clamp(value, lower, upper) return math.max(lower, math.min(upper, value)) end --------------------------------------------------------------------------------------------------- fu...
gpl-3.0
AGTMADCAT/naev
dat/scripts/fleethelper.lua
10
5368
--[[ -- @brief Wrapper for pilot.add() that can operate on tables of fleets. -- -- @usage pilots = addShips( "Pirate Hyena", "pirate", nil, 2 ) -- Creates two Pirate Hyenas with pirate AIs. -- @usage pilots = addShips( { "Trader Rhino", "Trader Koala" }, nil, nil, 2 ) -- Creates a convoy of four trader ships with defau...
gpl-3.0
Kthulupwns/darkstar
scripts/zones/Port_San_dOria/npcs/_6g9.lua
19
1500
----------------------------------- -- Area: Port San d'Oria -- NPC: Door: Departures Exit -- @zone 232 -- @pos -19 -8 27 ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("script...
gpl-3.0
cedlemo/blingbling
superproperties.lua
2
13994
--@author cedlemo ---Centralize theming values for blingbling widgets --Users can create a theme.blingbling table in theirs theme.lua and defines some values for theirs widgets. --@module blingbling.superproperties local beautiful = require("beautiful") local function init(path) beautiful.init(path) end local blingbl...
gpl-2.0
Kthulupwns/darkstar
scripts/zones/Promyvion-Vahzl/npcs/_0mc.lua
9
1404
----------------------------------- -- Area: Promyvion vahzl -- NPC: Memory flux (1) ----------------------------------- package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Promyvion-Vahzl/TextIDs"); re...
gpl-3.0