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
MalRD/darkstar
scripts/zones/Mamool_Ja_Training_Grounds/IDs.lua
12
4708
----------------------------------- -- Area: Mamool_Ja_Training_Grounds ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.MAMOOL_JA_TRAINING_GROUNDS] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain t...
gpl-3.0
Lsty/ygopro-scripts
c31887905.lua
6
1452
--憑依装着-アウス function c31887905.initial_effect(c) --spsummon proc local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_HAND+LOCATION_DECK) e1:SetCondition(c31887905.spcon) e1:SetOperation(c31887905.spop) c:Regis...
gpl-2.0
coral-framework/coral-qt
modules/qt/Types.lua
1
9765
local M = {} ------------------------------------------------------------------------------- -- Export QGL::FormatOption enum ------------------------------------------------------------------------------- M.FormatOption = {} M.FormatOption.DoubleBuffer = 1 M.FormatOption.DepthBuffer = 2 M.FormatOption.R...
mit
Lsty/ygopro-scripts
c55277252.lua
3
2394
--魔轟神獣ノズチ function c55277252.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(55277252,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetTarget(c55277252.tg) e1:SetOperation(c55277252.op) c:RegisterEffect(e1)...
gpl-2.0
Lsty/ygopro-scripts
c21521304.lua
3
3247
--No.39 希望皇ビヨンド・ザ・ホープ function c21521304.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,6,2) c:EnableReviveLimit() --atk local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(21521304,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT...
gpl-2.0
MalRD/darkstar
scripts/globals/items/per._snow_cone.lua
11
1087
----------------------------------------- -- ID: 6565 -- Item: Persikos Snow Cone -- Food Effect: 5 minutes, all Races ----------------------------------------- -- MP +35% (Max. 50 @ 143 Base MP) -- INT +3 -- [Element: Air]+5 ----------------------------------------- require("scripts/globals/status") require("scripts/g...
gpl-3.0
Lsty/ygopro-scripts
c29981921.lua
3
2522
--真六武衆-シエン function c29981921.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),aux.NonTuner(Card.IsSetCard,0x3d),1) c:EnableReviveLimit() --negate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(29981921,0)) e1:SetCategory(CATEGORY_NEGAT...
gpl-2.0
digoot/dotfiles
hammerspoon/key-binding.lua
1
2530
local wm = require('window-management') local hk = require "hs.hotkey" local sp = require("hs._asm.undocumented.spaces") local cf = require("caffeine-management") -- * Key Binding Utility --- Bind hotkey for window management. -- @function windowBind -- @param {table} hyper - hyper key set -- @param { ...{key=value} }...
apache-2.0
Lsty/ygopro-scripts
c3072808.lua
3
2242
--BF-天狗風のヒレン function c3072808.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(3072808,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DAMAGE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetR...
gpl-2.0
robertbrook/Penlight
tests/test-set.lua
3
3975
class = require 'pl.class' M = require 'pl.Map' S = require 'pl.Set' List = require 'pl.List' asserteq = require 'pl.test' . asserteq asserteq2 = require 'pl.test' . asserteq2 MultiMap = require 'pl.MultiMap' OrderedMap = require 'pl.OrderedMap' s1 = S{1,2} s2 = S{1,2} -- equality asserteq(s1,s2) -- union asserteq(S{...
mit
groupforspeed/WaderTG
plugins/anti_spam.lua
191
5291
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
qaheri/AASv2
plugins/Anti_Spam.lua
191
5291
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
gpl-2.0
Lsty/ygopro-scripts
c16135253.lua
3
1395
--アギド function c16135253.initial_effect(c) --dice local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(16135253,0)) e1:SetCategory(CATEGORY_DICE+CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c16135253.condition) e1:SetT...
gpl-2.0
MalRD/darkstar
scripts/globals/items/goblin_mushpot.lua
11
1069
----------------------------------------- -- ID: 4543 -- Item: goblin_mushpot -- Food Effect: 180Min, All Races ----------------------------------------- -- Mind 10 -- Charisma -5 -- Poison Resist 4 -- Blind Resist 4 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/ms...
gpl-3.0
MalRD/darkstar
scripts/zones/Northern_San_dOria/npcs/Phairupegiont.lua
9
1206
----------------------------------- -- Area: Northern San d'Oria -- NPC: Phairupegiont -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- !pos -46 0.1 76 231 ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs"); require("scripts/globals/quests"); -----------------------...
gpl-3.0
elant/cardpeek
dot_cardpeek_dir/scripts/etc/brussels-metro.lua
17
1689
BRUSSELS_METRO = { [14658] = "De Brouckere", [14668] = "Gare Centrale", [14677] = "Park", [14687] = "Art-Loi", [14697] = "Maelbeek", [14707] = "Schuman", [14716] = "Merode", [14726] = "Montgomery", [14736] = "Josephine-Charlotte", [14746] = "Gribaumont", [14755] = "Tomberg", [14765] = "Roodebeek", [14775] ...
gpl-3.0
MalRD/darkstar
scripts/globals/items/porcupine_pie.lua
11
1808
----------------------------------------- -- ID: 5156 -- Item: porcupine_pie -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 55 -- Strength 6 -- Vitality 2 -- Intelligence -3 -- Mind 3 -- HP recovered while healing 2 -- MP recovered while healing 2 -- Accuracy 5 -- Attack % 18 (cap 95) ...
gpl-3.0
MalRD/darkstar
scripts/zones/Windurst_Woods/npcs/Perih_Vashai.lua
9
6628
----------------------------------- -- Area: Windurst Woods -- NPC: Parih Vashai -- Starts and Finishes Quest: The Fanged One, From Saplings Grow -- !pos 117 -3 92 241 ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/keyitems") require("scripts/globals...
gpl-3.0
Lsty/ygopro-scripts
c5606466.lua
3
2660
--異次元の落とし穴 function c5606466.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_MSET) e1:SetTarget(c5606466.target) e1:SetOperation(c5606466.activate) c:RegisterE...
gpl-2.0
Nuthen/ludum-dare-39
data/alien_animations.lua
1
2246
-- Animation table format: -- -- (!) Animation name should match catalog name -- (!) Include comma at the end of the line inside brackets -- (*) Order does not matter -- animation_name = { -- -- -- Size of animation frames: -- -- frameWidth = number, -- frameHeight = number, -- -- -- Offset of origin: -...
mit
Lsty/ygopro-scripts
c6442944.lua
3
2990
--カイザー・シースネーク function c6442944.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:SetCountLimit(1,6442944) e1:SetCondition(c6442944.hspcon) c:Regi...
gpl-2.0
Lsty/ygopro-scripts
c73574678.lua
5
1277
--アマゾネスの吹き矢兵 function c73574678.initial_effect(c) --atkdown local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(73574678,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetRange...
gpl-2.0
Lsty/ygopro-scripts
c16404809.lua
9
1935
--クリバンデット function c16404809.initial_effect(c) --mill local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetOperation(c16404809.sumsuc) c:RegisterEffect(e1) local e2=Effect.CreateEffect(c) e2:SetDe...
gpl-2.0
gallenmu/MoonGen
libmoon/examples/hyperscan/filter_hyperscan.lua
4
2885
local lm = require "libmoon" local hs = require "hs" local ffi = require "ffi" local device = require "device" local memory = require "memory" local stats = require "stats" local pcap = require "pcap" local log = require "log" function configure(parser) parser:description("Demonstrates packet filteri...
mit
Lsty/ygopro-scripts
c1073952.lua
9
1186
--マジック・プランター function c1073952.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c1073952.cost) e1:SetTarget(c1073952.target) e1:SetOperation(c1073952.acti...
gpl-2.0
Lsty/ygopro-scripts
c46337945.lua
7
1592
--儀水鏡の瞑想術 function c46337945.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:SetCost(c46337945.cost) e1:SetTarget(c46337945.target) e1:SetOperation(c46337945.act...
gpl-2.0
Frenzie/koreader
spec/unit/readerhighlight_spec.lua
4
14277
describe("Readerhighlight module", function() local DocumentRegistry, ReaderUI, UIManager, Screen, Geom, Event setup(function() require("commonrequire") package.unloadAll() require("document/canvascontext"):init(require("device")) DocumentRegistry = require("document/documentregi...
agpl-3.0
Lsty/ygopro-scripts
c98867329.lua
7
2421
--災いの装備品 function c98867329.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(c98867329.target) e1:SetOperation(c98867329.operation) c:RegisterEffect(e1) ...
gpl-2.0
alimohamadzade/xyyyyyy
plugins/invite.lua
1
1221
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
Lsty/ygopro-scripts
c37744402.lua
3
1662
--風霊使いウィン function c37744402.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(37744402,0)) e1:SetCategory(CATEGORY_CONTROL) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP) e1:SetTarget(c37744402.target) e1:SetOperation(c37744402.oper...
gpl-2.0
Lsty/ygopro-scripts
c56619314.lua
3
3485
--DDD覇龍王ペンドラゴン function c56619314.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(56619314,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCost(c56619314.spcost) e1:SetTarget(c56619314.sptg) e1:SetOp...
gpl-2.0
MalRD/darkstar
scripts/zones/Apollyon/mobs/Air_Elemental.lua
9
2115
----------------------------------- -- Area: Apollyon SW -- Mob: Air Elemental ----------------------------------- require("scripts/globals/limbus"); ----------------------------------- function onMobDeath(mob, player, isKiller) end; function onMobDespawn(mob) local mobID = mob:getID(); -- print(mobID); loca...
gpl-3.0
Lsty/ygopro-scripts
c55690251.lua
3
2740
--堕天使ディザイア function c55690251.initial_effect(c) --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) --normal summon with 1 tribut...
gpl-2.0
MalRD/darkstar
scripts/globals/weaponskills/true_strike.lua
10
1507
----------------------------------- -- True Strike -- Club weapon skill -- Skill level: 175 -- Deals params.critical damage. params.accuracy varies with TP. -- 100% Critical Hit Rate. Has a substantial accuracy penalty at 100TP. http://www.bg-wiki.com/bg/True_Strike -- Will stack with Sneak Attack. -- Aligned with the ...
gpl-3.0
maxrio/luci981213
applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua
68
1039
-- Copyright 2012 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local dsp = require "luci.dispatcher" local utl = require "luci.util" local widget = uci:get("freifunk-widgets", arg[1], "template") local title = uci:get("f...
apache-2.0
Vexatos/PeripheralsPlusPlus
lua/barrel/barrel.lua
4
1897
--[[ Created by Fxz_y ]] p = peripheral.find("barrel") if p then while true do name = p.getLocalizedName() amount = p.getAmount() unlocalizedName = p.getUnlocalizedName() if name then term.clear() term.setCursorPos(1,1) print("Item in barrel: "..name..".") print("Amount: "..amo...
gpl-2.0
Nuthen/ludum-dare-39
states/victory.lua
1
1564
local victory = {} function victory:init() end function victory:enter(prev) self.prevState = prev end function victory:update(dt) end function victory:keypressed(key, code) State.switch(States.game) end function victory:keyreleased(key, code) end function victory:touchreleased(id, x, y, dx, dy, pressur...
mit
MalRD/darkstar
scripts/globals/weaponskills/cross_reaper.lua
10
1806
----------------------------------- -- Cross Reaper -- Scythe weapon skill -- Skill level: 225 -- Delivers a two-hit attack. Damage varies with TP. -- Modifiers: STR:30% MND:30% -- 100%TP 200%TP 300%TP -- 2.0 2.25 2.5 ----------------------------------- require("scripts/globals/status") require("scr...
gpl-3.0
MalRD/darkstar
scripts/zones/Castle_Oztroja/npcs/_47b.lua
9
1646
----------------------------------- -- Area: Castle Oztroja -- NPC: _47b (Handle) -- Notes: Opens Trap Door (_47a) or Brass Door (_470) -- !pos 22.310 -1.087 -14.320 151 ----------------------------------- local ID = require("scripts/zones/Castle_Oztroja/IDs") require("scripts/globals/missions") require("scripts/globa...
gpl-3.0
Lsty/ygopro-scripts
c53136004.lua
3
2377
--魔導皇士 アンプール function c53136004.initial_effect(c) --attack up local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_CONTROL) e1:SetDescription(aux.Stringid(53136004,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1,53136004) e1:SetCost...
gpl-2.0
openwrt/luci
applications/luci-app-olsr/luasrc/controller/olsr.lua
5
10055
module("luci.controller.olsr", package.seeall) local neigh_table = nil local ifaddr_table = nil function index() local ipv4,ipv6 if nixio.fs.access("/etc/config/olsrd") then ipv4 = 1 end if nixio.fs.access("/etc/config/olsrd6") then ipv6 = 1 end if not ipv4 and not ipv6 then return end require("luci.mo...
apache-2.0
Lsty/ygopro-scripts
c13293158.lua
3
1983
--E-HERO ワイルド・サイクロン function c13293158.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCode2(c,21844576,86188410,true,true) --spsummon condition local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetCode(...
gpl-2.0
sagarwaghmare69/nn
HingeEmbeddingCriterion.lua
50
1290
local HingeEmbeddingCriterion, parent = torch.class('nn.HingeEmbeddingCriterion', 'nn.Criterion') function HingeEmbeddingCriterion:__init(margin) parent.__init(self) self.margin = margin or 1 self.sizeAverage = true end function HingeEmbeddingCriterion:updateOutput(input,y) self.buffer = self.buffer or ...
bsd-3-clause
Lsty/ygopro-scripts
c98643358.lua
3
1278
--ダイヤモンド・ダスト function c98643358.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,0x1e0) e1:SetTarget(c98643358.target) e1:SetOperation(c98643358.activate) c:RegisterEffe...
gpl-2.0
Frenzie/koreader
spec/unit/readerui_spec.lua
4
2506
describe("Readerui module", function() local DocumentRegistry, ReaderUI, DocSettings, UIManager, Screen local sample_epub = "spec/front/unit/data/leaves.epub" local readerui setup(function() require("commonrequire") DocumentRegistry = require("document/documentregistry") ReaderUI...
agpl-3.0
MalRD/darkstar
scripts/globals/spells/blind_ii.lua
12
1858
----------------------------------------- -- Spell: Blind II -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Blind II value per point is '1' This is a constant set in the table 'merits' ----------------------------------------- require("scripts/globals/...
gpl-3.0
mortezamosavy999/zetaindex
plugins/help.lua
27
4675
do function pairsByKeys(t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] end end return iter end...
gpl-2.0
cshore-firmware/openwrt-luci
modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua
60
2460
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ifc = net:get_interface() local ipaddr, netmask, gateway, broadcast, dns, accept_ra, send_rs, ip6addr, ip6gw local mtu, metric ipaddr = section:taboption("general", Value, ...
apache-2.0
t4im/homedecor_modpack
homedecor/climate-control.lua
6
4894
-- Nodes that would affect the local temperature e.g. fans, heater, A/C local S = homedecor.gettext homedecor.register("air_conditioner", { description = S("Air Conditioner"), mesh = "homedecor_ac.obj", tiles = { "homedecor_ac.png", "default_glass.png" }, groups = { snappy = 3 }, sounds = default.node_sound...
lgpl-3.0
cshore-firmware/openwrt-luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua
6
10480
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local ipc = require "luci.ip" local o require "luci.util" m = Map("dhcp", translate("DHCP and DNS"), translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" .. "\">DHCP</abbr>-Ser...
apache-2.0
MalRD/darkstar
scripts/zones/Mount_Zhayolm/Zone.lua
11
1066
----------------------------------- -- -- Zone: Mount_Zhayolm (61) -- ----------------------------------- local ID = require("scripts/zones/Mount_Zhayolm/IDs") require("scripts/globals/helm") require("scripts/globals/zone") ----------------------------------- function onInitialize(zone) GetMobByID(ID.mob.CERBERUS)...
gpl-3.0
chu11/flux-core
src/bindings/lua/flux/shell.lua
3
3182
------------------------------------------------------------- -- Copyright 2021 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
Frenzie/koreader
frontend/ui/widget/skimtowidget.lua
4
13769
local BD = require("ui/bidi") local Blitbuffer = require("ffi/blitbuffer") local Button = require("ui/widget/button") local Device = require("device") local Event = require("ui/event") local FrameContainer = require("ui/widget/container/framecontainer") local FocusManager = require("ui/widget/focusmanager") local Geom ...
agpl-3.0
MalRD/darkstar
scripts/globals/items/jack-o-lantern.lua
11
1255
----------------------------------------- -- ID: 4488 -- Item: jack-o-lantern -- Food Effect: 180Min, All Races ----------------------------------------- -- Charisma -10 -- Accuracy 10 -- Ranged Acc 10 -- Evasion 10 -- Arcana Killer 4 -- Dark Res 25 ----------------------------------------- require("scripts/globals/sta...
gpl-3.0
Lsty/ygopro-scripts
c83319610.lua
5
4922
--発条の巻き上げ function c83319610.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c83319610.mttg1) e1:SetOperation(c83319610.mtop) c:RegisterEffect(e1) --material local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(8...
gpl-2.0
Lsty/ygopro-scripts
c44186624.lua
3
3070
--DDD制覇王カイゼル function c44186624.initial_effect(c) --spsummon success local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c44186624.effcon) e1:SetTarget(c44186624.distg) e1:SetOperation(c44186624....
gpl-2.0
Lsty/ygopro-scripts
c30241314.lua
3
1214
--マクロコスモス function c30241314.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:SetHintTiming(0,TIMING_DRAW_PHASE) e1:SetOperation(c30241314.activate) c:RegisterEffect(e1) --remove local e2=Effec...
gpl-2.0
MalRD/darkstar
scripts/globals/mobskills/optic_induration.lua
11
1404
--------------------------------------------- -- Optic Induration -- -- Description: Charges up a powerful, calcifying beam directed at targets in a fan-shaped area of effect. Additional effect: Petrification &amp enmity reset -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- No...
gpl-3.0
Lsty/ygopro-scripts
c89801755.lua
3
1481
--深淵の指名者 function c89801755.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCost(c89801755.cost) e1:SetTarget(c89801755.target) e1:SetOperation(c89801755.activate) c:RegisterEffect(e1) end...
gpl-2.0
SecondReality/Mudlet-Suttonian
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
Lsty/ygopro-scripts
c52977572.lua
5
2570
--ドラグニティ-ピルム function c52977572.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(52977572,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c52977572.sptg) e1:SetOp...
gpl-2.0
MalRD/darkstar
scripts/zones/Kuftal_Tunnel/npcs/qm6.lua
9
1602
----------------------------------- -- Area: Kuftal Tunnel -- NPC: ??? -- Involved in Mission: Bastok 8-2 ----------------------------------- local ID = require("scripts/zones/Kuftal_Tunnel/IDs") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/npc_util") ---------------...
gpl-3.0
MalRD/darkstar
scripts/zones/Bastok-Jeuno_Airship/IDs.lua
12
1290
----------------------------------- -- Area: Bastok-Jeuno_Airship ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[dsp.zone.BASTOK_JEUNO_AIRSHIP] = { text = { ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item...
gpl-3.0
imblackman/khoffash1
plugins/banhammer.lua
7
36665
local function pre_process(msg) chat = msg.chat_id_ user = msg.sender_user_id_ local function check_newmember(arg, data) test = load_data(_config.moderation.data) lock_bots = test[arg.chat_id]['settings']['lock_bots'] local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data.type_.ID == "UserTy...
gpl-3.0
mohammad25253/new43
plugins/LinkPv.lua
107
31031
do local function check_member(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[tostring(msg.to.id)] = { ...
gpl-2.0
misterdustinface/snow
snow/src/x.lua
1
4636
EXPLICITLY_DEFINE = 'Please explicitly define the value of this variable in "make"'; local x = { context = 'default', objectsByContext = { default = {}, }, definitions = { default = {}, }, makers = { default = function(xSettings) return xSettings end, }, errorMessages = { ...
gpl-2.0
Lsty/ygopro-scripts
c63804806.lua
7
3174
--スピード・キング☆スカル・フレイム function c63804806.initial_effect(c) c:EnableReviveLimit() --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(c63804806.spcon) e1:SetOperation(c6380...
gpl-2.0
MalRD/darkstar
scripts/commands/petgodmode.lua
14
2916
--------------------------------------------------------------------------------------------------- -- func: petgodmode -- desc: Toggles god mode on the player's pet, granting them several special abilities. --------------------------------------------------------------------------------------------------- cmdprops = ...
gpl-3.0
moody2020/TH3_BOSS
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
NENO7/GENERAL
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
mortezamosavy999/zetaindex
plugins/stats.lua
23
4115
-- Saves the number of messages from a user -- Can check the number of messages with !stats do local NUM_MSG_MAX = 5 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name....
gpl-2.0
bobmajdakjr/wow-bobs-cast-chatter
BobCastChatter/BobCastChatter.lua
1
2315
--[[ Bob's Cast Chatter. This addon allows you to proc emotes by chance when spells are cast, as well as by chance by an idle timer. For more details, see the Github repository: https://github.com/bobmajdakjr/wow-bobs-cast-chatter/blob/master/README.md --]] --[[ global table BCCDB function BCC_OnEvent(self, event, .....
bsd-2-clause
Lsty/ygopro-scripts
c95090813.lua
3
3890
--コアキメイル・ウォーアームズ function c95090813.initial_effect(c) --cost local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCountLimit(1) e1:SetRange(LOCATION_MZONE) e1:SetCondition(c9...
gpl-2.0
Lsty/ygopro-scripts
c69402394.lua
5
1568
--暗黒の謀略 function c69402394.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c69402394.target) e1:SetOperation(c69402394.activate) c:RegisterEffect(e1) e...
gpl-2.0
MalRD/darkstar
scripts/globals/items/plate_of_tentacle_sushi.lua
11
1548
----------------------------------------- -- ID: 5215 -- Item: plate_of_tentacle_sushi -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 20 -- Dexterity 3 -- Agility 3 -- Mind -1 -- Accuracy % 20 (cap 18) -- Ranged Accuracy % 20 (cap 18) -- Double Attack 1 --------------------------------...
gpl-3.0
MalRD/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Longbow.lua
9
1181
----------------------------------- -- Area: Dynamis - Xarcabard -- Mob: Animated Longbow ----------------------------------- require("scripts/globals/status"); local ID = require("scripts/zones/Dynamis-Xarcabard/IDs"); ----------------------------------- function onMobEngaged(mob,target) if (mob:AnimationSub() ...
gpl-3.0
MalRD/darkstar
scripts/globals/weaponskills/sniper_shot.lua
10
1513
----------------------------------- -- Sniper Shot -- Marksmanship weapon skill -- Skill Level: 80 -- Lowers enemy's INT. Chance of params.critical varies with TP. -- Aligned with the Flame Gorget & Light Gorget. -- Aligned with the Flame Belt & Light Belt. -- Element: None -- Modifiers: AGI:70% -- 100%TP 200%TP ...
gpl-3.0
morfeo642/mta_plr_server
hedit/client/logmanager.lua
1
5880
function addLogEntry ( vehicle, player, textPointer, arguments, oldValue, level ) if not isValidVehicle ( vehicle ) then return false end if not isValidPlayer ( player ) then return false end if type ( textPointer ) ~= "string" then return false end if ...
mit
jmattsson/nodemcu-firmware
lua_examples/ucglib/GT_cross.lua
31
1442
local M, module = {}, ... _G[module] = M function M.run() -- make this a volatile module: package.loaded[module] = nil print("Running component cross...") local mx, my disp:setColor(0, 250, 0, 0) disp:setColor(1, 255, 255, 30) disp:setColor(2, 220, 235, 10) disp:setColor(3, 205, 0, 30...
mit
Lsty/ygopro-scripts
c65305468.lua
3
3827
--FNo.0 未来皇ホープ function c65305468.initial_effect(c) --xyz summon c:EnableReviveLimit() local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetRange(LOCATION_EXTRA) e1:SetCondition(c65305468.xyzcon) e1:SetOperation(c65305468.xy...
gpl-2.0
MalRD/darkstar
scripts/globals/mobskills/stone_throw.lua
11
1028
--------------------------------------------- -- Stone Throw -- -- Description: Damages a single target. Additional effect: Paralysis -- Type: Physical -- Utsusemi/Blink absorb: 1 shadow -- Range: Melee -- Notes: --------------------------------------------- require("scripts/globals/settings") require("scripts/g...
gpl-3.0
SecondReality/Mudlet-Suttonian
src/mudlet-lua/lua/geyser/GeyserColor.lua
19
6003
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -------------------------------------- Geyser.Color = {} --- Converts color to 3 hex values as a string, no alpha, css style -- @return The color formatted as a h...
gpl-2.0
CommandPost/CommandPost-App
extensions/image/image.lua
4
2676
--- === hs.image === --- --- A module for capturing and manipulating image objects from other modules for use with hs.drawing. --- local module = require("hs.libimage") local objectMT = hs.getObjectMetatable("hs.image") require("hs.drawing.color") -- make sure that the conversion helpers required to support color are...
mit
MalRD/darkstar
scripts/globals/mobskills/ink_jet_alt.lua
9
1030
--------------------------------------------- -- Ink Jet alt -- -- Description: Unleashes a torrent of black spores in a fan-shaped area of effect, dealing dark damage to targets. Additional effect: Blind -- Type: Magical Dark (Element) -- -- Notes: Used by Fe'e in Up in Arms BCNM ----------------------------------...
gpl-3.0
Lsty/ygopro-scripts
c93294869.lua
6
1854
--傷炎星-ウルブショウ function c93294869.initial_effect(c) --set local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(93294869,0)) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_FLIP) e1:SetTarget(c93294869.settg) e1:SetOperation(...
gpl-2.0
Lsty/ygopro-scripts
c45986603.lua
7
2594
--強奪 function c45986603.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_CONTROL+CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c45986603.target) e1:SetOperation(c45986603.operation) c:Regist...
gpl-2.0
Lsty/ygopro-scripts
c25958491.lua
9
1726
--エンシェント・ホーリー・ワイバーン function c25958491.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_LIGHT),aux.NonTuner(nil),1) c:EnableReviveLimit() --Atk update local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:...
gpl-2.0
Lsty/ygopro-scripts
c50078509.lua
3
2154
--デモンズ・チェーン function c50078509.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DISABLE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,0x1c0) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c50078509.target) e1:SetOperation(c50078509.o...
gpl-2.0
gallenmu/MoonGen
interface/options/mode.lua
4
3123
local function get_update_delay_one(flow) return function() flow.updatePacket = flow._update_packet flow._update_packet = nil end end local function _random(dv, pkt) local index = math.random(dv.count) dv[index]:update() dv:applyAll(pkt) end local function _random_alt(dv, pkt) local index = math.random(dv.c...
mit
rotmanmi/nn
SpatialSubSampling.lua
44
1412
local SpatialSubSampling, parent = torch.class('nn.SpatialSubSampling', 'nn.Module') function SpatialSubSampling:__init(nInputPlane, kW, kH, dW, dH) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.kW = kW self.kH = kH self.dW = dW self.dH = dH self.weight...
bsd-3-clause
bryansum/urMus
urMus-Lua/urTicTacToe.lua
1
4192
-- urTicTacToe -- Concept by: Georg Essl & Nate Derbinsky -- Initial Hack by: Georg Essl 04/29/10 local backdrop = Region('region','backdrop',UIParent) backdrop.t = backdrop:Texture() backdrop.t:SetTexture("Default.png") backdrop.t:SetTexCoord(0,0.63,0.94,0.0); backdrop:SetLayer("BACKGROUND") backdrop:SetWidth(ScreenW...
mit
Lsty/ygopro-scripts
c46052429.lua
3
1907
--高等儀式術 function c46052429.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:SetTarget(c46052429.target) e1:SetOperation(c46052429.activate) c:RegisterEffect(e1) end function c46052429....
gpl-2.0
Lsty/ygopro-scripts
c28378427.lua
7
1448
--ダメージ・コンデンサー function c28378427.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_BATTLE_DAMAGE) e1:SetCondition(c28378427.condition) e1:SetCost(c28378427.cost) e1:SetTarget(c28378427.target) e1:SetOperation(c...
gpl-2.0
MalRD/darkstar
scripts/globals/items/pipira.lua
11
1406
----------------------------------------- -- ID: 5787 -- Item: pipira -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 -- Attack % 14.5 ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ------------------------...
gpl-3.0
Lsty/ygopro-scripts
c10456559.lua
3
1099
--悪魂邪苦止 function c10456559.initial_effect(c) --add local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetDescription(aux.Stringid(10456559,0)) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c10456559.condition) e1:SetTarget(c10456559.targe...
gpl-2.0
Lsty/ygopro-scripts
c9925982.lua
3
1332
--ブラック・リベンジ function c9925982.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c9925982.condition) e1:SetTarget(c9925982.target) e1:SetOperation(c9925982.activate) c:RegisterE...
gpl-2.0
Lsty/ygopro-scripts
c96606246.lua
3
1208
--EMフレンドンキー function c96606246.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(96606246,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c96606246.sptg) e1:SetOperation(c9660...
gpl-2.0
cleytonk/globalfull
data/spells/scripts/support/sharpshooter.lua
7
1137
local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_TICKS, 10000) condition:setParameter(CONDITION_PARAM_SKILL_DISTANCEPERCENT, 150) condition:setP...
gpl-2.0
MalRD/darkstar
scripts/globals/weaponskills/tachi_enpi.lua
10
1387
----------------------------------- -- Tachi Enpi -- Great Katana weapon skill -- Skill Level: 5 -- Delivers a two-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Light Gorget & Soil Gorget. -- Aligned with the Light Belt & Soil Belt. -- Element: None -- Modifiers: STR:60% -- 100...
gpl-3.0
MalRD/darkstar
scripts/globals/weaponskills/blade_yu.lua
10
1621
----------------------------------- -- Blade Yu -- Katana weapon skill -- Skill Level: 290 -- Delivers a water elemental attack. Additional effect Poison. Durration varies with TP. -- Aligned with the Aqua Gorget & Soil Gorget. -- Aligned with the Aqua Belt & Soil Belt. -- Element: Water -- Modifiers: DEX:50% INT:50% ...
gpl-3.0