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/abilities/pets/attachments/attuner.lua
11
3977
----------------------------------- -- Attachment: Attuner ----------------------------------- require("scripts/globals/status") ----------------------------------- function onEquip(pet) pet:addListener("ENGAGE", "AUTO_ATTUNER_ENGAGE", function(pet, target) local master = pet:getMaster() if pet:get...
gpl-3.0
Lsty/ygopro-scripts
c1127737.lua
3
1910
--異次元の古戦場-サルガッソ function c1127737.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --damage local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(1127737,0)) e2:SetCategory(CATEGORY_DAMAGE) e2:SetType(EFFEC...
gpl-2.0
Lsty/ygopro-scripts
c21954587.lua
3
3570
--水精鱗-メガロアビス function c21954587.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(21954587,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCost(c21954587.spcost) e1:SetTarget(c21954587.sptg) e1:SetOper...
gpl-2.0
zhaozg/lit
deps/weblit-router.lua
5
3215
--[[lit-meta name = "creationix/weblit-router" version = "3.0.1" dependencies = { 'luvit/querystring@2.0.0' } description = "Weblit is a webapp framework designed around routes and middleware layers." tags = {"weblit", "router", "framework"} license = "MIT" author = { name = "Tim Caswell" } homepa...
apache-2.0
MalRD/darkstar
scripts/globals/spells/deodorize.lua
12
1046
----------------------------------------- -- Spell: Deodorize -- Lessens chance of being detected by smell. -- Duration is random number between 30 seconds and 5 minutes ----------------------------------------- require("scripts/globals/magic") require("scripts/globals/msg") require("scripts/globals/settings") require(...
gpl-3.0
Lsty/ygopro-scripts
c81601517.lua
3
1577
--ヴィクティム・カウンター function c81601517.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c81601517.condition) e1:SetTarget(c81601517.target) ...
gpl-2.0
Lsty/ygopro-scripts
c87259077.lua
7
1197
--ライトニング・ウォリアー function c87259077.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(87259077,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1...
gpl-2.0
Lsty/ygopro-scripts
c17814387.lua
3
1296
--援軍 function c17814387.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) e1:SetCondition(c17814387.con...
gpl-2.0
openwrt/luci
modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua
3
1258
-- 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. module("luci.controller.mini.index", package.seeall) function index() local root = node() if not root.lock then root.target = alias("mini") root.index =...
apache-2.0
ASDF482/TeleTak
plugins/short-link.lua
1
1253
local function run(msg, matches) local yon = http.request('http://api.yon.ir/?url='..URL.escape(matches[1])) local jdat = json:decode(yon) local bitly = https.request('https://api-ssl.bitly.com/v3/shorten?access_token=f2d0b4eabb524aaaf22fbc51ca620ae0fa16753d&longUrl='..URL.escape(matches[1])) local data = json:...
gpl-2.0
mikhail-angelov/vlc
share/lua/playlist/appletrailers.lua
9
3275
--[[ Translate trailers.apple.com video webpages URLs to the corresponding movie URL $Id$ Copyright © 2007-2010 the VideoLAN team 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 ve...
gpl-2.0
Lsty/ygopro-scripts
c44273680.lua
9
1446
--光天使ブックス function c44273680.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(44273680,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit(1) e1:SetCost(c44273680.spcost) e1:SetTarget(c4427368...
gpl-2.0
Lsty/ygopro-scripts
c79844764.lua
3
1360
--帝王の烈旋 function c79844764.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,79844764+EFFECT_COUNT_CODE_OATH) e1:SetCost(c79844764.cost) e1:SetOperation(c79844764.activate) c:RegisterEffect(e1) Duel.AddCustomActivityCou...
gpl-2.0
MalRD/darkstar
scripts/globals/abilities/pets/howling_moon.lua
11
1191
--------------------------------------------------- -- Howling Moon --------------------------------------------------- require("/scripts/globals/settings") require("/scripts/globals/status") require("/scripts/globals/monstertpmoves") require("/scripts/globals/magic") --------------------------------------------------...
gpl-3.0
MalRD/darkstar
scripts/globals/weaponskills/raging_rush.lua
10
1455
----------------------------------- -- Raging Rush -- Great Axe weapon skill -- Skill level: 200 (Warriors only.) -- Delivers a three-hit attack. Chance of params.critical hit varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Snow Gorget & Aqua Gorget. -- Aligned with the Snow Belt & Aqua Belt. -- El...
gpl-3.0
Lsty/ygopro-scripts
c21840375.lua
7
1183
--隠された魔導書 function c21840375.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c21840375.condition) e1:SetTarget(c21840375.target) e1:SetOperation(c21...
gpl-2.0
Attractive1/Attractive-Robot
plugins/plugins.lua
64
6122
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 if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
MalRD/darkstar
scripts/zones/Port_Windurst/npcs/Gomada-Vulmada.lua
9
2406
----------------------------------- -- Area: Port Windurst -- NPC: Gomada-Vulmada ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) TruthJusticeOnionW...
gpl-3.0
Lsty/ygopro-scripts
c5861892.lua
3
4988
--アルカナフォースEX-THE LIGHT RULER function c5861892.initial_effect(c) c:EnableReviveLimit() --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) e1:SetCondition(c5861892.spcon) e1:SetOperation...
gpl-2.0
Lsty/ygopro-scripts
c60202749.lua
3
3148
--アビスフィアー function c60202749.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_END_PHASE+TIMING_MAIN_END) e1:SetTarget(c60202749.target) e1:SetOperation(c60202749.operation)...
gpl-2.0
MalRD/darkstar
scripts/globals/items/marinara_pizza.lua
11
1296
----------------------------------------- -- ID: 5743 -- Item: marinara_pizza -- Food Effect: 3 hours, all Races ----------------------------------------- -- HP +20 -- Attack +20% (cap 50 @ 250 base attack) -- Accuracy +10% (54) -- Undead Killer ----------------------------------------- require("scripts/globals/status"...
gpl-3.0
MalRD/darkstar
scripts/zones/Chamber_of_Oracles/npcs/Armoury_Crate.lua
9
3422
----------------------------------- -- Area: Chamber of Oracles -- NPC: Armoury Crate ------------------------------------- require("scripts/globals/battlefield") require("scripts/globals/bcnm") ------------------------------------- local loot = { -- BCNM Legion XI Comitatensis [193] = { { ...
gpl-3.0
MalRD/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Elysia.lua
9
1330
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Elysia -- Starts Quest: Unforgiven -- !pos -50.410 -22.204 -41.640 26 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/quests") ----------------------------------- function onTrade(player,npc,trade)...
gpl-3.0
Lsty/ygopro-scripts
c5014629.lua
9
1315
--潜航母艦エアロ・シャーク function c5014629.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,3,2) c:EnableReviveLimit() --damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(5014629,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCountLimit...
gpl-2.0
patixx/bostg
plugins/terminal.lua
16
1530
function run_sh(msg, matches) name = get_name(msg) text = '' -- if config.sh_enabled == false then -- text = '!sh command is disabled' -- else -- if is_sudo(msg) then -- bash = msg.text:sub(4,-1) -- text = run_bash(bash) -- else -- text = nam...
gpl-2.0
shahabsaf1/My-system
plugins/isX.lua
605
2031
local https = require "ssl.https" local ltn12 = require "ltn12" local function request(imageUrl) -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local api_key = mashape.api_key if ...
gpl-2.0
tarulas/luadch
luasocket/src/ftp.lua
60
9243
----------------------------------------------------------------------------- -- FTP support for the Lua language -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- D...
gpl-3.0
Lsty/ygopro-scripts
c16796157.lua
3
1204
--野獣戦士ピューマン function c16796157.initial_effect(c) --salvage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(16796157,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCost(c16796157.thcost) e1:SetTarget(c16796157.thtg) e1:SetOpe...
gpl-2.0
ThingMesh/openwrt-luci
libs/web/luasrc/dispatcher.lua
72
23586
--[[ LuCI - Dispatcher Description: The request dispatcher and module dispatcher generators FileId: $Id$ License: 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...
apache-2.0
Lsty/ygopro-scripts
c24094653.lua
3
3010
--融合 function c24094653.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(c24094653.target) e1:SetOperation(c24094653.activate) c:RegisterEffect(e1) end function c24094653.filter1(c,e) ...
gpl-2.0
Lsty/ygopro-scripts
c72881007.lua
3
1960
--宝玉の氾濫 function c72881007.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCost(c72881007.cost) e1:SetTarget(c72881007.target) e1:SetOperation(c72881007.activate) c:Register...
gpl-2.0
Frenzie/koreader
frontend/ui/elements/reader_menu_order.lua
1
6980
local Device = require("device") local order = { ["KOMenu:menu_buttons"] = { "navi", "typeset", "setting", "tools", "search", "filemanager", "main", }, navi = { "table_of_contents", "bookmarks", "toggle_bookmark", -- if not Dev...
agpl-3.0
tst2005/md5.lua
md5.lua
12
10287
local md5 = { _VERSION = "md5.lua 1.0.2", _DESCRIPTION = "MD5 computation in Lua (5.1-3, LuaJIT)", _URL = "https://github.com/kikito/md5.lua", _LICENSE = [[ MIT LICENSE Copyright (c) 2013 Enrique García Cota + Adam Baldwin + hanzao + Equi 4 Software Permission is hereby granted, fr...
mit
MalRD/darkstar
scripts/zones/San_dOria-Jeuno_Airship/npcs/Nigel.lua
12
1870
----------------------------------- -- Area: San d'Oria-Jeuno Airship -- NPC: Nigel -- Standard Info NPC ----------------------------------- local ID = require("scripts/zones/San_dOria-Jeuno_Airship/IDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) ...
gpl-3.0
Lsty/ygopro-scripts
c24545464.lua
3
1171
--シンクロン・リフレクト function c24545464.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_BE_BATTLE_TARGET) e1:SetCondition(c24545464.condition) e1:SetTarget(c24545464.target) e1:SetOp...
gpl-2.0
mickelfeng/ABTestingGateway
lib/resty/lock.lua
26
4451
-- Copyright (C) Yichun Zhang (agentzh) local ffi = require "ffi" local ffi_new = ffi.new local shared = ngx.shared local sleep = ngx.sleep local shdict_mt local debug = ngx.config.debug local setmetatable = setmetatable local getmetatable = getmetatable local tonumber = tonumber local _M = { _VERSION = '0.04' } lo...
mit
Lsty/ygopro-scripts
c51254277.lua
5
1060
--ビッグ・ジョーズ function c51254277.initial_effect(c) --reg local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetOperation(c51254277.regop) c:RegisterEffect(e1) end function c51254277.regop(e,tp,eg,ep,ev,re,r,rp) --remove local e1=Effect.CreateE...
gpl-2.0
Frenzie/koreader
frontend/apps/reader/modules/readerwikipedia.lua
4
27697
local BD = require("ui/bidi") local ButtonDialogTitle = require("ui/widget/buttondialogtitle") local ConfirmBox = require("ui/widget/confirmbox") local DataStorage = require("datastorage") local DictQuickLookup = require("ui/widget/dictquicklookup") local InfoMessage = require("ui/widget/infomessage") local InputDialog...
agpl-3.0
cshore-firmware/openwrt-luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialplans.lua
68
2597
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") cbimap = Map("asterisk", "Registered Trunks") cbimap.pageaction = false local sip_peers = { } cbimap.uci:foreach("asterisk", "sip", function(s) if s.type == "peer" then ...
apache-2.0
Lsty/ygopro-scripts
c43573231.lua
3
1464
--幻蝶の刺客モルフォ function c43573231.initial_effect(c) --atk,def local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(43573231,0)) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD) e1:SetCode(EVENT_CHANGE_POS) e1...
gpl-2.0
Lsty/ygopro-scripts
c79972330.lua
5
1247
--幻蝶の刺客アゲハ function c79972330.initial_effect(c) --atk local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(79972330,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_FIELD) e1:SetCode(EVENT_BATTLE_DAMAGE) e1:SetRange(LOCATION_MZ...
gpl-2.0
MalRD/darkstar
scripts/globals/items/bowl_of_goblin_stew.lua
11
1196
----------------------------------------- -- ID: 4465 -- Item: bowl_of_goblin_stew -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Dexterity -4 -- Attack +16% (cap 80) -- Ranged Attack +16% (cap 80) ----------------------------------------- require("scripts/globals/status") require("scripts...
gpl-3.0
RamiLego4Game/PlatformerWorld
Engine/Tiles/Sand.lua
1
2408
--Author : Ramilego4Game - This File Is Part Of Platformer World-- --Type : Class/Tile-- Tile = class:new() function Tile:init() self.name = "Sand" self.category = "Ground" self.thumbnail = nil self.hover = "sand" self.snap = 70 end function Tile:create(marker,map) self.object = B2Object:newTile(marker.x,mark...
gpl-2.0
Lsty/ygopro-scripts
c63300440.lua
6
1753
--ドラゴン・シールド function c63300440.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(c63300440.target) e1:SetOperation(c63300440.operation) c:RegisterEffect(e...
gpl-2.0
Lsty/ygopro-scripts
c45547649.lua
9
1154
--バード・フェイス function c45547649.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(45547649,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c45547649.condition) e1:Set...
gpl-2.0
MalRD/darkstar
scripts/globals/weaponskills/vorpal_scythe.lua
10
1643
----------------------------------- -- Vorpal Scythe -- Scythe weapon skill -- Skill level: 150 -- Delivers a single-hit attack. params.crit varies with TP. -- Modifiers: STR:100% -- 100%TP 200%TP 300%TP -- 1.0 1.0 1.0 ----------------------------------- require("scripts/globals/settings") requir...
gpl-3.0
tarulas/luadch
luasocket/src/http.lua
1
12204
----------------------------------------------------------------------------- -- HTTP/1.1 client support for the Lua language. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: http.lua,v 1.71 2007/10/13 23:55:20 diego Exp $ ----------------------------------------------------------------------------- -----...
gpl-3.0
MahmoudDolah/Firmware-Entry-Points-In-Memory
openwrt/openwrt-generic-x86/usr/lib/lua/luci/model/cbi/admin_network/proto_6in4.lua
64
3139
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, peeraddr, ip6addr, tunnelid, username, password local defaultroute, metric, ttl, mtu ipaddr = s:taboption("general", Value, "ipaddr", translate("Local IPv4 address...
apache-2.0
cshore-firmware/openwrt-luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua
64
3139
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, peeraddr, ip6addr, tunnelid, username, password local defaultroute, metric, ttl, mtu ipaddr = s:taboption("general", Value, "ipaddr", translate("Local IPv4 address...
apache-2.0
Lsty/ygopro-scripts
c72896720.lua
3
2020
--インフェルニティ・デス・ドラゴン function c72896720.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_DARK),aux.NonTuner(nil),1) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) ...
gpl-2.0
MalRD/darkstar
scripts/zones/Apollyon/bcnms/central_apollyon_ii.lua
10
1056
----------------------------------- -- Area: Appolyon -- Name: ----------------------------------- require("scripts/globals/limbus"); require("scripts/globals/battlefield") -- After registering the BCNM via bcnmRegister(bcnmid) function onBattlefieldRegister(player,battlefield) end; function onBattlefieldTic...
gpl-3.0
Lsty/ygopro-scripts
c11925569.lua
9
1183
--狩猟本能 function c11925569.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c11925569.condition) e1:SetTarget(c11925569.target) e1:SetOperation(c11925569.activate) c:RegisterEf...
gpl-2.0
Mijyuoon/starfall
lua/starfall/libs_sh/net.lua
1
8169
------------------------------------------------------------------------------- -- Networking library. ------------------------------------------------------------------------------- local net = net --- Net message library. Used for sending data from the server to the client and back local net_library, _ = SF.Librari...
bsd-3-clause
gallenmu/MoonGen
libmoon/lua/lib/turbo/turbo/structs/buffer.lua
12
8668
-- Turbo.lua Low-level buffer implementation -- -- Copyright 2013 John Abrahamsen -- -- 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 -- -- Un...
mit
cshore-firmware/openwrt-luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phones.lua
68
2736
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") cbimap = Map("asterisk", "Registered Phones") cbimap.pageaction = false local sip_peers = { } cbimap.uci:foreach("asterisk", "sip", function(s) if s.type ~= "peer" then ...
apache-2.0
Frenzie/koreader
plugins/exporter.koplugin/clip.lua
2
12799
local DocumentRegistry = require("document/documentregistry") local DocSettings = require("docsettings") local ReadHistory = require("readhistory") local lfs = require("libs/libkoreader-lfs") local logger = require("logger") local md5 = require("ffi/sha2").md5 local util = require("util") local _ = require("gettext") l...
agpl-3.0
MalRD/darkstar
scripts/globals/items/plate_of_barnacle_paella.lua
11
1345
----------------------------------------- -- ID: 5974 -- Item: Plate of Barnacle Paella -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- HP 40 -- Vitality 5 -- Mind -1 -- Charisma -1 -- Defense % 25 Cap 150 -- Undead Killer 5 ----------------------------------------- require("scripts/global...
gpl-3.0
mortezamosavy999/zetaindex
plugins/autoleave.lua
27
1849
--[[ Kicking ourself (bot) from unmanaged groups. When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group. Enable plugin using !plugins plugin. And if your bot already invited into...
gpl-2.0
Lsty/ygopro-scripts
c14154221.lua
3
1618
--進化の代償 function c14154221.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --destroy local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(14154221,0)) e2:SetCategory(CATEGORY_DESTROY) e2:SetType(EFFECT_TY...
gpl-2.0
T-L-N/Dev_TLN
plugins/getlink.lua
1
27789
--[[ --By @x_I_10_I_x --By @llN00Nll --By @liknil --ch> @Dev_TLN ▀▄ ▄▀ A SPECiAL LINK : الرابط خاص ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀ --]] 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 ...
gpl-2.0
MalRD/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Zasshal.lua
9
3230
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Zasshal -- Type: Salvage Key Item giver -- !pos 101.468 -1 -20.088 50 ----------------------------------- require("scripts/globals/missions") require("scripts/globals/keyitems") function onTrade(player,npc,trade) end; function onTrigger(player...
gpl-3.0
Lsty/ygopro-scripts
c71587526.lua
3
1547
--因果切断 function c71587526.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,0x1e0) e1:SetCost(c71587526.cost) e1:SetTarget(c71587526.target) e1:Se...
gpl-2.0
mamadkiller2/anti-spam
libs/dateparser.lua
31
6347
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
gpl-3.0
Lsty/ygopro-scripts
c46363422.lua
3
2047
--熟練の白魔導師 function c46363422.initial_effect(c) c:EnableCounterPermit(0x3001) c:SetCounterLimit(0x3001,3) --add counter local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e0:SetCode(EVENT_CHAINING) e0:SetRange(LOCATION_MZONE) e0:SetOpe...
gpl-2.0
rotmanmi/nn
DepthConcat.lua
43
4471
------------------------------------------------------------------------ --[[ DepthConcat ]]-- -- Concatenates the output of Convolutions along the depth dimension -- (nOutputFrame). This is used to implement the DepthConcat layer -- of the Going deeper with convolutions paper : -- http://arxiv.org/pdf/1409.4842v1.pdf ...
bsd-3-clause
Lsty/ygopro-scripts
c49597193.lua
3
1807
--ジェムナイト・パーズ function c49597193.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCodeFun(c,54620698,aux.FilterBoolFunction(Card.IsSetCard,0x1047),1,false,false) --spsummon condition local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+...
gpl-2.0
MalRD/darkstar
scripts/zones/Bastok_Markets/npcs/Malene.lua
9
1627
----------------------------------- -- Area: Bastok Markets -- NPC: Malene -- Type: Quest NPC -- !pos -173 -5 64 235 ----------------------------------- require("scripts/globals/npc_util"); require("scripts/globals/quests"); require("scripts/globals/titles"); function onTrade(player,npc,trade) if (player:getQuest...
gpl-3.0
Frenzie/koreader
frontend/ui/elements/file_ext_assoc.lua
8
1957
local Device = require("device") local _ = require("gettext") local function getSupportedExtensions() local t = require("document/documentregistry"):getExtensions() t["sh"] = nil t["py"] = nil return t end local ExtAssoc = { assoc = G_reader_settings:readSetting("file_ext_assoc") or {}, } functio...
agpl-3.0
Mythricia/AvAddon
AvUtils.lua
1
6875
-- DataHoarder & TellMyStory Utilities -- By: Avael @ Argent Dawn EU local _, addonTable = ... local rainbowName = "|cFF9400D3A|r|cFF4B0082v|r|cFFEE1289A|r|cFF00FF00d|r|cFFFFFF00d|r|cFFFF7F00o|r|cFFFF0000n|r" addonTable.AvUtil = {} -- Pretty color tags local cTag = "|cFF" -- Separate the tag and Alpha (always...
gpl-3.0
Lsty/ygopro-scripts
c14094090.lua
3
2059
--超戦士の儀式 function c14094090.initial_effect(c) aux.AddRitualProcEqual(c,c14094090.ritual_filter) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCountLimit(1,14094090) e1:SetCondition(aux.exccon) e1:SetCost(c14...
gpl-2.0
Lsty/ygopro-scripts
c73906480.lua
3
2293
--武神降臨 function c73906480.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c73906480.condition) e1:SetTarget(c73906480.target) e1:SetOperatio...
gpl-2.0
maxrio/luci981213
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/iface_add.lua
33
3121
-- Copyright 2009-2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local nw = require "luci.model.network".init() local fw = require "luci.model.firewall".init() local utl = require "luci.util" local uci = require "luci.model.uci".cursor() m = SimpleForm("network", tran...
apache-2.0
Cyril-Roques/packages
net/smartsnmpd/files/mibs/system.lua
158
6428
-- -- This file is part of SmartSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- -- 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 optio...
gpl-2.0
sairon/packages
net/smartsnmpd/files/mibs/system.lua
158
6428
-- -- This file is part of SmartSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- -- 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 optio...
gpl-2.0
MalRD/darkstar
scripts/commands/checkvar.lua
9
1762
--------------------------------------------------------------------------------------------------- -- func: checkvar <varType> <varName> -- desc: checks player or server variable and returns result value. --------------------------------------------------------------------------------------------------- cmdprops = { ...
gpl-3.0
Lsty/ygopro-scripts
c51852507.lua
3
1462
--薔薇の聖弓手 function c51852507.initial_effect(c) --Negate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(51852507,0)) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_CHAINING) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAG...
gpl-2.0
openwrt/luci
applications/luci-app-squid/luasrc/model/cbi/squid.lua
95
1822
--[[ LuCI Squid module Copyright (C) 2015, OpenWrt.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 Author: Marko Ratkaj <marko.ratkaj@sartura.hr> ...
apache-2.0
tofurama3000/The-Obscurity-Project
cocos2d/plugin/luabindings/auto/api/ProtocolAnalytics.lua
146
2113
-------------------------------- -- @module ProtocolAnalytics -- @extend PluginProtocol -- @parent_module plugin -------------------------------- -- brief Track an event begin.<br> -- param eventId The identity of event -- @function [parent=#ProtocolAnalytics] logTimedEventBegin -- @param self -- @param #char eventI...
mit
shahabsaf1/My-system
plugins/exchange.lua
352
2076
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local function comma_value(n) -- credit http://richard.warburton.it local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') return left..(num:reverse():gsub('...
gpl-2.0
ashkanpj/yagoopfire
plugins/anti-bot.lua
369
3064
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot (userId, ch...
gpl-2.0
MalRD/darkstar
scripts/zones/Windurst_Waters/npcs/Upih_Khachla.lua
12
1630
----------------------------------- -- Area: Windurst Waters -- NPC: Upih Khachla -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/events/harvest_festivals") require("scripts/globals/shop"); require("scripts/globals/conquest"); local ID = requir...
gpl-3.0
jmattsson/nodemcu-firmware
lua_modules/si7021/si7021-lewei.lua
73
1314
--创建一个定时器 tmr.alarm(0, 60000, 1, function() SDA_PIN = 6 -- sda pin, GPIO12 SCL_PIN = 5 -- scl pin, GPIO14 si7021 = require("si7021") si7021.init(SDA_PIN, SCL_PIN) si7021.read(OSS) Hum = si7021.getHumidity() Temp = si7021.getTemperature() --定义数据变量格式 PostData = "[{\"Name\...
mit
rudo-thomas/openwrt-backfire
package/uci/trigger/modules/base.lua
41
1441
module("trigger.base", package.seeall) require("uci.trigger") uci.trigger.add { { id = "dnsmasq_restart", title = "Restart dnsmasq", package = "dhcp", action = uci.trigger.service_restart("dnsmasq"), }, { id = "dropbear_restart", title = "Restart dropbear", package = "dropbear", action = uci.trigger...
gpl-2.0
gallenmu/MoonGen
libmoon/lua/proto/udp.lua
4
7213
------------------------------------------------------------------------ --- @file udp.lua --- @brief User datagram protocol (UDP) utility. --- Utility functions for udp_header struct --- Includes: --- - Udp constants --- - Udp header utility --- - Definition of Udp packets ---------------------------------------------...
mit
MalRD/darkstar
scripts/globals/weaponskills/drakesbane.lua
9
1725
----------------------------------- -- Drakesbane -- Polearm weapon skill -- Skill level: N/A -- Delivers a fourfold attack. Chance of params.critical hit varies with TP. Ryunohige: Aftermath effect varies with TP. -- Available only after completing the Unlocking a Myth (Dragoon) quest. -- Aligned with the Flame Gorget...
gpl-3.0
Lsty/ygopro-scripts
c16157341.lua
5
1493
--武神器-オハバリ function c16157341.initial_effect(c) --pierce local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(16157341,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCondition(c16157341.condition) e1:SetCost(c16157341.cost) e1:SetTarget(c...
gpl-2.0
Lsty/ygopro-scripts
c95784434.lua
5
2472
--モルティング・エスケープ function c95784434.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(c95784434.target) e1:SetOperation(c95784434.operation) c:RegisterEffec...
gpl-2.0
Lsty/ygopro-scripts
c86442081.lua
3
1088
--サイレントアビス function c86442081.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(86442081,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_BATTLE_DESTROYED) e1:SetCondition(c86442081.condition) e1:SetTarget(c864420...
gpl-2.0
MalRD/darkstar
scripts/globals/spells/foe_requiem_vi.lua
12
1936
----------------------------------------- -- Spell: Foe Requiem VI ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 end fu...
gpl-3.0
Lsty/ygopro-scripts
c91350799.lua
5
2593
--マドルチェ・ホーットケーキ function c91350799.initial_effect(c) --to deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(91350799,0)) e1:SetCategory(CATEGORY_TODECK) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_TO_GRAVE) e1:SetCondition(c91350799.retcon) e1:SetTarget(c91350799.rett...
gpl-2.0
cleytonk/globalfull
data/chatchannels/scripts/advertising-rook.lua
48
1235
function canJoin(player) return player:getVocation():getId() == VOCATION_NONE or player:getAccountType() >= ACCOUNT_TYPE_SENIORTUTOR end local CHANNEL_ADVERTISING_ROOK = 6 local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT) muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_ADVERTISING_ROOK) mut...
gpl-2.0
Lsty/ygopro-scripts
c96965364.lua
5
1553
--孵化 function c96965364.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:SetLabel(0) e1:SetCost(c96965364.cost) e1:SetTarget(c96965364.target) e1:SetOperation(c96965364.activate) c:RegisterEffe...
gpl-2.0
rigeirani/teshep
plugins/owners.lua
3
12515
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 'Nome già bloccato' else data[tostring(target)]['settings']['lock_n...
gpl-2.0
MalRD/darkstar
scripts/globals/mobskills/venom_spray.lua
11
1112
--------------------------------------------- -- Venom -- -- Description: Deals damage in a fan shaped area. Additional effect: poison -- Type: Magical Water -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' cone -- Notes: Additional effect can be removed with Poisona. --------------------------------------...
gpl-3.0
Lsty/ygopro-scripts
c13756293.lua
3
1608
--竜魔人 キングドラグーン function c13756293.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCode2(c,17985575,62113340,true,true) --cannot be target local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_SELECT_EFFECT_TARGET) e1:SetProperty(EFFECT_FLAG_SET_AVAILAB...
gpl-2.0
Lsty/ygopro-scripts
c98280324.lua
3
2202
--ファーニマル・シープ function c98280324.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(c98280324.spcon) c:RegisterEffect(e1) --spsummon local e2=Effect.C...
gpl-2.0
MalRD/darkstar
scripts/zones/Port_San_dOria/npcs/Fontoumant.lua
9
4459
----------------------------------- -- Area: Port San d'Oria -- NPC: Fontoumant -- Starts Quest: The Brugaire Consortium -- Involved in Quests: Riding on the Clouds -- !pos -10 -10 -122 232 ----------------------------------- local ID = require("scripts/zones/Port_San_dOria/IDs"); require("scripts/globals/settings"); ...
gpl-3.0
mati865/vlc
share/lua/playlist/break.lua
113
1995
--[[ $Id$ Copyright © 2007 the VideoLAN team 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) any later version. This program is distribut...
gpl-2.0
Mijyuoon/starfall
docgen/tagletsftags.lua
1
5686
--- Taglet Tags for Starfall, mostly copied from LuaDocs. local luadoc = require "luadoc" local util = require "luadoc.util" local string = require "string" local table = require "table" local assert, type, tostring = assert, type, tostring module "tagletsftags" -----------------------------------------------------...
bsd-3-clause
Lsty/ygopro-scripts
c48934760.lua
3
1388
--終焉の地 function c48934760.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c48934760.condition) e1:SetTarget(c48934760.target) e1:SetOperation(c48934760.activate) c:RegisterEffect(e1) end function c48934760.cfilter(c...
gpl-2.0