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 |
|---|---|---|---|---|---|
waytim/darkstar | scripts/globals/weaponskills/refulgent_arrow.lua | 11 | 1425 | -----------------------------------
-- Refulgent Arrow
-- Archery weapon skill
-- Skill level: 290
-- Delivers a twofold attack. Damage varies with TP.
-- Aligned with the Aqua Gorget & Light Gorget.
-- Aligned with the Aqua Belt & Light Belt.
-- Element: None
-- Modifiers: STR: 60% http://www.bg-wiki.com/bg/Refulgent_... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/slice_of_grilled_black_hare.lua | 3 | 1288 | -----------------------------------------
-- ID: 4516
-- Item: slice_of_grilled_black_hare
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 30
-- Attack Cap 20
-----------------------------------------
require("scripts/globals/status");
---------... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/spells/bluemagic/screwdriver.lua | 4 | 1060 | require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function OnMagicCastingCheck(caster,target,spell)
return 0;
end;
function onSpellCast(caster,target,spell)
... | gpl-3.0 |
amitshaked/resmatch | src/networks/scores/L2dist.lua | 1 | 1956 | local network = require 'networks/network'
local L2dist, parent = torch.class('nn.L2dist', 'nn.Module')
function L2dist:__init()
parent.__init(self)
self.gradInput = torch.CudaTensor()
self.tmp = torch.CudaTensor()
self.diff = torch.CudaTensor()
self.outExpand = torch.CudaTensor()
self.ones = torch.... | bsd-2-clause |
waytim/darkstar | scripts/zones/Southern_San_dOria/npcs/Dahjal.lua | 13 | 1222 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Dahjal
-- first in conquest Npc
-- @zone 230
-- @pos
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextIDs");
... | gpl-3.0 |
waytim/darkstar | scripts/zones/Dynamis-Jeuno/mobs/Goblin_Replica.lua | 23 | 1837 | -----------------------------------
-- Area: Dynamis Jeuno
-- MOB: Goblin Replica
-- Map1 Position: http://images3.wikia.nocookie.net/__cb20090312005127/ffxi/images/b/bb/Jeu1.jpg
-- Map2 Position: http://images4.wikia.nocookie.net/__cb20090312005155/ffxi/images/3/31/Jeu2.jpg
-- Vanguard Position: http://faranim.livejo... | gpl-3.0 |
waytim/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Weldon.lua | 13 | 1088 | ----------------------------------
-- Area: Bastok Markets [S]
-- NPC: Weldon
-- Type: Item Deliverer
-- @pos -191.575 -8 36.688 87
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_... | gpl-3.0 |
waytim/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Mainchelite.lua | 29 | 5404 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Mainchelite
-- @zone 80
-- @pos -16 1 -30
-- CS IDs:
-- 0x005 = Generic Greeting for Iron Ram members
-- 0x006 = Mid Initiation of other nation
-- 0x007 = Ask player to Join Iron Rams
-- 0x008 = Ask if changed mind about joining Iron rams (after... | gpl-3.0 |
waytim/darkstar | scripts/commands/tp.lua | 12 | 1165 | ---------------------------------------------------------------------------------------------------
-- func: @tp <amount> <player>
-- desc: Sets a players tp.
-- current known issue: pet tp fails to be set
---------------------------------------------------------------------------------------------------
cmdprops =
{
... | gpl-3.0 |
waytim/darkstar | scripts/globals/spells/knights_minne_iv.lua | 27 | 1497 | -----------------------------------------
-- Spell: Knight's Minne IV
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(cas... | gpl-3.0 |
testprooject/magma | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
Shayan123456/botttttt | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
internetisalie/lua-for-idea | testdata/non-test-system-files/lua5.1-tests/BadLua001.lua | 2 | 2688 | function admin_do( pl, handler, id, encoded, decoded )
local players = player.GetAll()
local ply = players[ decoded[ 2 ] ]
local act = decoded[ 1 ]
if act == "slap" then
ply:SetHealth( ply:Health() - 1 )
if ply:Health() == 0 then
ply:Kill()
end
AddNotify( ply, "You've been slapped by an admi... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c160002124.lua | 2 | 3775 | --Fiber Vine Customs
function c160002124.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,160002124)
e1:SetTarget(c160002124.target)
e1:SetOperation(c160002124.activate)
c:Registe... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/spells/curaga_iii.lua | 2 | 1148 | -----------------------------------------
-- Spell: Curaga III
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnS... | gpl-3.0 |
jpauwels/MusOOEvaluator | build/premake4.lua | 1 | 1917 | -- A solution contains projects, and defines the available configurations
solution "MusOOEvaluator"
configurations {"Release", "Debug"}
if (_ACTION == nil) then
return
end
location (os.get() .. '-' .. _ACTION)
targetdir (os.get() .. '-' .. _ACTION)
-- A project defines one build target
project "MusO... | bsd-3-clause |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/West_Ronfaure/Zone.lua | 2 | 2065 | -----------------------------------
--
-- Zone: West_Ronfaure (100)
--
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/West_Ronfaure/TextIDs");
------------------------------... | gpl-3.0 |
TienHP/Aquaria | files/scripts/entities/pufferfish.lua | 6 | 3670 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
niegenug/wesnoth | data/ai/micro_ais/micro_ai_wml_tag.lua | 6 | 26045 | local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local MAIH = wesnoth.require("ai/micro_ais/micro_ai_helper.lua")
function wesnoth.wml_actions.micro_ai(cfg)
local CA_path = 'ai/micro_ais/cas/'
cfg = cfg.__parsed
-- Add translation for old-syntax animal MAIs to new syntax... | gpl-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c96866610.lua | 2 | 1511 | --Action Card - B.M.I. Barrier
function c96866610.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetTarget(c96866610.target)
e1:SetO... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c66666697.lua | 2 | 2074 | --Seafarer Morale Boost
function c66666697.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,66666697)
e1:SetDescription(aux.Stringid(66666697,0))
e1:SetTarget(c66666697.ta... | gpl-3.0 |
waytim/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/HomePoint#1.lua | 27 | 1290 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: HomePoint#1
-- @pos -13 48 61 178
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/The_Shrine_of_RuAvitau/TextIDs");
requir... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/loach_gruel.lua | 2 | 1551 | -----------------------------------------
-- ID: 5670
-- Item: loach_gruel
-- Food Effect: 4Hour,Group Food, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Accuracy % 7
-- Accuracy Cap 30
-- HP % 7
-- HP Cap 30
-- Evasion 4
-- (Did Not Add Group Food Effect)
------------------------... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c100000826.lua | 2 | 1367 | --Created and coded by Rising Phoenix
function c100000826.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_RECOVER)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c100000826.op)
e1:SetCost(c100000826.c... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/abilities/pets/flame_breath.lua | 4 | 1221 | ---------------------------------------------------
-- Flame Breath
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
---------------------------------------------------
function OnAbilityCheck(pla... | gpl-3.0 |
TienHP/Aquaria | files/scripts/entities/rotcrab.lua | 6 | 3979 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
waytim/darkstar | scripts/zones/Crawlers_Nest/npcs/Treasure_Coffer.lua | 13 | 4680 | -----------------------------------
-- Area: Crawler Nest
-- NPC: Treasure Coffer
-- @zone 197
-- @pos -94 0 207
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems")... | gpl-3.0 |
waytim/darkstar | scripts/zones/The_Shrine_of_RuAvitau/mobs/Mother_Globe.lua | 22 | 2655 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NM: Mother Globe
-- TODO: Looked like pets had an additional effect: stun with an unknown proc rate
-- TODO: "Links with Slave Globes, and Slave Globes link with Defenders. Defenders do not link with Slave Globes or Mother Globe."
---------------... | gpl-3.0 |
LuaDist2/prosody | plugins/adhoc/mod_adhoc.lua | 3 | 3925 | -- Copyright (C) 2009 Thilo Cestonaro
-- Copyright (C) 2009-2011 Florian Zeitz
--
-- This file is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local keys = require "util.iterators".keys;
local array_collect = require "util.array".coll... | mit |
X-Raym/REAPER-ReaScripts | Envelopes/On Tracks/X-Raym_Add envelope points at time selection edges from min to max.lua | 1 | 4129 | --[[
* ReaScript Name: Add envelope points at time selection edges from min to max
* About: Insert points at time selection edges.
* Instructions: Make a selection area. Execute the script. Works on selected envelope or selected tracks envelope with armed visible envelope.
* Author: X-Raym
* Author URI: https://ww... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c77662930.lua | 2 | 5627 | --Accel Vocaloid Gahata Meiji
function c77662930.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure2(c,nil,aux.NonTuner(nil))
c:EnableReviveLimit()
--pendulum summon
aux.EnablePendulumAttribute(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(77662930,0))
e1:SetCategory(CATEG... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Western_Altepa_Desert/npcs/Cermet_Headstone.lua | 2 | 2275 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Earth Fragment)
-- @pos -108 10 -216 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
waytim/darkstar | scripts/zones/Upper_Jeuno/Zone.lua | 26 | 2502 | -----------------------------------
--
-- Zone: Upper_Jeuno (244)
--
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------... | gpl-3.0 |
LuaDist2/prosody | tests/test_util_rfc6724.lua | 4 | 5444 | -- Prosody IM
-- Copyright (C) 2011-2013 Florian Zeitz
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
function source(source)
local new_ip = require"util.ip".new_ip;
assert_equal(source(new_ip("2001:db8:1::1", "IPv6"),
{new_ip("2001:db8:3::1",... | mit |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/salty_bretzel.lua | 3 | 1184 | -----------------------------------------
-- ID: 5182
-- Item: salty_bretzel
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Magic % 8
-- Magic Cap 60
-- Vitality 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- On... | gpl-3.0 |
waytim/darkstar | scripts/globals/spells/bluemagic/helldive.lua | 35 | 1670 | -----------------------------------------
-- Spell: Helldive
-- Damage varies with TP
-- Spell cost: 16 MP
-- Monster Type: Birds
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 2
-- Stat Bonus: CHR+1, HP+5
-- Level: 16
-- Casting Time: 0.5 seconds
-- Recast Time: 11.25 seconds
-- Skillchain Property: Transfixion... | gpl-3.0 |
shimaore/ccnq2.0 | common/perllib/share/b2bua/base/freeswitch/scripts/lua/json.lua | 2 | 15775 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.20
-- This module is released under the The GNU General Public Licen... | agpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c500319541.lua | 2 | 1796 | --Winged Beast Of Gust Vine
function c500319541.initial_effect(c)
aux.AddFusionProcCodeFun(c,50031102,aux.FilterBoolFunction(c500319541.ffilter),1,true,false)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(500319541,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLA... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Cloister_of_Gales/mobs/Ogmios.lua | 4 | 1269 | -----------------------------------
-- Area: Cloister of Gales
-- NPC: Ogmios
-- Involved in Quest: Carbuncle Debacle
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
-- OnMobSpawn Action
--------------------------------... | gpl-3.0 |
waytim/darkstar | scripts/zones/Bastok_Markets/npcs/HomePoint#3.lua | 27 | 1266 | -----------------------------------
-- Area: Bastok Markets
-- NPC: HomePoint#3
-- @pos -189 -8 26 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts/globals/homep... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c76973420.lua | 2 | 6577 | --Vocaloid Backup Crew
function c76973420.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--dark synchro summon
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXT... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/serving_of_herb_quus.lua | 18 | 1383 | -----------------------------------------
-- ID: 4559
-- Item: serving_of_herb_quus
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
waytim/darkstar | scripts/globals/abilities/pets/spring_water.lua | 25 | 1137 | ---------------------------------------------------
-- Spring Water
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbilityCheck(player... | gpl-3.0 |
hfjgjfg/persianguard76 | plugins/add_bot.lua | 189 | 1492 | --[[
Bot can join into a group by replying a message contain an invite link or by
typing !add [invite link].
URL.parse cannot parsing complicated message. So, this plugin only works for
single [invite link] in a post.
[invite link] may be preceeded but must not followed by another characters.
--]]
do
local function... | gpl-2.0 |
waytim/darkstar | scripts/zones/Yhoator_Jungle/npcs/Etaj-Pohtaj_WW.lua | 13 | 3327 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: Etaj-Pohtaj, W.W.
-- Outpost Conquest Guards
-- @pos 200.254 -1 -80.324 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
chrox/koreader | frontend/apps/filemanager/filemanagersearch.lua | 4 | 26481 | local CenterContainer = require("ui/widget/container/centercontainer")
local InputContainer = require("ui/widget/container/inputcontainer")
local DocumentRegistry = require("document/documentregistry")
local InputDialog = require("ui/widget/inputdialog")
local InfoMessage = require("ui/widget/infomessage")
local lfs = ... | agpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Port_Windurst/npcs/Choyi_Totlihpa.lua | 5 | 1043 | -----------------------------------
-- Area: Port Windurst
-- NPC: Choyi Totlihpa
-- Type: Standard NPC
-- @zone: 240
-- @pos: -58.927 -5.732 132.819
--
-- Auto-Script: Requires Verification (Verfied by brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c78330001.lua | 2 | 1111 | --AB Lady
function c78330001.initial_effect(c)
--salvate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(78330001,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c783300... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/elshimo_coconut.lua | 3 | 1108 | -----------------------------------------
-- ID: 5187
-- Item: elshimo_coconut
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -1
-- Intelligence -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
waytim/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Porter_Moogle.lua | 41 | 1550 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 94
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_... | gpl-3.0 |
CCAAHH/spm1 | plugins/sp.lua | 42 | 75166 | local function run(msg)
if msg.text == "[!/]spam" then
return "".. [[
... | gpl-2.0 |
ghedo/pktizr | scripts/dns.lua | 1 | 1517 | -- This script sends out DNS requests for the "example.com" domain, and listens
-- for matching replies.
local bin = require("pktizr.bin")
local pkt = require("pktizr.pkt")
local std = require("pktizr.std")
-- template packets
local local_addr = std.get_addr()
local local_port = 64434
local pkt_ip4 = pkt.IP()
pkt_ip... | bsd-2-clause |
ryanplusplus/busted | spec/modules/configuration_loader_spec.lua | 7 | 2512 | describe('Config Loader', function()
local configLoader = require 'busted.modules.configuration_loader'()
local testConfig, cliArgs, defaults
before_each(function()
testConfig = {
_all = {
other = 'stuff',
},
default = {
output = 'utfTerminal'
},
windows = {
... | mit |
waytim/darkstar | scripts/zones/Apollyon/Zone.lua | 31 | 11702 | -----------------------------------
--
-- Zone: Apollyon
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/limbus");
-----------------------------------
-- onInitiali... | gpl-3.0 |
waytim/darkstar | scripts/zones/Temenos/bcnms/Central_Temenos_1st_Floor.lua | 35 | 1135 | -----------------------------------
-- Area: Temenos
-- Name:
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[C_Temenos_1st]UniqueID",GenerateLimbusKey());
HideArmouryCrates(GetInstanceRegion(1303... | gpl-3.0 |
kevinnguyen79/sipml5 | asterisk/etc/extensions.lua | 317 | 5827 |
CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
IAXINFO = "guest" -- IAXtel username/password
--IAXINFO = "myuser:mypass"
TRUNK = "DAHDI/G2"
TRUNKMSD = 1
-- TRUNK = "IAX2/user:pass@provider"
--
-- Extensions are expected to be defined in a global table ... | bsd-3-clause |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Metalworks/npcs/Moyoyo.lua | 5 | 1035 | -----------------------------------
-- Area: Metalworks
-- NPC: Moyoyo
-- Type: Standard NPC
-- @zone: 237
-- @pos: 19.508 -17 26.870
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zones/... | gpl-3.0 |
MinFu/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/backupfiles.lua | 75 | 2451 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
if luci.http.formvalue("cbid.luci.1._list") then
luci.http.redirect(luci.dispatcher.build_url("admin/system/flashops/backupfiles") .. "?display=list")
elseif ... | apache-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/The_Last_Stand/Zone.lua | 3 | 1065 | -----------------------------------
--
-- Zone: The_Last_Stand
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/The_Last_Stand/TextIDs"] = nil;
require("scripts/zones/The_Last_Stand/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/plate_of_bream_sushi.lua | 17 | 1475 | -----------------------------------------
-- ID: 5176
-- Item: plate_of_bream_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 6
-- Vitality 5
-- Accuracy % 16
-- Ranged ACC % 16
-- Sleep Resist 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c90000067.lua | 2 | 1734 | --Empire Violet Sorceress
function c90000067.initial_effect(c)
c:EnableReviveLimit()
--Add Counter
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c11111126.lua | 2 | 4431 | --Awakening the Forgotten Memory
function c11111126.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,11111126)
e1:SetCost(c11111126.cost)
e1:SetTarget(c11111126.target)
e1:SetOpe... | gpl-3.0 |
waytim/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Buliame_RK.lua | 13 | 3350 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Buliame, R.K.
-- Type: Border Conquest Guards
-- @pos -120.393 -25.822 -592.604 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
tenvick/hugular_cstolua | Client/Assets/uLua/Source/LuaJIT/src/jit/dump.lua | 84 | 19509 | ----------------------------------------------------------------------------
-- LuaJIT compiler dump module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-... | mit |
Kapiainen/Lauhdutin | dist/@Resources/shared/utility.lua | 1 | 13927 | local Config
do
local _class_0
local _base_0 = {
isActive = function(self)
return self.active == 1
end,
getX = function(self)
return self.windowX
end,
getY = function(self)
return self.windowY
end,
getZ = function(self)
return self.alwaysOnTop
end,
isClick... | mit |
TheOnePharaoh/YGOPro-Custom-Cards | script/c960212342.lua | 2 | 2926 | --Backfire Witch
function c960212342.initial_effect(c)
--Rune Summon
c:EnableReviveLimit()
local r1=Effect.CreateEffect(c)
r1:SetType(EFFECT_TYPE_FIELD)
r1:SetCode(EFFECT_SPSUMMON_PROC)
r1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
r1:SetRange(LOCATION_HAND)
r1:SetCondition(c960212342.runcon)... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c99970520.lua | 1 | 3297 | --DAL - The Spirit Summer
function c99970520.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--Recover
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFF... | gpl-3.0 |
thisishmed/butler | plugins/dl.lua | 13 | 2345 | local function run(msg, matches)
if matches[1] == "dl" then
local file = matches[2]
if is_sudo(msg) then -- sudo only
local receiver = get_receiver(msg)
send_document(receiver, "./data/files/"..file, ok_cb, false)
end
end
end
return {
patterns = {
"^[!/](dl) (.*)$"
},
run = run
}
... | gpl-2.0 |
waytim/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Duke_Scox.lua | 23 | 1566 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Duke Scox
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEngaged(m... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Aht_Urhgan_Whitegate/npcs/Ryo.lua | 2 | 1178 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ryo
-- Type: ZNM
-- @pos -127.086 0.999 22.693 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/besieged");
require("scripts/... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/slice_of_salted_hare.lua | 3 | 1089 | -----------------------------------------
-- ID: 5737
-- Item: slice_of_salted_hare
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 10
-- Strength 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--... | gpl-3.0 |
waytim/darkstar | scripts/zones/Windurst_Woods/npcs/Hauh_Colphioh.lua | 13 | 2715 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Hauh Colphioh
-- Type: Guildworker's Union Representative
-- @zone: 241
-- @pos -38.173 -1.25 -113.679
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/keyitems");
require(... | gpl-3.0 |
TienHP/Aquaria | files/scripts/maps/node_sunwormcavebrain.lua | 5 | 1839 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c42599682.lua | 2 | 3937 | --Searing Polymer
function c42599682.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(42599682,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c42599682.target)
e1:SetOperation(c4259... | gpl-3.0 |
db260179/openwrt-bpi-r1-luci | applications/luci-app-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua | 92 | 6917 | -- wizard rewrite wip
local uci = require "luci.model.uci".cursor()
local sys = require "luci.sys"
local util = require "luci.util"
local ip = require "luci.ip"
local community = "profile_" .. (uci:get("freifunk", "community", "name") or "Freifunk")
local mesh_network = ip.IPv4(uci:get_first(community, "community", "... | apache-2.0 |
gfgtdf/wesnoth-old | data/campaigns/World_Conquest/lua/game_mechanics/artifacts.lua | 4 | 7547 | local on_event = wesnoth.require("on_event")
local helper = wesnoth.require("helper")
local _ = wesnoth.textdomain 'wesnoth-wc'
local artifacts = {}
artifacts.list = {}
function artifacts.add_artifact_data(a)
table.insert(artifacts.list, a)
end
function artifacts.read_wml_data(cfg)
for i, artifact in ipairs(wc2_c... | gpl-2.0 |
waytim/darkstar | scripts/globals/spells/curaga_v.lua | 28 | 1293 | -----------------------------------------
-- Spell: Curaga V
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpe... | gpl-3.0 |
hasanee/Terminaler-Bot | bot/utils.lua | 473 | 24167 | 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 |
waytim/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Geltpix.lua | 19 | 1124 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Geltpix
-- @zone 80
-- @pos 154 -2 103
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/mobskills/Trinary_Tap.lua | 10 | 2015 | ---------------------------------------------------
-- Trinary Tap
-- Attempts to absorb three buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any ... | gpl-3.0 |
waytim/darkstar | scripts/zones/Metalworks/npcs/Olaf.lua | 13 | 1174 | -----------------------------------
-- Area: Metalworks
-- NPC: Olaf
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Metalworks/TextIDs");
---------------... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c20912232.lua | 1 | 2579 | --The Chaotic Sword Ragnarok
function c20912232.initial_effect(c)
c:SetUniqueOnField(1,0,20912232)
aux.AddEquipProcedure(c,0,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR))
--Atk up
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(300)
c:RegisterEffect... | gpl-3.0 |
TienHP/Aquaria | files/scripts/entities/empty.lua | 12 | 1057 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c66165100.lua | 2 | 3256 | --Golem Un-Summoning
function c66165100.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c66165100.cost)
e1:SetTarget(c66165100.target)
e1:SetOperation(c66165100.activate)
c:RegisterEffect(e1)
--... | gpl-3.0 |
ld-test/heaps | lua/skew_heap.lua | 2 | 4412 | -- Copyright (c) 2008-2011 Incremental IP Limited.
--[[
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, pu... | mit |
TheOnePharaoh/YGOPro-Custom-Cards | script/c59821021.lua | 2 | 2457 | --Kurebayashi Juri
function c59821021.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--splimit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_PZONE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABL... | gpl-3.0 |
waytim/darkstar | scripts/zones/Mhaura/npcs/Phoochuchu.lua | 13 | 1542 | -----------------------------------
-- Area: Mhaura
-- NPC: Phoochuchu
-- Involved in Quest: A Thief in Norg!?
-- @pos -4 -4 69 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Mh... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/weaponskills/skewer.lua | 4 | 1235 | -----------------------------------
-- Skewer
-- Polearm weapon skill
-- Skill Level: 200
-- Delivers a three-hit attack. Chance of params.critical hit varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget & Thunder Gorget.
-- Aligned with the Light Belt & Thunder Belt.
-- Element: N... | gpl-3.0 |
waytim/darkstar | scripts/zones/Metalworks/npcs/Topuru-Kuperu.lua | 13 | 1059 | -----------------------------------
-- Area: Metalworks
-- NPC: Topuru-Kuperu
-- Type: Standard NPC
-- @zone: 237
-- @pos 28.284 -17.39 42.269
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scrip... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c512000082.lua | 2 | 1495 | --Forbidden Beast Inun
function c512000082.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(511000379,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c512000082.srcon)
e1:... | gpl-3.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c500315980.lua | 2 | 2613 | --Baby Princess or Gust Vine
function c500315980.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(500315980,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,500315980)
e1:SetTarget(c500315980.target)
e1:... | gpl-3.0 |
CaptainPRICE/wire | lua/wire/gates/selection.lua | 18 | 3682 | --[[
Selection Gates
]]
GateActions("Selection")
GateActions["min"] = {
name = "Minimum (Smallest)",
inputs = { "A", "B", "C", "D", "E", "F", "G", "H" },
compact_inputs = 2,
output = function(gate, ...)
return math.min(unpack({...}))
end,
label = function(Out, ...)
local txt = "min("
for k,v in ipairs({... | apache-2.0 |
TheOnePharaoh/YGOPro-Custom-Cards | script/c59821072.lua | 1 | 4552 | --The Idol Master of Evil Kharmila
function c59821072.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,4,3,c59821072.ovfilter,aux.Stringid(59821072,0))
c:EnableReviveLimit()
--pendulum summon
aux.EnablePendulumAttribute(c)
--splimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRa... | gpl-3.0 |
vladzaharia/regrets | World.lua | 1 | 15020 |
local World = {}
local Map = require("Map")
local playerAnimation = require("playerAnimation")
local Assets = require("Assets")
local SoundManager = require("SoundManager")
local jukeboxAnimation = require("jukeboxAnimation")
local jAnimation = jukeboxAnimation:new()
local sManager = SoundManager:new()
-- Size of pla... | gpl-2.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Metalworks/npcs/Baldric.lua | 2 | 1683 | -----------------------------------
-- Area: Metalworks
-- NPC: Baldric
-- Type: Quest Giver
-- @zone: 237
-- @pos: -50.858 1.777 -31.141
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")
require("s... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Xarcabard/npcs/qm1.lua | 2 | 1340 | -----------------------------------
-- Area: Xarcabard
-- NPC: ???
-- Involved in Quests: The Three Magi
-- @zone 112
-- @pos -331 -29 -49
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("script... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/pearlscale.lua | 18 | 1330 | -----------------------------------------
-- ID: 5714
-- Item: Pearlscale
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
waytim/darkstar | scripts/globals/items/mithran_tomato.lua | 18 | 1180 | -----------------------------------------
-- ID: 4390
-- Item: mithran_tomato
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
waytim/darkstar | scripts/zones/Kazham/npcs/Dheo_Nbolo.lua | 15 | 1050 | -----------------------------------
-- Area: Kazham
-- NPC: Dheo Nbolo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
func... | gpl-3.0 |
ffxinfinity/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/yellow_curry_bun_+1.lua | 3 | 1867 | -----------------------------------------
-- ID: 5763
-- Item: yellow_curry_bun_+1
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- Health Points 30
-- Strength 5
-- Agility 2
-- Vitality 2
-- Intelligence -2
-- Attack 23% (caps @ 80)
-- Ranged Attack 23% (caps @ 80)
-- Resist Sleep
-- ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.