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 |
|---|---|---|---|---|---|
bn7/darkstar | scripts/globals/items/smilodon_liver.lua | 12 | 1347 | -----------------------------------------
-- ID: 5668
-- Item: Smilodon Liver
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChec... | gpl-3.0 |
brimworks/lua-cjson | lua/cjson/util.lua | 170 | 6837 | local json = require "cjson"
-- Various common routines used by the Lua CJSON package
--
-- Mark Pulford <mark@kyne.com.au>
-- Determine with a Lua table can be treated as an array.
-- Explicitly returns "not an array" for very sparse arrays.
-- Returns:
-- -1 Not an array
-- 0 Empty table
-- >0 Highest index ... | mit |
bn7/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g2.lua | 14 | 1103 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g2 (Door A)
-- @pos -4.001 -42.4 -25.5 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
---------------------------... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/crayfish.lua | 12 | 1445 | -----------------------------------------
-- ID: 4472
-- Item: crayfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -3
-- Vitality 1
-- defense +10% (unknown cap)
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Walls/npcs/HomePoint#2.lua | 27 | 1270 | -----------------------------------
-- Area: Windurst Walls
-- NPC: HomePoint#2
-- @pos -212 0.001 -99 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Walls/TextIDs");
require("scripts/globals/h... | gpl-3.0 |
bn7/darkstar | scripts/zones/RuLude_Gardens/npcs/Albiona.lua | 17 | 1393 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Albiona
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/globals/quests");
-... | gpl-3.0 |
simonemainardi/ntopng | scripts/lua/iface_local_stats.lua | 1 | 2922 | --
-- (C) 2013-17 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
if((dirs.scriptdir ~= nil) and (dirs.scriptdir ~= "")) then package.path = dirs.scriptdir .. "/lua/modules/?.lua;" .. package.path end
require "lua_utils"
sendHTTPHeader('text/html; c... | gpl-3.0 |
bn7/darkstar | scripts/zones/Misareaux_Coast/npcs/qm1.lua | 14 | 1355 | -----------------------------------
-- Area: Misareaux_Coast
-- NPC: ??? (Spawn Gration)
-- @pos 113.563 -16.302 38.912 25
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Misareaux_Coast/TextIDs");
---------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Waters/npcs/Chamama.lua | 17 | 6585 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Chamama
-- Involved In Quest: Inspector's Gadget
-- Starts Quest: In a Pickle
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Wind... | gpl-3.0 |
frankyifei/koreader | plugins/kosync.koplugin/main.lua | 2 | 11121 | local InputContainer = require("ui/widget/container/inputcontainer")
local LoginDialog = require("ui/widget/logindialog")
local InfoMessage = require("ui/widget/infomessage")
local ConfirmBox = require("ui/widget/confirmbox")
local DocSettings = require("docsettings")
local NetworkMgr = require("ui/networkmgr")
local U... | agpl-3.0 |
bn7/darkstar | scripts/zones/Norg/npcs/Chiyo.lua | 14 | 1298 | -----------------------------------
-- Area: Norg
-- NPC: Chiyo
-- Type: Tenshodo Merchant
-- @pos 5.801 0.020 -18.739 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");... | gpl-3.0 |
frankyifei/koreader | frontend/ui/widget/inputtext.lua | 1 | 5205 | local InputContainer = require("ui/widget/container/inputcontainer")
local FrameContainer = require("ui/widget/container/framecontainer")
local ScrollTextWidget = require("ui/widget/scrolltextwidget")
local TextBoxWidget = require("ui/widget/textboxwidget")
local GestureRange = require("ui/gesturerange")
local Blitbuff... | agpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c22101.lua | 1 | 1179 |
--红魔-红美铃
function c22101.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22101,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_END)
e1:SetCondition(c22101.retcon)
e1:SetTarget(c22101.rettg)
e1:SetOpera... | gpl-2.0 |
JandCandO/Lua_Encryption_Code | OTP.lua | 1 | 2614 |
--editables START
local standardKeyLength=128
local numberOfKeys=3
math.randomseed(os.time())
--editables END
local alphabet={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v"... | mit |
omid1212/hhhh | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
Dysoch/DyWorld | DyComPa/data/tech/last-fixes.lua | 1 | 2340 |
function DyComPa_Prereq_Tech_Fix(TECH, ARG)
if data.raw.technology[TECH] then
data.raw.technology[TECH].prerequisites = ARG
end
end
function DyComPa_Ingre_Tech_Fix(TECH, ARG)
if data.raw.technology[TECH] then
data.raw.technology[TECH].unit.count = 1
data.raw.technology[TECH].unit.in... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/dragon_steak.lua | 12 | 1975 | -----------------------------------------
-- ID: 4350
-- Item: dragon_steak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 25
-- Strength 7
-- Intelligence -3
-- Health Regen While Healing 2
-- MP recovered while healing +2
-- Attack % 20
-- Attack Cap 150
-- Ranged ATT % 20
-- Ra... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c40009.lua | 1 | 1396 |
--剑舞姬-艾莉丝‧法兰格尔托
function c40009.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40009,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCost(c40009.cost)
e1:SetTarget(c40009.... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c999506.lua | 1 | 2359 | --持花✿妖精☆
local M = c999506
local Mid = 999506
function M.initial_effect(c)
--lvup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Mid, 0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0, 0x1c0)
e1:SetRange(LOCATIO... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c24043.lua | 1 | 3941 |
--四天王奥义「三步必杀」
function c24043.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c24043.activate)
c:RegisterEffect(e1)
end
function c24043.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--turn count
local e0=Effec... | gpl-2.0 |
bn7/darkstar | scripts/zones/East_Sarutabaruta/npcs/Sama_Gohjima.lua | 14 | 1498 | -----------------------------------
-- Area: East Sarutabaruta
-- NPC: Sama Gohjima
-- Involved in Mission: The Horutoto Ruins Experiment (optional)
-- @pos 377 -13 98 116
-----------------------------------
package.loaded["scripts/zones/East_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
LuaDist2/kong | spec/03-plugins/10-key-auth/01-api_spec.lua | 2 | 9769 | local cjson = require "cjson"
local helpers = require "spec.helpers"
describe("Plugin: key-auth (API)", function()
local consumer
local admin_client
setup(function()
helpers.run_migrations()
assert(helpers.dao.apis:insert {
name = "keyauth1",
upstream_url = "http://mockbin.com",
hosts ... | apache-2.0 |
nulian/InlineAura | libs/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua | 8 | 6517 | -- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0
-- Widget created by Yssaril
local AceGUI = LibStub("AceGUI-3.0")
local Media = LibStub("LibSharedMedia-3.0")
local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
do
local widgetType = "LSM30_Background"
local widgetVersion = 10
local ... | gpl-2.0 |
nulian/InlineAura | libs/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua | 59 | 2966 | --[[-----------------------------------------------------------------------------
InlineGroup Container
Simple container widget that creates a visible "box" with an optional title.
-------------------------------------------------------------------------------]]
local Type, Version = "InlineGroup", 21
local AceGUI = Li... | gpl-2.0 |
bn7/darkstar | scripts/globals/spells/drain.lua | 2 | 1675 | -----------------------------------------
-- Spell: Drain
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
-----------------------------------------
-- OnSpellCast
--------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/VeLugannon_Palace/npcs/qm1.lua | 13 | 2041 | -----------------------------------
-- Area: VeLugannon Palace
-- NPC: ??? (qm1)
-- @pos -370.039 16.014 -274.378 177
-----------------------------------
package.loaded["scripts/zones/VeLugannon_Palace/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/VeLugannon_Palace/TextIDs");
----------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Attohwa_Chasm/npcs/Cradle_of_Rebirth.lua | 17 | 1990 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Cradle_of_Rebirth
-----------------------------------
package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Attohwa_Chasm/TextIDs");
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
gboleda/reference | first_encounter/oracle/train.lua | 1 | 22188 | -- preambles
require('nn')
require('nngraph')
require('optim')
require('../../LinearNB') -- for linear mappings without bias
require('../../Peek')
require('../Broadcast')
require('../Normalization')
-- making sure random is random!
math.randomseed(os.time())
-- ******* options *******
cmd = torch.CmdLine()
-- ru... | gpl-3.0 |
simonemainardi/ntopng | third-party/i18n.lua-master/i18n/variants.lua | 36 | 1195 | local variants = {}
local function reverse(arr, length)
local result = {}
for i=1, length do result[i] = arr[length-i+1] end
return result, length
end
local function concat(arr1, len1, arr2, len2)
for i = 1, len2 do
arr1[len1 + i] = arr2[i]
end
return arr1, len1 + len2
end
function variants.ancestry(... | gpl-3.0 |
dark-al/rspamd | test/lua/compat_env.lua | 11 | 13692 | --[[
compat_env v$(_VERSION) - Lua 5.1/5.2 environment compatibility functions
SYNOPSIS
-- Get load/loadfile compatibility functions only if using 5.1.
local CL = pcall(load, '') and _G or require 'compat_env'
local load = CL.load
local loadfile = CL.loadfile
-- The following now works in both Lua... | bsd-2-clause |
bn7/darkstar | scripts/globals/items/fulm-long_salmon_sub.lua | 12 | 1486 | -----------------------------------------
-- ID: 4266
-- Item: fulm-long_salmon_sub
-- Food Effect: 60Min, All Races
-----------------------------------------
-- DEX +2
-- VIT +1
-- AGI +1
-- INT +2
-- MND -2
-- Ranged Accuracy +3
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Upper_Jeuno/npcs/Appollonia.lua | 59 | 1039 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Appollonia
-- Type: Weather Reporter
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Upper_Jeuno/TextIDs");
--... | gpl-3.0 |
Tarjei400/Howl | external/Busted.lua | 1 | 2551 | --- Tasks for the lexer
-- @module external.Busted
local combine, exists, isDir, loadfile, verbose = fs.combine, fs.exists, fs.isDir, loadfile, Utils.Verbose
local busted = busted
local names = {"busted.api.lua", "../lib/busted.api.lua", "busted.api", "../lib/busted.api", "busted", "../lib/busted"}
local function lo... | mit |
bn7/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Engelhart.lua | 17 | 3579 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Engelhart
-- Quest NPC
-- pos -79 -4 -125
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
require("scrip... | gpl-3.0 |
bn7/darkstar | scripts/zones/Port_Windurst/npcs/Yaman-Hachuman.lua | 14 | 1795 | -----------------------------------
-- Area: Port Windurst
-- NPC: Yaman-Hachuman
-- Type: Standard NPC
-- Involved in Quests: Wonder Wands
-- @pos -101.209 -4.25 110.886 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c888174.lua | 1 | 1114 | --七曜-金水符「水银之毒」
function c888174.initial_effect(c)
--damage
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(888174,1))
e4:SetType(EFFECT_TYPE_ACTIVATE)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetCost(c888174.cost)
e4:SetTarget(c888174.target)
e4:SetOperation(c888174.operation)
c:RegisterEffect(e4)
end
f... | gpl-2.0 |
nolansingroy/cocos2d-x-samples | samples/FantasyWarrior3D/src/actors/Actor.lua | 8 | 15721 | require "Helper"
require "AttackCommand"
require "GlobalVariables"
--type
Actor = class ("Actor", function ()
local node = cc.Sprite3D:create()
node:setCascadeColorEnabled(true)
return node
end)
function Actor:ctor()
self._action = {}
copyTable(ActorDefaultValues,self)
copyTable(ActorCommonValu... | mit |
KnockSoftware/osrm-backend | profiles/rasterbotinterp.lua | 9 | 1192 | -- Rasterbot with interpolation profile
functions = require('rasterbot')
functions.process_segment = function(profile, segment)
local sourceData = raster:interpolate(profile.raster_source, segment.source.lon, segment.source.lat)
local targetData = raster:interpolate(profile.raster_source, segment.target.lon, segm... | bsd-2-clause |
bn7/darkstar | scripts/zones/Rabao/npcs/Guinavie.lua | 5 | 1719 | -----------------------------------
-- Area: Rabao
-- NPC: Guinavie
-- Chocobo Vendor
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
-- onTrade Actio... | gpl-3.0 |
bn7/darkstar | scripts/globals/mobskills/sand_pit.lua | 14 | 1738 | ---------------------------------------------------
-- Sand Pit
-- Single target bind
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMo... | gpl-3.0 |
bn7/darkstar | scripts/zones/Port_Bastok/npcs/Blabbivix.lua | 14 | 1200 | -----------------------------------
-- Area: Port Bastok
-- NPC: Blabbivix
-- Standard merchant, though he acts like a guild merchant
-- @pos -110.209 4.898 22.957 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
bn7/darkstar | scripts/globals/equipment.lua | 23 | 3247 | require("scripts/globals/status");
BaseNyzulWeapons = {
18492, -- (WAR) Sturdy Axe
18753, -- (MNK) Burning Fists
18851, -- (WHM) Werebuster
18589, -- (BLM) Mage's Staff
17742, -- (RDM) Vorpal Sword
... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c27030.lua | 1 | 2044 | --入魔『快速尸解』
function c27030.initial_effect(c)
--td
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c27030.cost)
e1:SetTarget(c27030.tg)
e1:SetOperation(c27030.op)
c:RegisterEffect(e... | gpl-2.0 |
nolansingroy/cocos2d-x-samples | samples/KillBug/src/cocos/network/DeprecatedNetworkFunc.lua | 61 | 1123 | if nil == cc.XMLHttpRequest then
return
end
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of WebSocket will be deprecated begin
local targetPlatform = CCApplication:getInstance():get... | mit |
bn7/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Naja_Salaheem.lua | 6 | 8997 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Naja Salaheem
-- Type: Standard NPC
-- @pos 22.700 -8.804 -45.591 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_W... | gpl-3.0 |
bn7/darkstar | scripts/zones/Upper_Delkfutts_Tower/mobs/Autarch.lua | 17 | 1709 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NM: Autarch
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
... | gpl-3.0 |
bn7/darkstar | scripts/zones/Rolanberry_Fields/TextIDs.lua | 7 | 1197 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6401; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6407; -- Obtained: <item>.
GIL_OBTAINED = 6408; -- Obtained <number> gil.
NOT_ENOUGH_GIL = 6412; -- You do n... | gpl-3.0 |
martinlundaskoe/IntelligentLoot | IntelligentLoot.lua | 1 | 17205 | -- Author : Martin Lund Askøe (Ðoctorion - Aggramar)
-- Create Date : 21/10/2013
IntelligentLoot = LibStub("AceAddon-3.0"):NewAddon("IntelligentLoot", "AceEvent-3.0", "AceConsole-3.0");
local Locale = LibStub("AceLocale-3.0"):GetLocale("IntelligentLoot", true);
local AutoLootKey = "Auto";
local MoneyLoot... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c15066.lua | 1 | 4363 | --魔界之晖光创造✿神绮
function c15066.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetValue(1)
e1:SetCondition(c15066.spcon)
e1:SetOperation(c15066.spop)
c:RegisterE... | gpl-2.0 |
omid1212/hhhh | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
Arashbrsh/trea | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c24100.lua | 1 | 5149 | --哈德曼的妖怪少女✿古明地恋
function c24100.initial_effect(c)
--synchro summon
Nef.AddSynchroProcedureWithDesc(c,aux.FilterBoolFunction(Card.IsSetCard,0x514a),aux.NonTuner(nil),1,aux.Stringid(24100,0))
c:EnableReviveLimit()
--special summon rule
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(24100,1))
e1:Set... | gpl-2.0 |
bn7/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Matifa.lua | 14 | 1040 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Matifa
-- Type: Standard NPC
-- @pos -10.583 -1 -8.820 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c20110.lua | 1 | 4285 | --夜棱镜✿虹川三姐妹
function c20110.initial_effect(c)
--tribute check
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_MATERIAL_CHECK)
e0:SetValue(c20110.valcheck)
c:RegisterEffect(e0)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSU... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c14062.lua | 1 | 2066 | --最凶极恶的双子姐妹✿幻月
function c14062.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(14062,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSU... | gpl-2.0 |
bn7/darkstar | scripts/zones/Uleguerand_Range/npcs/Zebada.lua | 2 | 2391 | -----------------------------------
-- Area: Uleguerand Range
-- NPC: Zebada
-- Type: ENM Quest Activator
-- @pos -308.112 -42.137 -570.096 5
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Uleguerand_Rang... | gpl-3.0 |
bn7/darkstar | scripts/zones/Quicksand_Caves/npcs/Treasure_Coffer.lua | 13 | 4641 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Treasure Coffer
-- @zone 208
-- @pos 615 -6 -681
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/key... | gpl-3.0 |
bn7/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Gun.lua | 17 | 1478 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Gun
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEngaged... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c22024.lua | 1 | 3572 | --红魔-蕾米莉亚·斯卡雷特
function c22024.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsSetCard,0x208),1)
c:EnableReviveLimit()
--Destroy
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CHAIN_UNIQUE)
e1:SetDescription(aux.Stringid(22024,0)... | gpl-2.0 |
simonemainardi/ntopng | scripts/lua/get_treemap.lua | 1 | 1279 | --
-- (C) 2013-17 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('application/json')
interface.select(ifname)
hosts_stats = interface.getHostsInfo()
hosts_stats = hosts_stats["hosts"]
print [[
{
"name": "flare"... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/bluemagic/diamondhide.lua | 27 | 1143 | -----------------------------------------
-- Spell: Diamondhide
-- Gives party members within area of effect the effect of "Stoneskin"
-- Spell cost: 99 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1
-- Level: 67
-- Casting Time: 7 seconds
-- Recast Time: 1 minu... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Tahl_Mhioguch.lua | 14 | 1066 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Tahl Mhioguch
-- Type: Standard NPC
-- @zone 94
-- @pos -64.907 -5.947 81.391
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
bn7/darkstar | scripts/zones/Northern_San_dOria/npcs/Lucretia.lua | 14 | 1206 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Lucretia
-- Guild Merchant NPC: Blacksmithing Guild
-- @pos -193.729 3.999 159.412 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
sarahgerweck/Ace3 | tests/AceTimer-3.0-ACE94.lua | 1 | 5382 | -- Test for ACE-94: memory reclaiming of table indices
dofile("wow_api.lua")
dofile("LibStub.lua")
local MAJOR = "AceTimer-3.0"
dofile("../"..MAJOR.."/"..MAJOR..".lua")
local AceTimer,minor = LibStub:GetLibrary(MAJOR)
local function dummy() end
local VERBOSE = strmatch(arg[1] or "", "v")
-- Initial memory that w... | bsd-3-clause |
Thadah/GarryWare13 | gamemode/wareminigames/calc.lua | 1 | 2230 | WARE = {}
WARE.Author = "Hurricaaane (Ha3)"
WARE.Room = "none"
WARE.CorrectColor = Color(0,0,0,255)
WARE.ChatCorrect = Color(0,192,0,0)
WARE.ChatWrong = Color(192,0,0,0)
WARE.ChatBleh = Color(192,192,0,0)
WARE.ChatRegular = Color(255,255,255,0)
function WARE:Initialize()
GAMEMODE:EnableFirstWinAward( )
GAM... | gpl-2.0 |
bn7/darkstar | scripts/globals/weaponskills/viper_bite.lua | 18 | 1699 | -----------------------------------
-- Viper Bite
-- Dagger weapon skill
-- Skill level: 100
-- Deals double damage and Poisons target. Duration of poison varies with TP.
-- Doubles attack and not damage.
-- Despite the animation showing two swings, this is a single-hit weapon skill.
-- Will stack with Sneak Attack.
--... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/chunk_of_homemade_cheese.lua | 12 | 1871 | -----------------------------------------
-- ID: 5225
-- Item: chunk_of_homemade_cheese
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 10
-- Accuracy +12% (cap 80)
-- Attack +10% (cap 40)
-- Ranged Accuracy +12% (cap 80)
-- Ranged Attack +10% (cap 40)
------------------------------... | gpl-3.0 |
lagerstrom/urpuppet | modules/awesome/files/awesome_config_old/vicious/widgets/cpu.lua | 4 | 2006 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2011, Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Lucas de Vries <lucas@glacicle.com>
-- * (c) 2011, Jörg Thalheim <jthalheim@gmail.com>
---------------------------------------------------
-- {{{ Grab ... | apache-2.0 |
bn7/darkstar | scripts/zones/Bastok_Markets/npcs/Balthilda.lua | 14 | 1716 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Balthilda
-- Type: Merchant
-- @zone 235
-- @pos -300 -10 -161
--
-- NPC not found in 'npc_list'
--
-- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and game... | gpl-3.0 |
li-wl/kong | kong/plugins/cors/handler.lua | 2 | 4096 | local BasePlugin = require "kong.plugins.base_plugin"
local responses = require "kong.tools.responses"
local req_get_method = ngx.req.get_method
local re_find = ngx.re.find
local concat = table.concat
local tostring = tostring
local ipairs = ipairs
local CorsHandler = BasePlugin:e... | apache-2.0 |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua | 76 | 1096 | --[[
Luci statistics - cpu plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache... | gpl-2.0 |
bn7/darkstar | scripts/zones/Al_Zahbi/npcs/Hadibal.lua | 14 | 1035 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Hadibal
-- Type: Standard NPC
-- @zone 48
-- @pos -34.345 -1 -38.842
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
copycat-killer/lain | widget/alsa.lua | 4 | 1481 | --[[
Licensed under GNU General Public License v2
* (c) 2013, Luca CPZ
* (c) 2010, Adrian C. <anrxc@sysphere.org>
--]]
local helpers = require("lain.helpers")
local shell = require("awful.util").shell
local wibox = require("wibox")
local string = string
-- ALSA volume
-- lain.widget.alsa
loca... | gpl-2.0 |
yinjun322/quick-ng | quick/samples/touch/src/app/scenes/TestSingleTouch3Scene.lua | 8 | 5800 |
import("..includes.functions")
local TestSingleTouch3Scene = class("TestSingleTouch3Scene", function()
return display.newScene("TestSingleTouch3Scene")
end)
function TestSingleTouch3Scene:ctor()
-- 这个标志变量用于在触摸事件捕获阶段决定是否接受事件
self.isTouchCaptureEnabled_ = true
-- parentButton 是 button1 的父节点
self.p... | mit |
nimishzynga/treelstm | models/BinaryTreeLSTM.lua | 10 | 5977 | --[[
A Binary Tree-LSTM with input at the leaf nodes.
--]]
local BinaryTreeLSTM, parent = torch.class('treelstm.BinaryTreeLSTM', 'treelstm.TreeLSTM')
function BinaryTreeLSTM:__init(config)
parent.__init(self, config)
self.gate_output = config.gate_output
if self.gate_output == nil then self.gate_output = tr... | gpl-2.0 |
bn7/darkstar | scripts/zones/Abyssea-Attohwa/npcs/qm5.lua | 5 | 1341 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: qm5 (???)
-- Spawns Kharon
-- @pos ? ? ? 215
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
nimishzynga/treelstm | util/Vocab.lua | 11 | 2457 | --[[
A vocabulary object. Initialized from a file with one vocabulary token per line.
Maps between vocabulary tokens and indices. If an UNK token is defined in the
vocabulary, returns the index to this token if queried for an out-of-vocabulary
token.
--]]
local Vocab = torch.class('treelstm.Vocab')
function Vocab:_... | gpl-2.0 |
avatartg/avatarbot | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
Dr0virus/ra | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-domy/domy.lua | 1 | 6201 |
domy={}
local function usunDom(id)
if isElement(domy[id].wyjscie) then destroyElement(domy[id].wyjscie) end
if isElement(domy[id].wejscie) then destroyElement(domy[id].wejscie) end
if isElement(domy[id].cs) then destroyElement(domy[id].cs) end
if isElement(domy[id].text) then destroyElement(domy[id]... | mit |
copycat-killer/lain | widget/contrib/moc.lua | 4 | 3745 | --[[
Licensed under GNU General Public License v2
* (c) 2014, anticlockwise <http://github.com/anticlockwise>
--]]
local helpers = require("lain.helpers")
local shell = require("awful.util").shell
local focused = require("awful.screen").focused
local escape_f = require("awful.util").e... | gpl-2.0 |
bn7/darkstar | scripts/zones/Windurst_Woods/npcs/Sariale.lua | 5 | 1975 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Sariale
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
-... | gpl-3.0 |
rameshvarun/RetroBoy | examples/helloworld/main.lua | 1 | 2636 | -- retroboy.update is called every frame, with the time since the previous frame as an argument.
local time = 0.0
function retroboy.update(dt) time = time + dt end
-- Data for the Hello World text.
local hello_world = {
{1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1... | mit |
tst2005/luarocks | src/luarocks/admin_remove.lua | 18 | 3330 |
--- Module implementing the luarocks-admin "remove" command.
-- Removes a rock or rockspec from a rocks server.
--module("luarocks.admin_remove", package.seeall)
local admin_remove = {}
package.loaded["luarocks.admin_remove"] = admin_remove
local cfg = require("luarocks.cfg")
local util = require("luarocks.util")
loc... | mit |
XJMLN/MTA-PSZ | resources/[PSZMTA]/psz-eventy/znajdzki.lua | 1 | 5642 | --[[
Core - elementy do zbierania: totemy
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-core
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
totemy = {}
local a_totem=nil
local function usunTotem(id)
... | mit |
omid1212/hhhh | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
bestofkeeperbot/keeperbot | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
bn7/darkstar | scripts/zones/Windurst_Woods/npcs/Pew_Sahbaraef.lua | 14 | 1054 | ----------------------------------
-- Area: Windurst Woods
-- NPC: Pew Sahbaraef
-- Type: Item Deliverer
-- @zone 241
-- @pos 61.899 -2.5 -112.956
--
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zones/Windurst_Woods/TextIDs");
----------------... | gpl-3.0 |
kosmotaur/hammerspoon-ping-menu | pingMenu.lua | 1 | 1617 | local pingMenubar = hs.menubar.new()
local function splitByNewline(str)
local t = {}
local function helper(line) table.insert(t, line) return '' end
helper((str:gsub('(.-)\n', helper)))
return t
end
local host = 'bbc.co.uk'
local function askForHost()
local dialogAS = [[
set hostname to text returned of (... | unlicense |
yinjun322/quick-ng | cocos/scripting/lua-bindings/script/cocos2d/DeprecatedOpenglEnum.lua | 148 | 11934 | -- This is the DeprecatedEnum
DeprecatedClass = {} or DeprecatedClass
_G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT
_G.GL_LINE_WIDTH = gl.LINE_WIDTH
_G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA
_G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA
_G.GL_GREEN_BITS = gl.GREEN_BITS
_G.GL_STENCIL_REF = gl.STENCI... | mit |
bn7/darkstar | scripts/globals/spells/bluemagic/warm-up.lua | 27 | 1924 | -----------------------------------------
-- Spell: Warm-Up
-- Enhances accuracy and evasion
-- Spell cost: 59 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 4
-- Stat Bonus: VIT+1
-- Level: 68
-- Casting Time: 7 seconds
-- Recast Time: 120 seconds
-- Duration: 180 seconds
--
-- Com... | gpl-3.0 |
avatartg/avatarbot | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
bn7/darkstar | scripts/globals/weaponskills/final_heaven.lua | 19 | 2208 | -------------------------------
-- Skill: Final Heaven
-- H2H weapon skill
-- Skill Level N/A
-- Additional effect: temporarily enhances Subtle Blow effect.
-- Mods : VIT:60%
-- 100%TP 200%TP 300%TP
-- 3.0x 3.0x 3.0x
-- +10 Subtle Blow for a short duration after using the weapon skill. (Not implement... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c26054.lua | 1 | 1293 |
--光魔「星之漩涡」
function c26054.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c26054.condition)
e1:SetTarget(c26054.target)
e1:SetOperation(c26054.activate)
c:RegisterEffect(e1)
end
... | gpl-2.0 |
bn7/darkstar | scripts/zones/Southern_San_dOria/npcs/Alaune.lua | 14 | 1492 | -----------------------------------
-- Area: Southern San d`Oria
-- NPC: Alaune
-- Type: Tutorial NPC
-- @zone 230
-- @pos -90 1 -56
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/Te... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c22240.lua | 1 | 3146 | --星耀魔女✿帕秋莉·诺蕾姬
function c22240.initial_effect(c)
--fusion material
c:EnableReviveLimit()
Fus.AddFusionProcFunMulti(c,true,aux.FilterBoolFunction(Card.IsFusionAttribute,ATTRIBUTE_LIGHT),aux.FilterBoolFunction(Card.IsFusionAttribute,ATTRIBUTE_DARK),
aux.FilterBoolFunction(Card.IsFusionAttribute,ATTRIBUTE_WIND))
--to... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c21071.lua | 1 | 1930 | --因幡的欺诈师 帝
function c21071.initial_effect(c)
--draw
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(21071,0))
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c21071.target)
e1:SetOperation(c21071.operation)
c:RegisterEf... | gpl-2.0 |
bn7/darkstar | scripts/zones/Caedarva_Mire/npcs/Logging_Point.lua | 17 | 1085 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/Caedarva_Mire/TextIDs");
---------------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c20150.lua | 1 | 2568 |
--上海人形②✿
function c20150.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20150,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCos... | gpl-2.0 |
aleju/sky-generator | models_c2f.lua | 1 | 3099 | require 'torch'
require 'nn'
require 'LeakyReLU'
require 'dpnn'
require 'layers.cudnnSpatialConvolutionUpsample'
local models = {}
-- Returns a G for given dimensions and cuda mode.
-- @param dimensions Table of image dimensions, i.e. {channels, height, width}.
-- @param noiseDim Currently ignored.
-- @param cuda Whe... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.