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
ccyphers/kong
kong/plugins/oauth2/migrations/cassandra.lua
2
4497
return { { name = "2015-08-03-132400_init_oauth2", up = [[ CREATE TABLE IF NOT EXISTS oauth2_credentials( id uuid, name text, consumer_id uuid, client_id text, client_secret text, redirect_uri text, created_at timestamp, PRIMARY KEY (id) ...
apache-2.0
Ninjistix/darkstar
scripts/zones/VeLugannon_Palace/npcs/qm1.lua
5
1668
----------------------------------- -- Area: VeLugannon Palace -- NPC: ??? (qm1) -- !pos -370.039 16.014 -274.378 177 ----------------------------------- package.loaded["scripts/zones/VeLugannon_Palace/TextIDs"] = nil; ----------------------------------- require("scripts/zones/VeLugannon_Palace/TextIDs"); ------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Windurst_Waters/npcs/Shohrun-Tuhrun.lua
5
1627
----------------------------------- -- Area: Windurst Waters -- NPC: Shohrun-Tuhrun -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- requi...
gpl-3.0
davidbuzz/ardupilot
libraries/AP_Scripting/examples/arming-check-wp1-takeoff.lua
18
1073
-- This script runs a custom arming check for index == 1 and it must be a takeoff missionn item local auth_id = arming:get_aux_auth_id() local MAV_CMD_NAV_TAKEOFF = 22 local MAV_CMD_NAV_VTOL_TAKEOFF = 84 function update() -- this is the loop which periodically runs if auth_id then local cmd_id = mission:get_cu...
gpl-3.0
TEAMvirus/ViRuS
plugins/Inrealm.lua
183
36473
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_na...
gpl-2.0
amirb8/telepersian
plugins/inrealm.lua
183
36473
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_na...
gpl-2.0
Ninjistix/darkstar
scripts/globals/weaponskills/spinning_axe.lua
25
1394
----------------------------------- -- Spinning Axe -- Axe weapon skill -- Skill level: 150 -- Single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Flame Gorget, Soil Gorget & Thunder Gorget. -- Aligned with the Flame Belt, Soil Belt & Thunder Belt. -- Element: None -- Modifier...
gpl-3.0
Ninjistix/darkstar
scripts/zones/North_Gustaberg/npcs/Cavernous_Maw.lua
5
1101
----------------------------------- -- Area: North Gustaberg -- NPC: Cavernous Maw -- !pos 466 0 479 106 -- Teleports Players to North Gustaberg [S] ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings")...
gpl-3.0
shahin7aj/shxt
lang/persian_lang.lua
28
27938
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
istarIQ/Source
decoration.lua
1
9042
local function run(msg, matches) if not is_owner(msg) then return "❌✋�� عـذرأَ حأليأَ هذه الميزْهَ فقطَ للمَطورَ ✔️" -- JOoN faghat male adminas! koskhol inhame plugin minevise mizare bara admin end if #matches < 2 then return "بعد هذا الأمر، من خلال تحديد كلمة المسافة أو العبارة التي ت...
gpl-2.0
DGA-MI-SSI/YaCo
deps/swig-3.0.7/Examples/test-suite/lua/overload_simple_runme.lua
8
1235
require("import") -- the import fn import("overload_simple") -- import code for k,v in pairs(overload_simple) do _G[k]=v end -- move to global -- lua has only one numeric type, foo(int) and foo(double) are the same -- whichever one was wrapper first will be used assert(foo(3)=="foo:int" or foo(3)=="foo:double") -- co...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Qulun_Dome/npcs/_440.lua
5
1233
----------------------------------- -- Area: Qulun Dome -- NPC: Door -- Involved in Mission: Magicite -- !pos 60 24 -2 148 ----------------------------------- package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Qulun_...
gpl-3.0
syj2010syj/All-Star-Battle-2
YDWE/share/script/ydwe_on_save.lua
1
7145
require "compile.inject_code" require "compile.wave" require "compile.template" require "compile.cjass" require "compile.jasshelper" require "mpq_util" local storm = ar.storm local stormlib = ar.stormlib -- 确定应当把地图保存为适合老版本(< 1.24)还是新版本(>= 1.24)的 -- 对于保存为双份,按照当前魔兽版本处理 -- save_type - 保存类型,0到3的取值,意义同设置程序,从上到下依次为0到3 -...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
003_combat_numbers/code/Selection.lua
6
5364
Selection = {} Selection.__index = Selection function Selection:Create(params) local this = { mX = 0, mY = 0, mDataSource = params.data, mColumns = params.columns or 1, mFocusX = 1, mFocusY = 1, mSpacingY = params.spacingY or 24, mS...
mit
syj2010syj/All-Star-Battle-2
map/lua/base.lua
1
1857
jass = require 'jass.common' japi = require 'jass.japi' slk = require 'jass.slk' hook = require 'jass.hook' storm = require 'jass.storm' console = require 'jass.console' globals = require 'jass.globals' --debug.sethook(function () -- local info = debug.getinfo(2) -- if info then -- print('call', 'name:', info.name, '...
gpl-3.0
eugenesan/openwrt-luci
protocols/ppp/luasrc/model/cbi/admin_network/proto_ppp.lua
59
3761
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
apache-2.0
Ninjistix/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Raustigne.lua
5
1110
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Raustigne -- @zone 80 -- !pos 4 -2 44 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); require...
gpl-3.0
s-d-a/DCS-ExportScripts
Scripts/DCS-ExportScript/lib/Tools.lua
1
39553
-- Ikarus and D.A.C. Export Script -- -- Tools -- -- Copyright by Michael aka McMicha 2014 - 2018 -- Contact dcs2arcaze.micha@farbpigmente.org ExportScript.Tools = {} ExportScript.Version.Tools = "1.2.1" function ExportScript.Tools.WriteToLog(message) if ExportScript.logFile then local ltmp, lMiliseconds ...
lgpl-3.0
bluetomatoes/ExploreTimelines
Code/theme_ios.lua
2
10288
----------------------------------------------------------------------------------------- -- -- theme_ios.lua -- ----------------------------------------------------------------------------------------- local modname = ... local themeTable = {} package.loaded[modname] = themeTable local assetDir = "widget_ios" local im...
mit
vladuemilian/chef-server
omnibus/tests/routing/default_org_route_test.lua
11
1660
-- Default Org tests. -- Default Org table.insert(shared_chef_tests, {"/nodes", {TEST_ORG, "erchef", "nodes"}}) table.insert(shared_chef_tests, {"/nodes/", {TEST_ORG, "erchef", "nodes"}}) table.insert(shared_chef_tests, {"/environments/envname/nodes", {TEST_ORG, "erchef", "...
apache-2.0
Ninjistix/darkstar
scripts/zones/Lower_Jeuno/npcs/Harnek.lua
5
2051
----------------------------------- -- Area: Lower Jeuno -- NPC: Harnek -- Starts and Finishes Quest: The Tenshodo Showdown (finish) -- @zone 245 -- !pos 44 0 -19 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/spharai.lua
3
2854
----------------------------------------- -- ID: 18264, 18265, 18637, 18651, 18665, 19746, 19839, 20480, 20481, 20509 -- Item: Spharai ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskil...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Windurst_Woods/npcs/Ominous_Cloud.lua
5
3013
----------------------------------- -- Area: Windurst Woods -- NPC: Ominous Cloud -- Type: Ninjutsu Toolbag Maker -- !pos -20.632 -3.939 -40.554 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_Wood...
gpl-3.0
kbullaughey/lstm-play
lstm/MixtureGate.lua
1
1054
local MixtureGate, parent = torch.class('lstm.MixtureGate', 'nn.Module') -- This unit computs g @ a + (1-g) @ b, where @ is component-wise multiplication. function MixtureGate:__init() parent.__init(self) self.gradInput = {torch.Tensor(), torch.Tensor(), torch.Tensor()} end -- This module has no parameters. funct...
mit
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Amaura.lua
5
2670
----------------------------------- -- Area: Southern San d'Oria -- NPC: Amaura -- Involved in Quest: The Medicine Woman, To Cure a Cough -- @zone 230 -- !pos -85 -6 89 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
Ninjistix/darkstar
scripts/globals/weaponskills/randgrith.lua
3
2037
----------------------------------- -- Randgrith -- Club weapon skill -- Skill level: N/A -- Lowers target's evasion. Gullintani/Mjollnir: Temporarily improves params.accuracy. -- Available only when equipped with the Relic Weapons Gullintani (Dynamis use only), Mjollnir, or a Charged Molva Maul. -- Aftermath: Adds +20...
gpl-3.0
bagobor/cpp2lua-buindings-battle
external/LuaJIT-2.0.4/src/host/genminilua.lua
127
11962
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2015 Mike P...
mit
ccyphers/kong
spec/02-integration/04-core/02-hooks_spec.lua
1
26449
local helpers = require "spec.helpers" local cjson = require "cjson" local cache = require "kong.tools.database_cache" local pl_utils = require "pl.utils" local pl_path = require "pl.path" local pl_file = require "pl.file" local pl_stringx = require "pl.stringx" -- cache entry inserted as a sentinel whenever a db look...
apache-2.0
Ninjistix/darkstar
scripts/zones/Empyreal_Paradox/bcnms/dawn.lua
5
3041
----------------------------------- -- Area: Empyreal_Paradox -- Name: dawn --instance 1 --16924673', 'Promathia V1', '936', '-520', '-119', '524 --16924674', 'Promathia V2', '11135', '-520', '-119', '524 --instance 2 --16924675', 'Promathia V1', '936', '521', '-0.500', '517 --16924675', 'Promathia V2', '11135', '521',...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/plate_of_seafood_paella.lua
3
1298
----------------------------------------- -- ID: 5968 -- Item: Plate of Seafood Paella -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- HP 40 -- Dexterity 5 -- Mind -1 -- Accuracy % 15 (cap 80) -- Undead Killer 5 ----------------------------------------- require("scripts/globals/status"); -...
gpl-3.0
eugenesan/openwrt-luci
protocols/ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
53
1276
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
apache-2.0
Ninjistix/darkstar
scripts/globals/abilities/pets/healing_breath_iii.lua
5
1914
--------------------------------------------- -- Healing Breath III --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/msg"); --------------------------------------------- function onA...
gpl-3.0
dafei2015/hugular_cstolua
Client/tools/luaTools/lua/jit/bcsave.lua
75
18123
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
dinodeck/ninety_nine_days_of_dev
001_cancel_textboxes/code/Dice.lua
10
2092
Dice = {} Dice.__index = Dice function Dice:Create(diceStr) local this = { mDice = {} } setmetatable(this, self) this:Parse(diceStr) return this end function Dice:Parse(diceStr) local len = string.len(diceStr) local index = 1 local allDice = {} while index <= len do ...
mit
Ninjistix/darkstar
scripts/zones/Kazham/TextIDs.lua
5
2027
-- 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 = 6...
gpl-3.0
scan-bot/scan-bot
plugins/channels.lua
356
1732
-- Checks if bot was disabled on specific chat 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) if...
gpl-2.0
DGA-MI-SSI/YaCo
deps/swig-3.0.7/Examples/test-suite/lua/li_std_string_runme.lua
2
4225
require("import") -- the import fn import("li_std_string") -- import lib for k,v in pairs(li_std_string) do _G[k]=v end -- move to global -- catch "undefined" global variables local env = _ENV -- Lua 5.2 if not env then env = getfenv () end -- Lua 5.1 setmetatable(env, {__index=function (t,i) error("undefined global ...
gpl-3.0
karrots/nodemcu-firmware
lua_modules/email/imap.lua
81
6275
--- -- Working Example: https://www.youtube.com/watch?v=PDxTR_KJLhc -- IMPORTANT: run node.compile("imap.lua") after uploading this script -- to create a compiled module. Then run file.remove("imap.lua") -- @name imap -- @description An IMAP 4rev1 module that can be used to read email. -- Tested on NodeMCU 0.9.5 buil...
mit
premake/premake-4.x
src/actions/example/_example.lua
32
3632
-- Define a namespace for my new action. The second line defines an alias that I -- can use in this file, saving myself some typing. It will not be visible outside -- of this file (though I can always define it again). premake.example = { } local example = premake.example -- The description of the action. Note th...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Windurst_Walls/npcs/Trail_Markings.lua
3
2696
----------------------------------- -- Area: Windurst Walls -- NPC: Trail Markings -- Dynamis-Windurst Enter -- !pos -216 0 -94 239 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts...
gpl-3.0
charles-l/LD29
libs/love-loader.lua
2
5845
require "love.filesystem" require "love.image" require "love.audio" require "love.sound" local loader = { _VERSION = 'love-loader v2.0.1', _DESCRIPTION = 'Object Orientation for Lua', _URL = 'https://github.com/kikito/love-loader', _LICENSE = [[ MIT LICENSE Copyright (c) 2014 Enrique G...
mit
konnected-io/konnected-security
spec/http_req_spec.lua
1
1746
describe("http_req", function() local handler, raw, req setup(function() _G.sjson = require("cjson") end) describe("GET request", function() before_each(function() raw = "GET /device?foo=one&bar=two HTTP/1.1\r\nHost: example.com\r\nUser-Agent: curl/7.54.0\r\nAccept: */*\r\n\r\nhi" req = re...
apache-2.0
Ninjistix/darkstar
scripts/commands/delspell.lua
22
1075
--------------------------------------------------------------------------------------------------- -- func: delspell <spellID> <player> -- desc: Removes a spell from the players spell list. --------------------------------------------------------------------------------------------------- cmdprops = { permission ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/pepperoni_pizza.lua
3
1191
----------------------------------------- -- ID: 5697 -- Item: pepperoni_pizza -- Food Effect: 3 hours, all Races ----------------------------------------- -- HP +30 -- Strength 1 -- Accuracy 9% (caps @ 10) -- Attack 10% (caps @ 15) ----------------------------------------- require("scripts/globals/status"); ----------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Windurst_Waters/npcs/Qhum_Knaidjn.lua
5
2518
----------------------------------- -- Area: Windurst Waters -- NPC: Qhum_Knaidjn -- Type: Guildworker's Union Representative -- @zone 238 -- !pos -112.561 -2 55.205 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
TRex22/hawkthorne-journey
src/nodes/enemies/manicorn.lua
1
4963
local Timer = require 'vendor/timer' local sound = require 'vendor/TEsound' local Projectile = require 'nodes/projectile' local Gamestate = require 'vendor/gamestate' return { name = 'manicorn', --attack_sound = 'manicorn_running', die_sound = 'manicorn_neigh', position_offset = { x = 0, y = 0 }, h...
mit
Ninjistix/darkstar
scripts/zones/Kuftal_Tunnel/Zone.lua
4
1562
----------------------------------- -- -- Zone: Kuftal_Tunnel (174) -- ----------------------------------- package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Kuftal_Tunnel/TextIDs"); require("scripts/zones/Kuftal_Tunnel/MobIDs"); require("scripts/glob...
gpl-3.0
THEGENRRAL/GENERAL
plugins/leave_ban.lua
2
1141
--[[ -- تم التعديل و التعريب بواسطه @KNSLTHM --[[ Dev @KNSLTHM Dev @NAHAR2_BOT CH > @NENO_CHCH --]] local function run(msg, matches) local data = load_data(_config.moderation.data) if msg.action and msg...
gpl-3.0
blackman1380/antispam
plugins/arabic_lock.lua
234
1405
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id)...
gpl-2.0
mandersan/premake-core
tests/config/test_linkinfo.lua
12
2230
-- -- tests/config/test_linkinfo.lua -- Test the config object's link target accessor. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("config_linkinfo") local config = p.config -- -- Setup and teardown -- local wks, prj function suite.setup() ...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/FeiYin/TextIDs.lua
3
2557
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6559; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6565; -- Obtained: <item> GIL_OBTAINED = 6566; -- Obtained <number> gil KEYITEM_OBTAINED = 6568; -- Obtain...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Northern_San_dOria/npcs/Vichuel.lua
5
1618
----------------------------------- -- Area: Northern San d'Oria -- NPC: Vichuel -- Only sells when San d'Oria controlls Fauregandi Region ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/North...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5c0_.lua
5
1468
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: Mahogany Door -- Involved In Quest: Making Headlines -- Working 100% -- Unable to find EventID for Making Headlines quest. Used dialog ID instead. ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"]...
gpl-3.0
arca1n/cocos2d-x_nextpeer_integration
samples/Lua/TestLua/Resources/luaScript/SpriteTest/SpriteTest.lua
4
53742
local size = cc.Director:getInstance():getWinSize() local kTagTileMap = 1 local kTagSpriteBatchNode = 1 local kTagNode = 2 local kTagAnimation1 = 1 local kTagSpriteLeft = 2 local kTagSpriteRight = 2 local kTagSprite1 = 0 local kTagSprite2 = 1 local kTagSprite3 = 2 local kTagSprite4 = 3 local kTagSprite5 = 4 local kTag...
mit
Ninjistix/darkstar
scripts/zones/Windurst_Waters/TextIDs.lua
5
5879
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6539; -- Come back after sorting your inventory. INVENTORY_FULL = 6541; -- You cannot obtain the item. ITEM_OBTAINED = 6545; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/meat_chiefkabob.lua
3
1098
----------------------------------------- -- ID: 4574 -- Item: meat_chiefkabob -- Food Effect: 60Min, All Races ----------------------------------------- -- Strength 5 -- Agility 1 -- Intelligence -2 -- Attack % 22 -- Attack Cap 65 ----------------------------------------- require("scripts/globals/status"); -----------...
gpl-3.0
hvbommel/domoticz
dzVents/runtime/integration-tests/File.lua
25
1778
-- -- # file -- -- Basic file functions for Lua. -- -- **License:** MIT -- **Source:** [GitHub](https://github.com/gummesson/file.lua) -- -- ## References local io, os, error = io, os, error -- ## file -- -- The namespace. -- local file = {} -- ### file.exists -- -- Determine if the file in the `path` exists. -- -...
gpl-3.0
clphusf/cz
bot/seedbot.lua
180
10314
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
saecoiq/Spam-Bot
bot/seedbot.lua
180
10314
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
scan-bot/scan-bot
plugins/pokedex.lua
626
1668
do local images_enabled = true; local function get_sprite(path) local url = "http://pokeapi.co/"..path print(url) local b,c = http.request(url) local data = json:decode(b) local image = data.image return image end local function callback(extra) send_msg(extra.receiver, extra.text, ok_cb, false) end lo...
gpl-2.0
ehrenbrav/FCEUX_Learning_Environment
output/luaScripts/tetris.lua
9
5355
-- Tetris - displays block stats and shows hitboxes -- Written by QFox -- http://www.datacrystal.org/wiki/Tetris:RAM_map -- Tetris (U) [!].rom local function getPiece(n) -- returns table with information about this piece -- every piece consists of 4 blocks -- so piece will contain the information about these ...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/chunk_of_homemade_cheese.lua
3
1512
----------------------------------------- -- ID: 5225 -- Item: chunk_of_homemade_cheese -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 10 -- Accuracy +12% (cap 80) -- Attack +10% (cap 40) -- Ranged Accuracy +12% (cap 80) -- Ranged Attack +10% (cap 40) ------------------------------...
gpl-3.0
istarIQ/Source
webshot.lua
2
1481
--Shared by @BlackHatChannel local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Castle_Oztroja/mobs/Yagudo_Avatar.lua
5
1316
----------------------------------- -- Area: Castle Oztroja (151) -- NM: Yagudo_Avatar -- Notes: PH for Tzee Xicu the Manifest ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- mixins = {require("scripts/mixins/job_special")}; requir...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Korroloka_Tunnel/Zone.lua
4
2670
----------------------------------- -- -- Zone: Korroloka_Tunnel (173) -- ----------------------------------- package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Korroloka_Tunnel/TextIDs"); require("scripts/globals/settings"); require("scripts/globa...
gpl-3.0
xboybigcampishere/Full
plugins/export_gban.lua
82
2310
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
shahin7aj/shxt
plugins/export_gban.lua
82
2310
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Xarcabard/npcs/Trail_Markings.lua
3
2382
----------------------------------- -- Area: Xarcabard -- NPC: Trail Markings -- Dynamis-Xarcabard Enter -- !pos 570 0 -272 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/...
gpl-3.0
area31/telegram-bot
plugins/xinga.lua
1
1673
local xingas_file = './data/xingas.lua' local xingas_table function read_xingas_file() local f = io.open(xingas_file, "r+") if f == nil then print ('Created a new xingas file on '..xingas_file) serialize_to_file({}, xingas_file) else print ('Xingamentos loaded: '..xingas_file) ...
gpl-2.0
TRex22/hawkthorne-journey
src/main.lua
1
5779
local correctVersion = require 'correctversion' if correctVersion then require 'utils' local app = require 'app' local tween = require 'vendor/tween' local Gamestate = require 'vendor/gamestate' local sound = require 'vendor/TEsound' local timer = require 'vendor/timer' local cli = require 'vendor/clia...
mit
neofob/sile
packages/unichar.lua
2
1130
SILE.registerCommand("unichar", function(options, content) local cp = content[1] if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end SILE.typesetter:typeset(SU.utf8charfromcodepoint(cp)) end) return { documentation = [[\begin{document} \script[src=packages/unichar] SILE is Unicode compatible, ...
mit
mohammad25253/persianguard12
plugins/channels.lua
300
1680
-- Checks if bot was disabled on specific chat 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) if...
gpl-2.0
jamiepg1/MCServer
MCServer/Plugins/APIDump/Hooks/OnUpdatedSign.lua
44
1592
return { HOOK_UPDATED_SIGN = { CalledWhen = "After the sign text is updated. Notification only.", DefaultFnName = "OnUpdatedSign", -- also used as pagename Desc = [[ This hook is called after a sign has had its text updated. The text is already updated at this point.</p> <p>The update may have been ca...
apache-2.0
Ninjistix/darkstar
scripts/globals/items/coin_cookie.lua
3
1074
----------------------------------------- -- 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
bogdanm/luaelf
lib/elfstrtab.lua
1
1025
-- ELF string table section handler module( ..., package.seeall ) local cl = require "classes" local elfs = require "elfsect" local _strtab = cl.new_class( "elfstrtab", "elfsect", "ELF string tab section handler" ) local sf = string.format local ct = require "elfct" new = function( stream, offset ) local self = c...
mit
Ninjistix/darkstar
scripts/zones/Windurst_Woods/npcs/Spare_Two.lua
5
1235
----------------------------------- -- Area: Windurst Woods -- NPC: Spare Two -- Working 100% -- Involved in quest: A Greeting Cardian ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/globals/quests"] = nil; ----------------------------------- require("scripts/globals/q...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Pashhow_Marshlands/npcs/Shikoko_WW.lua
3
2979
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Shikoko, W.W. -- 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
dinodeck/ninety_nine_days_of_dev
007_map_cure/code/CombatTargetState.lua
2
4541
CombatTargetType = { One = "One", Side = "Side", All = "All", } CombatTargetState = {} CombatTargetState.__index = CombatTargetState function CombatTargetState:Create(context, params) if params.switchSides == nil then params.switchSides = true end local this = { mCombatSt...
mit
TRex22/hawkthorne-journey
src/nodes/enemies/bat.lua
1
2883
return { name = 'bat', attack_sound = 'acorn_growl',--need new sound die_sound = 'acorn_crush',--need new sound position_offset = { x = 0, y = 0 }, height = 22, width = 30, bb_width = 10, bb_height = 18, bb_offset = {x=0, y=-2}, damage = 1, hp = 1, jumpkill = false, a...
mit
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/code/XPSummaryState.lua
4
5829
XPSummaryState = {} XPSummaryState.__index = XPSummaryState function XPSummaryState:Create(stack, party, combatData) local this = { mStack = stack, mCombatData = combatData, mLayout = Layout:Create(), mXP = combatData.xp, mXPPerSec = 5.0, mXPCounter = 0, m...
mit
scan-bot/scan-bot
plugins/help.lua
337
5009
do 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
amir1213/tamir
plugins/help.lua
337
5009
do 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
Ninjistix/darkstar
scripts/zones/Bastok_Markets/npcs/Sinon.lua
4
3949
----------------------------------- -- Area: Bastok Markets -- NPC: Sinon -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/armorstorage"); require("scrip...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Cloister_of_Gales/bcnms/carbuncle_debacle.lua
5
1593
----------------------------------- -- Area: Cloister of Gales -- BCNM: Carbuncle Debacle ----------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Cloister_of_Gales/TextIDs"); require("scripts/globals/settings"); r...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/absorb-str.lua
4
1561
-------------------------------------- -- Spell: Absorb-STR -- Steals an enemy's strength. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function ...
gpl-3.0
jagu-sayan/42Premake
src/actions/vstudio/vs2005_csproj.lua
7
7426
-- -- vs2005_csproj.lua -- Generate a Visual Studio 2005/2008 C# project. -- Copyright (c) 2009-2010 Jason Perkins and the Premake project -- -- -- Set up namespaces -- premake.vstudio.cs2005 = { } local vstudio = premake.vstudio local cs2005 = premake.vstudio.cs2005 -- -- Figure out what elements a particular ...
bsd-3-clause
random-nick/Townvalds
config.lua
2
3867
config = {}; function LoadGeneralConfig() local ini = cIniFile(); local newconfig = {}; ini:ReadFile(PLUGIN:GetLocalFolder() .. "/config.ini"); ini:DeleteHeaderComments(); ini:AddHeaderComment("Configuration for Townvalds"); if not (ini:FindKey("General")) then ini:AddKeyName("General"); end if not (ini:Fin...
agpl-3.0
SilverIce/JContainers
JContainers/Data/SKSE/Plugins/JCData/InternalLuaScripts/init.lua
1
5453
-- JC supplies these paths and variables -- path to JCData dir -- path to JContainers.dll -- JC's context of type tes_context local JCDataPath, JCDllPath, JContext = ... --if (not JCDataPath) and (not JCDllPath) then -- JCDataPath, JCDllPath = --end --print(JCDataPath, JCDllPath) ---------- Setup Lua, basic Lua, g...
mit
Ninjistix/darkstar
scripts/zones/Port_Bastok/npcs/Valah_Molkot.lua
5
3242
----------------------------------- -- Area: Port Bastok -- NPC: Valah Molkot -- Starts and Finishes Quest: A Lady's Heart -- @zone 236 -- !pos 59 8 -221 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/zones/Port_Bastok/TextIDs"); function ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/mobs/Ix_aern_mnk.lua
4
2467
----------------------------------- -- Area: Grand Palace of HuXzoi -- MOB: Ix_aern_mnk -- ID: 16916815 ----------------------------------- require("scripts/globals/status"); ----------------------------------- function onMobInitialize(mob) end; function onMobSpawn(mob) local QuestionMark = 16916819; -- The ??? ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/distract.lua
5
1197
----------------------------------------- -- Spell: Distract ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; fun...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
007_map_cure/code/Layout.lua
10
3043
Layout = {} Layout.__index = Layout function Layout:Create() local this = { mPanels = {}, mPanelDef = { texture = Texture.Find("gradient_panel.png"), size = 3, } } -- First panel is the full screen this.mPanels['screen'] = ...
mit
dinodeck/ninety_nine_days_of_dev
004_stat_numbers/code/Layout.lua
10
3043
Layout = {} Layout.__index = Layout function Layout:Create() local this = { mPanels = {}, mPanelDef = { texture = Texture.Find("gradient_panel.png"), size = 3, } } -- First panel is the full screen this.mPanels['screen'] = ...
mit
Ninjistix/darkstar
scripts/globals/weaponskills.lua
2
42746
-- Contains all common weaponskill calculations including but not limited to: -- fSTR -- Alpha -- Ratio -> cRatio -- min/max cRatio -- applications of fTP -- applications of critical hits ('Critical hit rate varies with TP.') -- applications of accuracy mods ('Accuracy varies with TP.') -- applications of damage mods (...
gpl-3.0
MkNiz/LOSS
libs/timer.lua
6
6178
--[[ Copyright (c) 2010-2013 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, dis...
mit
mandersan/premake-core
tests/test_stress.lua
23
1507
--- -- tests/tests_stress.lua -- -- Stress test for Premake. Creates a large (tunable, see local variables -- at start of file) number of projects, files, and configurations. Then -- generates them all while profiling the result. -- -- Run it like normal, i.e. `premake5 --file=test_stress.lua gmake`. The -- profile re...
bsd-3-clause
Ninjistix/darkstar
scripts/globals/items/boiled_tuna_head.lua
3
1264
----------------------------------------- -- ID: 4540 -- Item: Boiled Tuna Head -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic 20 -- Dexterity 3 -- Intelligence 4 -- Mind -3 -- Magic Regen While Healing 2 -- Evasion 5 ----------------------------------------- require("scripts/globa...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
003_combat_numbers/code/combat_events/CETurn.lua
10
1254
CETurn = {} CETurn.__index = CETurn function CETurn:Create(state, owner) local this = { mState = state, mOwner = owner, mFinished = false, mName = nil, } this.mName = string.format("Turn for %s", this.mOwner.mName) setmetatable(this, self) return this end funct...
mit
MrMe0w/fl-util
flutil/sh_string.lua
1
5817
--[[ © 2016-2017 TeslaCloud Studios See license in LICENSE.txt. --]] do local vowels = { ["a"] = true, ["e"] = true, ["o"] = true, ["i"] = true, ["u"] = true, ["y"] = true, } -- A function to check whether character is vowel or not. function util.IsVowel(char) if (!isstring(char)) then return fal...
mit
zcold/cp-solver-lua
Sudoku.lua
1
5660
-------------------------------- --[[ CSP Example: Sudoku ]] -------------------------------- require "CSP" require "Ulti" -- Generate V and U V = {} U = {} local i = 1 local j = 1 while i <= 9 do j = 1 while j <= 9 do V["x_" .. i .. j] = "x_" .. i .. j U["x_" .. i .. j] = {1, 2, 3, 4, 5, 6, 7, 8, 9} j = j...
mit