repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
MalRD/darkstar
scripts/globals/items/buttered_nebimonite.lua
11
1080
----------------------------------------- -- ID: 4267 -- Item: Buttered Nebimonite -- Food Effect: 60Min, All Races ----------------------------------------- -- Dexterity 1 -- Vitality 2 -- defense % 25 -- defense Cap 75 ----------------------------------------- require("scripts/globals/status") require("scripts/global...
gpl-3.0
maxrio/luci981213
libs/luci-lib-nixio/root/usr/lib/lua/nixio/fs.lua
184
3723
--[[ nixio - Linux I/O library for lua Copyright 2009 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$ ]]-- local...
apache-2.0
MalRD/darkstar
scripts/zones/Southern_San_dOria/npcs/Ambrotien.lua
9
6584
----------------------------------- -- Area: Southern San d'Oria -- NPC: Ambrotien -- !pos 93.419 -0.001 -57.347 230 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); local ID = require("scripts/zones/Southern_San_dOria/ID...
gpl-3.0
Lsty/ygopro-scripts
c53046408.lua
9
1189
--非常食 function c53046408.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_RECOVER) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c53046408.cost) e1:SetTarget(c53046408.target) e1:SetOperation(c53046408.activate) c:RegisterEffect(e1) end function c5...
gpl-2.0
Lsty/ygopro-scripts
c31768112.lua
3
3899
--オイルメン function c31768112.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(31768112,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c31768112.eqtg) e1:SetOperation(c3176...
gpl-2.0
Lsty/ygopro-scripts
c42551040.lua
3
1737
--武神器-イクタ function c42551040.initial_effect(c) --position local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(42551040,0)) e1:SetCategory(CATEGORY_POSITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(c42551040.poscon) e1:SetCo...
gpl-2.0
Lsty/ygopro-scripts
c42940404.lua
3
3893
--マシンナーズ・ギアフレーム function c42940404.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(42940404,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c42940404.eqtg) e1:SetOperati...
gpl-2.0
Lsty/ygopro-scripts
c61156777.lua
3
2330
--BOXサー function c61156777.initial_effect(c) --Add counter local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(61156777,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYING) e1:SetCondition(aux.bdogcon) e1:SetOperation(c61156777.ctop) c:RegisterEffect(e1) --sps...
gpl-2.0
MalRD/darkstar
scripts/zones/Giddeus/npcs/qm1.lua
9
1168
----------------------------------- -- Area: Giddeus -- NPC: ??? -- Involved In Quest: Dark Legacy -- !pos -58 0 -449 145 ----------------------------------- local ID = require("scripts/zones/Giddeus/IDs"); require("scripts/globals/keyitems"); require("scripts/globals/npc_util"); ----------------------------------- f...
gpl-3.0
Lsty/ygopro-scripts
c79155167.lua
3
1415
--アーマーブラスト function c79155167.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c79155167.target) e1:SetOperation(c79155167.activate) c:RegisterEffect(e...
gpl-2.0
vadi2/Mudlet
src/mudlet-lua/lua/CursorShapes.lua
5
3295
mudlet = mudlet or {} mudlet.cursor = { --see https://doc.qt.io/qt-5/qt.html#CursorShape-enum ["Reset"] = -1, -- Resets your cursor. ["Arrow"] = 0, -- The standard arrow cursor. ["UpArrow"] = 1, -- An arrow pointing upwards toward the top of the screen. ...
gpl-2.0
SecondReality/Mudlet-Suttonian
src/mudlet-lua/lua/geyser/GeyserGauge.lua
23
4524
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -------------------------------------- --- Represents a gauge that can be either vertical or horizontal. -- @class table -- @name Geyser.Gauge -- @field value Perc...
gpl-2.0
Lsty/ygopro-scripts
c65422840.lua
7
2400
--酒呑童子 function c65422840.initial_effect(c) --Draw local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(65422840,0)) e1:SetCategory(CATEGORY_DRAW) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE) e1:Set...
gpl-2.0
Frenzie/koreader
frontend/ui/widget/bookmapwidget.lua
4
62360
local BD = require("ui/bidi") local Blitbuffer = require("ffi/blitbuffer") local CenterContainer = require("ui/widget/container/centercontainer") local Device = require("device") local Font = require("ui/font") local FrameContainer = require("ui/widget/container/framecontainer") local Geom = require("ui/geometry") loca...
agpl-3.0
Lsty/ygopro-scripts
c53162898.lua
3
1224
--アマゾネスの賢者 function c53162898.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(53162898,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_DAMAGE_STEP_END) e1:SetCondition(c5...
gpl-2.0
Lsty/ygopro-scripts
c84171830.lua
3
2535
--真帝王領域 function c84171830.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --cannot spsummon local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e2:SetRange(LOCATI...
gpl-2.0
cshore-firmware/openwrt-luci
applications/luci-app-ddns/luasrc/model/cbi/ddns/global.lua
16
4670
-- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed to the public under the Apache License 2.0. local NX = require "nixio" local NXFS = require "nixio.fs" local DISP = require "luci.dispatcher" local SYS = require "luci.sys" local CTRL = require "luci.controller.ddns" --...
apache-2.0
Lsty/ygopro-scripts
c91499077.lua
3
2436
--ガガガザムライ function c91499077.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,2) c:EnableReviveLimit() --attack twice local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(91499077,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(L...
gpl-2.0
Lsty/ygopro-scripts
c65549080.lua
5
1107
--ミスト・コンドル function c65549080.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(c65549080.spcon) e1:SetOperation(c65549080.spop) c:RegisterEffect(e1)...
gpl-2.0
Lsty/ygopro-scripts
c87340664.lua
9
1032
--原子ホタル function c87340664.initial_effect(c) --damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(87340664,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c873...
gpl-2.0
tarulas/luadch
scripts/cmd_ascii.lua
1
2425
--[[ cmd_ascii by pulsar v0.4 - export scriptsettings to "/cfg/cfg.tbl" v0.3 - cleaning code v0.2 - ASCII Script zum Senden von Bildern in den Main v0.1 - first test ]]-- --------...
gpl-3.0
MalRD/darkstar
scripts/globals/items/plate_of_sole_sushi.lua
11
1430
----------------------------------------- -- ID: 5149 -- Item: plate_of_sole_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 20 -- Strength 5 -- Dexterity 6 -- Accuracy % 15 -- Ranged ACC % 15 -- Sleep Resist 1 ----------------------------------------- require("scripts/globals/sta...
gpl-3.0
SIben/Selvittaa
src/board.lua
1
13661
--[[ -- -- This file contains the Board class used to represent a board. -- It also contains the implementation the game's rules as well as most -- of the things that affect the board's current state. -- --]] -- TODO: Handle triple kos and shit. local Board = {} Board.__index = Board -- The current move Board.counter...
gpl-3.0
ThingMesh/openwrt-luci
libs/web/luasrc/cbi/datatypes.lua
62
6006
--[[ LuCI - Configuration Bind Interface - Datatype Tests (c) 2010 Jo-Philipp Wich <xm@subsignal.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...
apache-2.0
MalRD/darkstar
scripts/globals/abilities/companions_roll.lua
12
2888
----------------------------------- -- Ability: Companion's Roll -- Grants "Regain" and "Regen" effects to pets of party members within area of effect. -- Optimal Job: None -- Lucky Number: 2 -- Unlucky Number: 10 -- Level: 95 -- Phantom Roll +1 Value: 5/2 -- -- Die Roll Logic in globals/effects/companions_roll.lua -- ...
gpl-3.0
tarulas/luadch
scripts/cmd_gag.lua
1
12713
--[[ cmd_gag.lua by motnahp - this script adds a command "gag" to mute or kennylize a user - usage: [+!#]gag mute|kennylize|ungag|show <NICK> v0.07: by pulsar - added "user_notifiy" to choose if the target gets informed about his gag/ungag or not ...
gpl-3.0
Lsty/ygopro-scripts
c3900605.lua
3
1692
--アブソーブポッド function c3900605.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP) e1:SetTarget(c3900605.target) e1:SetOperation(c3900605.operation) c:RegisterEffect(e1) end function c3900605.filter(c) return c:IsF...
gpl-2.0
MalRD/darkstar
scripts/zones/Batallia_Downs/IDs.lua
8
2557
----------------------------------- -- Area: Batallia_Downs ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.BATALLIA_DOWNS] = { text = { NOTHING_HAPPENS = 141, -- Nothing happens... ITEM_CANNO...
gpl-3.0
Lsty/ygopro-scripts
c30392583.lua
3
1215
--聖占術の儀式 function c30392583.initial_effect(c) aux.AddRitualProcGreater(c,aux.FilterBoolFunction(Card.IsCode,94997874)) --to hand local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(aux.exccon) e1:SetCost(c30...
gpl-2.0
MalRD/darkstar
scripts/commands/getcraftrank.lua
14
1644
--------------------------------------------------------------------------------------------------- -- func: getcraftRank <craft skill or ID> {player} -- desc: returns target's RANK of specified craft skill --------------------------------------------------------------------------------------------------- require("scri...
gpl-3.0
Lsty/ygopro-scripts
c47408488.lua
3
2453
--宝玉の樹 function c47408488.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --counter local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_COUNTER) e2:SetDescription(aux.Stringid(47408488,0)) e2:SetType(EFFECT_TYP...
gpl-2.0
chu11/flux-core
src/bindings/lua/flux/Subcommander.lua
7
5594
------------------------------------------------------------- -- Copyright 2014 Lawrence Livermore National Security, LLC -- (c.f. AUTHORS, NOTICE.LLNS, COPYING) -- -- This file is part of the Flux resource manager framework. -- For details, see https://github.com/flux-framework. -- -- SPDX-License-Identifier: LGPL-3.0...
lgpl-3.0
Silencer2K/wow-action-bar-profiles
Const.lua
1
19430
ABP_DB_VERSION = "v3" ABP_ADDON_NAME = "Action Bar Profiles" ABP_DOWNLOAD_LINK = "https://mods.curse.com/addons/wow/action-bar-profiles" ABP_MAX_ACTION_BUTTONS = 120 ABP_DEFAULT_PAPERDOLL_NUM_TABS = 3 ABP_PICKUP_RETRY_COUNT = 5 ABP_PICKUP_RETRY_INTERVAL = 0.1 ABP_EMPTY_ICON_TEXTURE_ID = 134400 ABP_RANDOM_MOUNT_SPEL...
mit
rotmanmi/nn
BatchNormalization.lua
9
5671
--[[ This file implements Batch Normalization as described in the paper: "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift" by Sergey Ioffe, Christian Szegedy This implementation is useful for inputs NOT coming from convol...
bsd-3-clause
NENO7/GENERAL
plugins/newgroup.lua
4
35861
--[[ @KNSLTHM @KNSLTHM @KNSLTHM @NENO_CH @NENO_CH @NENO_CH --]] 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_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, grou...
gpl-2.0
Lsty/ygopro-scripts
c75987257.lua
3
2222
--隷属の鱗粉 function c75987257.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_POSITION+CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCondition(c75987257.condition) e1:SetTarget(c75987257.target) ...
gpl-2.0
MalRD/darkstar
scripts/commands/exec.lua
22
1227
--------------------------------------------------------------------------------------------------- -- func: exec -- desc: Allows you to execute a Lua string directly from chat. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 4, para...
gpl-3.0
Lsty/ygopro-scripts
c698785.lua
3
1236
--サンダーエンド・ドラゴン function c698785.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsType,TYPE_NORMAL),8,2) c:EnableReviveLimit() --negate activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(698785,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_IGNI...
gpl-2.0
MalRD/darkstar
scripts/globals/mobskills/lethe_arrows.lua
11
1085
--------------------------------------------- -- Lethe Arrows -- -- Description: Deals a ranged attack to target. Additional effect: Knockback, Bind, and Amnesia -- Type: Ranged -- Utsusemi/Blink absorb: Ignores Utsusemi -- Range: Unknown -- Notes: --------------------------------------------- require("scripts/globals/...
gpl-3.0
Lsty/ygopro-scripts
c82878489.lua
7
1526
--シャイン・キャッスル function c82878489.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(c82878489.target) e1:SetOperation(c82878489.operation) c:RegisterEffect(...
gpl-2.0
MalRD/darkstar
scripts/zones/Phomiuna_Aqueducts/IDs.lua
9
1419
----------------------------------- -- Area: Phomiuna_Aqueducts ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.PHOMIUNA_AQUEDUCTS] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. C...
gpl-3.0
CommandPost/CommandPost-App
extensions/uielement/uielement.lua
4
6423
--- === hs.uielement === --- --- A generalized framework for working with OSX UI elements local uielement = require("hs.libuielement") uielement.watcher = require("hs.libuielementwatcher") local fnutils = require "hs.fnutils" local appWatcher = require "hs.application.watcher" local USERDATA_TAG = "hs.uielement" loca...
mit
T-L-N/Dev_TLN
plugins/badword.lua
3
3413
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY faeder ▀▄ ▄▀ ▀▄ ▄▀ BY faeder (@xXxDev_iqxXx) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY faeder ▀▄ ▄▀ ▀▄ ▄▀ block word : منع كلمات ▀▄ ▄▀ ▀▄▀...
gpl-2.0
intel2TM/intel
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Attractive1/Attractive-Robot
plugins/owners.lua
1467
12478
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'Group name is already locked' else data[tostring(target)]['setting...
gpl-2.0
Lsty/ygopro-scripts
c8323633.lua
3
1741
--夜霧のスナイパー function c8323633.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetOperation(c8323633.operation) c:RegisterEffect(e1) end function c8323633.operation(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if not c:IsRelateToEffect...
gpl-2.0
gallenmu/MoonGen
interface/threads/load.lua
4
2258
local dpdkc = require "dpdkc" local limiter = require "software-ratecontrol" local memory = require "memory" local mg = require "moongen" local timer = require "timer" local stats = require "stats" local Flow = require "flow" local thread = { flows = {} } function thread.prepare(flows, devices) for _,fl...
mit
Lsty/ygopro-scripts
c16226786.lua
3
2075
--深淵の暗殺者 function c16226786.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(16226786,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP) e1:SetTarget(c16226786.target) e1:SetOperation(c16226786.opera...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/paralyga.lua
12
1858
----------------------------------------- -- Spell: Paralyze -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") -------------------------...
gpl-3.0
adan830/luacheck
spec/globbing_spec.lua
5
3000
local globbing = require "luacheck.globbing" describe("globbing", function() describe("match", function() it("returns true on literal match", function() assert.is_true(globbing.match("foo/bar", "foo/bar")) end) it("returns true on literal match after normalization", function() a...
mit
Lsty/ygopro-scripts
c46572756.lua
7
1436
--レアル・ジェネクス・ウルティマム function c46572756.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(46572756,0)) e1:SetCategory(CATEGORY_TODECK) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVEN...
gpl-2.0
gallenmu/MoonGen
libmoon/lua/lib/pf/parse.lua
2
40882
module(...,package.seeall) allow_address_of = true local utils = require('pf.utils') local constants = require('pf.constants') local ipv4_to_int, ipv6_as_4x32 = utils.ipv4_to_int, utils.ipv6_as_4x32 local uint32 = utils.uint32 local function skip_whitespace(str, pos) while pos <= #str and str:match('^%s', pos) d...
mit
MalRD/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e6.lua
9
1175
----------------------------------- -- Area: Hall of Transference -- NPC: Large Apparatus (Right) - Dem -- !pos -243.723 -41.482 -289.937 14 ----------------------------------- local ID = require("scripts/zones/Hall_of_Transference/IDs"); ----------------------------------- function onTrade(player,npc,trade) if (...
gpl-3.0
Lsty/ygopro-scripts
c23204029.lua
3
2745
--C・HERO カオス function c23204029.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0xa008),2,true) --spsummon condition local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOP...
gpl-2.0
MalRD/darkstar
scripts/globals/weaponskills/split_shot.lua
10
1604
----------------------------------- -- Split Shot -- Marksmanship weapon skill -- Skill Level: 40 -- Ignores enemy's defense. Amount ignored varies with TP. -- The amount of defense ignored is 0% @ 100TP, 35% @ 200TP and 50% @ 300TP. -- Aligned with the Aqua Gorget & Light Gorget. -- Aligned with the Aqua Belt & Light ...
gpl-3.0
doubleleft/hook-corona-sdk
hook/utils/storage.lua
1
1416
local sqlite3 = require("sqlite3") local storage = {} -- -- Open "hook.db". If the file doesn't exist, it will be created. -- local path = system.pathForFile("hook.db", system.DocumentsDirectory) local db = sqlite3.open(path) -- -- Handle the "applicationExit" event to close the database -- local function onSystemEve...
mit
Lsty/ygopro-scripts
c69572169.lua
6
1956
--E・HERO フラッシュ function c69572169.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(69572169,0)) e1:SetCategory(CATEGORY_TOHAND) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c...
gpl-2.0
MalRD/darkstar
scripts/commands/checkmission.lua
21
1638
--------------------------------------------------------------------------------------------------- -- func: checkmission <Log ID> <Player> -- desc: Prints current MissionID for the given LogID and target Player to the in game chatlog -------------------------------------------------------------------------------------...
gpl-3.0
Lsty/ygopro-scripts
c13604200.lua
3
1329
--賢者の宝石 function c13604200.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c13604200.condition) e1:SetTarget(c13604200.target) e1:SetOperation(c13604200.activate) c:RegisterEffect(...
gpl-2.0
MalRD/darkstar
scripts/zones/VeLugannon_Palace/IDs.lua
9
1665
----------------------------------- -- Area: VeLugannon_Palace ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.VELUGANNON_PALACE] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. C...
gpl-3.0
TheSAguy/Natural-Evolution
prototypes/Alien_Hatchery/entity.lua
1
24882
Natural_Evolution_Biter_Spawner_tint = {r=0.92, g=0.54, b=0, a=0.5} Natural_Evolution_Spitter_Spawner_tint = {r=0.54, g=0.92, b=0.3, a=1.0} data:extend({ ---- Alien Hatchery { type = "assembling-machine", name = "Alien_Hatchery", icon = "__Natural-Evolution__/graphics/entity/Alien_Hatchery.png", ...
mit
Lsty/ygopro-scripts
c63120904.lua
3
2177
--暗黒大要塞鯱 function c63120904.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(63120904,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetTarget(c63120904.target) e1:SetOperatio...
gpl-2.0
MalRD/darkstar
scripts/zones/Southern_San_dOria_[S]/Zone.lua
9
2209
----------------------------------- -- -- Zone: Southern_San_dOria_[S] (80) -- ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria_[S]/IDs"); require("scripts/globals/missions"); require("scripts/globals/settings"); require("scripts/globals/chocobo") require("scripts/globals/quests"...
gpl-3.0
robertbrook/Penlight
lua/pl/seq.lua
26
14658
--- Manipulating iterators as sequences. -- See @{07-functional.md.Sequences|The Guide} -- -- Dependencies: `pl.utils`, `pl.types`, `debug` -- @module pl.seq local next,assert,type,pairs,tonumber,type,setmetatable,getmetatable,_G = next,assert,type,pairs,tonumber,type,setmetatable,getmetatable,_G local strfind,strmatc...
mit
Lsty/ygopro-scripts
c48453776.lua
7
2412
--天魔神 ノーレラス function c48453776.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) --spe...
gpl-2.0
Lsty/ygopro-scripts
c7653207.lua
5
1155
--アクア・ジェット function c7653207.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c7653207.target) e1:SetOperation(c7653207.activate) c:RegisterEffect(e1...
gpl-2.0
Lsty/ygopro-scripts
c32491822.lua
3
3200
--降雷皇ハモン function c32491822.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 e2=Effec...
gpl-2.0
likexx/riftwarrior
code/external/emscripten/tests/lua/binarytrees.lua
15
1346
-- The Computer Language Benchmarks Game -- http://benchmarksgame.alioth.debian.org/ -- contributed by Mike Pall local function BottomUpTree(item, depth) if depth > 0 then local i = item + item depth = depth - 1 local left, right = BottomUpTree(i-1, depth), BottomUpTree(i, depth) return { item, left,...
mit
MalRD/darkstar
scripts/zones/Attohwa_Chasm/npcs/Loose_Sand.lua
9
1210
----------------------------------- -- Area: Attohwa Chasm -- NPC: Loose sand ----------------------------------- local ID = require("scripts/zones/Attohwa_Chasm/IDs"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); function onTrade(player,npc,trade) end; function onTrigger(player,npc) ...
gpl-3.0
sagarwaghmare69/nn
Container.lua
3
4621
-- This is code common to container modules, which are collections of -- smaller constituent modules like Parallel, Sequential, etc. local Container, parent = torch.class('nn.Container', 'nn.Module') function Container:__init(...) parent.__init(self, ...) self.modules = {} end function Container:add(module) ...
bsd-3-clause
ThingMesh/openwrt-luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-sip-connections.lua
80
3921
--[[ 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
moody2020/TH3_BOSS
bot/TH3BOSS.lua
8
14583
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
MalRD/darkstar
scripts/zones/Dragons_Aery/mobs/Nidhogg.lua
11
1916
----------------------------------- -- Area: Dragons Aery -- HNM: Nidhogg ----------------------------------- local ID = require("scripts/zones/Dragons_Aery/IDs") mixins = {require("scripts/mixins/rage")} require("scripts/globals/settings") require("scripts/globals/status") require("scripts/globals/titles") ----------...
gpl-3.0
NENO7/GENERAL
plugins/lock_edit.lua
3
3034
--[[@KNSLTHM @KNSLTHM @KNSLTHM @NENO_CH @NENO_CH @NENO_CH --]] --[[ @KNSLTHM @KNSLTHM @KNSLTHM @NENO_CH @NENO_CH @NENO_CH --]] do function promote(receiver, member_username, user_id) local data = load_data(_config.moderation.data) local group = string.gsub(receiver, 'channel#id', '') local member_tag_u...
gpl-2.0
Lsty/ygopro-scripts
c76660409.lua
3
1543
--ペンデュラム・バック function c76660409.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCondition(c76660409.condition) e1:SetTarget(c76660409.target) ...
gpl-2.0
MahmoudDolah/Firmware-Entry-Points-In-Memory
openwrt/openwrt-generic-x86/usr/lib/lua/luci/util.lua
46
16763
-- 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
raiguard/ModernGadgets
Skins/ModernGadgets/Settings/ColorPickerPlus/Extra/Scripts/ColorPickerPlus.lua
2
4826
-- setup data structure and some constants, set initial rgb value function Initialize() dofile(SKIN:MakePathAbsolute('Extra\\Scripts\\HSBLib.lua')) colors = {} colors.scrubber_cursor_hue,colors.scrubber_cursor_sat = RGBtoHSB(SKIN:GetVariable('colorBorder')) SetRGB(SKIN:GetVariable('baseColor')) end f...
mit
MalRD/darkstar
scripts/zones/Uleguerand_Range/Zone.lua
3
1678
----------------------------------- -- -- Zone: Uleguerand_Range (5) -- ----------------------------------- local ID = require("scripts/zones/Uleguerand_Range/IDs"); require("scripts/globals/conquest"); require("scripts/globals/missions"); require("scripts/globals/weather"); require("scripts/globals/status"); require("...
gpl-3.0
WarGamingKO/WarGamingKO
Build/GameServer/Quests/24426_Eload.lua
1
2583
local UserClass; local QuestNum; local Ret = 0; local NPC = 24426; if EVENT == 190 then QuestNum = SearchQuest(UID, NPC); if QuestNum == 0 then SelectMsg(UID, 2, -1, 4597, NPC, 10, 193); Ret = 1; elseif QuestNum > 1 and QuestNum < 100 then NpcMsg(UID, 4598, NPC) else EVENT = Ques...
gpl-2.0
MalRD/darkstar
scripts/globals/items/bowl_of_seafood_stew.lua
11
1168
----------------------------------------- -- ID: 4561 -- Item: Bowl of Seafood Stew -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 20 -- Dexterity 1 -- Vitality 5 -- Defense % 25 -- Defense Cap 120 ----------------------------------------- require("scripts/globals/status") require...
gpl-3.0
NENO7/GENERAL
plugins/plugins-ar.lua
3
6859
--[[ @KNSLTHM @KNSLTHM @KNSLTHM @NENO_CH @NENO_CH @NENO_CH --]] do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true...
gpl-2.0
cshore-firmware/openwrt-luci
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
15
3780
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local sys = require "luci.sys" local uci = require "luci.model.uci".cursor() local testfullps = luci.sys.exec("ps --help 2>&1 | grep BusyBox") --check which ps do we have local pss...
apache-2.0
MalRD/darkstar
scripts/globals/items/rogue_rice_ball.lua
11
1077
----------------------------------------- -- ID: 4604 -- Item: Rogue Rice Ball -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +12 -- Vit +3 -- hHP +2 -- Effect with enhancing equipment (Note: these are latents on gear with the effect) -- Def +50 -- Beast Killer (guesstimated 5%) ------...
gpl-3.0
maxrio/luci981213
applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-cdr.lua
68
1665
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true cdr_csv = module:option(ListV...
apache-2.0
Frenzie/koreader
plugins/newsdownloader.koplugin/epubdownloadbackend.lua
4
21080
local Version = require("version") local ffiutil = require("ffi/util") local http = require("socket.http") local lfs = require("libs/libkoreader-lfs") local logger = require("logger") local ltn12 = require("ltn12") local socket = require("socket") local socket_url = require("socket.url") local socketutil = require("soc...
agpl-3.0
LuaDist2/tethys
tethys2/plugins/filter/SpamAssassin.lua
2
2010
module(..., package.seeall) local oo = require "loop.simple" local Plugin = require 'tethys2.plugins.filter.Plugin' require'config' new = oo.class({}, Plugin.class) SpamAssassin = new class = new function SpamAssassin:filterMessage(to, state, filtered) if state.spamasssasin_done then return end -- Make a thread f...
gpl-3.0
tryroach/vlc
share/lua/playlist/soundcloud.lua
42
2054
--[[ $Id$ Copyright © 2012 the VideoLAN team Authors: Cheng Sun <chengsun9atgmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) an...
gpl-2.0
Lsty/ygopro-scripts
c60876124.lua
9
1080
--レア・ヴァリュー function c60876124.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c60876124.condition) e1:SetTarget(c60876124.target) e1:SetOperation(c60876124.activate) c:RegisterEffect(e1) end...
gpl-2.0
Distrotech/vlc
share/lua/sd/icast.lua
81
4264
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Julien 'Lta' BALLET <contact at lta dot io> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at y...
gpl-2.0
eldruz/dotfiles
luakit/.config/luakit/binds.lua
4
20910
----------------- -- Keybindings -- ----------------- -- Binding aliases local key, buf, but = lousy.bind.key, lousy.bind.buf, lousy.bind.but local cmd, any = lousy.bind.cmd, lousy.bind.any -- Util aliases local match, join = string.match, lousy.util.table.join local strip, split = lousy.util.string.strip, lousy.util...
mit
cshore-firmware/openwrt-luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/meetme.lua
68
1037
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require "luci.asterisk" cbimap = Map("asterisk", "MeetMe - Rooms") meetme = cbimap:section(TypedSection, "meetme", "MeetMe Rooms") meetme.addremove = true meetme.anonymous = true meetme.template = ...
apache-2.0
MalRD/darkstar
scripts/zones/Davoi/IDs.lua
9
3648
----------------------------------- -- Area: Davoi ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.DAVOI] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after sorting...
gpl-3.0
Lsty/ygopro-scripts
c26185991.lua
7
1401
--代打バッター function c26185991.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(26185991,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_TO_GRAVE) e1:SetConditi...
gpl-2.0
MalRD/darkstar
scripts/zones/Cloister_of_Storms/IDs.lua
12
1097
----------------------------------- -- Area: Cloister_of_Storms ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.CLOISTER_OF_STORMS] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the ...
gpl-3.0
MalRD/darkstar
scripts/globals/spells/katon_san.lua
12
1388
----------------------------------------- -- Spell: Katon: San -- Deals fire damage to an enemy and lowers its resistance against water. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") ----------------------------------------- function onMagicCastingCheck(ca...
gpl-3.0
gallenmu/MoonGen
interface/cli/debug.lua
4
2273
local ffi = require "ffi" local parse = require "flowparse" local Flow = require "flow" local debug = {} ffi.cdef[[ typedef struct { size_t length; uint8_t* data; } debug_packet_t; ]] local debug_packet = ffi.metatype("debug_packet_t", { __index = { getLength = function(self) return self.length end, ...
mit
sagarwaghmare69/nn
StochasticGradient.lua
65
1921
local StochasticGradient = torch.class('nn.StochasticGradient') function StochasticGradient:__init(module, criterion) self.learningRate = 0.01 self.learningRateDecay = 0 self.maxIteration = 25 self.shuffleIndices = true self.module = module self.criterion = criterion self.verbose = true end funct...
bsd-3-clause
Lsty/ygopro-scripts
c88696724.lua
3
2109
--融合呪印生物-地 function c88696724.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetDescription(aux.Stringid(88696724,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetLabel(0) e1:SetCost(c88696724.cost) e1:SetTarget(c88696724.target) e...
gpl-2.0
EUOCheffe/easyuo
proj/openeuo/gui/menu.lua
1
5273
---------------------------------------- -- Menu Code --------------------------- ---------------------------------------- -- -- This is where the main menu and the -- toolbar are built. -- ---------------------------------------- -- -- table MenuItem -- object EditPopup -- object ClosePopup -- -- fun...
bsd-2-clause
Lsty/ygopro-scripts
c54447022.lua
3
1962
--ソウル・チャージ function c54447022.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,54447022+EFFECT_COUNT_CODE_OATH) e1:SetCost(c54447022.spcost...
gpl-2.0