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 |
|---|---|---|---|---|---|
destdev/ygopro-scripts | c50152549.lua | 7 | 1484 | --しびれ薬
function c50152549.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)
e1:SetTarget(c50152549.target)
e1:SetOperation(c50152549.operation)
c:RegisterEffect(e1)
-... | gpl-2.0 |
Kong/kong | spec/02-integration/06-invalidations/01-cluster_events_spec.lua | 1 | 10773 | _G.ngx.config.debug = true
local helpers = require "spec.helpers"
local kong_cluster_events = require "kong.cluster_events"
for _, strategy in helpers.each_strategy() do
describe("cluster_events with db [#" .. strategy .. "]", function()
local db
lazy_setup(function()
local _
_, d... | apache-2.0 |
Deadwing888/darkstar | scripts/globals/weaponskills/spinning_scythe.lua | 11 | 1386 | -----------------------------------
-- Spinning Scythe
-- Scythe weapon skill
-- Skill Level: 125
-- Delivers an area of effect attack. Attack radius varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Soil Gorget.
-- Aligned with the Aqua Belt & Soil Belt.
-- Element: None
-- Modifiers: ... | gpl-3.0 |
destdev/ygopro-scripts | c37267041.lua | 1 | 1186 | --サイレント・ソードマン LV7
function c37267041.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
... | gpl-2.0 |
Deadwing888/darkstar | scripts/zones/Windurst_Woods/npcs/Kopuro-Popuro.lua | 12 | 6732 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Kopuro-Popuro
-- Type: Standard NPC
-- @zone: 241
-- @pos -0.037 -4.749 -22.589
-- Starts Quests: The All-New C-2000, Legendary Plan B, The All-New C-3000
-- Involved in quests: Lost Chick
-----------------------------------
package.loaded["scripts... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Port_Bastok/npcs/Bodaway.lua | 17 | 1435 | -----------------------------------
-- Area: Port Bastok
-- NPC: Bodaway
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
require("scripts/zones/Port_Bastok/TextIDs");
-----------------------------------
-- onTrade Action
----------------... | gpl-3.0 |
destdev/ygopro-scripts | c77336644.lua | 1 | 2503 | --レッド・デーモンズ・ドラゴン/バスター
function c77336644.initial_effect(c)
c:EnableReviveLimit()
--Cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(... | gpl-2.0 |
RwNigma/darkstar | scripts/zones/Quicksand_Caves/npcs/Goblin_Geologist.lua | 38 | 1025 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Goblin Geologist
-- Type: Mission
-- @pos -737.000 -11.125 -550.000 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Davoi/npcs/Disused_Well.lua | 38 | 1303 | -----------------------------------
-- Area: Davoi
-- NPC: Disused Well
-- Involved in Quest: A Knight's Test
-- @pos -221 2 -293 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Gusgen_Mines/TextIDs.lua | 15 | 1706 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
RwNigma/darkstar | scripts/globals/mobskills/Stormwind.lua | 25 | 2075 | ---------------------------------------------
-- Stormwind
--
-- Description: Creates a whirlwind that deals Wind damage to targets in an area of effect.
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown radial
-- Notes:
---------------------------------------------
require("sc... | gpl-3.0 |
sharifteam/sharifbot2 | plugins/sticker_lock.lua | 18 | 19218 | do
local administrators_only = 'For administrator only!'
local moderators_only = 'For moderators only!'
local function create_group(msg)
if not is_admin(msg) then return administrators_only end
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_name, ok_cb, false)
return 'Group '... | gpl-2.0 |
simonfork/aquaria | game_scripts/scripts/entities/shrimp.lua | 6 | 4878 | -- 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 |
RwNigma/darkstar | scripts/globals/items/sis_kebabi_+1.lua | 35 | 1659 | -----------------------------------------
-- ID: 5599
-- Item: sis_kebabi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 6
-- Vitality -1
-- Intelligence -1
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
------------------------------------... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Bastok_Markets/npcs/Zhikkom.lua | 36 | 1504 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Zhikkom
-- Standard Merchant NPC
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require(... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Middle_Delkfutts_Tower/npcs/Grounds_Tome.lua | 34 | 1144 | -----------------------------------
-- Area: Middle Delkfutt's Tower
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Xarcabard/npcs/Magumo-Yagimo_WW.lua | 30 | 3049 | -----------------------------------
-- Area: Xarcabard
-- NPC: Magumo-Yagimo, W.W.
-- Type: Outpost Conquest Guards
-- @pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
Deadwing888/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Hadayah.lua | 29 | 1739 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Hadayah
-- Type: Alchemy Image Support
-- @pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/statu... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Ship_bound_for_Selbina/npcs/Rajmonda.lua | 17 | 1228 | -----------------------------------
-- Area: Ship bound for Selbina
-- NPC: Rajmonda
-- Type: Guild Merchant: Fishing Guild
-- @pos 1.841 -2.101 -9.000 220
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
Deadwing888/darkstar | scripts/zones/Dho_Gates/Zone.lua | 50 | 1181 | -----------------------------------
--
-- Zone: Foret de Hennetiel
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Dho_Gates/TextIDs"] = nil;
require("scripts/zones/Dho_Gates/TextIDs");
-----------------------------------
-- onInitialize
-------------------... | gpl-3.0 |
MGunner/UCGuard | libs/dateparser.lua | 31 | 6347 | local difftime, time, date = os.difftime, os.time, os.date
local format = string.format
local tremove, tinsert = table.remove, table.insert
local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable
local dateparser={}
--we shall use the host OS's... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_nf4.lua | 19 | 2637 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Strange Apparatus
-- @pos: 104 0 -179 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
require("scripts/globals/strangeappar... | gpl-3.0 |
destdev/ygopro-scripts | c99429730.lua | 4 | 2465 | --森羅の番人 オーク
function c99429730.initial_effect(c)
--deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(99429730,0))
e1:SetCategory(CATEGORY_DECKDES)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c99429730.target)
e1:SetOperation(c99429730.operatio... | gpl-2.0 |
destdev/ygopro-scripts | c82140600.lua | 1 | 1839 | --約束の地 -アヴァロン-
function c82140600.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c82140600.t... | gpl-2.0 |
RwNigma/darkstar | scripts/zones/RuAun_Gardens/npcs/Treasure_Coffer.lua | 17 | 3325 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: Treasure Coffer
-- @zone 130
-- @pos
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitem... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Castle_Oztroja/npcs/qm1.lua | 19 | 1470 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: qm1 (???)
-- Involved in Quest: True Strength
-- @pos -100 -71 -132 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require... | gpl-3.0 |
RwNigma/darkstar | scripts/globals/items/two-leaf_mandragora_bud.lua | 35 | 1192 | -----------------------------------------
-- ID: 4368
-- Two-Leaf Mandragora Bud
-- 5 Minutes, food effect, All Races
-----------------------------------------
-- Agility +2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
destdev/ygopro-scripts | c18114794.lua | 4 | 2337 | --サモンブレーカー
function c18114794.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(18114794,0))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetRange(LOCAT... | gpl-2.0 |
destdev/ygopro-scripts | c98024118.lua | 7 | 1546 | --ホワイトポータン
function c98024118.initial_effect(c)
--lp damage
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetCondition(c98024118.indcon)
e1:SetValue(1)
c:RegisterEffect(e1)
--lp damage
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(9... | gpl-2.0 |
Deadwing888/darkstar | scripts/zones/Ranguemont_Pass/Zone.lua | 19 | 1813 | -----------------------------------
--
-- Zone: Ranguemont_Pass (166)
--
-----------------------------------
package.loaded["scripts/zones/Ranguemont_Pass/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Ranguemont_Pass/TextIDs");
require("scripts/globals... | gpl-3.0 |
Kong/kong | kong/plugins/request-size-limiting/handler.lua | 1 | 1759 | -- Copyright (C) Kong Inc.
local strip = require("pl.stringx").strip
local kong_meta = require "kong.meta"
local tonumber = tonumber
local RequestSizeLimitingHandler = {}
RequestSizeLimitingHandler.PRIORITY = 951
RequestSizeLimitingHandler.VERSION = kong_meta.version
local size_units = {
"megabytes",
"kilobyt... | apache-2.0 |
X-Coder/spacebuild | lua/entities/generator_energy_wind/init.lua | 5 | 3756 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
local Energy_Increment = 100 --40 before --randomize for weather
function ENT:Initialize()
self.BaseClass.Initialize(self)
self.Active = 0
self.damaged = 0
self.sequence = -1
self.thinkcount = 0
if not (WireAddon ==... | apache-2.0 |
RwNigma/darkstar | scripts/zones/Bastok_Markets/npcs/Matthias.lua | 37 | 1050 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Matthias
-- Standard Info NPC
-- Involved in Quest:
-----------------------------------
require("scripts/globals/quests");
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
---... | gpl-3.0 |
Deadwing888/darkstar | scripts/zones/Windurst_Woods/npcs/Bin_Stejihna.lua | 17 | 1817 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Bin Stejihna
-- Only sells when Windurst controlls Zulkheim Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_Wo... | gpl-3.0 |
Deadwing888/darkstar | scripts/globals/items/cup_of_windurstian_tea.lua | 18 | 1189 | -----------------------------------------
-- ID: 4493
-- Item: cup_of_windurstian_tea
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Vitality -2
-- Charisma 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIte... | gpl-3.0 |
kosicki123/forgottenserver | data/actions/scripts/other/doors.lua | 4 | 2269 | function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
if isInArray(questDoors, item.itemid) then
if player:getStorageValue(item.actionid) ~= -1 then
Item(item.uid):transform(item.itemid + 1)
player:teleportTo(toPosition, true)
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "The door se... | gpl-2.0 |
destdev/ygopro-scripts | c98162242.lua | 9 | 1065 | --ニードルバンカー
function c98162242.initial_effect(c)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98162242,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCondition(c98162242.damcon)
e1:SetTarget(c98162242.d... | gpl-2.0 |
ffxijuggalo/darkstar | scripts/globals/items/mutton_enchilada.lua | 11 | 1458 | -----------------------------------------
-- ID: 4348
-- Item: mutton_enchilada
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 3
-- Vitality 1
-- Intelligence -1
-- Attack % 27
-- Attack Cap 35
-- Ranged ATT % 27
-- Ranged ATT Cap 35
----------------------------------... | gpl-3.0 |
destdev/ygopro-scripts | c53199020.lua | 1 | 2374 | --魔轟神ディアネイラ
function c53199020.initial_effect(c)
--summon with 1 tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(53199020,0))
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c53199020.otcon)
e1... | gpl-2.0 |
linuxmaniac/pkg-prosody | net/dns.lua | 1 | 29815 | -- Prosody IM
-- This file is included with Prosody IM. It has modifications,
-- which are hereby placed in the public domain.
-- todo: quick (default) header generation
-- todo: nxdomain, error handling
-- todo: cache results of encodeName
-- reference: http://tools.ietf.org/html/rfc1035
-- reference: http://tools... | mit |
destdev/ygopro-scripts | c77058170.lua | 4 | 1756 | --アンダークロックテイカー
function c77058170.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),2,2)
c:EnableReviveLimit()
--atkdown
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(77058170,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_... | gpl-2.0 |
simonfork/aquaria | game_scripts/scripts/maps/node_sunkencityskip.lua | 6 | 1148 | -- 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 |
Nethertech/Intellectus | cocos2d/plugin/luabindings/auto/api/ProtocolAnalytics.lua | 146 | 2113 |
--------------------------------
-- @module ProtocolAnalytics
-- @extend PluginProtocol
-- @parent_module plugin
--------------------------------
-- brief Track an event begin.<br>
-- param eventId The identity of event
-- @function [parent=#ProtocolAnalytics] logTimedEventBegin
-- @param self
-- @param #char eventI... | mit |
RwNigma/darkstar | scripts/zones/AlTaieu/npcs/qm2.lua | 26 | 1476 | -----------------------------------
-- Area: Al'Taieu
-- NPC: ??? (Jailer of Justice Spawn)
-- Allows players to spawn the Jailer of Justice by trading the Second Virtue, Deed of Moderation, and HQ Xzomit Organ to a ???.
-- @pos , -278 0 -463
-----------------------------------
package.loaded["scripts/zones/AlTaieu/Te... | gpl-3.0 |
destdev/ygopro-scripts | c10712320.lua | 7 | 1667 | --ヴァイロン・スティグマ
function c10712320.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(10712320,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZO... | gpl-2.0 |
RwNigma/darkstar | scripts/globals/items/marinara_pizza.lua | 14 | 1657 | -----------------------------------------
-- ID: 5743
-- Item: marinara_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Health Points 20
-- Attack +20% (cap 50 @ 250 base attack)
-- Accuracy +10% (54)
-- Undead Killer
-----------------------------------------
require("sc... | gpl-3.0 |
rezatak21/TeleTakTaz | plugins/exchange.lua | 352 | 2076 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local function comma_value(n) -- credit http://richard.warburton.it
local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
return left..(num:reverse():gsub('... | gpl-2.0 |
padrinoo/behrooz12 | plugins/exchange.lua | 352 | 2076 | local ltn12 = require "ltn12"
local https = require "ssl.https"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local function comma_value(n) -- credit http://richard.warburton.it
local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
return left..(num:reverse():gsub('... | gpl-2.0 |
RwNigma/darkstar | scripts/globals/spells/curaga_iv.lua | 18 | 1221 | -----------------------------------------
-- Spell: Curaga IV
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------------------... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Port_Jeuno/npcs/Joachim.lua | 29 | 4096 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Joachim
-- @zone 246
-- @pos -52.844 0.000 -9.978
-- CS/Event ID's:
-- 0x0144 = on zoning in
-- 0x0145 = 1st chat, get 1st stone,
-- completes "A Journey Begins"
-- 0x0146 = Limited Menu
-- 0x0147 = CS after "The Truth Beckons" completed.
-- 0x0... | gpl-3.0 |
mynameiscraziu/waqerr | plugins/anti_bot.lua | 369 | 3064 |
local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, ch... | gpl-2.0 |
alimashmamali/BoT-tG | plugins/anti-bot.lua | 369 | 3064 |
local function isBotAllowed (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
local banned = redis:get(hash)
return banned
end
local function allowBot (userId, chatId)
local hash = 'anti-bot:allowed:'..chatId..':'..userId
redis:set(hash, true)
end
local function disallowBot (userId, ch... | gpl-2.0 |
RwNigma/darkstar | scripts/zones/Port_San_dOria/npcs/Thierride.lua | 17 | 2525 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Thierride
-- Type: Quest Giver
-- @zone: 232
-- @pos -67 -5 -28
--
-- Starts and Finishes Quest: A Taste For Meat
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
------------------------... | gpl-3.0 |
ffxijuggalo/darkstar | scripts/zones/Windurst_Waters/npcs/Upih_Khachla.lua | 12 | 1630 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Upih Khachla
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
require("scripts/globals/conquest");
local ID = requir... | gpl-3.0 |
Kong/kong | kong/router/atc.lua | 1 | 13942 | local _M = {}
local _MT = { __index = _M, }
local schema = require("resty.router.schema")
local router = require("resty.router.router")
local context = require("resty.router.context")
local lrucache = require("resty.lrucache")
local server_name = require("ngx.ssl").server_name
local tb_new = require("table.new")
loca... | apache-2.0 |
RwNigma/darkstar | scripts/zones/Northern_San_dOria/npcs/Ulycille.lua | 53 | 1947 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ulycille
-- Type: Woodworking Adv. Synthesis Image Support
-- @pos -183.320 9.999 269.651 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
aboasola/the3tetoo | plugins/owners.lua | 6 | 24349 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY tetoo ▀▄ ▄▀
▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀
▀▄ ▄▀ broadcast : help ar ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀... | gpl-2.0 |
RwNigma/darkstar | scripts/zones/Sacrificial_Chamber/npcs/_4j2.lua | 19 | 1349 | -----------------------------------
-- Area: Sacrificial Chamber
-- NPC: Mahogany Door
-- @pos -260 -33 274 163
-------------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missi... | gpl-3.0 |
RwNigma/darkstar | scripts/globals/items/sakura_biscuit.lua | 36 | 1161 | -----------------------------------------
-- ID: 6010
-- Item: Sakura Biscuit
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Intelligence 3
-- Charisma 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
mitchellwrosen/language-lua | test/samples/2.lua | 3 | 4613 | -- The constructor makes a tuple definition, which has its own intern table
-- tuples may have an optional binding to alias a key to a given tuple index
--[[
Tuples are immutable lists that can be used as table keys because they have
value semantics, that is, the tuple constructor returns the same identity for
the exa... | bsd-3-clause |
destdev/ygopro-scripts | c44968687.lua | 2 | 3715 | --伝説のフィッシャーマン三世
function c44968687.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)
c:RegisterEffect(e1)
--special summon
local e... | gpl-2.0 |
RwNigma/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5eg.lua | 17 | 3315 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #3 (G out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
ffxijuggalo/darkstar | scripts/zones/QuBia_Arena/bcnms/celery.lua | 9 | 1053 | -----------------------------------
-- Celery
-- Qu'Bia Arena BCNM60, Moon Orb
-- !additem 1130
-----------------------------------
require("scripts/globals/battlefield")
-----------------------------------
function onBattlefieldInitialise(battlefield)
battlefield:setLocalVar("loot", 1)
end
function onBattlefield... | gpl-3.0 |
fodinabor/Polycode | bindings/lua/Polycode/SceneSprite.lua | 1 | 2352 | require "Polycode/SceneMesh"
class "SceneSprite" (SceneMesh)
function SceneSprite:SceneSprite(...)
local arg = {...}
if type(arg[1]) == "table" and count(arg) == 1 then
if ""..arg[1].__classname == "SceneMesh" then
self.__ptr = arg[1].__ptr
return
end
end
for k,v in pairs(arg) do
if type(v) == "table... | mit |
RwNigma/darkstar | scripts/zones/RoMaeve/Zone.lua | 2 | 3635 | -----------------------------------
--
-- Zone: RoMaeve (122)
--
-----------------------------------
package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/RoMaeve/TextIDs");
require("scripts/globals/zone");
--... | gpl-3.0 |
Deadwing888/darkstar | scripts/zones/Windurst_Woods/npcs/Harara_WW.lua | 13 | 5537 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Harara, W.W.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Missions ... | gpl-3.0 |
your-gatsby/skynet | lualib/snax/msgserver.lua | 58 | 7383 | local skynet = require "skynet"
local gateserver = require "snax.gateserver"
local netpack = require "netpack"
local crypt = require "crypt"
local socketdriver = require "socketdriver"
local assert = assert
local b64encode = crypt.base64encode
local b64decode = crypt.base64decode
--[[
Protocol:
All the number type ... | mit |
Deadwing888/darkstar | scripts/zones/Arrapago_Reef/npcs/qm4.lua | 30 | 1327 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Nuhn(ZNM T3))
-- @pos -451 -7 389 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
require("scripts/global... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/Arrapago_Reef/npcs/qm4.lua | 30 | 1327 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Nuhn(ZNM T3))
-- @pos -451 -7 389 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
require("scripts/global... | gpl-3.0 |
ffxijuggalo/darkstar | scripts/globals/abilities/reverse_flourish.lua | 12 | 2137 | -----------------------------------
-- Ability: Reverse Flourish
-- Converts remaining finishing moves into TP. Requires at least one Finishing Move.
-- Obtained: Dancer Level 40
-- Finishing Moves Used: 1-5
-- Recast Time: 00:30
-----------------------------------
require("scripts/globals/settings")
require("scripts/g... | gpl-3.0 |
destdev/ygopro-scripts | c31423101.lua | 7 | 2602 | --神剣-フェニックスブレード
function c31423101.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)
e1:SetTarget(c31423101.target)
e1:SetOperation(c31423101.operation)
c:RegisterEffe... | gpl-2.0 |
ffxijuggalo/darkstar | scripts/zones/Nyzul_Isle/mobs/Amnaf_Psycheflayer.lua | 9 | 2030 | -----------------------------------
-- Area: Nyzul Isle (Path of Darkness)
-- Mob: Amnaf Psycheflayer
-----------------------------------
local ID = require("scripts/zones/Nyzul_Isle/IDs")
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------
function onMobInitialize(m... | gpl-3.0 |
Deadwing888/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_545.lua | 13 | 1568 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Involved in Missions: THREE_PATHS
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requir... | gpl-3.0 |
ichramm/LuaNode | test/simple/disabled/test-https-finish-before-handshake.lua | 2 | 1230 | module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local http = require "luanode.http"
local fs = require "luanode.fs"
local crypto = require ("luanode.crypto")
function test()
local google = http.createClient(443, "encrypted.google.com", true)
local request = google:request("G... | mit |
RwNigma/darkstar | scripts/globals/items/leremieu_salad.lua | 35 | 1677 | -----------------------------------------
-- ID: 5185
-- Item: leremieu_salad
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Dexterity 4
-- Agility 4
-- Vitality 6
-- Charisma 4
-- Defense % 25
-- Defense Cap 160
-------------------------------------... | gpl-3.0 |
Kong/kong | kong/pdk/private/checks.lua | 3 | 2243 | local checks = {}
local tostring = tostring
local ipairs = ipairs
local pairs = pairs
local error = error
local type = type
local fmt = string.format
function checks.normalize_multi_header(value)
local tvalue = type(value)
if tvalue == "string" then
return value == "" and " " or value
end
if tvalue =... | apache-2.0 |
maikerumine/grieftest | mods/vines/nodes.lua | 1 | 2414 | minetest.register_node("vines:rope_block", {
description = "Rope",
sunlight_propagates = true,
paramtype = "light",
tiles = {
"default_wood.png^vines_rope.png",
"default_wood.png^vines_rope.png",
"default_wood.png",
"default_wood.png",
"default_wood.png^vines_rope.png",
"default_wood.png... | lgpl-2.1 |
Deadwing888/darkstar | scripts/zones/Meriphataud_Mountains_[S]/npcs/Indescript_Markings.lua | 12 | 1620 | ----------------------------------
-- Area: Meriphataud_Mountains_[S]
-- NPC: Indescript Markings
-- Type: Quest
-- @pos -389 -9 92 1 96
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Meriphatau... | gpl-3.0 |
RwNigma/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fn.lua | 34 | 2569 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: North Plate
-- @pos 180 -34 71 195
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-------------------------... | gpl-3.0 |
destdev/ygopro-scripts | c53251824.lua | 6 | 1676 | --RR-バニシング・レイニアス
function c53251824.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(c53251824.spcon)
e1:SetTarget(c53251824.sptg)
e1:SetOperation(c53251824... | gpl-2.0 |
destdev/ygopro-scripts | c20522190.lua | 6 | 1031 | --邪悪なるバリア -ダーク・フォース-
function c20522190.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c20522190.condition)
e1:SetTarget(c20522190.target)
e1:SetOperation(c20522190.activate)
c:Regis... | gpl-2.0 |
RwNigma/darkstar | scripts/globals/effects/aftermath_lv1.lua | 18 | 1105 | -----------------------------------
--
-- EFFECT_AFTERMATH_LV1
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
if... | gpl-3.0 |
destdev/ygopro-scripts | c3790062.lua | 2 | 1404 | --No.65 裁断魔人ジャッジ・バスター
function c3790062.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_DARK),2,2)
c:EnableReviveLimit()
--negate activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(3790062,0))
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DAMA... | gpl-2.0 |
elptito/EmptyEpsilon | scripts/tutorial_02_helm.lua | 1 | 10603 | -- Name: Helm
-- Description: [Station Tutorial]
--- -------------------
--- -Goes over controlling movement of the ship.
---
--- [Station Info]
--- -------------------
--- Data:
--- -In the upper-left corner, the Helms officer's screen displays the ship's energy (max is 1,000), current heading in degrees, and current... | gpl-2.0 |
destdev/ygopro-scripts | c18960169.lua | 4 | 1685 | --ゴブリン陽動部隊
function c18960169.initial_effect(c)
--draw
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(18960169,0))
e1:SetCategory(CATEGORY_DRAW)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DAMAGE)
e1:SetCondition(c1896016... | gpl-2.0 |
Deadwing888/darkstar | scripts/globals/weaponskills/steel_cyclone.lua | 11 | 1585 | -----------------------------------
-- Steel Cyclone
-- Great Axe weapon skill
-- Skill level: 240
-- Delivers a single-hit attack. Damage varies with TP.
-- In order to obtain Steel Cyclone, the quest The Weight of Your Limits must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget, Aqua ... | gpl-3.0 |
Deadwing888/darkstar | scripts/zones/West_Ronfaure/npcs/Signpost.lua | 7 | 1351 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Signpost
-- @zone 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
fu... | gpl-3.0 |
ffxijuggalo/darkstar | scripts/zones/Crawlers_Nest_[S]/npcs/Kalsu-Kalasu.lua | 12 | 1248 | -----------------------------------
-- Area: Crawlers Nest [S]
-- NPC: Kalsu-Kalasu
-- !pos 304.768 -33.519 -19.168 171
-- Notes: Gives Green Letter required to start "Snake on the plains"
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
local ID = require("... | gpl-3.0 |
RwNigma/darkstar | scripts/globals/items/leremieu_taco.lua | 35 | 1867 | -----------------------------------------
-- ID: 5175
-- Item: leremieu_taco
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Magic 20
-- Dexterity 4
-- Agility 4
-- Vitality 6
-- Charisma 4
-- Health Regen While Healing 1
-- Magic Regen While Healing 1
-- Defense ... | gpl-3.0 |
Deadwing888/darkstar | scripts/zones/Windurst_Woods/npcs/Boizo-Naizo.lua | 13 | 1605 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Boizo-Naizo
-- Involved in Quest: Riding on the Clouds
-- @zone 241
-- @pos -9.581 -3.75 -26.062
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
ffxijuggalo/darkstar | scripts/globals/mobskills/tribulation.lua | 12 | 1180 | ---------------------------------------------
-- Tribulation
--
-- Description: Inflicts Bio and blinds all targets in an area of effect.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: AoE
-- Notes: Bio effect can take away up to 39/tick.
---------------------------------------------
requ... | gpl-3.0 |
CoolProp/CoolProp | wrappers/Lua/coolprop/ffi.lua | 5 | 4797 | local ffi = require "ffi"
local ffi_new = ffi.new
local ffi_str = ffi.string
local ffi_load = ffi.load
local ffi_cdef = ffi.cdef
local ffi_typeof = ffi.typeof
local pcall = pcall
local huge = math.huge
ffi_cdef[[
double Props1SI(const char *FluidName, const char* Output);
double PropsSI(cons... | mit |
angt/overthebox | feeds/luci/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua | 5 | 1595 | -- Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local fs = require("nixio.fs")
local util = require("luci.util")
local uci = require("luci.model.uci").cursor()
local input = uci:get("adblock", "global", "adb_whitelist") or "/etc/adblo... | gpl-3.0 |
ffxijuggalo/darkstar | scripts/globals/items/bean_daifuku_+1.lua | 11 | 2005 | -----------------------------------------
-- ID: 6342
-- Item: bean_daifuku_+1
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP +30
-- VIT +4
-- Accuracy +11% (cap 54)
-- Ranged Accuracy +11% (cap 54)
-- Pet:
-- HP +30
-- VIT +4
-- Accuracy +11% (cap 81)
-- Ranged Accuracy +11% (cap 81)... | gpl-3.0 |
destdev/ygopro-scripts | c96947648.lua | 4 | 1147 | --サルベージ
function c96947648.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c96947648.target)
e1:SetOperation(c96947648.activate)
c:RegisterEffect(e1)
e... | gpl-2.0 |
destdev/ygopro-scripts | c62706865.lua | 4 | 1191 | --ドラコネット
function c62706865.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(62706865,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c62706865.sptg)
e1:SetOperation(c6270686... | gpl-2.0 |
Deadwing888/darkstar | scripts/globals/items/steamed_catfish.lua | 18 | 1496 | -----------------------------------------
-- ID: 4557
-- Item: steamed_catfish
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 30
-- Magic % 1
-- Vitality 3
-- Intelligence 1
-- Mind -3
-- Earth Res 10
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
destdev/ygopro-scripts | c303660.lua | 6 | 2406 | --電脳増幅器
function c303660.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_CANNOT_DISABLE)
e1:SetTarget(c303660.target)
e1:SetOperation(c303660.operation)
c... | gpl-2.0 |
destdev/ygopro-scripts | c76218643.lua | 7 | 1444 | --ブラックポータン
function c76218643.initial_effect(c)
--lp damage
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetCondition(c76218643.indcon)
e1:SetValue(1)
c:RegisterEffect(e1)
--lp recover
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(... | gpl-2.0 |
your-gatsby/skynet | lualib/skynet/remotedebug.lua | 54 | 5502 | local skynet = require "skynet"
local debugchannel = require "debugchannel"
local socket = require "socket"
local injectrun = require "skynet.injectcode"
local table = table
local debug = debug
local coroutine = coroutine
local sethook = debugchannel.sethook
local M = {}
local HOOK_FUNC = "raw_dispatch_message"
loca... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.