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
Zenny89/darkstar
scripts/zones/Ghelsba_Outpost/bcnms/toadal_recall.lua
19
1479
----------------------------------- -- Area: Ghelsba Outpost -- Name: toadal_recall BCNM30 -- @pos -162 -11 78 140 ----------------------------------- package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"...
gpl-3.0
mercury233/ygopro-scripts
c96864811.lua
2
1649
--禁じられた聖衣 function c96864811.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_DAMAGE_STEP,TIMINGS_CHECK_MONSTER+TIMI...
gpl-2.0
Zenny89/darkstar
scripts/zones/Throne_Room/npcs/_4l1.lua
17
2080
----------------------------------- -- Area: Throne Room -- NPC: Throne Room -- Type: Door -- @pos -111 -6 0 165 ------------------------------------- package.loaded["scripts/zones/Throne_Room/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/global...
gpl-3.0
mercury233/ygopro-scripts
c26847978.lua
2
2912
--鉄獣戦線 徒花のフェリジット function c26847978.initial_effect(c) --link summon aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_BEAST+RACE_BEASTWARRIOR+RACE_WINDBEAST),2,2) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(26847978,0)) e1:SetCategory(CAT...
gpl-2.0
mercury233/ygopro-scripts
c86170989.lua
9
2331
--ファルシオンβ function c86170989.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(86170989,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DESTROYING) e1:SetTarget(c86170989.target) e1:SetOperation(c86170989.operation) c:RegisterEffect(e1) end function...
gpl-2.0
rouing/FHLG-BW
entities/entities/ent_mad_smoke/init.lua
1
1060
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') /*--------------------------------------------------------- Name: ENT:Initialize() ---------------------------------------------------------*/ function ENT:Initialize() self.Owner = self.Entity:GetOwner() if !IsValid(self.Owner) then ...
unlicense
openwrt-stuff/openwrt-extra
luci/applications/luci-webshell/luasrc/controller/webshell.lua
7
1453
module("luci.controller.webshell", package.seeall) function index() luci.i18n.loadc("webshell") local i18n = luci.i18n.translate page = entry({"admin", "system", "cmd_run"}, call("cmd_run"), nil) page.leaf = true page = node("admin", "system", "WebShell") page.target = template("webshell") page.title = i18n("We...
gpl-2.0
mercury233/ygopro-scripts
c63223467.lua
9
1173
--RAI-MEI function c63223467.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(63223467,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c63223467.condition) e1:SetT...
gpl-2.0
qq779089973/my_openwrt_mod
luci/applications/luci-polipo/luasrc/model/cbi/polipo.lua
79
5961
--[[ LuCI - Lua Configuration Interface Copyright 2008 Aleksandar Krsteski <alekrsteski@gmail.com> 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.org/licenses/LICENSE-2.0 $Id$...
mit
MasterQ32/BrokenRemote
Templates/Trinket.lua
1
1841
------------------------------------------------------------------------------- -- -- This script provides the basic implementation for a trinket. -- The trinket will double our speed if collected. -- ------------------------------------------------------------------------------- -- Small helper that returns only true...
gpl-3.0
mercury233/ygopro-scripts
c56209279.lua
2
2118
--インフェルニティ・ネクロマンサー function c56209279.initial_effect(c) --to defense local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(56209279,0)) e1:SetCategory(CATEGORY_POSITION) e1:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c56209279.potg) e1:SetOperation(c5...
gpl-2.0
guillaume144/jeu-rp
gamemode/modules/fadmin/fadmin/playeractions/slap/sv_init.lua
4
2160
local function ExecuteSlap(target, Amount, ply) if not IsValid(target) or not IsValid(ply) then return end local Force = Vector(math.Rand(-500, 500), math.Rand(-500, 500), math.Rand(-100, 700)) local DmgInfo = DamageInfo() DmgInfo:SetDamage(Amount) DmgInfo:SetDamageType(DMG_DROWN) DmgInfo:SetA...
mit
Zenny89/darkstar
scripts/globals/spells/fire_carol.lua
18
1502
----------------------------------------- -- Spell: Fire Carol -- Increases fire resistance for party members within the area of effect. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -------------...
gpl-3.0
ZeroK-RTS/SpringRTS-Tools
SpringModEdit/include/standardSensors.lua
1
2381
-- $Id: standardSensors.lua 3444 2008-12-15 02:52:40Z licho $ local thisFile = "standardSensors" Editor.Echo("Standard \"" .. thisFile .. ".lua\" loaded.\n", "Brown") function StandardSensors(doPreviewOnly) Editor.Echo("----------------------------------------------------------------\n") Editor.Echo("Begin...
gpl-2.0
mercury233/ygopro-scripts
c30314994.lua
6
1131
--エレメント・ドラゴン function c30314994.initial_effect(c) --atk local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetValue(500) e1:SetCondition(c30314994.atkcon) c:RegisterEffect(e1) --chain attack l...
gpl-2.0
Zenny89/darkstar
scripts/zones/Wajaom_Woodlands/TextIDs.lua
7
1135
-- 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 = 6383; -- Obtained: <item>. GIL_OBTAINED = 6384; -- Obtained <number> gil. KEYITEM_OBTAINED = 6386; -- Obtained...
gpl-3.0
mercury233/ygopro-scripts
c15561463.lua
6
1238
--ガントレット・シューター function c15561463.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,6,2) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetDescription(aux.Stringid(15561463,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) ...
gpl-2.0
mercury233/ygopro-scripts
c39719977.lua
2
1264
--デルタ・アタッカー function c39719977.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c39719977.target) e1:SetOperation(c39719977.activate) c:RegisterEffect(e1) end function c39719977.filter(c,tp) local tpe=c:GetType() return c:Is...
gpl-2.0
mercury233/ygopro-scripts
c55673611.lua
3
1353
--サイコ・トリガー function c55673611.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE+CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c55673611.condition) e1:SetTarget(c55673611.target) e1:S...
gpl-2.0
adminmagma/test2
libs/dkjson.lua
31
26560
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global value...
gpl-2.0
mercury233/ygopro-scripts
c47699948.lua
2
3588
--シンクロ・ディレンマ function c47699948.initial_effect(c) --Activate local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e0) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(47699948,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e...
gpl-2.0
mercury233/ygopro-scripts
c68934651.lua
2
3240
--ファイアウォール・ドラゴン・ダークフルード function c68934651.initial_effect(c) c:EnableCounterPermit(0x52) --link summon aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),3) c:EnableReviveLimit() --counter local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(68934651,0)) e1:SetCategory(CATEGORY...
gpl-2.0
mercury233/ygopro-scripts
c3507053.lua
2
3080
--乾燥機塊ドライドレイク function c3507053.initial_effect(c) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x14b),1,1) --cannot link material local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE...
gpl-2.0
rouing/FHLG-BW
entities/entities/item_health/init.lua
1
1227
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:SpawnFunction( ply, tr ) if ( !tr.Hit ) then return end local SpawnPos = tr.HitPos + tr.HitNormal * 20 local ent = ents.Create( "item_health" ) ent:SetPos( SpawnPos ) ent:Spawn() ent:Activate() return ent end functi...
unlicense
mercury233/ygopro-scripts
c17286057.lua
4
3105
--ヘリオス・トリス・メギストス function c17286057.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:SetCondition(c17286057.hspcon) e1:SetOperation(c17286057.hspop) c:RegisterEf...
gpl-2.0
mercury233/ygopro-scripts
c26435595.lua
2
2095
--聖菓使クーベル function c26435595.initial_effect(c) c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionType,TYPE_PENDULUM),2,true) aux.EnablePendulumAttribute(c,false) --pendulum set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(26435595,0)) e1:SetType(EFFECT_TYPE_IGN...
gpl-2.0
linushsao/marsu_game-linus-v0.2
mods/deprecated/mymonths/months.lua
1
3453
local timechange = 0 local gm = 0 local gn = 0 -- Set holidays local hol = { {"12", 14, "It is New Years Eve!"}, {"1", 1, "It is New Years Day!"}, {"3", 12, "It is Friendship Day!"}, {"6", 5, "It is Minetest Day!"}, {"4", 10, "It is Miners Day!"}, {"8", 12, "It is Builders Day!"}, {"10", 8, "It is Harve...
gpl-3.0
mercury233/ygopro-scripts
c66994718.lua
6
1133
--ラプターズ・ガスト function c66994718.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e1:SetCondition(c66994718.condition) e1:SetTarge...
gpl-2.0
mercury233/ygopro-scripts
c48636108.lua
2
2006
--U.A.マン・オブ・ザ・マッチ function c48636108.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(48636108,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_BATTLED) e1:SetCountLimit(1,48636108+EFFECT_COUNT_CODE_OATH) e1:SetCondition(c48...
gpl-2.0
valhallaGaming/uno
branches/2_0_3_STABLE/realism-system/s_indicators.lua
1
8462
function resStart(res) if (res==getThisResource()) then for key, veh in ipairs(exports.pool:getPoolElementsByType("vehicle")) do removeElementData(veh, "rightmarker1") removeElementData(veh, "rightobject1") removeElementData(veh, "rightmarker2") removeElementData(veh, "rightobject2") end end ...
bsd-3-clause
mercury233/ygopro-scripts
c28151978.lua
2
2921
--SRドミノバタフライ function c28151978.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --splimit local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:Se...
gpl-2.0
mjssw/cuberite
lib/tolua++/src/bin/lua/feature.lua
15
2882
-- tolua: abstract feature class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enh...
apache-2.0
mercury233/ygopro-scripts
c92182447.lua
3
2270
--時の女神の悪戯 function c92182447.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_BATTLE_END) e1:SetCondition(c92182447.condition) e1:SetTarget(c92182447.target) e1:SetOperation(c92182447.activate) c:RegisterEffect(e1...
gpl-2.0
mercury233/ygopro-scripts
c65331686.lua
2
3889
--ファーニマル・オウル function c65331686.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(65331686,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:...
gpl-2.0
Zenny89/darkstar
scripts/zones/Upper_Jeuno/npcs/Rouliette.lua
17
2208
----------------------------------- -- Area: Upper Jeuno -- NPC: Rouliette -- Starts and Finishes Quest: Candle-making -- @zone 244 -- @pos -24 -2 11 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; package.loaded["scripts/globals/settings"] = nil; --------------...
gpl-3.0
mercury233/ygopro-scripts
c24725825.lua
6
1387
--エレクトリック・ワーム function c24725825.initial_effect(c) --control local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(24725825,0)) e1:SetCategory(CATEGORY_CONTROL) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCost(c24725825.cost) e1:SetTarget(c...
gpl-2.0
mercury233/ygopro-scripts
c9753964.lua
2
3565
--琰魔竜 レッド・デーモン・アビス function c9753964.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(c9753964.sfilter),1,1) c:EnableReviveLimit() --negate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(9753964,0)) e1:SetCategory(CATEGORY_DISABLE) e1:SetType(EFFECT_TYPE_QUICK_O) e1...
gpl-2.0
Zenny89/darkstar
scripts/globals/items/bowl_of_sprightly_soup.lua
36
1326
----------------------------------------- -- ID: 5930 -- Item: Bowl of Sprightly Soup -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- MP 30 -- Mind 4 -- HP Recovered While Healing 4 -- Enmity -4 ----------------------------------------- require("scripts/globals/status"); ----------------...
gpl-3.0
Zenny89/darkstar
scripts/zones/Crawlers_Nest/npcs/Treasure_Coffer.lua
17
3973
----------------------------------- -- 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/...
gpl-3.0
wenhuizhang/MoonGen
lua/include/lpm.lua
8
5893
--------------------------------- --- @file lpm.lua --- @brief Longest Prefix Matching ... --- @todo TODO docu --------------------------------- local ffi = require "ffi" --require "utils" local band, lshift, rshift = bit.band, bit.lshift, bit.rshift local dpdkc = require "dpdkc" local dpdk = require "dpdk" local ser...
mit
mercury233/ygopro-scripts
c70284332.lua
2
2217
--調律師の陰謀 function c70284332.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_CONTROL) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CONTINUOUS_TARGET) e1:SetTarget(c70284332.target) e1:SetOperation(c7028...
gpl-2.0
mercury233/ygopro-scripts
c47474172.lua
3
1177
--魔筒覗ベイオネーター function c47474172.initial_effect(c) --atkdown local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(47474172,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetTarget(c47474...
gpl-2.0
mercury233/ygopro-scripts
c59071624.lua
1
3984
--アロメルスの蟲惑魔 function c59071624.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,2,nil,nil,99) c:EnableReviveLimit() --immune local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_IMMUNE_EFFECT) e1:SetCond...
gpl-2.0
m4h4n/telegram-bot
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
alfred-bot/mer2phm
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
mercury233/ygopro-scripts
c49479374.lua
2
1126
--急速充電器 function c49479374.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(c49479374.target) e1:SetOperation(c49479374.activate) c:RegisterEffect(e1) e...
gpl-2.0
Cavitt/vanilla-ot
data/npc/REFERENCETHESE/Mehkesh.lua
5
2400
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCre...
agpl-3.0
Zenny89/darkstar
scripts/zones/Throne_Room/npcs/_4l2.lua
51
1172
----------------------------------- -- Area: Throne Room -- NPC: Ore Door ------------------------------------- require("scripts/globals/bcnm"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) if (TradeBCNM(player,player:ge...
gpl-3.0
noname007/koreader
frontend/device/kindle/device.lua
1
10234
local Generic = require("device/generic/device") local DEBUG = require("dbg") local function yes() return true end local Kindle = Generic:new{ model = "Kindle", isKindle = yes, } local Kindle2 = Kindle:new{ model = "Kindle2", hasKeyboard = yes, hasKeys = yes, } local KindleDXG = Kindle:new{ ...
agpl-3.0
alfred-bot/mer2phm
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
mercury233/ygopro-scripts
c5130393.lua
2
3009
--千年の血族 function c5130393.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(5130393,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_HAND) e1:SetCode(EVENT_DAMAGE) e1:SetCountLimit(1,5130393) e1:...
gpl-2.0
mercury233/ygopro-scripts
c44891812.lua
2
3372
--超重武者オタス-K function c44891812.initial_effect(c) --def up local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(44891812,0)) e1:SetCategory(CATEGORY_DEFCHANGE) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e1:SetRange(LOCATION_HAND) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:S...
gpl-2.0
Zenny89/darkstar
scripts/zones/Port_San_dOria/npcs/Diraulate.lua
36
1375
----------------------------------- -- Area: Port San d'Oria -- NPC: Diraulate -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones/Port_San_dOria/Tex...
gpl-3.0
dani-sj/nod32
plugins/chatbot.lua
21
2121
local function run(msg) if msg.text == "یاقی" then return "کی اسم سازندمو صدا زد؟" end if msg.text == "Umbrella" then return "کیر نود32 هم نی" end if msg.text == "umbrella" then return "کیر نود32 هم نی" end if msg.text == "نود32" then return "hum?" end if msg.text == "اسپم" then return "کس ننت میذارم بخای اسپم کن...
gpl-2.0
UnluckyNinja/PathOfBuilding
Data/3_0/Bases/ring.lua
3
4280
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games local itemBases = ... itemBases["Iron Ring"] = { type = "Ring", tags = { default = true, ring = true, }, implicit = "Adds 1 to 4 Physical Damage to Attacks", req = { }, } itemBases["Coral Ring"] = { type = "Ring", tags = ...
mit
hhsaez/crimild
examples/RocketLaunch/assets/prefabs/fire_exhaust.lua
1
2177
function buildFireExhaustFX( transformation ) local MAX_PARTICLES = 300 return { type = 'crimild::Group', components = { { type = 'crimild::ParticleSystemComponent', particles = { type = 'crimild::ParticleData', maxParticles = MAX_PARTICLES, computeInWorldSpace = true, }, emi...
bsd-3-clause
5620g/pp
plugins/bin.lua
12
1554
function run_sh(msg, matches) local receiver = get_receiver(msg) name = get_name(msg) text = '' if is_sudo(msg) then bash = msg.text:sub(4,-1) text = run_bash(bash) else text = name .. ' you have no power here!' end send_large_msg(receiver, 'In Process...', ok_cb,...
gpl-2.0
LucentW/s-uzzbot
plugins/get.lua
3
1151
local function get_variables_hash(msg) if msg.to.type == 'chat' then return 'chat:'..msg.to.id..':variables' end if msg.to.type == 'channel' then return 'channel:'..msg.to.id..':variables' end if msg.to.type == 'user' then return 'user:'..msg.from.id..':variables' end end local function list_va...
gpl-2.0
chtyim/infrastructure-puppet
modules/kibana_asf/files/frombrowser.lua
3
2780
#!/usr/bin/env lua package.path = package.path .. ";/usr/local/etc/logproxy/?.lua" local JSON = require "JSON" -- function for injecting strings into each 'query' element in the JSON function inject(tbl, what) for k, v in pairs(tbl) do if type(v) == "table" then inject(v, what) elseif k...
apache-2.0
amir1213/aa
plugins/all.lua
54
4746
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
dmccuskey/dmc-wamp
examples/dmc-wamp-rpc-callee/dmc_corona/lib/dmc_lua/lua_objects.lua
44
4827
--====================================================================-- -- dmc_lua/lua_objects.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2011-2015 David McCuskey Permission is hereby gran...
mit
dmccuskey/dmc-wamp
examples/dmc-wamp-rpc-caller/dmc_corona/lib/dmc_lua/lua_objects.lua
44
4827
--====================================================================-- -- dmc_lua/lua_objects.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2011-2015 David McCuskey Permission is hereby gran...
mit
UnluckyNinja/PathOfBuilding
Data/Uniques/staff.lua
1
9479
-- Item data (c) Grinding Gear Games return { -- Weapon: Staff [[ Agnerod East Imperial Staff Variant: Pre 2.6.0 Variant: Current Requires Level 66, 158 Str, 113 Int Implicits: 2 {variant:1}12% Chance to Block {variant:2}18% Chance to Block {variant:1}+1 to Level of Socketed Lightning Gems {variant:2}+2 to Level of So...
mit
SatoshiNXSimudrone/sl4a-damon-clone
lua/luasocket/src/ltn12.lua
127
8177
----------------------------------------------------------------------------- -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $ ----------------------------------------------------------------------------- -------...
apache-2.0
sebastianlis/DesignPatterns-in-Lua-Using-CoronaSDK
State/PatternCraftState/classes/SiegeTank.lua
1
2575
require "classes.constants.screen" require "classes.TankState" require "classes.SiegeState" require "classes.SpeedState" SiegeTank={} function SiegeTank:new() local this = display.newGroup() local public = this local private = {} local body = display.newRect(0, 0, 300, 100) local lastState thi...
mit
Ialong/shogun
examples/undocumented/lua_modular/evaluation_contingencytableevaluation_modular.lua
21
1809
require 'modshogun' require 'load' ground_truth = load_labels('../data/label_train_twoclass.dat') math.randomseed(17) predicted = {} for i = 1, #ground_truth do table.insert(predicted, math.random()) end parameter_list = {{ground_truth,predicted}} function evaluation_contingencytableevaluation_modular(ground_truth,...
gpl-3.0
codyroux/lean0.1
tests/lua/sexpr2.lua
6
1108
s = sexpr(1, 2, 3) print(s) s = sexpr(1, 2, 3, nil) print(s) s = sexpr(sexpr(1, 2), sexpr(3, 4), nil) print(s) s = sexpr(mpz("100000000000000"), mpq(3)/2, sexpr(1, 2, 3, nil), nil) print(s) print(sexpr():is_nil()) print(sexpr(1):is_nil()) print(sexpr(true):is_bool()) print(sexpr(true):to_bool()) print(sexpr(false):to_b...
apache-2.0
UnluckyNinja/PathOfBuilding
Data/2_6/ModJewel.lua
1
54290
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games return { ["MaceDamageJewel"] = { type = "Prefix", affix = "Brutal", "(14-16)% increased Physical Damage with Maces", statOrderKey = "289", statOrder = { 289 }, level = 1, group = "SpecificWeaponDamage", weightKey = { "mace", "s...
mit
spoconnor/ElixirMessagingServer
EclipseWorkspace/LuaClient/runtime/linux/Resources/DrawPrimitives.lua
57
12038
local dp_initialized = false local dp_shader = nil local dp_colorLocation = -1 local dp_color = { 1.0, 1.0, 1.0, 1.0 } local dp_pointSizeLocation = -1 local dp_pointSize = 1.0 local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor" local targetPlatform = CCApplication:getInstance():getTargetPlatform() loca...
mit
stephank/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res.lua
80
3097
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
apache-2.0
stephank/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua
80
2000
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
apache-2.0
Alexx-G/openface
training/train.lua
8
7852
-- Copyright 2015-2016 Carnegie Mellon University -- -- 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.org/licenses/LICENSE-2.0 -- -- Unless required by applicable ...
apache-2.0
Sponk/NeoEditor
Documentation/LuaDocs/General.lua
1
1092
/** * @brief Creates a 3D vector. * @param x The X value * @param y The Y value * @param z The Z value * @return The newly created 3D vector */ vec3(float x, float y, float z); /** * @brief Calculates the length of a 3D vector. * @param vec3 The 3D vector to use. * @return The length of the vector. */ lengt...
gpl-2.0
DeadSocks/trajopt
ext/bullet/Demos/OpenCLClothDemo/NVidia/premake4.lua
14
1192
hasCL = findOpenCL_NVIDIA() if (hasCL) then project "AppOpenCLClothDemo_NVIDIA" defines { "USE_NVIDIA_OPENCL","CL_PLATFORM_NVIDIA"} initOpenCL_NVIDIA() language "C++" kind "ConsoleApp" targetdir "../../.." libdirs {"../../../Glut"} links { "LinearMath", "Bulle...
bsd-2-clause
aqasaeed/mamad
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
Sponk/NeoEditor
Neo/NeoEditor/Plugins/ImagesAsPlanes.lua
1
1912
setPluginName("Images as Planes") setPluginAuthor("Yannick Pflanzer") setPluginDescription("A plugin that allows you to load a 2D image into a 3D scene.") addEditorMenu("Import image", "load_callback") require("plugins.libs.misc") -- Finds the last occurance of fmt in the given string. -- -- str: The string to searc...
gpl-2.0
kickinrad/healerhealer
manual.lua
1
15502
-- manual.lua manual = { buttons = {}, introRead = false, pageNumberMax = 14, pageNumber = 1, dps = { { -- 1 left = { title = "Grimoire of Solomon", description = "\tAn account of ailments and disease of strange and unnatural character.\n\tThe blind many seem undeterred by the many ...
mit
dmccuskey/dmc-wamp
examples/dmc-wamp-rpc-callee/dmc_corona/lib/sha1.lua
11
110178
-- -- SHA-1 secure hash computation, and HMAC-SHA1 signature computation, -- in pure Lua (tested on Lua 5.1) -- -- Latest version always at: http://regex.info/blog/lua/sha1 -- -- Copyright 2009 Jeffrey Friedl -- jfriedl@yahoo.com -- http://regex.info/blog/ -- -- -- Version 1 [May 28, 2009] -- -- -- Lua is a pathetic,...
mit
dmccuskey/dmc-wamp
examples/dmc-wamp-publish/dmc_corona/lib/sha1.lua
11
110178
-- -- SHA-1 secure hash computation, and HMAC-SHA1 signature computation, -- in pure Lua (tested on Lua 5.1) -- -- Latest version always at: http://regex.info/blog/lua/sha1 -- -- Copyright 2009 Jeffrey Friedl -- jfriedl@yahoo.com -- http://regex.info/blog/ -- -- -- Version 1 [May 28, 2009] -- -- -- Lua is a pathetic,...
mit
majetideepak/arrow
c_glib/example/lua/read-batch.lua
10
1572
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may...
apache-2.0
artynet/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/sensors.lua
5
2954
-- Copyright 2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local m, s, o local sensor_types = { ["12v"] = "voltage", ["2.0v"] = "voltage", ["2.5v"] = "voltage", ["3.3v"] = "voltage", ["5.0v"] = "voltage", ["5v"] = "voltage", ["ain1"] = "voltage", ["ain2"] = "vol...
apache-2.0
akh00/kong
kong/plugins/acl/api.lua
6
1524
local crud = require "kong.api.crud_helpers" return { ["/consumers/:username_or_id/acls/"] = { before = function(self, dao_factory, helpers) crud.find_consumer_by_username_or_id(self, dao_factory, helpers) self.params.consumer_id = self.consumer.id end, GET = function(self, dao_factory) ...
apache-2.0
Daniex0r/project-roleplay-rp
resources/system-real/c_reload.lua
1
2134
local noReloadGuns = { [25]=true, [33]=true, [34]=true, [35]=true, [36]=true, [37]=true } function isGun(id) return getSlotFromWeapon(id) >= 2 and getSlotFromWeapon(id) <= 7 end savedAmmo = { } local handled = true function weaponAmmo(prevSlot, currSlot) cleanupUI() triggerEvent("checkReload", source) end addEvent...
gpl-2.0
gilala/redis
deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
bsd-3-clause
artynet/luci
applications/luci-app-radicale/luasrc/controller/radicale.lua
28
8642
-- Copyright 2014-2016 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed under the Apache License, Version 2.0 module("luci.controller.radicale", package.seeall) local NX = require("nixio") local NXFS = require("nixio.fs") local DISP = require("luci.dispatcher") local HTTP = require("lu...
apache-2.0
marshmellow42/proxmark3
client/scripts/tnp3dump.lua
6
7183
local cmds = require('commands') local getopt = require('getopt') local bin = require('bin') local lib14a = require('read14a') local utils = require('utils') local md5 = require('md5') local dumplib = require('html_dumplib') local toys = require('default_toys') example =[[ script run tnp3dump script run tnp3dump -n ...
gpl-2.0
artynet/luci
applications/luci-app-radicale2/luasrc/model/cbi/radicale2/storage.lua
7
1895
-- Licensed to the public under the Apache License 2.0. local rad2 = luci.controller.radicale2 local fs = require("nixio.fs") local m = Map("radicale2", translate("Radicale 2.x"), translate("A lightweight CalDAV/CardDAV server")) local s = m:section(NamedSection, "storage", "section", translate("Storage")) s....
apache-2.0
MeGa-TeAm/megabot
plugins/time.lua
94
3004
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
ahmedcharles/Mudlet
src/mudlet-lua/lua/geyser/GeyserMapper.lua
21
1556
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- createMapper support by Vadi -- -- -- -------------------------------------- --- Represents a mapper primitive -- @class table -- @name Geyser.Mapper -- @field wrapAt Where line wrapping occurs. Default is 300 characters. Geyser.Map...
gpl-2.0
artynet/luci
modules/luci-base/luasrc/util.lua
6
17653
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local io = require "io" local math = require "math" local table = require "table" local debug = require "debug" local ldebug = require "luci.debug" local string = require "string" local coroutine = require "coro...
apache-2.0
mrshayan/iran_power_ok
plugins/boobs.lua
1
1785
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
FastTM/Fast-Unique
plugins/setlang.lua
1
1753
local plugin = {} local function doKeyboard_lang() local keyboard = { inline_keyboard = {} } for lang, flag in pairs(config.available_languages) do local line = {{text = flag, callback_data = 'langselected:'..lang}} table.insert(keyboard.inline_keyboard, line) end return keyboard end function plugin.onText...
gpl-2.0
Hzj-jie/koreader-base
thirdparty/lua-ljsqlite3/init.lua
2
20250
-------------------------------------------------------------------------------- -- A library for interfacing with SQLite3 databases. -- -- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved. -- -- Features, documentation and more: http://www.scilua.org . -- -- This file is part of the LJSQLite3 library, w...
agpl-3.0
vinhqdang/spice
torch-rnn/test/TemporalCrossEntropyCriterion_test.lua
18
2660
require 'torch' require 'nn' require 'cutorch' require 'cunn' require 'TemporalCrossEntropyCriterion' local tester = torch.Tester() local tests = torch.TestSuite() -- Run a nn.CrossEntropyCriterion explicitly over all minibatch elements -- and timesteps, and make sure that we get the same results for both -- loss ...
gpl-3.0
blackhacker666/zep
plugins/info_fa.lua
1
8927
do local Arian = 89655129 --put your id here(BOT OWNER ID) local function setrank(msg, name, value) -- setrank function local hash = nil if msg.to.type == 'chat' then hash = 'rank:'..msg.to.id..':variables' end if hash then redis:hset(hash, name, value) return send_msg('chat#id'..msg.to.id, 'مقام کا...
gpl-2.0
squadette/vlc
share/lua/intf/telnet.lua
2
7964
--[==========================================================================[ telnet.lua: VLM interface plugin --[==========================================================================[ Copyright (C) 2007 the VideoLAN team $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This program is free so...
gpl-2.0
dismantl/luci-0.12
modules/admin-full/luasrc/controller/admin/index.lua
79
1245
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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.org/licenses/LICENSE-2.0 $Id$ ]]-- mod...
apache-2.0
Noltari/luci
applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/olsrd.lua
30
1473
-- Copyright 2011 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. m = Map("luci_statistics", translate("OLSRd Plugin Configuration"), translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd.")) s = m:section(NamedSection,...
apache-2.0
LaFamiglia/Illarion-Content
triggerfield/cistern_ambient.lua
1
10245
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
ramindel0761/setdelete
bot/utils.lua
1
22551
--Begin Utils.lua By #deleteTeam :) local clock = os.clock function sleep(time) -- seconds local t0 = clock() while clock() - t0 <= time do end end function var_cb(msg, data) -------------Get Var------------ bot = {} msg.to = {} msg.from = {} msg.media = {} msg.id = msg.id_ msg.to.type = gp_type(data.ch...
gpl-3.0