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
ihcfan/NautiPlot
hmi-cocos2d-x/samples/Lua/TestLua/Resources/luaScript/CocoStudioTest/CocoStudioArmatureTest/CocoStudioArmatureTest.lua
3
38022
local itemTagBasic = 1000 local armaturePerformanceTag = 20000 local frameEventActionTag = 10000 local winSize = cc.Director:getInstance():getWinSize() local scheduler = cc.Director:getInstance():getScheduler() local ArmatureTestIndex = { TEST_ASYNCHRONOUS_LOADING = 1, TEST_DIRECT_LOADING = 2, ...
gpl-2.0
Rob96/GoS
SimpleKarma.lua
1
4923
class "Karma" require 'Eternal Prediction' local function Ready (spell) return Game.CanUseSpell(spell) == 0 end local function GetTarget(range) local target = nil if Orb == 1 then target = EOW:GetTarget(range) elseif Orb == 2 then target = _G.SDK.TargetSelector:GetTarget(range) elseif O...
gpl-3.0
Scavenge/darkstar
scripts/zones/Jugner_Forest/npcs/Bubchu-Bibinchu_WW.lua
14
3339
----------------------------------- -- Area: Jugner Forest -- NPC: Bubchu-Bibinchu, W.W. -- Type: Outpost Conquest Guards -- @pos 60.087 -0.602 -11.847 104 ----------------------------------- package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conq...
gpl-3.0
yohanesyuen/mal
lua/step5_tco.lua
40
3109
#!/usr/bin/env lua local table = require('table') local readline = require('readline') local utils = require('utils') local types = require('types') local reader = require('reader') local printer = require('printer') local Env = require('env') local core = require('core') local List, Vector, HashMap = types.List, typ...
mpl-2.0
angking0802wu/UniLua
Assets/StreamingAssets/LuaRoot/test/api.lua
9
26940
if T==nil then (Message or print)('\a\n >>> testC not active: skipping API tests <<<\n\a') return end local debug = require "debug" local pack = table.pack function tcheck (t1, t2) assert(t1.n == (t2.n or #t2) + 1) for i = 2, t1.n do assert(t1[i] == t2[i - 1]) end end print('testing C API') a = T.testC(...
mit
GabrielGanne/vpp-flowtable
src/vpp-api/lua/examples/example-classifier.lua
2
1372
--[[ /* * Copyright (c) 2016 Cisco and/or its affiliates. * 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 appl...
apache-2.0
Scavenge/darkstar
scripts/zones/Kazham/npcs/Magriffon.lua
29
4342
----------------------------------- -- Area: Kazham -- NPC: Magriffon -- Involved in Quest: Gullible's Travels, Even More Gullible's Travels, -- Location: (I-7) ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/globals/quests...
gpl-3.0
Scavenge/darkstar
scripts/zones/Northern_San_dOria/npcs/Achantere_TK.lua
13
5601
----------------------------------- -- Area: Northern San d'Oria -- NPC: Achatere, T.K. -- X Grant Signet -- X Recharge Emperor Band, Empress Band, or Chariot Band -- X Accepts traded Crystals to fill up the Rank bar to open new Missions. -- X Sells items in exchange for Conquest Points -- X Start Supply Run Missions...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/sacred_sword.lua
42
1451
----------------------------------------- -- ID: 17682 -- Sacred Sword -- Additional effect: Light damage -- Enchantment: "Enlight" ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ----------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Apollyon/mobs/Jidra.lua
22
2411
----------------------------------- -- Area: Apollyon SW -- NPC: Jidra ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); ----------------------------------- -- ...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/plate_of_mushroom_risotto.lua
12
1523
----------------------------------------- -- ID: 4434 -- Item: Plate of Mushroom Risotto -- Food Effect: 3 Hr, All Races ----------------------------------------- -- MP 30 -- Strength -1 -- Vitality 3 -- Mind 3 -- MP Recovered while healing 2 -- Enmity -4 ----------------------------------------- require("scripts/glob...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
units/fakeunit.lua
3
1876
unitDef = { unitname = [[fakeunit]], name = [[Fake radar signal]], description = [[Created by scrambling devices.]], acceleration = 0, activateWhenBuilt = false, brakeRate = 0, buildCostEnergy ...
gpl-2.0
Scavenge/darkstar
scripts/zones/Davoi/npcs/!.lua
14
2651
----------------------------------- -- Area: Davoi -- NPC: ! -- Involved in Mission: The Davoi Report -- @pos 164 0.1 -21 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/globals/keyit...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/piece_of_akamochi_+1.lua
12
2722
----------------------------------------- -- ID: 6261 -- Item: akamochi+1 -- Food Effect: 60 Min, All Races ----------------------------------------- -- HP + 30 (Pet & Master) -- Vitality + 4 (Pet & Master) -- Attack + 17% Cap: 54 (Pet & Master) Pet Cap: 81 -- Accuracy + 11% Cap: 54 (Pet & Master) Pet Cap: 81 ---------...
gpl-3.0
Tele-Fox/self
plugins/ctrl.lua
3
1602
local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver, to_id) if not _config.disabled_channels then _c...
gpl-2.0
Kyklas/luci-proto-hso
applications/luci-transmission/luasrc/model/cbi/transmission.lua
75
13259
--[[ LuCI - Lua Configuration Interface - Transmission support Copyright 2012 Gabor Varga <vargagab@gmail.com> 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/LICEN...
apache-2.0
yriveiro/nvim-files
lua/plugins/configs/telescope.lua
1
2531
-- Borrowed from https://github.com/thanhvule0310/dotfiles/blob/main/nvim/lua/plugins/configs/telescope.lua local ok, telescope = pcall(require, 'telescope') if not ok then local u = require 'utils' u.nok_plugin 'telescope' return end telescope.setup { picker = { hidden = false, }, defaults = { v...
mit
Scavenge/darkstar
scripts/zones/Bastok_Markets/npcs/Foss.lua
17
2236
----------------------------------- -- Area: Bastok Markets -- NPC: Foss -- Starts & Finishes Repeatable Quest: Buckets of Gold ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/global...
gpl-3.0
Scavenge/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Pihra_Rhebenslo.lua
16
4335
----------------------------------- -- Area: Windurst Waters [S] -- NPC: Pihra_Rhebenslo -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/armorstora...
gpl-3.0
TeamFSIModding/FS17_Goweil_LT_Master
src/scripts/overwrites/AnimatedVehicle.lua
1
8400
-- --Goweil LT Master -- --TyKonKet (Team FSI Modding) -- --18/05/2017 function AnimatedVehicle.initializeParts(self, animation) local numParts = table.getn(animation.parts); for i = 1, numParts do local part = animation.parts[i]; -- find the next rot part if part.endRot ~=...
gpl-3.0
Scavenge/darkstar
scripts/zones/Bhaflau_Thickets/npcs/Harvesting_Point.lua
17
1106
----------------------------------- -- Area: Bhaflau Thickets -- NPC: Harvesting Point ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ------------------------------------- require("scripts/globals/harvesting"); require("scripts/zones/Bhaflau_Thickets/TextIDs"); ...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
effects/blacksmoke.lua
7
3192
return { ["blacksmoke"] = { dirtg = { air = true, class = [[CSimpleParticleSystem]], count = 2, ground = true, water = true, properties = { airdrag = 0.7, --alwaysvisible = true, color...
gpl-2.0
Scavenge/darkstar
scripts/globals/items/cone_of_snoll_gelato.lua
12
1324
----------------------------------------- -- ID: 5147 -- Item: cone_of_snoll_gelato -- Food Effect: 30Min, All Races ----------------------------------------- -- MP % 16 (cap 75) -- MP Recovered While Healing 1 ----------------------------------------- require("scripts/globals/status"); ------------------------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/opo-opo_tart.lua
12
1364
----------------------------------------- -- ID: 4287 -- Item: opo-opo_tart -- Food Effect: 1hour, All Races ----------------------------------------- -- HP 12 -- MP 12 -- Intelligence 4 -- MP Recovered While Healing 3 ----------------------------------------- require("scripts/globals/status"); ----------------------...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
effects/raider.lua
25
5577
-- raidshells -- raiddust -- raidmuzzle return { ["raidshells"] = { muzzleflash = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag ...
gpl-2.0
ramindel0761/tele_ir
libs/dateparser.lua
502
6212
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-3.0
Scavenge/darkstar
scripts/globals/spells/maidens_virelai.lua
12
1568
----------------------------------------- -- Spell: Maiden's Virelai -- Charms pet ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/pets"); ----------------------------------------- -- OnSpellCast -----------------------------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Castle_Oztroja/npcs/_m71.lua
14
1243
----------------------------------- -- Area: Castle Oztroja -- NPC: _m71 (Torch Stand) -- Involved in Mission: Magicite -- @pos -99 24 -105 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); req...
gpl-3.0
Scavenge/darkstar
scripts/zones/Giddeus/npcs/qm1.lua
14
1757
----------------------------------- -- Area: Giddeus -- NPC: ??? -- Involved In Quest: Dark Legacy -- @zone 145 -- @pos -58 0 -449 ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
units/corcan.lua
3
4490
unitDef = { unitname = [[corcan]], name = [[Jack]], description = [[Melee Assault Jumper]], acceleration = 0.16, brakeRate = 0.2, buildCostEnergy = 600, buildCostMetal = 600, builder = false, buildPic = [[CORCAN.png]], ...
gpl-2.0
Grade-A-Software/Comcast-DASH-VLC
share/lua/extensions/VLSub.lua
11
52410
--[[ VLSub Extension for VLC media player 1.1 and 2.0 Copyright 2013 Guillaume Le Maout Authors: Guillaume Le Maout Contact: http://addons.videolan.org/messages/?action=newmessage&username=exebetche Bug report: http://addons.videolan.org/content/show.php/?content=148752 This program is free software; you can r...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
units/panther.lua
3
4934
unitDef = { unitname = [[panther]], name = [[Panther]], description = [[Lightning Assault/Raider Tank]], acceleration = 0.125, brakeRate = 0.1375, buildCostEnergy = 300, buildCostMetal = 300, builder = false,...
gpl-2.0
Kyklas/luci-proto-hso
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/processes.lua
78
2188
--[[ Luci statistics - processes plugin diagram definition (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....
apache-2.0
Scavenge/darkstar
scripts/zones/Chateau_dOraguille/npcs/Mistaravant.lua
14
1062
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Mistaravant -- Type: Standard NPC -- @zone 233 -- @pos 7.097 -3.999 67.988 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; --...
gpl-3.0
Kyklas/luci-proto-hso
modules/admin-mini/luasrc/model/cbi/mini/dhcp.lua
82
2998
--[[ 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
Zero-K-Experiments/Zero-K-Experiments
LuaRules/Gadgets/CAI/xponenUnitCluster.lua
9
4397
local UnitListHandler = VFS.Include("LuaRules/Gadgets/CAI/UnitListHandler.lua") local xponenUnitCluster = {} function xponenUnitCluster.CreateUnitCluster(static) local unitList = UnitListHandler.CreateUnitList(static) local clusterInitialized, clusterExtracted = false,false local clusterFeed_UnitPos = {} loc...
gpl-2.0
Kyklas/luci-proto-hso
libs/nixio/docsrc/nixio.UnifiedIO.lua
157
5891
--- Unified high-level I/O utility API for Files, Sockets and TLS-Sockets. -- These functions are added to the object function tables by doing <strong> -- require "nixio.util"</strong>, can be used on all nixio IO Descriptors and -- are based on the shared low-level read() and write() functions. -- @cstyle instance mo...
apache-2.0
Scavenge/darkstar
scripts/globals/items/cheese_sandwich.lua
12
1191
----------------------------------------- -- ID: 5686 -- Item: cheese_sandwich -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 10 -- Agility 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --------...
gpl-3.0
hdinsight/hue
tools/wrk-scripts/lib/old/argparse.lua
23
28068
local Parser, Command, Argument, Option local function require_30log() ------------------------------------------------------------------------------- local assert = assert local pairs = pairs local type = type local tostring = tostring local setmetatable = setmetatable local baseMt = {} ...
apache-2.0
ihcfan/NautiPlot
hmi-cocos2d-x/samples/Lua/TestLua/Resources/luaScript/OpenGLTest/OpenGLTest.lua
4
45383
require "OpenglConstants" require "Cocos2dConstants" require "Opengl" local function OpenGLTestMainLayer() local kItemTagBasic = 1000 local testCount = 16 local maxCases = testCount local curCase = 0 local accum = 0 local labelBMFont = nil local size = cc.Director:getInstance():getWinSiz...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
LuaUI/Widgets/chili/Headers/skinutils.lua
2
36409
--//============================================================================= --// function _DrawTextureAspect(x,y,w,h ,tw,th) local twa = w/tw local tha = h/th local aspect = 1 if (twa < tha) then aspect = twa y = y + h*0.5 - th*aspect*0.5 h = th*aspect else aspect = tha x = x + w*0...
gpl-2.0
Scavenge/darkstar
scripts/zones/Open_sea_route_to_Al_Zahbi/npcs/Adeben.lua
14
1153
----------------------------------- -- Area: Open_sea_route_to_Al_Zahbi -- NPC: Adeben -- Notes: Tells ship ETA time -- @pos 0.340 -12.232 -4.120 46 ----------------------------------- package.loaded["scripts/zones/Open_sea_route_to_Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/zone...
gpl-3.0
Scavenge/darkstar
scripts/zones/Upper_Jeuno/npcs/Renik.lua
17
1376
----------------------------------- -- Area: Upper Jeuno -- NPC: Renik -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Upper_Jeuno/TextIDs"); require("scripts/globals/quests"); --------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Ioupie_RK.lua
14
3344
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Ioupie, R.K. -- Type: Border Conquest Guards -- @pos 536.291 23.517 694.063 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/con...
gpl-3.0
ghoghnousteam/ghoghnous
plugins/isX.lua
605
2031
local https = require "ssl.https" local ltn12 = require "ltn12" local function request(imageUrl) -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local api_key = mashape.api_key if ...
gpl-2.0
Scavenge/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Kemha_Flasehp.lua
29
2315
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Kemha Flasehp -- Type: Fishing Normal/Adv. Image Support -- @pos -28.4 -6 -98 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/global...
gpl-3.0
Scavenge/darkstar
scripts/zones/Maze_of_Shakhrami/npcs/Ahko_Mhalijikhari.lua
14
2050
----------------------------------- -- Area: Maze of Shakhrami -- NPC: Ahko Mhalijikhari -- Type: Quest NPC -- @pos -344.617 -12.226 -166.233 198 -- 0x003d 0x003e 0x003f 0x0040 0x0041 ----------------------------------- package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil; --------------------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/coin_cookie.lua
12
1338
----------------------------------------- -- ID: 4520 -- Item: coin_cookie -- Food Effect: 5Min, All Races ----------------------------------------- -- Magic Regen While Healing 6 -- Vermin Killer 12 -- Poison Resist 12 ----------------------------------------- require("scripts/globals/status"); ---------------------...
gpl-3.0
LuaDist2/lustache
spec/context_spec.lua
8
1615
local lustache = require "lustache" -- only needed to set string.split local topic = function() local view = { name = 'parent', message = 'hi', a = { b = 'b' } } local context = require("lustache.context"):new(view) return context, view end local push = function(context) local child_view = { name = 'child', ...
mit
Zero-K-Experiments/Zero-K-Experiments
LuaRules/Gadgets/CAI/BattlegroupHandler.lua
9
2717
--[[ Handles grounds of combat units working together as a squad --]] local UnitListHandler = VFS.Include("LuaRules/Gadgets/CAI/UnitListHandler.lua") local HeatmapHandler = VFS.Include("LuaRules/Gadgets/CAI/HeatmapHandler.lua") local spIsPosInLos = Spring.IsPosInLos local spGetCommandQueue = Spring.GetCommandQueue lo...
gpl-2.0
sil3ntboyy/TGuard1.0.0
plugins/filter.lua
1
2441
local function addword(msg, name) local hash = 'chat:'..msg.to.id..':badword' redis:hset(hash, name, 'newword') return "New word has been added to filter list\n>"..name end local function get_variables_hash(msg) return 'chat:'..msg.to.id..':badword' end local function list_variablesbad(msg) local...
gpl-2.0
cohadar/tanks-of-harmony-and-love
main.lua
1
4750
--- @module main local main = {} io.stdout:setvbuf("no") local conf = require "conf" local text = require "text" local utils = require "utils" local history = require "history" local gui = require "gui" local quickie = require "libs.quickie" local terrain = require "terrain" local tank = require "tank" local client =...
mit
taxler/radish
lua/parse/substitution/charset/csISO886916.lua
1
2462
local byte = require 'parse.substitution.charset.byte' return byte + { ['\xa1'] = '\u{104}'; -- latin capital letter a with ogonek ['\xa2'] = '\u{105}'; -- latin small letter a with ogonek ['\xa3'] = '\u{141}'; -- latin capital letter l with stroke ['\xa4'] = '\u{20ac}'; -- euro sign ['\xa5'] = '\u{201e}'; -- do...
mit
Kyklas/luci-proto-hso
applications/luci-asterisk/luasrc/model/cbi/asterisk/phones.lua
80
2946
--[[ 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...
apache-2.0
kjc88/sl4a
lua/json4lua/json/rpcserver.lua
22
3155
----------------------------------------------------------------------------- -- JSONRPC4Lua: JSON RPC server for exposing Lua objects as JSON RPC callable -- objects via http. -- json.rpcserver Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.10 -- This module is rele...
apache-2.0
mymedia2/GroupButler
plugins/service.lua
7
2909
local config = require 'config' local u = require 'utilities' local api = require 'methods' local plugin = {} function plugin.onTextMessage(msg, blocks) if not msg.service then return end if blocks[1] == 'new_chat_member:bot' or blocks[1] == 'migrate_from_chat_id' then -- set the language --[[locale.languag...
gpl-2.0
jchuang1977/openwrt
package/lean/luci-app-unblockmusic/luasrc/model/cbi/unblockmusic/unblockmusic.lua
1
5004
local fs = require "nixio.fs" mp = Map("unblockmusic", translate("解锁网易云灰色歌曲")) mp.description = translate("采用 [QQ/百度/酷狗/酷我/咪咕/JOOX]等音源,替换网易云变灰歌曲链接") mp:section(SimpleSection).template = "unblockmusic/unblockmusic_status" s = mp:section(TypedSection, "unblockmusic") s.anonymous=true s.addremove=false enabled = s:op...
gpl-2.0
Scavenge/darkstar
scripts/globals/items/bundle_of_shirataki.lua
12
1186
----------------------------------------- -- ID: 5237 -- Item: Bundle of Shirataki -- Food Effect: 5Min, All Races ----------------------------------------- -- Strength -3 -- Mind 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --...
gpl-3.0
Scavenge/darkstar
scripts/zones/QuBia_Arena/mobs/Vangknok_of_Clan_Death.lua
23
2660
----------------------------------- -- Area: QuBia_Arena -- Mission 9-2 SANDO ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ----------------------------------- -- onMobFight -----------------------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Throne_Room/bcnms/Where_two_paths_converge.lua
25
1544
----------------------------------- -- Area: Throne Room -- Name: Mission 9-2 -- @pos -111 -6 0 165 ----------------------------------- package.loaded["scripts/zones/Throne_Room/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("scr...
gpl-3.0
Scavenge/darkstar
scripts/zones/Sacrificial_Chamber/bcnms/jungle_boogymen.lua
30
1759
----------------------------------- -- Area: Sacrificial Chamber -- Name: jungle_boogymen -- BCNM60 ----------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Sacrificial_Chamber/TextIDs"); -----------------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Eih_Lhogotan.lua
14
1065
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Eih Lhogotan -- Type: Standard NPC -- @zone 94 -- @pos -29.887 -5.999 91.042 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;...
gpl-3.0
Scavenge/darkstar
scripts/zones/West_Ronfaure/npcs/Field_Manual.lua
30
1055
----------------------------------- -- Area: West Ronfaure -- NPC: Field Manual ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onTrigger Action --------------------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Horlais_Peak/bcnms/horns_of_war.lua
30
1803
----------------------------------- -- Area: Horlias peak -- Name: horns of war -- KSNM99 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/zones/Horl...
gpl-3.0
sleep/mal
lua/step2_eval.lua
40
2090
#!/usr/bin/env lua local table = require('table') local readline = require('readline') local utils = require('utils') local types = require('types') local reader = require('reader') local printer = require('printer') local List, Vector, HashMap = types.List, types.Vector, types.HashMap -- read function READ(str) ...
mpl-2.0
mcvella/indexedRingBuffer
src/dictCache.lua
1
1133
local dictCache = {_TYPE='module', _NAME='dictCache' } -- NOTE: nginx DICTs expire based on declared max size in memory (LRU), not total number of items. function dictCache.new( dictName, secs ) local self = { dictName = dictName, maxSecs = secs or 0 } l...
mit
Zero-K-Experiments/Zero-K-Experiments
units/armartic.lua
3
4967
unitDef = { unitname = [[armartic]], name = [[Faraday]], description = [[EMP Turret]], buildCostEnergy = 200, buildCostMetal = 200, builder = false, buildingGroundDecalDecaySpeed = 30, buil...
gpl-2.0
kankaristo/premake-core
src/actions/vstudio/_vstudio.lua
6
15259
-- -- _vstudio.lua -- Define the Visual Studio 200x actions. -- Copyright (c) 2008-2013 Jason Perkins and the Premake project -- premake.vstudio = {} local vstudio = premake.vstudio local p = premake local project = p.project local config = p.config -- -- Mapping tables from Premake systems and architectures t...
bsd-3-clause
PicoleDeLimao/Ninpou2
game/dota_addons/ninpou2/scripts/vscripts/libraries/pathgraph.lua
9
3962
PATHGRAPH_VERSION = "0.80" --[[ Path Graph Instantiation Library by BMD Installation -"require" this file inside your code in order to gain access to the PathGraph global and functions. Usage -PathGraph:Initialize() should be called sometime during your game mode's initialization. -The Initialize functio...
apache-2.0
Zero-K-Experiments/Zero-K-Experiments
gamedata/modularcomms/staticcomms.lua
4
9119
local commsCampaign = { -- singleplayer comm_mission_tutorial1 = { chassis = "cremcom3", name = "Tutorial Commander", modules = { "commweapon_beamlaser", "module_autorepair", "module_autorepair"}, }, comm_campaign_ada = { chassis = "cremcom2", name = "Ada's Commander", -- comm module ...
gpl-2.0
Scavenge/darkstar
scripts/zones/Port_Jeuno/npcs/_6ua.lua
14
1413
----------------------------------- -- Area: Port Jeuno -- NPC: Door: Departures Exit (for Bastok) -- @zone 246 -- @pos -61 7 -54 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/glob...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
LuaUI/Widgets/ignore.lua
11
1751
function widget:GetInfo() return { name = "In-game Ignore", desc = "Adds ignore/unignore commands.", author = "_Shaman", date = "8-1-2016", license = "Apply as needed", layer = 0, enabled = true, } end local function ProcessString(str) local strtbl = {} for w in string.gmatch(str, "%S+") do strtbl[...
gpl-2.0
Scavenge/darkstar
scripts/zones/Western_Adoulin/npcs/Kongramm.lua
14
2456
----------------------------------- -- Area: Western Adoulin -- NPC: Kongramm -- Type: Standard NPC, Mission NPC, and Quest NPC -- Involved with Mission: 'A Curse From The Past' -- Involved with Quests: 'A Certain Substitute Patrolman' and 'Transporting' -- @zone 256 -- @pos 61 32 138 ----------------------------...
gpl-3.0
Kyklas/luci-proto-hso
applications/luci-pbx/luasrc/model/cbi/pbx-voip.lua
128
4540
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 ...
apache-2.0
Scavenge/darkstar
scripts/globals/spells/bluemagic/seedspray.lua
31
2112
----------------------------------------- -- Spell: Seedspray -- Delivers a threefold attack. Additional effect: Weakens defense. Chance of effect varies with TP -- Spell cost: 61 MP -- Monster Type: Plantoids -- Spell Type: Physical (Slashing) -- Blue Magic Points: 2 -- Stat Bonus: VIT+1 -- Level: 61 -- Casting Time: ...
gpl-3.0
Scavenge/darkstar
scripts/zones/Cape_Teriggan/Zone.lua
11
2547
----------------------------------- -- -- Zone: Cape_Teriggan (113) -- ----------------------------------- package.loaded[ "scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Cape_Teriggan/TextIDs"); require("scripts/globals/icanheararainbow"); require("scripts/glob...
gpl-3.0
MOSAVI17/ABCD
plugins/autoleave.lua
27
1849
--[[ Kicking ourself (bot) from unmanaged groups. When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group. Enable plugin using !plugins plugin. And if your bot already invited into...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
scripts/shipassault.lua
9
3498
include "constants.lua" local base, turret, sleeves = piece("base", "turret", "sleeves") local wake1, wake2 = piece("wake1", "wake2") local barrel1, barrel2, flare1, flare2 = piece("barrel1", "barrel2", "flare1", "flare2") local gunPieces = { [0] = {barrel = barrel1, flare = flare1}, [1] = {barrel = barrel2, flare ...
gpl-2.0
Brenin/PJ-3100
Working Launchers/Games/Stepmania/StepMania 5/Docs/Themerdocs/Examples/OptionRowHandlerLua.lua
1
6164
-- This will discuss how to create an option row in lua for use on a normal options screen. -- To try out this example, copy this file to Scripts/ and add the following -- line to metrics.ini, on one of the options screens. Change the "1" to an -- appropriate line name and make sure it's in the LineNames list for tha...
mit
kasicass/gearx
bin/lua/operations.lua
1
1480
-- emacs: -*- mode: lua; coding: utf-8; -*- --[[ Copyright (C) 2007 GearX Team This source code is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licen...
lgpl-2.1
Brenin/PJ-3100
Working Launchers/Games/Stepmania/StepMania 5/Themes/default/BGAnimations/ScreenGameplay overlay.lua
1
1428
local t = Def.ActorFrame {}; local function UpdateTime(self) local c = self:GetChildren(); for pn in ivalues(PlayerNumber) do local vStats = STATSMAN:GetCurStageStats():GetPlayerStageStats( pn ); local vTime; local obj = self:GetChild( string.format("RemainingTime" .. PlayerNumberToString(pn) ) ); if vStats a...
mit
Tele-Fox/self
plugins/gpmanager.lua
1
7551
do local function add_by_reply(extra, success, result) result = backward_msg_format(result) local msg = result local chat = msg.to.id local user = msg.from.id if msg.to.type == 'chat' then chat_add_user('chat#id'..chat, 'user#id'..user, ok_cb, false) elseif msg.to.type == 'channel' then...
gpl-2.0
seblindfors/ConsolePort
ConsolePort_Bar/Components/ActionbarPlacer.lua
1
1817
--[[ -- Idea abandoned for now, but this seems like it could be useful. local _, env = ... local acb = env.libs.acb local HANDLE = CreateFrame('Frame', 'ConsolePortBarActionPlacer', UIParent, 'SecureHandlerStateTemplate') RegisterStateDriver(HANDLE, 'cursor', '[cursor]true;nil') RegisterStateDriver(HANDLE, 'combat'...
artistic-2.0
lessthanoptimal/DeepBoof
modules/io/src/test/torch7/GenerateSpatialBatchNorm.lua
1
1476
---------------------------------------------------------------------- -- Generates unit test data to test Torch to DeepBoof -- -- Peter Abeles ---------------------------------------------------------------------- require 'torch' require 'nn' require 'boof' local operation_name = "spatial_batch_normalization" N =...
apache-2.0
Scavenge/darkstar
scripts/zones/Full_Moon_Fountain/Zone.lua
30
2545
----------------------------------- -- -- Zone: Full_Moon_Fountain (170) -- ----------------------------------- package.loaded["scripts/zones/Full_Moon_Fountain/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Full_Moon_Fountain/TextIDs"); require("scripts/globals/settings"); require("script...
gpl-3.0
XingxingZhang/lstm-lm
layers/EMaskedClassNLLCriterion.lua
3
1126
--[[ -- when y contains zeros --]] local EMaskedClassNLLCriterion, parent = torch.class('EMaskedClassNLLCriterion', 'nn.Module') function EMaskedClassNLLCriterion:__init() parent.__init(self) end function EMaskedClassNLLCriterion:updateOutput(input_) local input, target, div = unpack(input_) if input:dim() ==...
apache-2.0
Scavenge/darkstar
scripts/globals/items/plate_of_crab_sushi.lua
12
1466
----------------------------------------- -- ID: 5721 -- Item: plate_of_crab_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Vitality 1 -- Defense 10 -- Accuracy % 13 (cap 64) -- Resist Sleep +1 ----------------------------------------- require("scripts/globals/status"); ----------...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
LuaRules/Configs/cai/buildtasks.lua
2
18719
--[[ defenceQuota = how much of each level of defence the unit wants defence demand in an area is additive minFacCount = min other facs that must exist for factory to be built minTime = not used yet factory job indexes: 1 = con 2 = scout 3 = raider 4 = arty 5 = assault 6 = skirm 7 = riot 8 = AA 1 = con ...
gpl-2.0
Scavenge/darkstar
scripts/zones/Halvung/npcs/Mining_Point.lua
17
1062
----------------------------------- -- Area: Halvung -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Halvung/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Halvung/TextIDs"); -----------------------------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/plate_of_crab_sushi_+1.lua
12
1469
----------------------------------------- -- ID: 5722 -- Item: plate_of_crab_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Vitality 2 -- Defense 15 -- Accuracy % 14 (cap 68) -- Resist Sleep +2 ----------------------------------------- require("scripts/globals/status"); -------...
gpl-3.0
smanolache/kong
spec/plugins/acl/api_spec.lua
1
3339
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" describe("ACLs API", function() local BASE_URL, acl, consumer setup(function() spec_helper.prepare_db() spec_helper.start_kong() end) teardown(function() spec_helper.s...
apache-2.0
Zero-K-Experiments/Zero-K-Experiments
LuaUI/Widgets/chili_new/controls/colorbars.lua
18
2724
--//============================================================================= --- Colorbars module --- Colorbar fields. -- Inherits from Control. -- @see control.Control -- @table Colorbars -- @tparam {r,g,b,a} color color table, (default {1,1,1,1}) -- @tparam {func1,func2,...} OnChange listener functions for col...
gpl-2.0
ArchonTeam/Soft_TG
plugins/time.lua
8
2812
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
OpenPrograms/mpmxyz-Programs
home/bin/tar.lua
1
26799
----------------------------------------------------- --name : bin/tar.lua --description: creating, viewing and extracting tar archives on disk and tape --author : mpmxyz --github page: https://github.com/mpmxyz/ocprograms --forum page : http://oc.cil.li/index.php?/topic/421-tar-for-opencomputers/ -----------...
mit
kasicass/gearx
bin/lua/scheduler.lua
1
1336
-- emacs: -*- mode: lua; coding: utf-8; -*- --[[ Copyright (C) 2007 GearX Team This source code is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Licen...
lgpl-2.1
Scavenge/darkstar
scripts/globals/abilities/no_foot_rise.lua
30
2052
----------------------------------- -- Ability: No Foot Rise -- Instantly grants additional Finishing Moves. -- Obtained: Dancer Level 75 Merit Group 2 -- Recast Time: 3 minutes -- Duration: Instant ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------...
gpl-3.0
kankaristo/premake-core
tests/actions/vstudio/cs2005/projectsettings.lua
4
5543
-- -- tests/actions/vstudio/cs2005/projectsettings.lua -- Validate generation of root <PropertyGroup/> in Visual Studio 2005+ .csproj -- Copyright (c) 2009-2015 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_cs2005_projectsettings") local cs2005 = premake.vstudio.cs2005 --...
bsd-3-clause
Scavenge/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e7.lua
14
1356
----------------------------------- -- Area: Hall of Transference -- NPC: Large Apparatus (Left) - Mea -- @pos 269 -81 -39 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("script...
gpl-3.0
Scavenge/darkstar
scripts/zones/AlTaieu/npcs/qm2.lua
18
1499
----------------------------------- -- Area: Al'Taieu -- NPC: ??? (Jailer of Justice Spawn) -- Allows players to spawn the Jailer of Justice by trading the Second Virtue, Deed of Moderation, and HQ Xzomit Organ to a ???. -- @pos , -278 0 -463 ----------------------------------- package.loaded["scripts/zones/AlTaieu/Te...
gpl-3.0
Scavenge/darkstar
scripts/zones/Lower_Jeuno/npcs/Chimh_Dlesbah.lua
14
1055
----------------------------------- -- Area: Lower Jeuno -- NPC: Chimh Dlesbah -- Type: Event Scene Replayer -- @zone 245 -- @pos -71.995 -1 -115.882 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ---------...
gpl-3.0