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
ChrisBird/ardupilot
libraries/AP_Scripting/examples/quadruped.lua
24
16202
-- Lua "motor driver" for a four legged (aka quadruped) walking robot -- -- This script consumes controller outputs (i.e. roll, pitch, yaw/steering, throttle, lateral) from -- the vehicle code and then calculates the outputs for 12 servos controlling four legs -- -- AutoPilot servo connections: -- Output1: front right...
gpl-3.0
Abedzadeh5928/alireza5928
plugins/media.lua
376
1679
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
mgerhardy/scummvm
devtools/create_ultima/files/ultima6/scripts/common/common.lua
18
9350
--note nuvie direction values aren't the same as the original it uses the following scheme --701 --6 2 --543 DIR_NORTH = 0 DIR_EAST = 1 DIR_SOUTH = 2 DIR_WEST = 3 DIR_NORTHEAST = 4 DIR_SOUTHEAST = 5 DIR_SOUTHWEST = 6 DIR_NORTHWEST = 7 DIR_NONE = 8 UI_STYLE_ORIG = 0 UI_STYLE_NEW = 1 UI_STYLE_O...
gpl-2.0
ioiasff/spq
plugins/ingroup.lua
371
44212
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
dmccuskey/dmc-navigator
examples/dmc-navigator-simple/dmc_corona/lib/dmc_lua/lua_bytearray/pack_bytearray.lua
7
6402
--====================================================================-- -- dmc_lua/lua_bytearray/pack_bytearray.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014-2015 David McCuskey Permissi...
mit
dmccuskey/dmc-navigator
dmc_corona/lib/dmc_lua/lua_bytearray/pack_bytearray.lua
7
6402
--====================================================================-- -- dmc_lua/lua_bytearray/pack_bytearray.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014-2015 David McCuskey Permissi...
mit
Kthulupwns/master
scripts/zones/Norg/npcs/Fouvia.lua
38
1611
----------------------------------- -- Area: Norg -- NPC: Fouvia -- Type: Wyvern Name Changer -- @zone: 252 -- @pos -84.066 -6.414 47.826 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/...
gpl-3.0
Kthulupwns/master
scripts/zones/Pashhow_Marshlands/npcs/Souun_IM.lua
30
3060
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Souun, I.M. -- Type: Outpost Conquest Guards -- @pos 470.843 23.465 415.520 109 ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/con...
gpl-3.0
Kthulupwns/master
scripts/zones/Temenos/bcnms/Central_Temenos_3rd_Floor.lua
13
1075
----------------------------------- -- Area: Temenos -- Name: ----------------------------------- -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) SetServerVariable("[C_Temenos_3rd]UniqueID",GenerateLimbusKey()); HideArmouryCrates(GetInstanceRegion(1305),TEMENOS); ...
gpl-3.0
Kthulupwns/master
scripts/zones/Gustav_Tunnel/Zone.lua
29
1841
----------------------------------- -- -- Zone: Gustav_Tunnel (212) -- ----------------------------------- package.loaded["scripts/zones/Gustav_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Gustav_Tunne...
gpl-3.0
Kthulupwns/master
scripts/zones/Selbina/npcs/Romeo.lua
17
2409
----------------------------------- -- Area: Selbina -- NPC: Romeo -- Starts and Finishes Quest: Donate to Recycling -- @zone 248 -- @pos -11 -11 -6 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/T...
gpl-3.0
LuaDist2/busted.ryanplusplus
busted/languages/ar.lua
15
1757
local s = require('say') s:set_namespace('ar') -- 'Pending: test.lua @ 12 \n description s:set('output.pending', 'عالِق') s:set('output.failure', 'فَشَل') s:set('output.failure', 'نَجاح') s:set('output.pending_plural', 'عالِق') s:set('output.failure_plural', 'إخْفاقات') s:set('output.success_plural', 'نَجاحات') s:s...
mit
e-lab/imagenet-multiGPU.torch
models/alexnetowtbn-tiny.lua
1
2141
-- require 'nn' -- local nClasses = 46 -- torch.setdefaulttensortype('torch.FloatTensor') function createModel(nGPU) -- from https://code.google.com/p/cuda-convnet2/source/browse/layers/layers-imagenet-1gpu.cfg -- this is AlexNet that was presented in the One Weird Trick paper. http://arxiv.org/abs/1404.5997 ...
bsd-2-clause
Kthulupwns/master
scripts/globals/spells/jubaku_ichi.lua
11
1726
----------------------------------------- -- Spell: Jubaku: Ichi -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT. -- taken from paralyze ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); -------------------------...
gpl-3.0
shangwudong/MyNodeMcu
lua_modules/bmp085/bmp085.lua
69
5037
-------------------------------------------------------------------------------- -- BMP085 I2C module for NODEMCU -- NODEMCU TEAM -- LICENCE: http://opensource.org/licenses/MIT -- Christee <Christee@nodemcu.com> -------------------------------------------------------------------------------- local moduleName = ... ...
mit
shangwudong/MyNodeMcu
lua_modules/ds3231/ds3231-web.lua
84
1338
require('ds3231') port = 80 -- ESP-01 GPIO Mapping gpio0, gpio2 = 3, 4 days = { [1] = "Sunday", [2] = "Monday", [3] = "Tuesday", [4] = "Wednesday", [5] = "Thursday", [6] = "Friday", [7] = "Saturday" } months = { [1] = "January", [2] = "Febuary", [3] = "March", [4] = "Apri...
mit
Kthulupwns/master
scripts/zones/Promyvion-Holla/npcs/qm6.lua
17
1087
----------------------------------- -- Area: Promyvion holla -- ??? map acquisition ----------------------------------- package.loaded["scripts/zones/Promyvion-Holla/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Promyvion-Holla/TextIDs"); ...
gpl-3.0
Kthulupwns/master
scripts/zones/Windurst_Waters_[S]/npcs/Mearuru.lua
38
1044
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Mearuru -- Type: Standard NPC -- @zone: 94 -- @pos 153.798 -1 153.712 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; -----...
gpl-3.0
Kthulupwns/master
scripts/globals/items/plate_of_tuna_sushi.lua
35
1526
----------------------------------------- -- ID: 5150 -- Item: plate_of_tuna_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 20 -- Dexterity 3 -- Charisma 5 -- Accuracy % 15 -- Ranged ACC % 15 -- Sleep Resist 5 ----------------------------------------- require("s...
gpl-3.0
Kthulupwns/master
scripts/globals/items/dragon_fruit.lua
36
1148
----------------------------------------- -- ID: 5662 -- Item: Dragon Fruit -- Food Effect: 5 Mins, All Races ----------------------------------------- -- Intelligence 4 -- Agility -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
tectronics/microlua-sim
clp/mls/ModuleManager.lua
2
10334
------------------------------------------------------------------------------- -- Loads, initializes, and resets simulated µLua modules, such as screen, Font, -- etc. -- -- @class module -- @name clp.mls.ModuleManager -- @author Ced-le-pingouin <Ced.le.pingouin@gmail.com> -- -------------------------------------------...
gpl-3.0
Kthulupwns/master
scripts/globals/abilities/pets/fire_ii.lua
20
1162
--------------------------------------------------- -- Fire 2 --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/magic"); ----------------------------------------------...
gpl-3.0
tvo/spoofax-lua
vendor/lua5.1-tests/nextvar.lua
20
8553
print('testing tables, next, and for') local a = {} -- make sure table has lots of space in hash part for i=1,100 do a[i.."+"] = true end for i=1,100 do a[i.."+"] = nil end -- fill hash part with numeric indices testing size operator for i=1,100 do a[i] = true assert(#a == i) end if T then -- testing table size...
gpl-3.0
MinaciousGrace/Transcendence
BGAnimations/ScreenSelectMusic decorations/stars.lua
1
17012
local update = false local t = Def.ActorFrame{ BeginCommand=cmd(queuecommand,"Set"); OffCommand=cmd(bouncebegin,0.2;xy,-500,0;diffusealpha,0;); -- visible(false) doesn't seem to work with sleep OnCommand=cmd(bouncebegin,0.2;xy,0,0;diffusealpha,1;); SetCommand=function(self) self:finishtweening() if getTabIndex(...
mit
Kthulupwns/master
scripts/commands/delmission.lua
24
1183
--------------------------------------------------------------------------------------------------- -- func: @delmission <logID> <missionID> <player> -- desc: Deletes the given mission from the GM or target player. --------------------------------------------------------------------------------------------------- ...
gpl-3.0
Kthulupwns/master
scripts/zones/Temenos/npcs/Armoury_Crate.lua
25
8574
----------------------------------- -- Area: Temenos -- NPC: Armoury Crate ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/zones/Temenos/Text...
gpl-3.0
Kthulupwns/master
scripts/zones/Buburimu_Peninsula/Zone.lua
4
4192
----------------------------------- -- -- Zone: Buburimu_Peninsula (118) -- ----------------------------------- package.loaded[ "scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/zones/Buburimu_Penins...
gpl-3.0
Kthulupwns/master
scripts/zones/Maze_of_Shakhrami/npcs/qm2.lua
8
1839
----------------------------------- -- Area: Maze of Shakhrami -- NPC: qm2 -- Type: Quest NPC -- @pos 143 9 -219 198 ----------------------------------- package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Maze_of_Shakhrami/TextIDs");...
gpl-3.0
UB12/ub1
plugins/all.lua
264
4202
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
MRAHS/SBSS2
plugins/all.lua
264
4202
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
Kthulupwns/master
scripts/globals/mobskills/Chains_of_Cowardice.lua
25
1179
--------------------------------------------- -- Chains of Apathy -- --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/keyitems"); require("scripts/zones/Empyreal_Paradox/TextIDs"); -...
gpl-3.0
Kthulupwns/master
scripts/commands/addmission.lua
25
1173
--------------------------------------------------------------------------------------------------- -- func: @addmission <logID> <missionID> <player> -- desc: Adds a mission to the GM or target players log. --------------------------------------------------------------------------------------------------- cmdprop...
gpl-3.0
Kthulupwns/master
scripts/zones/Metalworks/npcs/Pius.lua
23
1832
----------------------------------- -- Area: Metalworks -- NPC: Pius -- Involved In Mission: Journey Abroad -- @pos 99 -21 -12 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zon...
gpl-3.0
Kthulupwns/master
scripts/globals/weaponskills/piercing_arrow.lua
30
1643
----------------------------------- -- Piercing Arrow -- Archery weapon skill -- Skill level: 40 -- Ignores enemy's defense. Amount ignored varies with TP. -- The amount of defense ignored is 0% with 100TP, 35% with 200TP and 50% with 300TP. -- Typically does less damage than Flaming Arrow. -- Aligned with the S...
gpl-3.0
Kthulupwns/master
scripts/zones/Bibiki_Bay/npcs/qm4.lua
8
1450
----------------------------------- -- Area: Bibiki Bay -- NPC: ??? COP mission spawn Dalham -- @pos ----------------------------------- package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bibiki_Bay/TextIDs"); ------------------------------...
gpl-3.0
Kthulupwns/master
scripts/zones/Rabao/npcs/Rahi_Fohlatti.lua
17
2970
----------------------------------- -- Area: Rabao -- NPC: Rahi Fohlatti -- Starts Quest: Trial Size Trial by Wind -- @pos -17 7 -10 247 ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("sc...
gpl-3.0
Kthulupwns/master
scripts/globals/weaponskills/frostbite.lua
30
1231
----------------------------------- -- Frostbite -- Great Sword weapon skill -- Skill Level: 70 -- Delivers an ice elemental attack. Damage varies with TP. -- Aligned with the Snow Gorget. -- Aligned with the Snow Belt. -- Element: Ice -- Modifiers: STR:20% ; INT:20% -- 100%TP 200%TP 300%TP -- 1.00 ...
gpl-3.0
EMCTEAM-IRAN/EMC
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
Kthulupwns/master
scripts/zones/Southern_San_dOria_[S]/npcs/Achtelle.lua
72
1069
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Achtelle -- @zone 80 -- @pos 108 2 -11 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; -----------------------...
gpl-3.0
Kthulupwns/master
scripts/zones/RuLude_Gardens/npcs/Radeivepart.lua
10
2892
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Radeivepart -- Starts and Finishes Quest: Northward -- Involved in Quests: Save the Clock Tower -- @zone 243 -- @pos 5 9 -39 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; package.loaded["sc...
gpl-3.0
cnsuperx/Cocos2d-x-2.2.5
samples/Lua/TestLua/Resources/luaScript/SceneTest/SceneTest.lua
8
5995
local MID_PUSHSCENE = 100 local MID_PUSHSCENETRAN = 101 local MID_QUIT = 102 local MID_REPLACESCENE = 103 local MID_REPLACESCENETRAN = 104 local MID_GOBACK = 105 local SceneTestLayer1 = nil local SceneTestLayer2 = nil local SceneTestLayer3 = nil ------------------...
mit
alicybery/123bot
plugins/owners.lua
94
12617
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Kthulupwns/master
scripts/zones/Bastok_Markets/npcs/Brygid.lua
11
6277
----------------------------------- -- Area: Bastok Markets -- NPC: Brygid -- Start & Finishes Quest: Brygid the Stylist & Brygid the Stylist Returns -- Involved in Quests: Riding on the Clouds -- @zone 235 -- @pos -90 -4 -108 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/Tex...
gpl-3.0
Kthulupwns/master
scripts/zones/Selbina/npcs/Lucia.lua
17
1180
----------------------------------- -- Area: Selbina -- NPC: Lucia -- @zone -- @pos ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); ----------------------------------- -- onTrade Action...
gpl-3.0
Kthulupwns/master
scripts/zones/Norg/npcs/Verctissa.lua
17
2961
----------------------------------- -- Area: Norg -- NPC: Verctissa -- Starts Quest: Trial Size Trial By Water -- @pos -13 1 -20 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scrip...
gpl-3.0
logonmy/ABTestingGateway
lib/abtesting/adapter/runtime.lua
22
3599
--- -- @classmod abtesting.adapter.runtime -- @release 0.0.1 local modulename = "abtestingAdapterRuntime" local _M = {} local metatable = {__index = _M} _M._VERSION = "0.0.1" local ERRORINFO = require('abtesting.error.errcode').info --- -- @field fields -- @warning this is a conf, may other file later local fi...
mit
Kthulupwns/master
scripts/zones/Ordelles_Caves/npcs/_5d1.lua
12
2614
----------------------------------- -- Area: Ordelle's Caves -- NPC: Strange Apparatus -- @pos: -294 28 -100 193 ----------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; require("scripts/zones/Ordelles_Caves/TextIDs"); require("scripts/globals/strangeapparatus"); ------------...
gpl-3.0
jhysek/Minimal-Corona-SDK-Template
app/views/input.lua
1
7001
-------------------------------------------------------------------------------- local class = require "lib.middleclass" local native = require "native" require "lib.scaled_text_field" -------------------------------------------------------------------------------- local Input = class("Input") local function presence...
mit
linuxmasterrace/Townvalds
chat.lua
2
6630
Channel = {}; function OnChat(Player, Message) if (config.handle_chat == true) then --Only handle chat if set so in the config local UUID = Player:GetUUID(); local senderName = Player:GetName(); --If the player is in the specified channel, send it to the players having that channel active if (Channel[UUID] ==...
agpl-3.0
Kthulupwns/master
scripts/zones/Windurst_Waters_[S]/npcs/Emhi_Tchaoryo.lua
38
1061
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Emhi Tchaoryo -- Type: Campaign Ops Overseer -- @zone: 94 -- @pos 10.577 -2.478 32.680 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextI...
gpl-3.0
Kthulupwns/master
scripts/zones/Ordelles_Caves/npcs/qm5.lua
8
1420
----------------------------------- -- Area: Ordelles Caves -- NPC: ??? (qm5) -- Involved In Quest: Dark Puppet -- @pos -92 -28 -70 193 ----------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); r...
gpl-3.0
Kthulupwns/master
scripts/globals/weaponskills/blade_to.lua
30
1253
----------------------------------- -- Blade To -- Katana weapon skill -- Skill Level: 100 -- Deals ice elemental damage. Damage varies with TP. -- Aligned with the Snow Gorget & Breeze Gorget. -- Aligned with the Snow Belt & Breeze Belt. -- Element: Ice -- Modifiers: STR:30% ; INT:30% -- 100%TP 200%TP 3...
gpl-3.0
tectronics/microlua-sim
clp/Debugger.lua
2
3310
------------------------------------------------------------------------------- -- Generic debugger, that wraps some functions of the Lua debug library -- -- @class module -- @name clp.Debugger -- @author Ced-le-pingouin <Ced.le.pingouin@gmail.com> -----------------------------------------------------------------------...
gpl-3.0
hacker44-h44/sasan
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
jhysek/Minimal-Corona-SDK-Template
app/views/gridView.lua
1
3817
-------------------------------------------------------------------------------- local widget = require "widget" local class = require "lib.middleclass" local Color = require "lib.Color" local _ = require "lib.underscore" -------------------------------------------------------------------------------- l...
mit
orivej/sysdig
userspace/sysdig/chisels/iobytes_net.lua
18
1667
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
Kthulupwns/master
scripts/zones/Den_of_Rancor/npcs/_4g3.lua
10
2115
----------------------------------- -- Area: Den of Rancor -- NPC: Lantern (SW) -- @pos -59 45 24 160 ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Den_of_Rancor/...
gpl-3.0
Kthulupwns/master
scripts/zones/Konschtat_Highlands/npcs/qm1.lua
34
1376
----------------------------------- -- Area: Konschtat Highlands -- NPC: qm1 (???) -- Continues Quests: Past Perfect -- @pos -201 16 80 108 ----------------------------------- package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quest...
gpl-3.0
Kthulupwns/master
scripts/zones/Beaucedine_Glacier/Zone.lua
5
3026
----------------------------------- -- -- Zone: Beaucedine_Glacier (111) -- ----------------------------------- package.loaded[ "scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Beaucedine_Glacier/TextIDs"); require("scripts/globals/missions"); requ...
gpl-3.0
padrinoo1/telelock
plugins/banhammer.lua
106
11894
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
Kthulupwns/master
scripts/zones/Balgas_Dais/bcnms/saintly_invitation.lua
13
1903
----------------------------------- -- Area: Horlais Peak -- Name: Saintly Invitation -- @pos 299 -123 345 146 ----------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Balgas_Dais/Tex...
gpl-3.0
Kthulupwns/master
scripts/globals/weaponskills/death_blossom.lua
6
5257
----------------------------------- -- Death Blossom -- Sword weapon skill (RDM only) -- Description: Delivers a threefold attack that lowers target's magic evasion. Chance of lowering target's magic evasion varies with TP. Murgleis: Aftermath effect varies with TP. -- Lowers magic evasion by up to 10. -- Effect l...
gpl-3.0
gianlucaborello/sysdig
userspace/sysdig/chisels/spy_ip.lua
18
2680
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
orivej/sysdig
userspace/sysdig/chisels/spy_ip.lua
18
2680
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
Telesuperior/superior
plugins/banhammer.lua
1
36889
local function pre_process(msg) if msg.to.type ~= 'pv' then chat = msg.to.id user = msg.from.id local function check_newmember(arg, data) test = load_data(_config.moderation.data) lock_bots = test[arg.chat_id]['settings']['lock_bots'] local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data...
gpl-3.0
aayushKumarJarvis/Algorithm-Implementations
Bresenham_Based_Supercover_Line/Lua/Yonaba/bresenham_based_supercover_test.lua
27
1151
-- Tests for bresenham.lua local supercover_line = require 'bresenham_based_supercover' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass ...
mit
roboplus12/ali
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
dani-sj/mahan01
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
Kthulupwns/master
scripts/zones/Northern_San_dOria/npcs/Pikiki.lua
36
1425
----------------------------------- -- Area: Northern San d'Oria -- NPC: Pikiki -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests")...
gpl-3.0
hmis-interop/logical-model
src/class-diagram-files/Plugins/OWLGrEd_Schema/unload.lua
2
7266
require("lQuery") local utils = require "plugin_mechanism.utils" local configurator = require("configurator.configurator") syncProfile = require "OWLGrEd_UserFields.syncProfile" profileMechanism = require "OWLGrEd_UserFields.profileMechanism" viewMechanism = require "OWLGrEd_UserFields.viewMechanism" local pr...
cc0-1.0
warlock90000/awesome
lain/widget/contrib/tpbat/smapi.lua
3
3180
--[[ smapi.lua Interface with thinkpad battery information Licensed under GNU General Public License v2 * (c) 2013, Conor Heine ...
gpl-3.0
lipp/lua-websockets
spec/server_copas_spec.lua
2
12887
local websocket = require'websocket' local server = require'websocket.server' local client = require'websocket.client' local port = os.getenv('LUAWS_SERVER_COPAS_PORT') or 8084 local url = 'ws://localhost:'..port local socket = require'socket' local copas = require'copas' setloop('copas') describe( 'The server (co...
mit
Kthulupwns/master
scripts/zones/Northern_San_dOria/npcs/Lucretia.lua
17
1230
----------------------------------- -- Area: Northern San d'Oria -- NPC: Lucretia -- Guild Merchant NPC: Blacksmithing Guild -- @pos -193.729 3.999 159.412 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
Kthulupwns/master
scripts/globals/items/black_curry_bun_+1.lua
35
1350
----------------------------------------- -- ID: 5764 -- Item: black_curry_bun+1 -- Food Effect: 60 minutes, All Races ----------------------------------------- -- Intelligence +1 -- Vitality +4 -- Dexterity +2 -- Defense +~16% require("scripts/globals/status"); ----------------------------------------- ...
gpl-3.0
Mojtaba-mp/telemp
plugins/media.lua
297
1590
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
Kthulupwns/master
scripts/zones/Windurst_Waters/npcs/Jack_of_Hearts.lua
35
1243
----------------------------------- -- Area: Windurst Waters -- NPC: Jack of Hearts -- Adventurer's Assistant -- Working 100% ------------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; require("scripts/zones/Windurst_Waters/TextIDs...
gpl-3.0
antispambot2/sersbot
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
hacker44-h44/sasan
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
LuaDist2/busted.ryanplusplus
spec/cl_failing_support.lua
3
2948
describe('bad support functions should fail, sync test', function() describe('bad setup should properly fail a test', function() setup(function() error('failing a setup method') end) before_each(function() end) after_each(function() end) teardown(function() end) it('Tests nothing, s...
mit
Kthulupwns/master
scripts/zones/Manaclipper/Zone.lua
28
1617
----------------------------------- -- -- Zone: Manaclipper -- ----------------------------------- package.loaded["scripts/zones/Manaclipper/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Manaclipper/TextIDs"); ------------------------------...
gpl-3.0
yubing84/Atlas
lib/admin-sql.lua
40
8858
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distribut...
gpl-2.0
Kthulupwns/master
scripts/zones/King_Ranperres_Tomb/npcs/qm1.lua
34
1263
----------------------------------- -- Area: King Ranperre's Tomb -- NPC: ??? (qm1) -- Notes: Used to teleport down the stairs -- @pos -81 -1 -97 190 ----------------------------------- package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil; ----------------------------------- require("scripts/z...
gpl-3.0
Kthulupwns/master
scripts/zones/Xarcabard/npcs/Jeantelas_RK.lua
30
3047
----------------------------------- -- Area: Xarcabard -- NPC: Jeantelas, R.K. -- Type: Outpost Conquest Guards -- @pos 207.548 -24.795 -203.694 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); req...
gpl-3.0
Kthulupwns/master
scripts/zones/Abyssea-Konschtat/npcs/Cavernous_Maw.lua
29
1246
----------------------------------- -- Area: Abyssea - Konschatat -- NPC: Cavernous Maw -- @pos 159.943 -72.109 -839.986 15 -- Teleports Players to Konschatat Highlands ----------------------------------- package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil; ----------------------------------- req...
gpl-3.0
Kthulupwns/master
scripts/zones/Lower_Jeuno/npcs/Stinknix.lua
36
1295
----------------------------------- -- Area: Lower Jeuno -- NPC: Stinknix -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); -----------------------------------...
gpl-3.0
Kthulupwns/master
scripts/zones/Windurst_Waters_[S]/npcs/Dhea_Prandoleh.lua
16
1048
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Dhea Prandoleh -- Type: Standard NPC -- @zone: 94 -- @pos 3.167 -2 15.545 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; -...
gpl-3.0
Kthulupwns/master
scripts/zones/Temenos/mobs/Thunder_Elemental.lua
17
1710
----------------------------------- -- Area: Temenos E T -- NPC: Thunder_Elemental ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); --------------------...
gpl-3.0
Kthulupwns/master
scripts/globals/items/bowl_of_adoulin_soup.lua
36
1504
----------------------------------------- -- ID: 5998 -- Item: Bowl of Adoulin Soup -- Food Effect: 180 Min, All Races ----------------------------------------- -- HP % 3 Cap 40 -- Vitality 3 -- Defense % 15 Cap 70 -- HP Healing 6 ----------------------------------------- require("scripts/globals/status"); ----------...
gpl-3.0
mta-saorg/communityserver
core/shared/classlib.lua
1
9680
-- Developer: sbx320 -- License: MIT -- Github Repos: https://github.com/sbx320/lua_utils --// classlib --|| A library providing several tools to enhance OOP with MTA and Lua --\\ SERVER = triggerServerEvent == nil CLIENT = not SERVER DEBUG = DEBUG or false function enew(element, class, ...) -- DEBUG: Validate that...
gpl-3.0
Kthulupwns/master
scripts/zones/Dynamis-Xarcabard/mobs/King_Zagan.lua
19
1251
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: King Zagan ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function o...
gpl-3.0
diegonc/packet-bnetp
tools/xmlexport/lib/LuaExpatUtils/tests/weather.lua
1
1034
local asserteq = require 'pl.test'.asserteq local doc = require 'lxp.doc' xml = 'joburg.xml' local d = doc.parse(xml,true) t1 = [[ <weather> <current_conditions> <condition data='$condition'/> <temp_c data='$temp'/> </current_conditions> </weather> ]] t2 = [[ <weather> {{<forecast_condit...
gpl-3.0
Kthulupwns/master
scripts/globals/weaponskills/blade_jin.lua
30
1426
----------------------------------- -- Blade Jin -- Katana weapon skill -- Skill Level: 200 -- Delivers a three-hit attack. Chance of params.critical varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Breeze Gorget & Thunder Gorget. -- Aligned with the Breeze Belt & Thunder Belt. -- Element: W...
gpl-3.0
antispambot2/sersbot
bot/utils.lua
2
24865
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
Kthulupwns/master
scripts/zones/Norg/npcs/Mamaulabion.lua
19
7883
----------------------------------- -- Area: Norg -- NPC: Mamaulabion -- Starts and finishes Quest: Mama Mia -- @zone 252 -- @pos -57 -9 68 (88) --CSIDs for Mamaulabion --0x005D / 93 = Standard --0x00BF / 191 = start quest --0x00C0 / 192 = quest accepted --0x00C1 / 193 = given an item --0x00C2 / 194 = give...
gpl-3.0
Kthulupwns/master
scripts/zones/Port_Windurst/npcs/Thubu_Parohren.lua
44
1821
----------------------------------- -- Area: Port Windurst -- NPC: Thubu Parohren -- Type: Fishing Guild Master -- @pos -182.230 -3.835 61.373 240 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); req...
gpl-3.0
Kthulupwns/master
scripts/zones/Eastern_Altepa_Desert/npcs/qm.lua
8
1612
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: ??? -- Involved In Quest: A Craftsman's Work -- @pos 113 -7.972 -72 114 ----------------------------------- package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
Kthulupwns/master
scripts/zones/Mhaura/npcs/Kotan-Purutan.lua
19
2411
----------------------------------- -- Area: Mhaura -- NPC: Kotan-Purutan -- Involved in Quest: Overnight Delivery -- @pos 40.323 -8.999 44.242 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- ----------------------------------- -- o...
gpl-3.0
Kthulupwns/master
scripts/globals/regimereward.lua
16
33597
------------------------------------------------- -- Regime Reward Database(s) ------------------------------------------------- -- ------------------------------------ -- FoV rewards -- ------------------------------------ function getFoVregimeReward(regimeid) if (regimeid<=50) then if(regimeid<=...
gpl-3.0
orivej/sysdig
userspace/sysdig/chisels/v_errors.lua
8
1879
--[[ Copyright (C) 2013-2015 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
gpl-2.0
m2fan/xx
plugins/inv.lua
46
1079
do local function callbackres(extra, success, result) local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then send_large_msg(chat, 'User is globaly banned.') ...
gpl-2.0