repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
bnetcc/darkstar
scripts/zones/Port_Windurst/npcs/Papo-Hopo.lua
5
2654
----------------------------------- -- Area: Port Windurst -- NPC: Papo-Hopo ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Port_Windurst/...
gpl-3.0
arthurljones/dotfiles
config/awesome/volume-control/volume-control.lua
1
7380
-- Volume Control local awful = require("awful") local wibox = require("wibox") local gears = require("gears") local naughty = require("naughty") -- compatibility fallbacks for 3.5: local timer = gears.timer or timer local spawn = awful.spawn or awful.util.spawn local watch = awful.spawn and awful.spawn.with_line_call...
gpl-3.0
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/web/luasrc/http/protocol/mime.lua
88
2933
--[[ HTTP protocol implementation for LuCI - mime handling (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 http://www....
gpl-2.0
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua
80
2561
--[[ LuCI - Lua Configuration Interface Copyright 2008 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 $Id$ ]]-- l...
gpl-2.0
akhti/torch7
torchcwrap.lua
54
15111
local wrap = require 'cwrap' local types = wrap.types types.Tensor = { helpname = function(arg) if arg.dim then return string.format("Tensor~%dD", arg.dim) else return "Tensor" end end, declare = function(arg...
bsd-3-clause
casperkaae/nn
Padding.lua
12
1441
local Padding, parent = torch.class('nn.Padding', 'nn.Module') -- pad can be positive (right) negative (left) function Padding:__init(dim, pad, nInputDim, value) self.dim = dim self.pad = pad self.nInputDim = nInputDim self.value = value or 0 self.outputSize = torch.LongStorage() parent.__init(self) ...
bsd-3-clause
Wiladams/LLUI
testy/intersectfields.lua
1
1425
--[[ The purpose of this file is to list the intersection of property names that are found amongst a collection of devices. The predicate determines which devices are of interest, and the collectFields call is made for each device, selecting only the fields which are the same. --]] package.path = package.path..";...
mit
bnetcc/darkstar
scripts/globals/items/bottle_of_stalwarts_tonic.lua
1
1163
----------------------------------------- -- ID: 5839 -- Item: Bottle of Stalwart's Tonic -- Item Effect: Temporarily increases atk power and acc ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --------------------------------------...
gpl-3.0
luc-tielen/lua-quickcheck
spec/fsm_spec.lua
2
7722
local random = require 'lqc.random' local r = require 'lqc.report' local command = require 'lqc.fsm.command' local fsm = require 'lqc.fsm' local state = require 'lqc.fsm.state' local algorithm = require 'lqc.fsm.algorithm' local lqc = require 'lqc.quickcheck' local lqc_gen = require 'lqc.lqc_gen' local frequency = lqc_...
mit
bnetcc/darkstar
scripts/zones/Windurst_Waters/npcs/Maqu_Molpih.lua
5
1381
----------------------------------- -- Area: Windurst Waters -- NPC: Maqu Molpih -- Only sells when Windurst controlls Aragoneu Region -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
bnetcc/darkstar
scripts/globals/items/colored_egg.lua
3
1083
----------------------------------------- -- ID: 4487 -- Item: colored_egg -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Attack 3 -- Ranged Attack 2 ----------------------------------------- require("scripts/globals/status"); -------------------------------------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Windurst_Waters/npcs/Otete.lua
5
1143
----------------------------------- -- Area: Windurst_Waters -- NPC: Otete -- Only sells when Windurst controlls Li'Telor Region -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/z...
gpl-3.0
Ravenlord/ddp-testing
tests/inheritance/01_single-update.lua
1
2228
--[[! - This is free and unencumbered software released into the public domain. - - Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form - or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. - - In jurisdictions ...
unlicense
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua
74
2324
--[[ LuCI - Lua Configuration Interface Copyright 2010 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 $Id$ ]]-- lo...
gpl-2.0
avplayer/avbot
extension/luascript/libs/luascript/woddice.lua
3
2318
rex_pcre=require("rex_pcre") n=1 --.w 500a8,6 测试 table.insert(main_help_table,".w (dp)(a加骰)(.成功DC) (理由) wod骰子,没有加骰的临时版本") function woddice(msg,msg_time,buddy_name,buddy_num,qun_name,qun_num) --if string.match(msg, "^%.w ")==nil then return end ------------rex local rex="^.w\\s(\\d*)(?:a(\\d*))?(?:,(\\d*))?(...
agpl-3.0
mwoz123/koreader
frontend/ui/widget/infomessage.lua
1
10032
--[[-- Widget that displays an informational message. It vanishes on key press or after a given timeout. Example: local UIManager = require("ui/uimanager") local _ = require("gettext") local Screen = require("device").screen local sample sample = InfoMessage:new{ text = _("Some message"), ...
agpl-3.0
clementfarabet/torch7
test/test.lua
1
104934
--require 'torch' local mytester local torchtest = {} local msize = 100 local precision -- Lua 5.2 compatibility local loadstring = loadstring or load local unpack = unpack or table.unpack local function maxdiff(x,y) local d = x-y if x:type() == 'torch.DoubleTensor' or x:type() == 'torch.FloatTensor' then ...
bsd-3-clause
bnetcc/darkstar
scripts/zones/The_Eldieme_Necropolis/TextIDs.lua
5
2552
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6539; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6545; -- Obtained: <item> GIL_OBTAINED = 6546; -- Obtained <number> gil ...
gpl-3.0
bnetcc/darkstar
scripts/commands/mobsub.lua
8
1555
--------------------------------------------------------------------------------------------------- -- func: mobsub -- desc: Changes the sub-animation of the given mob. (For testing purposes.) --------------------------------------------------------------------------------------------------- require("scripts/globals/s...
gpl-3.0
bnetcc/darkstar
scripts/zones/Misareaux_Coast/npcs/Spatial_Displacement.lua
5
1459
----------------------------------- -- Area: Misareaux Coast -- NPC: Spacial Displacement -- Entrance to Riverne Site #A01 and #B01 ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scrip...
gpl-3.0
bnetcc/darkstar
scripts/zones/Port_Jeuno/npcs/Sagheera.lua
5
10339
----------------------------------- -- Area: Port Jeuno -- NPC: Sagheera -- !pos -3 0.1 -9 246 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/zones...
gpl-3.0
bnetcc/darkstar
scripts/zones/Abyssea-Attohwa/mobs/Drekavac.lua
1
1349
----------------------------------- -- Area: Abyssea - Attohwa (215) -- Mob: Drekavac ----------------------------------- package.loaded["scripts/zones/Abyssea-Attohwa/TextIDs"] = nil; require("scripts/zones/Abyssea-Attohwa/TextIDs"); require("scripts/globals/abyssea"); require("scripts/globals/status"); require("sc...
gpl-3.0
bnetcc/darkstar
scripts/zones/Southern_San_dOria/npcs/Benaige.lua
5
1818
----------------------------------- -- Area: Southern San d'Oria -- NPC: Benaige -- Standard Merchant NPC -- !pos -142 -6 47 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("script...
gpl-3.0
mwoz123/koreader
frontend/ui/widget/physicalkeyboard.lua
6
5246
local Blitbuffer = require("ffi/blitbuffer") local BottomContainer = require("ui/widget/container/bottomcontainer") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local Font = require("ui/font") local FrameContainer = require("ui/widget/container/framecontainer")...
agpl-3.0
UniverseMelowdi/TheMelowdi
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
OmarPlus/RealPlus
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
bnetcc/darkstar
scripts/zones/Spire_of_Dem/npcs/_0j3.lua
66
1350
----------------------------------- -- Area: Spire_of_Dem -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Dem/TextIDs"); -------------------------...
gpl-3.0
lcf258/openwrtcn
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/tcpconns.lua
68
1143
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("TCPConns Plugin Configuration"), translate( "The tcpconns plugin collects informations about open tcp " .. "connections on selected ports." )) -- ...
apache-2.0
bnetcc/darkstar
scripts/globals/mobskills/shinryu1_left_custom.lua
2
1472
--------------------------------------------- -- Shinryu0_Right -- --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------- function onMobSkillCheck(target,mob,skill) ...
gpl-3.0
bnetcc/darkstar
scripts/zones/Windurst_Waters_[S]/TextIDs.lua
5
1804
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the <item>. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6384; -- You cannot obtain the <item>. Try trading again after sorting your inventory. ITEM_OBTAINED = 6386; --...
gpl-3.0
Evsdd/domoticz
dzVents/runtime/device-adapters/temperature_humidity_device.lua
14
1051
local humidityMapping = { ['dry'] = 2, ['normal'] = 0, ['comfortable'] = 1, ['wet'] = 3 } return { baseType = 'device', name = 'Temperature+humidity device adapter', matches = function (device, adapterManager) local res = (device.deviceType == 'Temp + Humidity') if (not res) then adapterManager.addDum...
gpl-3.0
WolfgangAxel/ConkyConfigs
LUA-Scripts/Full_Conky_Smile_Battery_Gauge.lua
1
2543
--[[This is a lua script for use in conky. You will need to add the following to your .conkyrc before the TEXT section: lua_load $HOME/.config/conky/LUA/Full_Conky_Smile_Battery_Gauge.lua (or wherever you put your luas) lua_draw_hook_pre conky_SmileBattery I am not even close to being a programmer. It couldn't ha...
mit
consulo/consulo-lua
src/test/resources/non-test-system-files/lua5.1-tests/events.lua
10
8646
print('testing metatables') X = 20; B = 30 setfenv(1, setmetatable({}, {__index=_G})) collectgarbage() X = X+10 assert(X == 30 and _G.X == 20) B = false assert(B == false) B = nil assert(B == 30) assert(getmetatable{} == nil) assert(getmetatable(4) == nil) assert(getmetatable(nil) == nil) a={}; setmetatable(a, {__...
apache-2.0
bnetcc/darkstar
scripts/zones/Ordelles_Caves/npcs/Ruillont.lua
5
1929
----------------------------------- -- Area: Ordelles Caves -- NPC: Ruillont -- Involved in Mission: The Rescue Drill -- !pos -70 1 607 193 ----------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require(...
gpl-3.0
bnetcc/darkstar
scripts/zones/Windurst_Woods/npcs/Peshi_Yohnts.lua
5
1837
----------------------------------- -- Area: Windurst Woods -- NPC: Peshi Yohnts -- Type: Bonecraft Guild Master -- !pos -6.175 -6.249 -144.667 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_Woods...
gpl-3.0
UniverseMelowdi/TheMelowdi
plugins/searchyoutube.lua
2
1451
plugins/search_youtube.lua do local google_config = load_from_file('data/google.lua') local function httpsRequest(url)   print(url)   local res,code = https.request(url)   if code ~= 200 then return nil end   return json:decode(res) end local function searchYoutubeVideos(text)   local url = 'https://www.go...
gpl-2.0
roozbehm/newtonian
utils.lua
1
15650
function RemoveDotDirs(aTable) if aTable == nil or type(aTable) ~= 'table' then return aTable end --remove the two directories "." , ".." local i = 1 while i <= #aTable do while aTable[i] ~= nil and aTable[i]:sub(1,1) == '.' do aTable[i] = aTable[#aTable] aTable[#aTable] = nil end ...
mit
bnetcc/darkstar
scripts/zones/Monastic_Cavern/npcs/Treasure_Coffer.lua
5
4236
----------------------------------- -- Area: Monastic Cavern -- NPC: Treasure Coffer -- @zone 150 ----------------------------------- package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scr...
gpl-3.0
sohrab96/sektor
plugins/expoire.lua
1
2101
local filename='data/expire.lua' local cronned = load_from_file(filename) local function save_cron(msg, text,date) local origin = get_receiver(msg) if not cronned[date] then cronned[date] = {} end local arr = { origin, text } ; table.insert(cronned[date], arr) serialize_to_file(cro...
gpl-2.0
bnetcc/darkstar
scripts/zones/Norg/npcs/Solby-Maholby.lua
5
1192
----------------------------------- -- Area: Norg -- NPC: Solby-Maholby -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Norg/TextIDs"); --------------------------...
gpl-3.0
luc-tielen/lua-quickcheck
spec/generators/string_spec.lua
2
3343
local random = require 'lqc.random' local str = require 'lqc.generators.string' local r = require 'lqc.report' local property = require 'lqc.property' local lqc = require 'lqc.quickcheck' local reduce = require 'lqc.helpers.reduce' local function is_string(s) return type(s) == 'string' end local function string_sum...
mit
CRUELTM/cruel_bot
plugins/admin.lua
1
1913
local function run(msg, matches) if is_sudo then if matches[1] == 'import' then tg.importChatInviteLink('https://telegram.me/joinchat/'..matches[2]) elseif matches[1] == 'setbotname' then if matches[3] then text = "نام ربات به "..matches[2]..matches[3].." تغییر یافت." tg.sendMessage(msg.chat_id_, 0, 1, text, 1,...
gpl-3.0
bnetcc/darkstar
scripts/globals/effects/overdrive.lua
7
1627
----------------------------------- -- -- EFFECT_OVERDRIVE -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_OVERLOAD_THRESH, 5000) local pet = target:getPet() if ...
gpl-3.0
hudoceza/BolScripts
Rivelina.lua
2
21915
--[[ Rivelina [Riven] By _____ _____ __ .__ ____ .____ .__.__ .__ .__ .__ / \_______ / _ \________/ |_|__| ____ __ __ ____ ____ / _ \ | | |__| | | | ____ _________ | | |__| ____ / \ /...
gpl-2.0
bobxiv/IAAspiradora
IA Premake4.lua
1
2298
--Archivo de lua como programa para premake4 --Genera las soluciones y Proyectos/make file -- --Ejecutar con: premake4.exe --file="IA Premake4.lua" |vs2010 -- |vs2008 -- |gmake -- |etc -- --Para mas informacion correr: premake4.exe --help solution("IA") configurations({"Debu...
lgpl-3.0
bnetcc/darkstar
scripts/zones/Port_Windurst/npcs/Shanruru.lua
5
2522
----------------------------------- -- Area: Port Windurst -- NPC: Shanruru -- Involved in Quest: Riding on the Clouds -- @zone 240 -- !pos -1 -6 187 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings");...
gpl-3.0
tiagosr/ld27-train
tiledloader/TileSet.lua
7
4817
--------------------------------------------------------------------------------------------------- -- -= TileSet =- --------------------------------------------------------------------------------------------------- -- Setup TILED_LOADER_PATH = TILED_LOADER_PATH or ({...})[1]:gsub("[%.\\/][Tt]ile[Ss]et", "") .. '.' lo...
mit
h2o/h2o
deps/brotli/premake5.lua
14
1706
-- A solution contains projects, and defines the available configurations solution "brotli" configurations { "Release", "Debug" } platforms { "x64", "x86" } targetdir "bin" location "buildfiles" flags "RelativeLinks" includedirs { "c/include" } filter "configurations:Release" optimize "Speed" flags { "StaticRuntim...
mit
bnetcc/darkstar
scripts/zones/Selbina/TextIDs.lua
5
1920
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6386; -- Obtained: <item>. GIL_OBTAINED = 6387; -- Obtained <number> gil. KEYITEM_OBTAINED = 6389; -- Obtained...
gpl-3.0
Atebite/NutScript
plugins/area/derma/cl_areamanager.lua
6
1912
local PLUGIN = PLUGIN local PANEL = {} function PANEL:Init() self:SetTitle(L("areaManager")) self:SetSize(500, 400) self:Center() self:MakePopup() local noticeBar = self:Add("nutNoticeBar") noticeBar:Dock(TOP) noticeBar:setType(4) noticeBar:setText(L("areaManagerTip")) self.list = self:Add("PanelList") sel...
mit
awesomeWM/awesome
tests/examples/awful/notification/box_corner.lua
5
1042
--DOC_HIDE --DOC_GEN_IMAGE --DOC_NO_USAGE local naughty = require("naughty") --DOC_HIDE screen[1]._resize {width = 640, height = 480} --DOC_HIDE require("_date") --DOC_HIDE require("_default_look") --DOC_HIDE local function ever_longer_messages(iter) --DOC_HIDE local ret = "content! " --DOC_HIDE for _=1, iter...
gpl-2.0
mwoz123/koreader
frontend/device/cervantes/device.lua
2
7408
local Generic = require("device/generic/device") local logger = require("logger") local function yes() return true end local function no() return false end local function getProductId() local ntxinfo_pcb = io.popen("/usr/bin/ntxinfo /dev/mmcblk0 | grep pcb | cut -d ':' -f2", "r") if not ntxinfo_pcb then retur...
agpl-3.0
sonoprob/0x56
bot/lua/test/LuaSrcDiet-0.12.1/src/plugin/example.lua
2
4597
--[[-------------------------------------------------------------------- example.lua: Example of a plugin for LuaSrcDiet This file is part of LuaSrcDiet. Kein-Hong Man <keinhong@gmail.com> 2008,2011 PUBLIC DOMAIN ----------------------------------------------------------------------]] --[[--------------------...
artistic-2.0
tianchaijz/lua-helium
src/parser.lua
1
3315
local lpeg = require "lpeg" local type = type local tonumber = tonumber local match = lpeg.match lpeg.locale(lpeg) lpeg.setmaxstack(10000) local R, S, V, P, C, Ct, Cp, Cg, Cb, Cc, Cf = lpeg.R, lpeg.S, lpeg.V, lpeg.P, lpeg.C, lpeg.Ct, lpeg.Cp, lpeg.Cg, lpeg.Cb, lpeg.Cc, lpeg.Cf local Break = P"\r"^-1 * P...
mit
mrvigeo/uzzbot
bot/bot.lua
1
7097
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
bnetcc/darkstar
scripts/zones/Bibiki_Bay/npcs/Planar_Rift.lua
1
1818
----------------------------------- -- Area: Bibiki_Bay -- NPC: Planar Rift ----------------------------------- package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/globals/keyitems"); require("scripts/zones/Bibiki_Bay/TextIDs...
gpl-3.0
Lleafll/doom-shards
Libs/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua
50
10384
--[[----------------------------------------------------------------------------- TabGroup Container Container that uses tabs on top to switch between groups. -------------------------------------------------------------------------------]] local Type, Version = "TabGroup", 35 local AceGUI = LibStub and LibStub("AceGUI...
mit
bnetcc/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/_5ia.lua
5
2882
----------------------------------- -- Area: Maze of Shakhrami -- NPC: Strange Apparatus -- !pos 375 20 -259 198 ----------------------------------- package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Maze_of_Shakhrami/TextIDs"); require("scripts/...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/bluemagic/embalming_earth.lua
1
1366
----------------------------------------- -- Spell: Embalming Earth ----------------------------------------- require("scripts/globals/bluemagic"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck...
gpl-3.0
yinlei/tgame
framework/protocol/protocol.lua
1
1318
-------------------------------------------------------------------------------- -- protocol.lua -------------------------------------------------------------------------------- local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or "" local ERROR_MSG = tengine.ERROR_MSG local p = tengine.p local parser = require(_PAC...
mit
bnetcc/darkstar
scripts/globals/items/plate_of_shrimp_sushi_+1.lua
3
1307
----------------------------------------- -- ID: 5692 -- Item: plate_of_shrimp_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Vitality 2 -- Defense 10 -- Accuracy % 15 (cap 72) -- Ranged Accuracy % 15 (cap 72) -- Resist Sleep +2 ----------------------------------------- require("...
gpl-3.0
abasshacker/abbas002
plugins/banhammer.lua
106
11894
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
amirazadi/BDReborn
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-3.0
bnetcc/darkstar
scripts/zones/Fort_Ghelsba/npcs/_3x2.lua
1
1093
----------------------------------- -- Area: Fort Ghelsba -- NPC: Elevator Lever (upper) -- @zone 141 -- @pos 8.112 -52.665 96.084 ----------------------------------- package.loaded["scripts/zones/Fort_Ghelsba/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/esuna.lua
5
4120
----------------------------------------- -- Spell: Esuna -- ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; fun...
gpl-3.0
lcf258/openwrtcn
applications/luci-app-macvlan/luasrc/model/cbi/macvlan.lua
2
1429
--[[ --macvlan configuration page. Made by 981213 -- ]]-- local fs = require "nixio.fs" local cmd = "mwan3 status | grep -c \"is online (tracking active)\"" local shellpipe = io.popen(cmd,"r") local ifnum = shellpipe:read("*a") shellpipe:close() m = Map("macvlan", translate("Create virtual WAN interfaces"), ...
apache-2.0
tiagosr/ld27-train
hardoncollider/polygon.lua
4
13274
--[[ Copyright (c) 2011 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu...
mit
bnetcc/darkstar
scripts/zones/Western_Adoulin/npcs/Zaoso.lua
7
1244
----------------------------------- -- Area: Western Adoulin -- NPC: Zaoso -- Type: Standard NPC and Quest NPC -- Involved with Quest: 'A Certain Substitute Patrolman' -- @zone 256 -- !pos -94 3 -11 ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/quests"); ----------...
gpl-3.0
TeleDALAD/test
plugins/media.lua
297
1590
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
nsimplex/Tallbrood
scripts/tallbrood/components/oldnester.lua
1
11543
--[[ Copyright (C) 2013 simplex This program 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 2 of the License, or (at your option) any later version. This program is distributed in the hope that ...
gpl-2.0
bnetcc/darkstar
scripts/zones/Abyssea-Altepa/mobs/Long-Barreled_Chariot.lua
1
1727
----------------------------------- -- Area: Abyssea - Altepa (218) -- Mob: Long-Barreled_Chariot ----------------------------------- package.loaded["scripts/zones/Abyssea-Altepa/TextIDs"] = nil; require("scripts/zones/Abyssea-Altepa/TextIDs"); require("scripts/globals/abyssea"); require("scripts/globals/status"); r...
gpl-3.0
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua
78
2765
--[[ Luci configuration model for statistics - collectd netlink plugin 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 Licen...
gpl-2.0
UniverseMelowdi/TheMelowdi
plugins/ingroup.lua
527
44020
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
bnetcc/darkstar
scripts/globals/items/royal_omelette.lua
3
2643
----------------------------------------- -- ID: 4564 -- Item: royal_omelette -- Food Effect: 180Min, All Races ----------------------------------------- -- Strength 5 -- Dexterity 2 -- Intelligence -3 -- Mind 4 -- Attack % 20 (cap 65) -- Ranged Attack % 20 (cap 65) ----------------------------------------- -- IF ELVAA...
gpl-3.0
bnetcc/darkstar
scripts/zones/The_Eldieme_Necropolis/Zone.lua
7
1263
----------------------------------- -- -- Zone: The_Eldieme_Necropolis (195) -- ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs"); require("scripts/zones/The_Eldieme_Necrop...
gpl-3.0
bnetcc/darkstar
scripts/zones/Port_Windurst/npcs/Degong.lua
3
1493
----------------------------------- -- Area: Port Windurst -- NPC: Degong -- Type: Fishing Synthesis Image Support -- !pos -178.400 -3.835 60.480 240 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); r...
gpl-3.0
bnetcc/darkstar
scripts/globals/mobskills/osmosis_custom.lua
1
1217
--------------------------------------------- -- Osmosis -- -- Description: Steals an enemy's HP and one beneficial status effect. Ineffective against undead. -- Type: Magical --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/status"); require("scripts/glo...
gpl-3.0
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/sgi-luci/luasrc/ttpd/handler/luci.lua
53
1923
--[[ HTTP server implementation for LuCI - luci handler (c) 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....
gpl-2.0
bnetcc/darkstar
scripts/globals/titles.lua
35
45755
----------------------------------- -- -- TITLES IDs -- ----------------------------------- FODDERCHIEF_FLAYER = 1; WARCHIEF_WRECKER = 2; DREAD_DRAGON_SLAYER = 3; OVERLORD_EXECUTIONER = 4; DARK_DRAGON_SLAYER ...
gpl-3.0
bnetcc/darkstar
scripts/zones/Windurst_Waters/npcs/Jacodaut.lua
3
1493
----------------------------------- -- Area: Windurst Waters -- NPC: Jacodaut -- Type: Cooking Image Support -- !pos -125.890 -2.999 62.499 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); requi...
gpl-3.0
bnetcc/darkstar
scripts/zones/Buburimu_Peninsula/Zone.lua
5
3622
----------------------------------- -- -- Zone: Buburimu_Peninsula (118) -- ----------------------------------- package.loaded[ "scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Buburimu_Peninsula/TextIDs"); require("scripts/globals/icanheararainbow"); require...
gpl-3.0
bnetcc/darkstar
scripts/zones/Ifrits_Cauldron/mobs/Ildebrann.lua
1
5139
----------------------------------- -- Area: Ifrits Cauldron -- VWNM: Ildebrann ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/quests"); require("scripts/globals/status"); ----------------------------------- -- onMobInitialize Action ----------------------------------...
gpl-3.0
Ivshti/vlc-2.2
share/lua/sd/icecast.lua
82
2757
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot org> This program 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 2 of the License, or ...
gpl-2.0
mwoz123/koreader
frontend/device/android/event_map.lua
9
1241
return { [29] = "A", [30] = "B", [31] = "C", [32] = "D", [33] = "E", [34] = "F", [35] = "G", [36] = "H", [37] = "I", [38] = "J", [39] = "K", [40] = "L", [41] = "M", [42] = "N", [43] = "O", [44] = "P", [45] = "Q", [46] = "R", [47] = "S", [48] = "T", [49] = "U", [50] = "V", [51] = "W", [52] = "X", [53...
agpl-3.0
bnetcc/darkstar
scripts/zones/Upper_Jeuno/npcs/Leillaine.lua
5
1033
----------------------------------- -- Area: Upper Jeuno -- NPC: Leillaine -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Upper_Jeuno/TextIDs"); ---------...
gpl-3.0
Etiene/Algorithm-Implementations
Golden_Ratio_Algorithms/Lua/Yonaba/lib/newtonraphson.lua
52
1091
-- Newton (Raphson) root finding algorithm implementation -- See : http://en.wikipedia.org/wiki/Newton%27s_method -- Fuzzy equality test local function fuzzyEqual(a, b, eps) local eps = eps or 1e-4 return (math.abs(a - b) < eps) end -- Evaluates the derivative of function f at x0 -- Uses Newton's centered slope a...
mit
bnetcc/darkstar
scripts/zones/Northern_San_dOria/npcs/Millechuca.lua
5
1677
----------------------------------- -- Area: Northern San d'Oria -- NPC: Millechuca -- Regional Marchant NPC -- Only sells when San d'Oria controls Vollbow. ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/N...
gpl-3.0
bnetcc/darkstar
scripts/zones/Upper_Jeuno/npcs/Chocobo.lua
5
4553
----------------------------------- -- Area: Upper Jeuno -- NPC: Chocobo -- Finishes Quest: Chocobo's Wounds ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; ----------------------------------- require("scripts/globals/sett...
gpl-3.0
jokeyrhyme/WTF
Account/RONWALDON/Frostmourne/Gachnar/SavedVariables/Skada.lua
1
280935
SkadaPerCharDB = { ["sets"] = { { ["healingabsorbed"] = 0, ["dispells"] = 0, ["ccbreaks"] = 0, ["time"] = 77, ["interrupts"] = 0, ["mobdone"] = 442799, ["mobtaken"] = 1832942, ["damage"] = 1832942, ["players"] = { { ["last"] = 1423948502, ["healingabsorbed"] =...
bsd-3-clause
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/px5g/lua/px5g/util.lua
170
1148
--[[ * px5g - Embedded x509 key and certificate generator based on PolarSSL * * Copyright (C) 2009 Steven Barth <steven@midlink.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License, version 2.1 as published by the Free ...
gpl-2.0
yswifi/APlan
build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/luci/libs/sgi-cgi/luasrc/sgi/cgi.lua
87
2260
--[[ LuCI - SGI-Module for CGI Description: Server Gateway Interface for CGI FileId: $Id$ License: 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...
gpl-2.0
bnetcc/darkstar
scripts/globals/spells/hyoton_ni.lua
1
1075
----------------------------------------- -- Spell: Hyoton: Ni -- Deals ice damage to an enemy and lowers its resistance against fire. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ---------------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/Stone_Picture_Frame.lua
1
3352
----------------------------------- -- Area: Temple of Uggalepih -- NPC: Stone Picture Frame -- Notes: Opens door to Den of Rancor using Painbrush of Souls -- !pos -52.239 -2.089 10.000 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ------------------------...
gpl-3.0
luc-tielen/lua-quickcheck
lqc/cli/app.lua
2
3937
--- Module which contains the main logic of the CLI application -- @module lqc.cli.app -- @alias app local Vector = require 'lqc.helpers.vector' local reduce = require 'lqc.helpers.reduce' local filter = require 'lqc.helpers.filter' local fs = require 'lqc.helpers.fs' local random = require 'lqc.random' local lqc = r...
mit
swe-TeamRed/wesnoth
data/ai/micro_ais/cas/ca_herding_dog_move.lua
7
1807
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local LS = wesnoth.require "lua/location_set.lua" local function get_dog(cfg) local dogs = AH.get_units_with_moves { side = wesnoth.current.side, { "and", H.get_child(cfg, "filter") }, { "not", { { ...
gpl-2.0
bnetcc/darkstar
scripts/zones/Yhoator_Jungle/npcs/Guddal_IM.lua
3
2963
----------------------------------- -- Area: Yhoator Jungle -- NPC: Guddal, I.M. -- Border Conquest Guards -- !pos -84.113 -0.449 224.902 124 ----------------------------------- package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); requir...
gpl-3.0
bnetcc/darkstar
scripts/globals/pets.lua
1
35239
----------------------------------- -- -- PETS ID -- ----------------------------------- ----------------------------------- -- PETTYPE ----------------------------------- PETTYPE_AVATAR = 0; PETTYPE_WYVERN = 1; PETTYPE_JUGPET = 2; PETTYPE_CHARMED_MOB = 3; PETTYPE_AUTOMATON ...
gpl-3.0
tehran980/Tele_MAXBOT
bot/utils.lua
356
14963
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
blastehh/freezetag
gamemodes/fretta/gamemode/round_controller.lua
1
7981
function GM:SetRoundWinner( ply, resulttext ) SetGlobalEntity( "RoundWinner", ply ) SetGlobalString( "RRText", tostring(resulttext) ) end function GM:SetRoundResult( i, resulttext ) SetGlobalInt( "RoundResult", i ) SetGlobalString( "RRText", tostring(resulttext) ) end function GM:ClearRoundResult() SetGlobalEntity( "R...
gpl-3.0
bnetcc/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Sorrowful_Sage.lua
1
2180
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Sorrowful Sage -- Type: Assault Mission Giver -- !pos 134.096 0.161 -30.401 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/k...
gpl-3.0