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
zynjec/darkstar
scripts/globals/items/broiled_trout.lua
11
1071
----------------------------------------- -- ID: 4587 -- Item: Broiled Trout -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 4 -- Mind -1 -- Ranged ATT % 14 (cap 55) ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") -------...
gpl-3.0
zynjec/darkstar
scripts/globals/items/serving_of_flurry_courante.lua
11
1200
----------------------------------------- -- ID: 5555 -- Item: serving_of_flurry_courante -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic % 19 -- Magic Cap 65 -- Intelligence 2 -- Magic Regen While Healing 1 -- Wind Resist 5 ----------------------------------------- require("scripts...
gpl-3.0
Vadavim/jsr-darkstar
scripts/globals/mobskills/Terror_Touch.lua
1
1238
--------------------------------------------------- -- Terror Touch -- Additional effect: Weakens attacks. Accuracy varies with TP. --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -------------------...
gpl-3.0
Vadavim/jsr-darkstar
scripts/globals/effects/int_boost.lua
34
1027
----------------------------------- -- -- EFFECT_INT_BOOST -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_INT,effect:getPower()); end; ...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/Bastok_Mines/npcs/Eulaphe.lua
27
1981
----------------------------------- -- Area: Bastok Mines -- NPC: Eulaphe -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- --...
gpl-3.0
Colettechan/darkstar
scripts/globals/spells/bluemagic/regeneration.lua
46
1483
----------------------------------------- -- Spell: Regeneration -- Gradually restores HP -- Spell cost: 36 MP -- Monster Type: Aquans -- Spell Type: Magical (Light) -- Blue Magic Points: 2 -- Stat Bonus: MND+2 -- Level: 78 -- Casting Time: 2 Seconds -- Recast Time: 60 Seconds -- Spell Duration: 30 ticks, 90 Seconds --...
gpl-3.0
taktemamir/TAK-TEM
plugins/time.lua
120
2804
-- 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
actboy168/MoeHero
scripts/maps/hero/十六夜咲夜/光速[光速跳跃].lua
1
4113
local mt = ac.skill['光速[光速跳跃]'] mt{ --范围 area = 350, --重复伤害 damage_rate = 15, --弹道速度 speed = 2000, --角度差 angle = 17.5, --最大飞行距离 distance = 900, --飞行距离 distance = 800, --自由碰撞时的碰撞半径 hit_area = 100, } mt.passive = true mt.level = 1 local function block_tangent(poi, angle) local poi_a local poi_b...
gpl-3.0
tsdfsetatata/xserver
config/server/ErrorBoxTable.lua
1
105176
local ErrorBoxTable = { [190100001] = { ['ID'] = 190100001, --索引 ['Type'] = 1, --显示类型 ['Text'] = '服务器维护中无法登陆', --显示内容 ['SystemChannel'] = 0 --系统频道显示 }, [190100002] = { ['ID'] = 190100002, ['Type'] = 1, ['Text'] = '无法连接服务器,请检查网络状况后再尝试登陆', ['SystemChannel'] = 0 }, [190100003] = { ['...
gpl-3.0
Gh0stblade/OpenTomb
scripts/entity/entity_functions_unique.lua
1
29792
-- OPENTOMB ENTITY FUNCTIONS SCRIPT -- By TeslaRus, Lwmte, 2014-2016 ---------------------------------------------- ------------------- TR 1 ----------------- ---------------------------------------------- function tallblock_init(id) -- Tall moving block (TR1) setEntityTypeFlag(id, ENTITY_TYPE_GENERIC); ...
lgpl-3.0
actboy168/MoeHero
w3x2lni/plugin/模型加密.lua
1
6405
local mt = {} mt.info = { name = '模型加密', version = 1.0, author = '最萌小汐', description = '将slk格式地图使用的模型进行简单加密。' } local w2l local function encrypt_name(name) return name .. '体' end local cache = {} local function rename_files() for name in pairs(cache) do local buf = w2l:file_load('resource', name...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/Talacca_Cove/Zone.lua
20
1261
----------------------------------- -- -- Zone: Talacca_Cove (57) -- ----------------------------------- package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Talacca_Cove/TextIDs"); ---------------------------------...
gpl-3.0
Colettechan/darkstar
scripts/zones/Talacca_Cove/Zone.lua
20
1261
----------------------------------- -- -- Zone: Talacca_Cove (57) -- ----------------------------------- package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Talacca_Cove/TextIDs"); ---------------------------------...
gpl-3.0
Vadavim/jsr-darkstar
scripts/globals/items/high_breath_mantle.lua
43
1427
----------------------------------------- -- ID: 15487 -- Item: High Breath Mantle -- Item Effect: HP+38 / Enmity+5 ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -------------------------------...
gpl-3.0
Colettechan/darkstar
scripts/globals/items/high_breath_mantle.lua
43
1427
----------------------------------------- -- ID: 15487 -- Item: High Breath Mantle -- Item Effect: HP+38 / Enmity+5 ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -------------------------------...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/Attohwa_Chasm/npcs/HomePoint#1.lua
14
1252
----------------------------------- -- Area: Attohwa Chasm -- NPC: HomePoint#2 -- @pos ----------------------------------- package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Attohwa_Chasm/TextIDs"); require("scripts/globals/homepoint"); -----...
gpl-3.0
syntafin/prosody-modules
mod_register_web/mod_register_web.lua
5
5728
local captcha_options = module:get_option("captcha_options", {}); local nodeprep = require "util.encodings".stringprep.nodeprep; local usermanager = require "core.usermanager"; local http = require "net.http"; local path_sep = package.config:sub(1,1); local json = require "util.json".decode; local t_concat = table.conc...
mit
mortezamosavy999/otouto
plugins/time.lua
16
1316
local command = 'time <location>' local doc = [[``` /time <location> Returns the time, date, and timezone for the given location. ```]] local triggers = { '^/time[@'..bot.username..']*' } local action = function(msg) local input = msg.text:input() if not input then if msg.reply_to_message and msg.reply_to_messa...
gpl-2.0
zynjec/darkstar
scripts/globals/items/pukatrice_egg_+1.lua
11
1544
----------------------------------------- -- ID: 6275 -- Item: pukatrice_egg_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- HP +20 -- MP +20 -- STR +3 -- Fire resistance +21 -- Attack +21% (cap 90) -- Ranged Attack +21% (cap 90) -- Subtle Blow +9 ---------------------------------------...
gpl-3.0
zevv/lgi
samples/soupsvr.lua
1
2559
#! /usr/bin/env lua -- -- Sample server using libsoup library. Listens on 1080 port and serves -- local files from current directory. Allows to be terminated by query -- for /quit file (i.e. curl http://localhost:1080/quit) -- local coroutine = require 'coroutine' local lgi = require 'lgi' local bytes = require 'b...
mit
Vadavim/jsr-darkstar
scripts/zones/Metalworks/npcs/Grohm.lua
14
3042
----------------------------------- -- Area: Metalworks -- NPC: Grohm -- Involved In Mission: Journey Abroad -- @pos -18 -11 -27 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/z...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/Northern_San_dOria/Zone.lua
1
4744
----------------------------------- -- -- Zone: Northern_San_dOria (231) -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/events/harvest_festivals"); require("scripts/globals/zone"); require("scripts/globals/settings"); require("scripts/g...
gpl-3.0
zynjec/darkstar
scripts/zones/Castle_Zvahl_Baileys/npcs/Torch.lua
9
1596
----------------------------------- -- Area: Castle Zvahl Baileys -- NPC: Torch (x4) -- Involved in Quests: Borghertz's Hands (AF Hands, Many job) -- !pos 63 -24 21 161 ----------------------------------- local ID = require("scripts/zones/Castle_Zvahl_Baileys/IDs") require("scripts/globals/keyitems") require("scripts/...
gpl-3.0
vatanambib/uzzbot
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
pando85/telegram-bot
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
Vadavim/jsr-darkstar
scripts/globals/items/pear_crepe.lua
1
1562
----------------------------------------- -- ID: 5777 -- Item: Pear Crepe -- Food Effect: 30 Min, All Races ----------------------------------------- -- Intelligence +2 -- MP Healing +2 -- Magic Accuracy +5 -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status"); --------------...
gpl-3.0
Vadavim/jsr-darkstar
scripts/globals/items/prime_angler_stewpot.lua
18
2000
----------------------------------------- -- ID: 5612 -- Item: Prime Angler Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% -- MP +15 -- Dexterity 2 -- Agility 1 -- Mind 1 -- HP Recovered while healing 7 -- MP Recovered while healing 2 -- Accuracy 15% ...
gpl-3.0
Colettechan/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5ch.lua
13
1059
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ch (Gate of Thunder) -- @pos -331 0 139 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Inner_Horutoto_Ruins/TextIDs...
gpl-3.0
lcf8858/Sample_Lua
src/cocos/cocos2d/DrawPrimitives.lua
98
12024
local dp_initialized = false local dp_shader = nil local dp_colorLocation = -1 local dp_color = { 1.0, 1.0, 1.0, 1.0 } local dp_pointSizeLocation = -1 local dp_pointSize = 1.0 local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor" local targetPlatform = cc.Application:getInstance():getTargetPlatform() lo...
mit
Colettechan/darkstar
scripts/zones/Al_Zahbi/npcs/Shayadar.lua
13
1049
----------------------------------- -- Area: Al Zahbi -- NPC: Shayadar -- Type: Gadalar's Attendant -- @zone: 48 -- @pos -107.177 -6.999 33.463 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ---------------...
gpl-3.0
zynjec/darkstar
scripts/globals/spells/slowga.lua
12
1401
----------------------------------------- -- Spell: Slowga ----------------------------------------- require("scripts/globals/magic") require("scripts/globals/msg") require("scripts/globals/status") require("scripts/globals/utils") ----------------------------------------- function onMagicCastingCheck(caster, target,s...
gpl-3.0
Colettechan/darkstar
scripts/globals/spells/huton_san.lua
21
1271
----------------------------------------- -- Spell: Huton: San -- Deals wind damage to an enemy and lowers its resistance against ice. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ---------------...
gpl-3.0
Vadavim/jsr-darkstar
scripts/globals/items/cheese_sandwich_+1.lua
18
1186
----------------------------------------- -- ID: 5687 -- Item: cheese_sandwich_+1 -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 10 -- Agility 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
actboy168/MoeHero
scripts/maps/hero/金木研/JinMuYan_2_Sub.lua
1
2008
local mt = ac.skill['JinMuYan_2_Sub'] mt{ --技能图标 art = [[BTNjmyw.blp]], --技能说明 title = '横扫甩击(连击)', tip = [[ 冲向目标造成伤害 ]], --动画 cast_animation = 'Spell two', --动画速度 cast_animation_speed = 3, --施法前摇 cast_start_time = 0.4, cast_channel_time = 10, cast_shot_time = 0.3, --飞行距离 distance = 500, -...
gpl-3.0
JarnoVgr/InfectedWars
entities/weapons/iw_knife_old/init.lua
1
2119
--[[----------------------------------------------------------------------------- * Infected Wars, an open source Garry's Mod game-mode. * * Infected Wars is the work of multiple authors, * a full list can be found in CONTRIBUTORS.md. * For more information, visit https://github.com/JarnoVgr/InfectedWars * * Inf...
mit
darklost/quick-ng
cocos/scripting/lua-bindings/auto/api/SceneReader.lua
19
1434
-------------------------------- -- @module SceneReader -- @parent_module ccs -------------------------------- -- -- @function [parent=#SceneReader] setTarget -- @param self -- @param #function selector -- @return SceneReader#SceneReader self (return value: ccs.SceneReader) --------------------------------...
mit
Colettechan/darkstar
scripts/zones/West_Ronfaure/npcs/Aaveleon.lua
13
1515
----------------------------------- -- Area: West Ronfaure -- NPC: Aaveleon -- Involved in Quest: A Sentry's Peril -- @pos -431 -45 343 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require(...
gpl-3.0
Colettechan/darkstar
scripts/zones/Ifrits_Cauldron/Zone.lua
13
2695
----------------------------------- -- -- Zone: Ifrits_Cauldron (205) -- ----------------------------------- package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Ifrits_Cauldron/Te...
gpl-3.0
Akamaru/Mikubot
plugins/birthday_set.lua
1
1247
do local function save_value(msg, name, value) if (not name or not value) then return "Benutzung: #setbd [Name] [Tag. Monat]" end local hash = 'telegram:birthdays' if hash then print('Speicher Geburtstag in '..hash) redis:hset(hash, name, value) return "Geburtstag von "..name.." am "..value.....
gpl-2.0
Colettechan/darkstar
scripts/zones/Mount_Zhayolm/npcs/HomePoint#1.lua
27
1274
----------------------------------- -- Area: Mount Zhayolm -- NPC: HomePoint#1 -- @pos -540.844 -4.000 70.809 61 ----------------------------------- package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Mount_Zhayolm/TextIDs"); require("scripts/globa...
gpl-3.0
zynjec/darkstar
scripts/zones/Port_San_dOria/npcs/Nimia.lua
11
1322
----------------------------------- -- Area: Port San d'Oria -- NPC: Nimia -- Elshimo Lowlands Regional Merchant ----------------------------------- local ID = require("scripts/zones/Port_San_dOria/IDs") require("scripts/globals/conquest") require("scripts/globals/npc_util") require("scripts/globals/quests") require("...
gpl-3.0
vseledkin/torch-toolbox
Try-model/tryModel.lua
3
3398
-------------------------------------------------------------------------------- -- Routing for testing models.lua -- Alfredo Canziani, Mar 2014 -------------------------------------------------------------------------------- -- Options --------------------------------------------------------------------- lapp = requi...
bsd-3-clause
Vadavim/jsr-darkstar
scripts/zones/La_Theine_Plateau/npcs/Faurbellant.lua
14
1777
----------------------------------- -- Area: Northern San d'Oria -- NPC: Faurbellant -- Type: Quest NPC -- Involved in Quest: Gates of Paradise -- @pos 484 24 -89 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
Colettechan/darkstar
scripts/zones/Southern_San_dOria/npcs/Benaige.lua
12
2107
----------------------------------- -- Area: Southern San d'Oria -- NPC: Benaige -- Standard Merchant NPC -- @zone 230 -- @pos-142,-6 47 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requir...
gpl-3.0
Vadavim/jsr-darkstar
scripts/zones/Cloister_of_Tides/bcnms/trial-size_trial_by_water.lua
29
2207
----------------------------------- -- Area: Cloister of Tides -- BCNM: Trial by Water ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/shop"); require("scripts/globals/q...
gpl-3.0
Colettechan/darkstar
scripts/zones/Dynamis-Buburimu/mobs/Serjeant_Tombstone.lua
22
1228
----------------------------------- -- Area: Dynamis Buburimu -- MOB: Serjeant_Tombstone ----------------------------------- package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil; ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Buburimu/TextIDs"); ----...
gpl-3.0
pedja1/aNmap
dSploit/jni/nmap/nselib/data/psexec/drives.lua
8
1334
---This configuration file pulls info about a given harddrive -- Any variable in the 'config' table in smb-psexec.nse can be overriden in the -- 'overrides' table. Most of them are not really recommended, such as the host, -- key, etc. overrides = {} --overrides.timeout = 40 modules = {} local mod mod = {} mod.uploa...
gpl-3.0
alexandergall/snabbswitch
lib/ljsyscall/syscall/linux/arm/nr.lua
19
8690
-- arm syscall numbers -- eabi only local nr = { zeropad = true, SYS = { restart_syscall = 0, exit = 1, fork = 2, read = 3, write = 4, open = 5, close = 6, creat = 8, link = 9, unlink = 10, ...
apache-2.0
xponen/Zero-K
units/heavyturret.lua
8
5320
unitDef = { unitname = [[heavyturret]], name = [[Sunlance]], description = [[Anti-Tank Turret - Requires 25 Power]], activateWhenBuilt = true, buildCostEnergy = 700, buildCostMetal = 700, builder ...
gpl-2.0
xponen/Zero-K
units/cormist.lua
1
7192
unitDef = { unitname = [[cormist]], name = [[Slasher]], description = [[Deployable Missile Truck (must stop to fire)]], acceleration = 0.0354, brakeRate = 0.0358, buildCostEnergy = 150, buildCostMetal = 150, builder ...
gpl-2.0
kiarash14/spam
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
Ali021s/Ali021
plugins/admin.lua
27
10309
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
agpl-3.0
shreyaspotnis/S4
examples/Antonoyiannakis_PRB_60_1999/fig3_4.lua
7
1201
-- Reproduces Fig. 3 and 4 in -- M. I. Antonoyiannakis and J. B. Pendry, -- "Electromagnetic forces in photonic crystals", -- Phys. Rev. B, Vol. 60, No. 4, 1999. S = S4.NewSimulation() S:SetLattice({1,0}, {0,1}) S:SetNumG(1) S:AddMaterial('Al', {1,0}) -- real and imag parts S:AddMaterial('Vacuum', {1,0}) S...
gpl-2.0
brewsterl/forgottenserver-1
data/talkactions/scripts/deathlist.lua
2
1729
function onSay(cid, words, param) local resultId = db.storeQuery("SELECT `id`, `name` FROM `players` WHERE `name` = " .. db.escapeString(param)) if resultId ~= false then local targetGUID = result.getDataInt(resultId, "id") local targetName = result.getDataString(resultId, "name") result.free(resultId) local ...
gpl-2.0
xponen/Zero-K
LuaRules/Gadgets/cmd_doline.lua
1
2851
-- $Id: cmd_doline.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: cmd_doline.lua -- brief: adds a command to run raw LUA commands from the game consol...
gpl-2.0
sullome/km-freeminer-mods
mods/containers/init.lua
2
15534
containers = { ["containers:chest"] = { w = 9, h = 3 }, ["containers:chest_locked"] = { w = 9, h = 3 }, ["containers:wood_bin"] = { w = 5, h = 3 }, ["containers:wood_bin_locked"] = { w = 5, h = 3 }, ["containers:wood_jbox"] = { w = 3, h = 2 }, ["containers:wood_jbox_locked"]...
gpl-3.0
gpedro/forgottenserver
data/actions/scripts/other/fluids.lua
34
2434
local drunk = Condition(CONDITION_DRUNK) drunk:setParameter(CONDITION_PARAM_TICKS, 60000) local poison = Condition(CONDITION_POISON) poison:setParameter(CONDITION_PARAM_DELAYED, true) poison:setParameter(CONDITION_PARAM_MINVALUE, -50) poison:setParameter(CONDITION_PARAM_MAXVALUE, -120) poison:setParameter(CONDITION_PA...
gpl-2.0
hfjgjfg/PERSIANGUARD101010
SaTaN_bot.lua
19
8849
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 = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
xponen/Zero-K
effects/opticblast.lua
17
3409
return { ["opticblast_charge"] = { charge = { air = true, class = [[CSimpleParticleSystem]], ground = true, water = true, properties = { airdrag = .95, alwaysvisible = true, colormap ...
gpl-2.0
xponen/Zero-K
scripts/corcan.lua
1
7926
local base = piece 'base' local l_leg = piece 'l_leg' local l_foot = piece 'l_foot' local l_rocket = piece 'l_rocket' local l_pt = piece 'l_pt' local r_leg = piece 'r_leg' local r_foot = piece 'r_foot' local r_rocket = piece 'r_rocket' local r_pt = piece 'r_pt' local pre_turret = piece 'pre_turret' local turre...
gpl-2.0
ArashFaceBook/InfernalTG
plugins/chat.lua
28
1195
local function run(msg) if msg.text == "hi" then return "Hello bb" end if msg.text == "Hi" then return "Hello honey" end if msg.text == "Hello" then return "Hi bb" end if msg.text == "hello" then return "Hi honey" end if msg.text == "Salam" then return "Salam aleykom" end if msg.text == "salam" then return "و علی...
gpl-2.0
DreamHacks/dreamdota
DreamWarcraft/Build Tools/MPQFixEngine/lua/loop/collection/OrderedSet.lua
13
4735
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
Xandaros/Starfall
lua/starfall/libs_sh/http.lua
4
4040
--- HTTP Library --- Http library. Requests content from urls. -- @shared local http_library, _ = SF.Libraries.Register( "http" ) local http_interval = CreateConVar( "sf_http_interval", "0.5", { FCVAR_ARCHIVE, FCVAR_REPLICATED }, "Interval in seconds in which one http request can be made" ) local http_max_active = Cre...
bsd-3-clause
nwf/nodemcu-firmware
app/lua53/host/tests/code.lua
7
5973
-- $Id: code.lua,v 1.42 2016/11/07 13:04:32 roberto Exp $ -- See Copyright Notice in file all.lua if T==nil then (Message or print)('\n >>> testC not active: skipping opcode tests <<<\n') return end print "testing code generation and optimizations" -- this code gave an error for the code checker do local funct...
mit
xponen/Zero-K
LuaUI/Widgets/unit_voice.lua
12
3543
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Voice Assistant", desc = "", author = "quantum", date = "Dec 2011", licens...
gpl-2.0
neo4j/license-maven-plugin
src/test/integration/languages/lua/test.lua
1
2290
do require("luascr/rluawfx") local function InsTextInCol () local lung local lineaTxt local lineaCorrente local primaLinea local ultimaLinea local posizioneIniziale local pos local lungLinea = 0 local lungAdd = 0 local parte1 = "" local parte2 = "" local testoAdd = "[Testo da aggiungere]" ...
apache-2.0
rogerpueyo/luci
applications/luci-app-ocserv/luasrc/controller/ocserv.lua
5
1850
-- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> -- Licensed to the public under the Apache License 2.0. module("luci.controller.ocserv", package.seeall) function index() if not nixio.fs.access("/etc/config/ocserv") then return end local page page = entry({"admin", "vpn", "ocserv"}, a...
apache-2.0
adamlerer/torch7
test/test_half.lua
7
1841
local mytester local torchtest = torch.TestSuite() -- Lua 5.2 compatibility local loadstring = loadstring or load local unpack = unpack or table.unpack function torchtest.easy() local x=torch.randn(5, 6):half() mytester:assert(x:isContiguous(), 'x should be contiguous') mytester:assert(x:dim() == 2, 'x shoul...
bsd-3-clause
pablo93/TrinityCore
Data/Interface/GlueXML/PatchDownload.lua
1
1815
FADE_IN_TIME = 2; function PatchDownload_OnLoad(self) self:SetSequence(0); self:SetCamera(0); self:RegisterEvent("PATCH_UPDATE_PROGRESS"); self:RegisterEvent("PATCH_DOWNLOADED"); end function PatchDownload_OnShow() PatchDownload_UpdateProgress(); PatchDownload_UpdateButtons(); PatchDownloadRestartButton:Enabl...
gpl-2.0
Samnsparky/ljswitchboard
switchboard_modules/lua_script_debugger/premade_scripts/7b Log voltage to file WiFi.lua
1
3014
print("Log voltage to file. Voltage measured on AIN1 every 50ms. Store values every 5 seconds") --Requires micro SD Card installed inside the T7 or T7-Pro. --Requires FW 1.0150 or newer. --This example is for logging to file while using WiFi, since WiFi needs 5s or more to initialize --without comm. to/from the uSD c...
mit
xponen/Zero-K
effects/armtick_explosion.lua
12
4912
-- armtick_explosion -- based on gundam_electric_explosion.lua return { ["armtick_explosion"] = { dirt = { count = 4, ground = true, properties = { alphafalloff = 2, alwaysvisible = true, color = [[0.2, 0.1, 0.05]], ...
gpl-2.0
mohammadclashclash/alpha2016
plugins/stats.lua
3
4109
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
alexandergall/snabbswitch
lib/luajit/testsuite/test/lib/string/rep.lua
6
1489
local rep = string.rep do --- smoke assert(("p"):rep(0) == "") assert(("a"):rep(3) == "aaa") assert(("x\0z"):rep(4) == "x\0zx\0zx\0zx\0z") end do --- versus concat local s = "" for i = 1, 75 do s = s .. "{}" assert(s == ("{}"):rep(i)) end end do --- misc local y for i=1,100 do y = rep("a", 10...
apache-2.0
adib1380/inviter-2
plugins/spammer.lua
4
299742
do function run(msg, matches) return " Mr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜\nMr_Inviter😜...
gpl-2.0
Ali021s/Ali021
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
agpl-3.0
NENO70/GENERAL
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-3.0
alexandergall/snabbswitch
lib/luajit/testsuite/test/misc/hook_active.lua
6
2405
local ctest = require("ctest") local called = 0 local function clearhook() debug.sethook(nil, "", 0) end -- Return from pcall with active hook must prepend true. FF pcall. called = 0 debug.sethook(function() called=called+1; assert(pcall(function() end) == true); clearhook() end, "", 1) do local x = 1 end assert(call...
apache-2.0
link4all/20170920openwrt
own_files/mt7628/files_qs/usr/lib/lua/luci/model/cbi/admin_network/wifi.lua
4
59613
--[[ 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...
gpl-2.0
link4all/20170920openwrt
own_files/mt7628/files_zhongshan/usr/lib/lua/luci/model/cbi/admin_network/wifi.lua
4
59613
--[[ 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...
gpl-2.0
Xamla/torch-pcl
ICP.lua
1
2088
local ffi = require 'ffi' local torch = require 'torch' local utils = require 'pcl.utils' local pcl = require 'pcl.PointTypes' local ICP = torch.class('pcl.ICP', pcl) local func_by_type = {} local function init() local ICP_method_names = { 'new', 'delete', 'setInputSource', 'setInputTarget', '...
bsd-3-clause
Vermeille/kong
spec/03-plugins/15-response-transformer/03-api_spec.lua
3
3297
local helpers = require "spec.helpers" describe("Plugin: response-transformer (API)", function() local admin_client setup(function() assert(helpers.start_kong()) admin_client = helpers.admin_client() end) teardown(function() if admin_client then admin_client:close() end helpers.stop_k...
apache-2.0
xponen/Zero-K
units/shipcon.lua
1
4615
unitDef = { unitname = [[shipcon]], name = [[Mariner]], description = [[Construction Ship, Builds at 7.5 m/s]], acceleration = 0.051375, brakeRate = 0.061, buildCostEnergy = 200, buildCostMetal = 200, buildDistance ...
gpl-2.0
jjimenezg93/ai-pathfinding
moai/3rdparty/luasql-2.2.0/tests/test.lua
5
23642
#!/usr/local/bin/lua5.1 -- See Copyright Notice in license.html -- $Id: test.lua,v 1.52 2008/06/30 10:43:03 blumf Exp $ TOTAL_FIELDS = 40 TOTAL_ROWS = 40 --unused DEFINITION_STRING_TYPE_NAME = "text" QUERYING_STRING_TYPE_NAME = "text" CREATE_TABLE_RETURN_VALUE = 0 DROP_TABLE_RETURN_VALUE = 0 MSG_CURSOR_NOT_CLOSED =...
mit
xponen/Zero-K
LuaUI/Widgets/camera_smooth_move.lua
8
6635
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: camera_smooth_scroll.lua -- brief: Alternate camera scrolling for the middle mouse button -- author: Dave Rodgers -- -- Copyright (C) 20...
gpl-2.0
xponen/Zero-K
LuaUI/Widgets/chili_new/skins/DarkHive/skin.lua
25
4262
--//============================================================================= --// Skin local skin = { info = { name = "DarkHive", version = "0.1", author = "luckywaldo7", } } --//============================================================================= --// skin.general = { --font ...
gpl-2.0
maxolasersquad/ff_companion
charmap.lua
1
2821
return { [0x00] = '', [0x05] = '\10', [0x80] = '0', [0x81] = '1', [0x82] = '2', [0x83] = '3', [0x84] = '4', [0x85] = '5', [0x86] = '6', [0x87] = '7', [0x88] = '8', [0x89] = '9', [0x8A] = 'A', [0x8B] = 'B', [0x8C] = 'C', [0x8D] = 'D', [0x8E] = 'E', ...
gpl-3.0
xuejian1354/barrier_breaker
feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/interfaces.lua
20
2085
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> 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. Th...
gpl-2.0
ghhgf/hac
libs/dateparser.lua
114
6213
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-2.0
xponen/Zero-K
LuaUI/Widgets/unit_marker.lua
1
14481
local versionNumber = "1.3.10" function widget:GetInfo() return { name = "Unit Marker Zero-K", desc = "[v" .. string.format("%s", versionNumber ) .. "] Marks spotted buildings of interest and commander corpse.", author = "very_bad_soldier", date = "October 21, 2007 / September 08, 2010", license = "GNU GPL ...
gpl-2.0
Elanis/SciFi-Pack-Addon-Gamemode
lua/entities/sw_gunship/init.lua
1
4421
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:SpawnFunction( ply,tr ) local ent = ents.Create("sw_gunship") --SpaceShip entity ent:SetPos( tr.HitPos + Vector(0,0,40)) ent:Spawn() ent:Activate() return ent end function ENT:Initialize() self.MaxHealth = 1000 self.Pi...
gpl-2.0
adixcompany/self
libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-3.0
AmirVTA/Dandelion
libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
gpl-3.0
xponen/Zero-K
LuaUI/Widgets/gui_specialmaphidedecals.lua
17
1103
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Specialmap Hide Decals", desc = "Show decals when in normal view, hide in other views.", a...
gpl-2.0
aqasaeed/boty
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
TeamTop/Uor
plugins/help.lua
1
1069
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Ahmed <@ahmedjabbar1> # our channel: @TeamTop # Version: 1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] do loc...
gpl-2.0
xponen/Zero-K
LuaUI/Widgets/gui_chili_endgraph.lua
1
10071
--[[ TO DO: Add amount label when mouseover line on graph (e.g to see exact metal produced at a certain time), Implement camera control to pan in the background while viewing graph, Add minimize option Come up with better way of handling specs, active players and players who died (currently doesn't show player...
gpl-2.0
anvilvapre/OpenRA
mods/cnc/maps/nod05/nod05.lua
10
10833
NodUnitsVehicle = { 'bike', 'bike', 'bggy', 'ltnk', 'bike', 'bike' } NodUnitsRocket = { 'e1', 'e1', 'e1', 'e1' } NodUnitsGunner = { 'e3', 'e3', 'e3', 'e3' } GDIReinforceUnits = { 'e2', 'e2', 'e2', 'e2', 'e2' } Gdi1Units = { ['e1'] = 3, ['e2'] = 1 } Gdi2Units = { ['e1'] = 2, ['e2'] = 1 } Gdi3Units = { ['jeep'] = 1 } Gd...
gpl-3.0
rogerpueyo/luci
applications/luci-app-travelmate/luasrc/model/cbi/travelmate/cfg_wireless_tab.lua
7
1044
-- Copyright 2017-2018 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local fs = require("nixio.fs") local util = require("luci.util") local input = "/etc/config/wireless" if not fs.access(input) then m = SimpleForm("error", nil, translate("Input file not ...
apache-2.0
Paradokz/BadRotations
Rotations/cCharacter.lua
2
19910
--- Character Class -- All classes inherit from the base class /cCharacter.lua cCharacter = {} -- Creates new character with given class function cCharacter:new(class) local self = {} self.augmentRune = { -- Contains the different buff IDs for Augment Runes Agility = 175456, Strength = 175439, Inte...
gpl-3.0
TurkeyMan/premake-android
vsandroid_vcxproj.lua
1
14448
-- -- android/vsandroid_vcxproj.lua -- vs-android integration for vstudio. -- Copyright (c) 2012-2015 Manu Evans and the Premake project -- local p = premake p.modules.vsandroid = { } local android = p.modules.android local vsandroid = p.modules.vsandroid local vc2010 = p.vstudio.vc2010 local vstudio = p.vstud...
bsd-3-clause