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
spectrec/tntlua
tqueue.lua
4
18563
-- -- Implementation of queueing API. -- -- A task in a queue can be in one of the following states: -- READY initial state, the task is ready for execution -- DELAYED initial state, the task will become ready -- for execution when a timeout expires -- TAKEN the task is being worked on -- BURIED the task is dead: it's...
bsd-2-clause
buddycloud/integration-testing
resources/prosody.cfg.lua
1
1264
modules_enabled = { "roster"; "saslauth"; "tls"; "dialback"; "disco"; "private"; "vcard"; "version"; "uptime"; "time"; "ping"; "pep"; "register"; "admin_adhoc"; "posix"; }; allow_registration = true; daemonize = true; consider_websocket_secure = true; consider_bosh_secure = true; pidfil...
apache-2.0
andywingo/snabbswitch
lib/ljsyscall/test/linux-constants.lua
18
9330
-- test against clean set of kernel headers, standard set so cross platform. --[[ luajit test/linux-constants.lua x64 > ./obj/c.c && cc -U__i386__ -DBITS_PER_LONG=64 -I./include/linux-kernel-headers/x86_64/include -o ./obj/c ./obj/c.c && ./obj/c luajit test/linux-constants.lua x86 > ./obj/c.c && cc -D__i386__ -DBITS_P...
apache-2.0
victorperin/tibia-server
data/npc/scripts/TarakInner.lua
1
1305
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
apache-2.0
czfshine/Don-t-Starve
data/scripts/map/static_layouts/chess_blocker_b.lua
1
11101
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 40, height = 40, tilewidth = 16, tileheight = 16, properties = {}, tilesets = { { name = "ground", firstgid = 1, filename = "../../../../tools/tiled/dont_starve/ground.tsx", tilewidth = 64, ...
gpl-2.0
czfshine/Don-t-Starve
data/DLC0001/scripts/prefabs/monkeybarrel.lua
1
4225
local assets = { Asset("ANIM", "anim/monkey_barrel.zip"), Asset("SOUND", "sound/monkey.fsb"), } local prefabs = { "monkey", "poop", "cave_banana", "collapse_small", } SetSharedLootTable( 'monkey_barrel', { {'poop', 1.0}, {'poop', 1.0}, {'cave_banana', 1.0}, {'cave_ba...
gpl-2.0
iranddos/yagop
bot/utils.lua
239
13499
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")() http.TIMEOUT = 10 funct...
gpl-2.0
TimSimpson/Macaroni
Main/Generators/LuaGlue/LuaGlueHFile.lua
2
2355
require "Cpp/Common"; require "Cpp/FileGenerator"; require "Cpp/NodeInfo"; local Access = require "Macaroni.Model.Cpp.Access"; local Context = require "Macaroni.Model.Context"; local Node = require "Macaroni.Model.Node"; local TypeNames = Macaroni.Model.TypeNames; LuaGlueHFile = { node = nil, new =...
apache-2.0
TimSimpson/Macaroni
Main/App/Source/test/lua/Macaroni/Model/AxiomTests.lua
2
1305
-------------------------------------------------------------------------------- -- Copyright 2011 Tim Simpson -- -- 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.a...
apache-2.0
mohammad8/lionbot
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
Rhalyf/RhalyfsGlyphEnchanter
lib/LibAddonMenu-2.0/controls/header.lua
7
1479
--[[headerData = { type = "header", name = "My Header", width = "full", --or "half" (optional) reference = "MyAddonHeader" --(optional) unique global reference to control } ]] local widgetVersion = 6 local LAM = LibStub("LibAddonMenu-2.0") if not LAM:RegisterWidget("header", widgetVersion) then return end local ...
mit
CrazyEddieTK/Zero-K
units/athena.lua
5
2776
unitDef = { unitname = [[athena]], name = [[Athena]], description = [[Airborne SpecOps Engineer, Builds at 15 m/s]], acceleration = 0.1, airStrafe = 0, autoHeal = 20, brakeRate = 0.08, buildCostMetal = 600, buildDistance ...
gpl-2.0
czfshine/Don-t-Starve
ZeroBraneStudio/lualibs/dist/constraints.lua
6
9241
-- Note: the code of this module is borrowed from the original LuaDist project --- LuaDist version constraints functions -- Peter Drahoš, LuaDist Project, 2010 -- Original Code borrowed from LuaRocks Project --- Version constraints handling functions. -- Dependencies are represented in LuaDist through strings with ...
gpl-2.0
blueyed/awesome
lib/awful/remote.lua
4
1698
--------------------------------------------------------------------------- --- Remote control module allowing usage of awesome-client. -- -- @author Julien Danjou <julien@danjou.info> -- @copyright 2009 Julien Danjou -- @module awful.remote ------------------------------------------------------------------------...
gpl-2.0
TimSimpson/Macaroni
Main/App/Source/test/lua/Macaroni/Parser/Pippy/Tests/Milestones.lua
2
3160
-------------------------------------------------------------------------------- -- Copyright 2011 Tim Simpson -- -- 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.a...
apache-2.0
amir-salib/salib-bot-1
plugins/anti_chat.lua
62
1069
antichat = {}-- 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_chat'] then if data[tostring(msg.to.id)]['...
gpl-2.0
CrazyEddieTK/Zero-K
units/shipcarrier.lua
2
6084
unitDef = { unitname = [[shipcarrier]], name = [[Reef]], description = [[Aircraft Carrier (Bombardment), stockpiles disarm missiles at 5 m/s]], acceleration = 0.0354, activateWhenBuilt = true, brakeRate = 0.0466, buildCostMetal ...
gpl-2.0
victorperin/tibia-server
data/actions/scripts/wrath of the emperor quest/wrathOfTheEmperorQuestBoss.lua
1
2427
local boss = { [3193] = "fury of the emperor", [3194] = "wrath of the emperor", [3195] = "scorn of the emperor", [3196] = "spite of the emperor", } function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.itemid == 12318 and boss[itemEx.uid] and itemEx.itemid == 12383) then doTransformItem(itemEx.uid...
apache-2.0
AmirFieBeR/Amir_FieBeR
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
czfshine/Don-t-Starve
data/DLC0001/scripts/prefabs/mound.lua
1
4169
local assets = { Asset("ANIM", "anim/gravestones.zip"), } local prefabs = { "ghost", "amulet", "redgem", "gears", "bluegem", "nightmarefuel", } for k= 1,NUM_TRINKETS do table.insert(prefabs, "trinket_"..tostring(k) ) end local function ReturnChildren(inst) for k,child in pairs(inst.components.childspawn...
gpl-2.0
CrazyEddieTK/Zero-K
LuaUI/utility_two.lua
17
1410
-- Utility function for ZK -- Will try to read LUA content from target file and create BACKUP if have a successful read (in user's Spring folder) OR DELETE them if have a failure read -- This prevent corrupted file from being used. -- Note: currently only a "table" is considered a valid file function CheckLUAFileAndBa...
gpl-2.0
maximus0/thrift
lib/lua/TSocket.lua
113
2996
---- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may...
apache-2.0
czfshine/Don-t-Starve
data/scripts/components/thief.lua
1
1629
local Thief = Class(function(self, inst) self.inst = inst self.stolenitems = {} self.onstolen--[[inst, victim, item]] = nil end) function Thief:SetOnStolenFn(fn) self.onstolen = fn end function Thief:StealItem(victim, itemtosteal, attack) if victim.components.inventory and not victim.components.in...
gpl-2.0
duaneg/mongrel2
examples/bbs/ui.lua
96
2026
local coroutine = coroutine module 'ui' local SCREENS = { ['welcome'] = [[ __ __ ____ ____ ____ ____ | \/ |___ \| __ )| __ ) ___| | |\/| | __) | _ \| _ \___ \ | | | |/ __/| |_) | |_) |__) | |_| |_|_____|____/|____/____/ Welcome to the Mongrel2 BBS. ]], ['name']...
bsd-3-clause
repstd/modified_vlc
share/lua/sd/jamendo.lua
58
6732
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot org> Rémi Duraffort <ivoire at videolan dot org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free So...
gpl-2.0
iranddos/yagop
plugins/btc.lua
289
1375
-- See https://bitcoinaverage.com/api local function getBTCX(amount,currency) local base_url = 'https://api.bitcoinaverage.com/ticker/global/' -- Do request on bitcoinaverage, the final / is critical! local res,code = https.request(base_url..currency.."/") if code ~= 200 then return nil end local data = j...
gpl-2.0
repstd/modified_vlc
share/lua/playlist/pinkbike.lua
97
2080
--[[ $Id$ Copyright © 2009 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opt...
gpl-2.0
forcecore/yupgi_alert0
lua/ai.lua
1
27280
FACTION = nil PLAYER_NAME = nil PLAYER = nil BUILD_ORDER = nil TICKS = 0 AUTO_BUILD = false BUILD_TICK_FUNC = nil BELONGS_TO_A_TEAM = { } LoadHumvee = function(actors) UTIL_LoadOnto('jeep', actors, nil, nil) end LoadTran = function(actors) UTIL_LoadOnto('tran', actors, nil, nil) end ANYPOWER = 'ANYPOWER' MCVS = {...
gpl-3.0
luvit/lit
commands/get-luvi.lua
4
1403
return function () local core = require('core')() local uv = require('uv') local log = require('log').log local query = require('pkg').query local fs = require('coro-fs') -- Try to look up local metadata in case we're inside a luvi app. local meta = query(fs, ".") local opts = meta and meta.luvi or {} ...
apache-2.0
triggerNZ/illacceptanything
code/HERE BE DRAGONS.lua
12
336811
#!/usr/bin/env lua --[==============================================================================[ -_____ ' | -, _ _ /| | |` ,._-_ < \, / \\ /'\\ \\/\\ _-_, || |==|| || /-|| || || || || || || ||_. ~|| | |...
mit
matthewhesketh/mattata
plugins/administration/unfban.lua
2
6218
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local unfban = {} local mattata = require('mattata') local redis = require('libs.redis') function unfban:init() unfban.commands = mattata.commands(self.info.username)...
mit
creationix/ts-git
server.lua
1
1176
local connect = require('coro-net').connect local tlsWrap = require('coro-tls').wrap local split = require('coro-split') require('weblit-websocket') require('weblit-app') .bind({ host = "127.0.0.1", port = 8080 }) .use(require('weblit-logger')) .use(require('weblit-auto-headers')) .use(require('web...
mit
RElesgoe/pvpgn
lua/include/file.lua
7
1528
--[[ Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- -- Read file line by line -- callback 2 is optional -- You can process line with function callback1(line, callback2) function file_load(filename, call...
gpl-2.0
blueyed/awesome
lib/awful/startup_notification.lua
11
1686
--------------------------------------------------------------------------- --- Startup notification module for awful -- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2009 Julien Danjou -- @module awful.startup_notification --------------------------------------------------------------------------- ...
gpl-2.0
balaam/adventure_game_familiar
print_table.lua
1
4562
-- -- Call PrintTable on a table to print a nicely formated lua table to the console. -- The print table can also be overloaded with a different type of printer to output the table in a new representation -- like a blob. -- -- In the final version both these should be changed to local TabSize = 4 DataType = {...
mit
matthewhesketh/mattata
plugins/time.lua
2
3199
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local time = {} local mattata = require('mattata') local https = require('ssl.https') local url = require('socket.url') local json = require('dkjson') local setloc = require('plugin...
mit
SorBlackPlus/Anti-spam
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-3.0
czfshine/Don-t-Starve
data/scripts/map/static_layouts/leif_forest.lua
1
16941
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 32, height = 32, tilewidth = 16, tileheight = 16, properties = {}, tilesets = { { name = "tiles", firstgid = 1, tilewidth = 64, tileheight = 64, spacing = 0, margin = 0, imag...
gpl-2.0
starkos/premake-core
src/base/tree.lua
16
7128
-- -- tree.lua -- Functions for working with the source code tree. -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local p = premake p.tree = {} local tree = p.tree -- -- Create a new tree. -- -- @param n -- The name of the tree, applied to the root node (optional). -- function tree.new(n...
bsd-3-clause
mamadtnt/erfan
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
iranddos/yagop
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
sigma-random/wireshark
test/lua/dissectFPM.lua
28
15867
---------------------------------------- -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- Copyright (c) 2015, Hadriel Kaplan -- This code is in the Public Domain, or the BSD (3 clause) license -- if Public Domain does not apply in your country. -- -- Version: 1.0 -- ------------------------------------------...
gpl-2.0
minetest-games/Minetest_TNG
mods/armor/functions.lua
4
4452
local elements = armor.elements local armor_lvl = {} local function calc_protection(player) local name = player:get_player_name() local armor_inv = core.get_inventory({type = "detached", name = name .. "_armor"}) local protection = 0 for _,v in ipairs(elements) do local stack = armor_inv:get_stack("armor_" .. ...
gpl-3.0
CrazyEddieTK/Zero-K
scripts/gunshipbomb.lua
5
2212
-- by Chris Mackey include "constants.lua" --pieces local base = piece "base" local missile = piece "missile" local l_wing = piece "l_wing" local l_fan = piece "l_fan" local r_wing = piece "r_wing" local r_fan = piece "r_fan" local side = 1 local forward = 3 local up = 2 local RIGHT_ANGLE = math.rad(90) local smo...
gpl-2.0
czfshine/Don-t-Starve
data/scripts/map/layouts.lua
1
23030
require("constants") local StaticLayout = require("map/static_layout") local ExampleLayout = { ["Farmplot"] = { -- Choose layout type type = LAYOUT.STATIC, -- Add any arguments for the layout function args = nil, -- Define a choice list for substitution bel...
gpl-2.0
blueyed/awesome
tests/test-maximize.lua
3
6526
--- Tests maximize and fullscreen local runner = require("_runner") local awful = require("awful") local test_client = require("_client") local lgi = require("lgi") local gears = require("gears") local function geo_to_str(g) return "pos=" .. g.x .. "," .. g.y .. ";size=" .. g.width .. "x" .. g.height end ...
gpl-2.0
KuZon/ptokax-scripts
botstats.lua
3
5854
--[[ This file is part of HiT Hi FiT Hai's PtokaX scripts Copyright: © 2014 HiT Hi FiT Hai group Licence: GNU General Public Licence v3 https://www.gnu.org/licenses/gpl-3.0.html --]] function OnStartup() tConfig = { tBot = { sName = "[BOT]Stats", sDescription = "Statistics collection and fetching tasks....
gpl-3.0
otalk/sdp-jingle-table
src/utils.lua
1
2985
local M = {} function M.printTable(T) for _,line in pairs(T) do if type(line) == "table" then M.printTable(line) else --print(line) end end end function indentString(indent) local indentString = " " for i=1,indent do indentString = indentString ...
mit
CrazyEddieTK/Zero-K
LuaRules/Gadgets/weapon_area_damage.lua
4
4810
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Area Denial", desc = "Lets a weapon's damage persist in an area", author = "KDR_11k (David Becker), Google F...
gpl-2.0
czfshine/Don-t-Starve
data/scripts/map/static_layouts/spider_blocker_b.lua
1
13729
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 40, height = 40, tilewidth = 16, tileheight = 16, properties = {}, tilesets = { { name = "ground", firstgid = 1, filename = "../../../../tools/tiled/dont_starve/ground.tsx", tilewidth = 64, ...
gpl-2.0
shawnye/LuaBinaries4Windows
Lua 5.2/lpeg/re.lua
160
6286
-- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $ -- imported functions and modules local tonumber, type, print, error = tonumber, type, print, error local setmetatable = setmetatable local m = require"lpeg" -- 'm' will be used to parse expressions, and 'mm' will be used to -- create expressions; that is, 're' ...
mit
devlua/TEAM_PRO.get
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
AmirFieBeR/Amir_FieBeR
plugins/weather.lua
274
1531
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) location = string.gsub(location," ","+") local url = BASE_URL url = url..'?q='..location url = url..'&units=metric' url = url..'&appid=bd82977b86bf27fb59a04b61b6...
gpl-2.0
master041/vampire_bot
plugins/ingroup.lua
527
44020
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration data[tostr...
gpl-2.0
Zenny89/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/npcs/relic.lua
38
2786
----------------------------------- -- Area: The Sanctuary of Zi'Tah -- NPC: <this space intentionally left blank> -- @pos 646 -2 -165 121 -- @pos -18 0 55 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
Zenny89/darkstar
scripts/globals/weaponskills/vorpal_blade.lua
30
1435
----------------------------------- -- Vorpal Blade -- Sword weapon skill -- Skill Level: 200 -- Delivers a four-hit attack. Chance of params.critical varies with TP. -- Stacks with Sneak Attack. -- Aligned with the Soil Gorget & Thunder Gorget. -- Aligned with the Soil Belt & Thunder Belt. -- Element: None --...
gpl-3.0
dailin/wesnoth
data/ai/micro_ais/cas/ca_bottleneck_move.lua
2
20590
local H = wesnoth.require "lua/helper.lua" local LS = wesnoth.require "lua/location_set.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local BC = wesnoth.require "ai/lua/battle_calcs.lua" local MAISD = wesnoth.require "ai/micro_ais/micro_ai_self_data.lua" local function bottleneck_is_my_territory(map, enemy_ma...
gpl-2.0
mosavy/test
plugins/groupmanager1.lua
1
144685
local function modadd(msg) local hash = "gp_lang:"..msg.to.id local lang = redis:get(hash) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then if not lang then return '_You are not bot admin_' else return 'شما مدیر ربات نمیباشید' end end local d...
gpl-3.0
mercury233/ygopro-scripts
c97904474.lua
2
2568
--手錠龍 function c97904474.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(97904474,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c97904474.eqcon) e1:SetTarget(c97904474.eqtg) e1:...
gpl-2.0
mercury233/ygopro-scripts
c43527730.lua
2
3121
--御巫の水舞踏 function c43527730.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CONTINUOUS_TARGET) e1:SetTarget(c43527730.target) e1:SetOperation(c43527730.act...
gpl-2.0
mjssw/cuberite
Server/Plugins/APIDump/Hooks/OnEntityAddEffect.lua
36
1593
return { HOOK_ENTITY_ADD_EFFECT = { CalledWhen = "An entity effect is about to get added to an entity.", DefaultFnName = "OnEntityAddEffect", -- also used as pagename Desc = [[ This hook is called whenever an entity effect is about to be added to an entity. The plugin may disallow the addition by returni...
apache-2.0
mercury233/ygopro-scripts
c84220251.lua
9
1140
--蘇生紋章 function c84220251.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c84220251.target) e1:SetOperation(c84220251.activate) c:RegisterEffec...
gpl-2.0
volodymyr-babak/thingsboard.github.io
docs/samples/nodemcu/resources/dht11.lua
3
1162
-- init mqtt client with keepalive timer 120sec m = mqtt.Client("esp8266", 120, access_token, "password", 1) print("Connecting to MQTT broker...") m:connect(mqtt_ip, mqtt_port, 0, 1, function(client) print("Connected to MQTT!") end, function(client, reason) print("Could not connect, failed reason: " .. reason) end...
apache-2.0
mercury233/ygopro-scripts
c30864377.lua
2
3885
--剣闘獣総監エーディトル function c30864377.initial_effect(c) c:EnableReviveLimit() aux.AddFusionProcFunRep(c,c30864377.matfilter,2,true) aux.AddContactFusionProcedure(c,Card.IsAbleToDeckOrExtraAsCost,LOCATION_MZONE,0,aux.tdcfop(c)) --spsummon condition local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetP...
gpl-2.0
Zenny89/darkstar
scripts/zones/Norg/npcs/Heiji.lua
17
3132
----------------------------------- -- Area: Norg -- NPC: Heiji -- Starts and Ends Quest: Like a Shining Subligar -- @pos -1 -5 25 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scr...
gpl-3.0
mercury233/ygopro-scripts
c50140163.lua
2
2766
--魅惑の女王 LV7 function c50140163.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetOperation(c50140163.regop) c:RegisterEffect(e1) end c50140163.lvup={23756165} c50140163.lvdn={23756165,87257460} function c5014016...
gpl-2.0
mercury233/ygopro-scripts
c102380.lua
2
2818
--溶岩魔神ラヴァ・ゴーレム function c102380.initial_effect(c) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(102380,0)) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARA...
gpl-2.0
Zenny89/darkstar
scripts/globals/items/bowl_of_sutlac.lua
36
1315
----------------------------------------- -- ID: 5577 -- Item: Bowl of Sutlac -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +8 -- MP +10 -- INT +1 -- MP Recovered while healing +2 ----------------------------------------- require("scripts/globals/status"); ----...
gpl-3.0
ajayk/kong
kong/plugins/file-log/handler.lua
6
2355
-- Copyright (C) Mashape, Inc. local ffi = require "ffi" local cjson = require "cjson" local system_constants = require "lua_system_constants" local basic_serializer = require "kong.plugins.log-serializers.basic" local BasePlugin = require "kong.plugins.base_plugin" local ngx_timer = ngx.timer.at local string_len = st...
apache-2.0
Zenny89/darkstar
scripts/zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua
28
2429
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NPC: Mother Globe ----------------------------------- package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require( "scripts/zones/The_Shrine_of_RuAvi...
gpl-3.0
xkeyideal/annotated-redis-2.8.2
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
Zenny89/darkstar
scripts/zones/Bastok_Mines/npcs/Rashid.lua
19
3429
----------------------------------- -- Area: Bastok Mines -- NPC: Rashid -- Type: Mission Giver -- @pos -8.444 -2 -123.575 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globa...
gpl-3.0
mosavy/test
plugins/plugins.lua
1
7209
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( n...
gpl-3.0
mercury233/ygopro-scripts
c90488465.lua
2
3193
--混沌の創世神 function c90488465.initial_effect(c) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_HAND) e1:SetCondition(c90488465.spcon) e1:Se...
gpl-2.0
AntonioModer/fuccboiGDX
fuccboi/resources/particles/sperm/loveframes/objects/form.lua
3
7636
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ -- form object local newobject = loveframes.NewObject("form", "loveframes_object_form", true) --[[------------------------------...
mit
Zenny89/darkstar
scripts/zones/Mhaura/npcs/Willah_Maratahya.lua
17
3611
----------------------------------- -- Area: Mhaura -- NPC: Willah Maratahya -- Title Change NPC -- @pos 23 -8 63 249 ----------------------------------- require("scripts/globals/titles"); local title2 = { PURVEYOR_IN_TRAINING , ONESTAR_PURVEYOR , TWOSTAR_PURVEYOR , THREESTAR_PURVEYOR , 0 , 0 , 0 , 0 , 0 , ...
gpl-3.0
Zenny89/darkstar
scripts/globals/items/pestle.lua
15
1098
----------------------------------------- -- ID: 18599 -- Item: Pestle -- Additional effect: MP Drain ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- onAdditionalEffect Action ----------------------------------- fun...
gpl-3.0
mercury233/ygopro-scripts
c90861137.lua
2
3818
--『焔聖剣-ジョワユーズ』 function c90861137.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CONTINUOUS_TARGET) e1:SetTarget(c90861137.target) e1:SetOperation(c908611...
gpl-2.0
Zenny89/darkstar
scripts/globals/items/plate_of_bream_sushi_+1.lua
35
1470
----------------------------------------- -- ID: 5177 -- Item: plate_of_bream_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 6 -- Vitality 5 -- Accuracy % 17 -- Ranged ACC % 17 -- Sleep Resist 5 ----------------------------------------- require("scripts/glo...
gpl-3.0
Zenny89/darkstar
scripts/globals/items/bowl_of_navarin.lua
35
1877
----------------------------------------- -- ID: 4439 -- Item: Bowl of Navarin -- Food Effect: 180Min, All Races ----------------------------------------- -- Health % 3 -- Strength 3 -- Agility 1 -- Vitality 1 -- Intelligence -1 -- Attack % 27 -- Attack Cap 30 -- Evasion 5 -- Ranged ATT % 27 -- Ranged ATT...
gpl-3.0
mercury233/ygopro-scripts
c26674724.lua
2
2676
--ブリューナクの影霊衣 function c26674724.initial_effect(c) c:EnableReviveLimit() --cannot special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(aux.ritlimit) c:RegisterEffect(e1) -...
gpl-2.0
Zenny89/darkstar
scripts/globals/abilities/thunder_shot.lua
22
2801
----------------------------------- -- Ability: Thunder Shot -- Consumes a Thunder Card to enhance lightning-based debuffs. Deals lightning-based magic damage -- Shock Effect: Enhanced DoT and MND- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); requi...
gpl-3.0
FranciscoCanas/ActionMovie
ep1/story3.lua
1
5713
-- Story cutscene/sequence. require 'TESound.TEsound' local Timer = require "hump.timer" local Camera = require "hump.camera" local font = love.graphics.setNewFont(28) Gamestate.story3 = Gamestate.new() local state = Gamestate.story3 local currentString = "" local currentStringNum = 0 local diagInterval = 5 local dia...
mit
linushsao/marsu_game-linus-v0.2
mods/technical/pipeworks/trashcan.lua
4
1657
minetest.register_node("pipeworks:trashcan", { description = "Trash Can", drawtype = "normal", tiles = { "pipeworks_trashcan_bottom.png", "pipeworks_trashcan_bottom.png", "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", "pipeworks_trashcan_side.png", }, gr...
gpl-3.0
Zenny89/darkstar
scripts/zones/Qufim_Island/npcs/Nightflowers.lua
17
1530
----------------------------------- -- Area: Qufim Island -- NPC: Nightflowers -- Involved in Quest: Save My Son (Beastmaster Flag #1) -- @pos -264.775 -3.718 28.767 126 ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
Zenny89/darkstar
scripts/zones/Sauromugue_Champaign_[S]/npcs/Cavernous_Maw.lua
16
2224
----------------------------------- -- Area: Sauromugue Champaign [S] -- NPC: Cavernous Maw -- @pos 369 8 -227 98 -- Teleports Players to Sauromugue_Champaign ----------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign_[S]/TextIDs"] = nil; ----------------------------------- requir...
gpl-3.0
mercury233/ygopro-scripts
c59911557.lua
6
1684
--ゴゴゴゴラム function c59911557.initial_effect(c) --pos change local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(59911557,0)) e1:SetCategory(CATEGORY_POSITION) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetOperation(c59911557.operation) c:RegisterEffect(e1)...
gpl-2.0
mercury233/ygopro-scripts
c3734202.lua
2
3983
--ナチュルの神星樹 function c3734202.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --spsummon local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(3734202,0)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetType(...
gpl-2.0
mercury233/ygopro-scripts
c52817046.lua
2
1189
--記憶抹消 function c52817046.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c52817046.condition) e1:SetTarget(c52817046.target) e1:Set...
gpl-2.0
wolfnight/wolfnight1
plugins/linkpv.lua
107
31031
do local function check_member(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[tostring(msg.to.id)] = { ...
gpl-2.0
mercury233/ygopro-scripts
c55610595.lua
4
1791
--BF-上弦のピナーカ function c55610595.initial_effect(c) --synchro limit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetValue(c55610595.synlimit) c:RegisterEffect(e1) --to grave local ...
gpl-2.0
focusworld/aaab
bot/seedbot.lua
1
13366
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 = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
valhallaGaming/uno
branches/2_0_3_STABLE/item-system/c_world_text.lua
1
1188
function showWorldText() local x, y, z = getElementPosition(getLocalPlayer()) local colsphere = createColSphere(x, y, z, 10) for key, value in ipairs(exports.pool:getPoolElementsByType("object")) do local ox, oy, oz = getElementPosition(value) if (getDistanceBetweenPoints3D(x, y, z, ox, oy, oz)<20) then ...
bsd-3-clause
mosavy/test
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
goblinor/BomBus
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-2.0
3245as/a123w
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
mercury233/ygopro-scripts
c28927782.lua
2
3645
--ドラグニティ・ドライブ function c28927782.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --spsummon local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetRange(LOCATION_SZONE) e2:SetCode(EVENT_FREE_CHAIN) ...
gpl-2.0
PasdarTeam/BulletProofCli
plugins/filter.lua
2
2816
local function addword(msg, name) local hash = 'chat:'..msg.chat_id_..':badword' redis:hset(hash, name, 'newword') return "کلمه جدید به فیلتر کلمات اضافه شد\n🔹➕ "..name end local function get_badword_hash(msg) return 'chat:'..msg.chat_id_..':badword' end local function list_badwords(msg) local hash...
gpl-2.0
mercury233/ygopro-scripts
c97520701.lua
2
2616
--臨時ダイヤ function c97520701.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,97520701+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c97520701.target)...
gpl-2.0
Zenny89/darkstar
scripts/zones/Temenos/mobs/Praetorian_Guard_CCCXI.lua
16
1196
----------------------------------- -- Area: Temenos N T -- NPC: Praetorian_Guard ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); --------------------...
gpl-3.0