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 |
|---|---|---|---|---|---|
intel2TM/intel | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
Lsty/ygopro-scripts | c76442347.lua | 3 | 1922 | --子型ペンギン
function c76442347.initial_effect(c)
--flip effect
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FLIP)
e1:SetOperation(c76442347.flipop)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(7644234... | gpl-2.0 |
Lsty/ygopro-scripts | c44481227.lua | 3 | 2702 | --EMラクダウン
function c44481227.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TY... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Selbina/npcs/Chutarmire.lua | 11 | 1282 | -----------------------------------
-- Area: Selbina
-- NPC: Chutarmire
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Selbina/IDs")
require("scripts/globals/shop")
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(player,npc... | gpl-3.0 |
gallenmu/MoonGen | libmoon/lua/lib/syscall/netbsd/syscalls.lua | 24 | 4076 | -- BSD specific syscalls
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local abi = require "syscall.abi"
r... | mit |
tarulas/luadch | luasec/src/options.lua | 8 | 2091 | local function usage()
print("Usage:")
print("* Generate options of your system:")
print(" lua options.lua -g /path/to/ssl.h [verion] > options.h")
print("* Examples:")
print(" lua options.lua -g /usr/include/openssl/ssl.h > options.h\n")
print(" lua options.lua -g /usr/include/openssl/ssl.h \"OpenSSL 1.... | gpl-3.0 |
Lsty/ygopro-scripts | c84491298.lua | 3 | 1041 | --細胞爆破ウイルス
function c84491298.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c84491298.condition)
e1:SetTarget(c84491298.target)
e1:SetOperation(c84491298.activate)
c:RegisterEffect... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/shiranui.lua | 12 | 1231 | -----------------------------------------
-- ID: 17774
-- Item: Shiranui
-- Additional Effect: Light Damage (night time only)
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------------
function onAdditionalEffect(player,target,da... | gpl-3.0 |
Lsty/ygopro-scripts | c70222318.lua | 3 | 2516 | --森羅の霊峰
function c70222318.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,70222318)
e2:SetCost(c7... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/pork_cutlet.lua | 11 | 1447 | -----------------------------------------
-- ID: 6394
-- Item: pork_cutlet
-- Food Effect: 180Min, All Races
-----------------------------------------
-- HP +40
-- STR +7
-- INT -7
-- Fire resistance +20
-- Attack +20% (cap 120)
-- Ranged Attack +20% (cap 120)
-----------------------------------------
require("scripts/... | gpl-3.0 |
carloseduardosx/sky-force-infinite | src/scenes/game.lua | 1 | 2483 | local composer = require( "composer" )
local physics = require( "physics" )
local application = require( "src.scenes.application" )
local sprite = require( "src.images.sprite" )
local image = require( "src.images.image" )
local star = require( "src.objects.star" )
local laser = require( "src.objects.laser" )
local ship... | apache-2.0 |
Lsty/ygopro-scripts | c28066831.lua | 3 | 2141 | --ガスタ・サンボルト
function c28066831.initial_effect(c)
--destroyed
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetOperation(c28066831.flagop)
c:RegisterEffect(e1)
end
function c28066831.flagop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Cloister_of_Storms/mobs/Ramuh_Prime.lua | 8 | 1467 | -----------------------------------
-- Area: Cloister of Storms
-- Mob: Ramuh Prime
-- Involved in Quest: Trial by Lightning, Trial Size Trial by Lightning
-- Involved in Mission: ASA-4 Sugar Coated Directive
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/settings")
re... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0ru.lua | 12 | 1088 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- !pos -63.699 -26.227 43.009 27
-----------------------------------
require("scripts/globals/missions");
local ID = require("scripts/zones/Phomiuna_Aqueducts/IDs");
-----------------------------------
function onTrade(player,npc,trade)... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/bibikibo.lua | 11 | 1047 | -----------------------------------------
-- ID: 4314
-- Item: Bibikibo
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
---------------------------------------... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/bowl_of_soy_ramen_+1.lua | 11 | 1526 | -----------------------------------------
-- ID: 6459
-- Item: bowl_of_soy_ramen_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP +55
-- STR +6
-- VIT +6
-- AGI +4
-- Attack +11% (cap 175)
-- Ranged Attack +11% (cap 175)
-- Resist Slow +15
-----------------------------------------
req... | gpl-3.0 |
MalRD/darkstar | scripts/commands/addallmaps.lua | 22 | 1774 | ---------------------------------------------------------------------------------------------------
-- func: addallmaps
-- desc: Adds all maps to the given player.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "s"
}... | gpl-3.0 |
Lsty/ygopro-scripts | c74854609.lua | 5 | 1695 | --ゼクト・コンバージョン
function c74854609.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(c74854609.condition)
e1:SetTarget(c74854609.target)
e1:SetOper... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Western_Adoulin/npcs/Dangueubert.lua | 9 | 1349 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Dangueubert
-- Type: Standard NPC and Quest NPC
-- Involved with Quest: 'A Certain Substitute Patrolman'
-- !pos 5 0 -136 256
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/quests");
----------------... | gpl-3.0 |
ThingMesh/openwrt-luci | applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua | 74 | 2324 | --[[
LuCI - Lua Configuration Interface
Copyright 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-2.0
$Id$
]]--
lo... | apache-2.0 |
Lsty/ygopro-scripts | c36183881.lua | 9 | 1325 | --マジェスペクター・トルネード
function c36183881.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:SetCost(c36183881.cost)
e1:SetTarget(c36183881.target)
e1:SetOperation(c36183... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Periqia/IDs.lua | 12 | 8584 | -----------------------------------
-- Area: Periqia
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.PERIQIA] =
{
text = {
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after sorting ... | gpl-3.0 |
groupforspeed/WaderTG | plugins/stats.lua | 13 | 4010 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
MalRD/darkstar | scripts/globals/spells/diaga_iii.lua | 11 | 2314 | -----------------------------------------
-- Spell: Diaga III
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/utils")
require... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Northern_San_dOria/npcs/Pagisalis.lua | 11 | 2642 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pagisalis
-- Involved In Quest: Enveloped in Darkness
-- !zone 231
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/shop");
r... | gpl-3.0 |
Lsty/ygopro-scripts | c87902575.lua | 3 | 3249 | --フューチャー・ヴィジョン
function c87902575.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c87902575.clear)
c:RegisterEffect(e1)
local ng=Group.CreateGroup()
ng:KeepAlive()
e1:SetLabelObject(ng)
--remove
local e2=Effect.CreateEffe... | gpl-2.0 |
Lsty/ygopro-scripts | c78211862.lua | 3 | 1576 | --ライジング・エナジー
function c78211862.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(c7821... | gpl-2.0 |
ThingMesh/openwrt-luci | modules/secn/luasrc/controller/secn/secn.lua | 1 | 1230 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
Copyright 2013 Edwin Chen <edwin@dragino.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.... | apache-2.0 |
MalRD/darkstar | scripts/globals/mobskills/wing_slap.lua | 11 | 1048 | ---------------------------------------------
-- Wing Slap
--
-- Description: Slaps around a single target four times with its wings. Additional effect: Stun
-- Type: Physical
-- Utsusemi/Blink absorb: 4 shadows
-- Range: Melee
-- Notes:
---------------------------------------------
require("scripts/globals/sett... | gpl-3.0 |
gallenmu/MoonGen | rfc2544/benchmarks/latency.lua | 9 | 11321 | package.path = package.path .. "rfc2544/?.lua"
local standalone = false
if master == nil then
standalone = true
master = "dummy"
end
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local ts = require "timestamping"
local fil... | mit |
Lsty/ygopro-scripts | c30213599.lua | 3 | 1339 | --墓守の末裔
function c30213599.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(30213599,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c30213599.cost)
e1:SetTarget(c30213... | gpl-2.0 |
Lsty/ygopro-scripts | c72497366.lua | 3 | 1401 | --悪魔の憑代
function c72497366.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--decrease tribute
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(72497366,0))
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFF... | gpl-2.0 |
Lsty/ygopro-scripts | c40217358.lua | 5 | 2444 | --ブルー・ダストン
function c40217358.initial_effect(c)
c:SetUniqueOnField(1,0,40217358)
--cannot release
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UNRELEASABLE_SUM)
e1:SetValue(1)
c:RegisterEffect(e1)
local e2... | gpl-2.0 |
Lsty/ygopro-scripts | c77700347.lua | 3 | 1478 | --ネクロ・ディフェンダー
function c77700347.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(77700347,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_GRAVE)
e1:SetCost(c77700347.cost)
e1:SetTarget(c77700347.target)
e1:SetOperation(c77700... | gpl-2.0 |
Lsty/ygopro-scripts | c22996376.lua | 3 | 2294 | --百獣王 ベヒーモス
function c22996376.initial_effect(c)
--summon/set with 1 tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22996376,0))
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c22996376.otcon)... | gpl-2.0 |
Lsty/ygopro-scripts | c37745740.lua | 3 | 2641 | --EMガンバッター
function c37745740.initial_effect(c)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(37745740,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,37745740)
e1:SetCost(c37... | gpl-2.0 |
Lsty/ygopro-scripts | c440556.lua | 3 | 1866 | --バハムート・シャーク
function c440556.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER),4,2)
c:EnableReviveLimit()
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(440556,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TY... | gpl-2.0 |
MalRD/darkstar | scripts/globals/spells/break.lua | 12 | 1181 | -----------------------------------------
-- Spell: Break
-- Petrifies an enemy, preventing it from acting.
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(... | gpl-3.0 |
HexCodeCC/DynaCode | src/Mixins/MTemplateHolder.lua | 2 | 2960 | abstract class "MTemplateHolder" {
templates = {};
activeTemplate = nil;
}
function MTemplateHolder:registerTemplate( template )
if classLib.typeOf( template, "Template", true ) then
if not template.owner then
-- Do any templates with the same name exist?
if not self:getTemp... | mit |
Lsty/ygopro-scripts | c90555947.lua | 3 | 1759 | --ナチュル・ガイアストライオ
function c90555947.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,c90555947.ffilter,2,false)
--negate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(90555947,0))
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_FIELD+EFF... | gpl-2.0 |
MalRD/darkstar | scripts/globals/mobskills/pile_pitch.lua | 11 | 1262 | ---------------------------------------------------
-- Pile Pitch
--
-- Description: Reduces target's HP to 5% of its maximum value, ignores Utsusemi ,Bind (30 sec)
-- Type: Magical
--
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require(... | gpl-3.0 |
SJoshua/Project-Small-R | src/commands/exec.lua | 1 | 1672 | local utils = require("utils")
local exec = {
func = function(msg)
if msg.from.username == config.master then
local t = {pcall(load(string.match(msg.text, "/exec(.*)")))}
local ts = string.format("[status] %s\n", tostring(t[1]))
for i = 2, #t do
ts = ts .... | apache-2.0 |
Lsty/ygopro-scripts | c88177324.lua | 3 | 3684 | --No.107 銀河眼の時空竜
function c88177324.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,8,2)
c:EnableReviveLimit()
--negate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(88177324,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetHintTiming... | gpl-2.0 |
Lsty/ygopro-scripts | c36484016.lua | 3 | 4204 | --ミラクルシンクロフュージョン
function c36484016.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(c36484016.target)
e1:SetOperation(c36484016.activate)
c:RegisterEffect(e1)
--draw
local e2=Effect.... | gpl-2.0 |
Lsty/ygopro-scripts | c52128900.lua | 3 | 1829 | --シンクロ・ギフト
function c52128900.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(c52128900.target)
e1:SetOperation(c52128900.activate)
c:RegisterEffect... | gpl-2.0 |
maxrio/luci981213 | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/tcpconns.lua | 68 | 1143 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("TCPConns Plugin Configuration"),
translate(
"The tcpconns plugin collects informations about open tcp " ..
"connections on selected ports."
))
-- ... | apache-2.0 |
gallenmu/MoonGen | libmoon/examples/inter-task-communication.lua | 4 | 6322 | --- Different methods to communicate between tasks.
local lm = require "libmoon"
local ffi = require "ffi"
local memory = require "memory"
local namespaces = require "namespaces"
local pipe = require "pipe"
local lock = require "lock"
local barrier = require "barrier"
local log ... | mit |
Lsty/ygopro-scripts | c20474741.lua | 5 | 1117 | --トライデント・ウォリアー
function c20474741.initial_effect(c)
--summon success
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20474741,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetTarget(c20474741.sumtg)
e2:SetOpera... | gpl-2.0 |
Lsty/ygopro-scripts | c28890974.lua | 5 | 1806 | --光神化
function c28890974.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(c28890974.target)
e1:SetOperation(c28890974.activate)
c:RegisterEffect(e1)
end
function c28890974.filter(c,e,tp... | gpl-2.0 |
Mkalo/forgottenserver | data/actions/scripts/quests/annihilator.lua | 7 | 1111 | local playerPosition = {
{x = 247, y = 659, z = 13},
{x = 247, y = 660, z = 13},
{x = 247, y = 661, z = 13},
{x = 247, y = 662, z = 13}
}
local newPosition = {
{x = 189, y = 650, z = 13},
{x = 189, y = 651, z = 13},
{x = 189, y = 652, z = 13},
{x = 189, y = 653, z = 13}
}
function onUse(player, item, fromPosit... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Western_Adoulin/npcs/Ledericus.lua | 12 | 1258 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Ledericus
-- Type: Shop NPC
-- !pos 37 32 117 256
-----------------------------------
require("scripts/globals/shop");
local ID = require("scripts/zones/Western_Adoulin/IDs");
-----------------------------------
function onTrade(player,npc,trade)
en... | gpl-3.0 |
Lsty/ygopro-scripts | c44256816.lua | 9 | 2041 | --独奏の第1楽章
function c44256816.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:SetCountLimit(1,44256816+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c44256816.condition)
e1:SetCost(c44256816.cost)
e1:... | gpl-2.0 |
MalRD/darkstar | scripts/globals/effects/perfect_defense.lua | 10 | 2747 | -----------------------------------
--
--
--
-----------------------------------
function onEffectGain(target,effect)
effect:setSubPower(effect:getPower()*(256/100))
target:addMod(dsp.mod.UDMGPHYS, -effect:getPower())
target:addMod(dsp.mod.UDMGBREATH, -effect:getPower())
target:addMod(dsp.mod.UDMGMAGIC... | gpl-3.0 |
Wuzzy2/mobs_mc | rabbit.lua | 1 | 5192 | --License for code WTFPL and otherwise stated in readmes
-- intllib
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local rabbit = {
type = "animal",
passive = true,
reach = 1,
hp_min = 3,
hp_max = 3,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.49, 0.2},
... | gpl-3.0 |
Lsty/ygopro-scripts | c32086564.lua | 7 | 1439 | --エクシーズ・トライバル
function c32086564.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetRange(LOCATION_SZONE)
e2... | gpl-2.0 |
Lsty/ygopro-scripts | c47805931.lua | 5 | 1085 | --No.20 蟻岩土ブリリアント
function c47805931.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,3,2)
c:EnableReviveLimit()
--attack up
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetDescription(aux.Stringid(47805931,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(L... | gpl-2.0 |
Lsty/ygopro-scripts | c55428242.lua | 3 | 1385 | --アトラの蟲惑魔
function c55428242.initial_effect(c)
--immune
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetValue(c55428242.efilter)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e... | gpl-2.0 |
Lsty/ygopro-scripts | c25341652.lua | 3 | 2499 | --交響魔人マエストローク
function c25341652.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,4,2)
c:EnableReviveLimit()
--pos
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(25341652,0))
e1:SetCategory(CATEGORY_POSITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:S... | gpl-2.0 |
Lsty/ygopro-scripts | c50140163.lua | 3 | 2875 | --魅惑の女王 LV7
function c50140163.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetOperation(c50140163.regop)
c:RegisterEffect(e1)
end
c50140163.lvupcount=1
c50140163.lvup={23756165}
c50140163.lvdncount=2
c5014016... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/plate_of_coeurl_saute.lua | 11 | 1584 | -----------------------------------------
-- ID: 4548
-- Item: plate_of_coeurl_sautee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 20
-- Attack Cap 75
-- Ranged ATT % 20
-- Ranged ATT Cap 75
-- Stun Resist 4
-- HP recovered while h... | gpl-3.0 |
MalRD/darkstar | scripts/globals/mobskills/condemnation.lua | 11 | 1073 | ---------------------------------------------------
-- Condemnation
-- Deals damage in a threefold attack to enemies within a fan-shaped area of effect.
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
---------... | gpl-3.0 |
sagarwaghmare69/nn | Dropout.lua | 10 | 1762 | local Dropout, Parent = torch.class('nn.Dropout', 'nn.Module')
function Dropout:__init(p,v1,inplace,stochasticInference)
Parent.__init(self)
self.p = p or 0.5
self.train = true
self.inplace = inplace
self.stochastic_inference = stochasticInference or false
-- version 2 scales output during training i... | bsd-3-clause |
MalRD/darkstar | scripts/zones/Qulun_Dome/npcs/Magicite.lua | 9 | 1294 | -----------------------------------
-- Area: Qulun Dome
-- NPC: Magicite
-- Involved in Mission: Magicite
-- !pos 11 25 -81 148
-----------------------------------
require("scripts/globals/keyitems")
local ID = require("scripts/zones/Qulun_Dome/IDs")
-----------------------------------
function onTrade(player,npc,tra... | gpl-3.0 |
MonchaGames/New-Gaia | PlayerComponent.lua | 1 | 2492 | local class = require 'middleclass'
require 'misc'
PlayerGraphicsComponent = class("PlayerGraphicsComponent")
function PlayerGraphicsComponent:initialize()
self.x = 0
self.y = 0
self.width = 30
self.height = 30
end
function PlayerGraphicsComponent:update(dt, Entity)
assert(type(Entity) == 'table... | mit |
Lsty/ygopro-scripts | c61802346.lua | 5 | 1234 | --ブリザード・ドラゴン
function c61802346.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(61802346,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c61802346.target)
e1:SetOperation(c61802346.oper... | gpl-2.0 |
bforbis/thrift | lib/lua/TSocket.lua | 113 | 2996 | ---- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may... | apache-2.0 |
cshore-firmware/openwrt-luci | libs/luci-lib-json/luasrc/json.lua | 47 | 11035 | -- 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.
local nixio = require "nixio"
local util = require "luci.util"
local table = require "table"
local string = require "string"
local coroutine = ... | apache-2.0 |
Lsty/ygopro-scripts | c77584012.lua | 3 | 1374 | --擬似空間
function c77584012.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--copy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(77584012,0))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_SZO... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Port_San_dOria/npcs/Coullave.lua | 11 | 1359 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Coullave
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/shop")
function onTrade(playe... | gpl-3.0 |
Lsty/ygopro-scripts | c10035717.lua | 3 | 1997 | --ウェポンチェンジ
function c10035717.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(10035717,0))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:Se... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Vunkerl_Inlet_[S]/IDs.lua | 9 | 1209 | -----------------------------------
-- Area: Vunkerl_Inlet_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.VUNKERL_INLET_S] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come ... | gpl-3.0 |
mortezamosavy999/zetaindex | plugins/moderation.lua | 29 | 12162 | do
local function check_member(extra, success, result)
local data = extra.data
for k,v in pairs(result.members) do
if v.id ~= our_id then
data[tostring(extra.msg.to.id)] = {
moderators = {[tostring(v.id)] = '@'..v.username},
settings = {
set_name = string.gsub(ex... | gpl-2.0 |
StewEsho/Prepenole | gui.lua | 2 | 14859 | --------------------------------------------------------------------------------
--
-- Stores all elements of the GUI and/or the HUD
--
--------------------------------------------------------------------------------
-------------------------------------GUI.LUA------------------------------------
----------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c14883228.lua | 3 | 1575 | --タイフーン
function c14883228.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_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetTarget(c14883228.target)
e1:SetOperation(c148... | gpl-2.0 |
Lsty/ygopro-scripts | c61318483.lua | 3 | 2473 | --ゴーストリック・フロスト
function c61318483.initial_effect(c)
--summon limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c61318483.sumcon)
c:RegisterEffect(e1)
--turn set
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(61318483,0))
e2:Se... | gpl-2.0 |
MalRD/darkstar | scripts/globals/mobskills/blade_metsu.lua | 11 | 1094 | ---------------------------------------------
-- Blade Metsu
--
-- Description: Additional effect: Paralysis Kikoku/Yoshimitsu: Temporarily enhances Subtle Blow dsp.effect.
-- Type: Physical
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/s... | gpl-3.0 |
elant/cardpeek | dot_cardpeek_dir/scripts/belgian eID.lua | 17 | 6000 | --
-- This file is part of Cardpeek, the smartcard reader utility.
--
-- Copyright 2009-2013 by 'L1L1'
--
-- Cardpeek 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 3 of the License, or
-- (a... | gpl-3.0 |
ashkanpj/yagoopfire | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
openwrt/luci | modules/luci-lua-runtime/luasrc/ccache.lua | 3 | 1649 | -- 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.
local io = require "io"
local fs = require "nixio.fs"
local util = require "luci.util"
local nixio = require "nixio"
local debug = require "debug"
local string... | apache-2.0 |
adan830/luacheck | src/luacheck/options.lua | 5 | 8417 | local options = {}
local utils = require "luacheck.utils"
local stds = require "luacheck.stds"
local boolean = utils.has_type("boolean")
local array_of_strings = utils.array_of("string")
function options.split_std(std)
local parts = utils.split(std, "+")
if parts[1]:match("^%s*$") then
parts.add = true
... | mit |
openwrt/luci | applications/luci-app-nut/luasrc/model/cbi/nut_monitor.lua | 9 | 7370 | -- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
-- Licensed to the public under the Apache License 2.0.
local m, s, o
require "luci.util"
m = Map("nut_monitor", translate("Network UPS Tools (Monitor)"),
translate("Network UPS Tools Monitoring Configuration"))
s = m:section(NamedSection, "upsmon", ... | apache-2.0 |
tarulas/luadch | luasocket/test/mimetest.lua | 44 | 8413 | local socket = require("socket")
local ltn12 = require("ltn12")
local mime = require("mime")
local unpack = unpack or table.unpack
dofile("testsupport.lua")
local qptest = "qptest.bin"
local eqptest = "qptest.bin2"
local dqptest = "qptest.bin3"
local b64test = "b64test.bin"
local eb64test = "b64test.bin2"
local db6... | gpl-3.0 |
mohammadclashclash/info1 | plugins/Feedback.lua | 18 | 1055 | do
function run(msg, matches)
local fuse = '#DearAdmin😜 we have recived a new feedback just now : #newfeedback \n\n🆔 : ' .. msg.from.id .. '\n\nNAME▶️ : ' .. msg.from.print_name ..'\n\nusername▶️ :@ ' .. msg.from.username ..'\pm :\n\n' .. matches[1]
local fuses = '!printf user#id' .. msg.from.id
local text ... | gpl-2.0 |
slayerrensky/luci | applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua | 56 | 3828 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")),
translate("UPnP allows clients in the local network to automatically configure the... | apache-2.0 |
mgerhardy/ufoai | contrib/installer/mojosetup/scripts/mojosetup_init.lua | 5 | 16018 | -- MojoSetup; a portable, flexible installation application.
--
-- Please see the file LICENSE.txt in the source's root directory.
--
-- This file written by Ryan C. Gordon.
-- !!! FIXME: go through the schema and ditch loki_setup things we don't want.
-- These are various things that need to be exposed to Lua, or ... | gpl-2.0 |
dsalychev/mcusim | tests/atmega328/output-toggle/check-output.lua | 1 | 2444 | --[[
This file is part of MCUSim, an XSPICE library with microcontrollers.
Copyright (C) 2017-2019 MCUSim Developers, see AUTHORS.txt for contributors.
MCUSim 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 Found... | gpl-3.0 |
FlightControl-Master/MOOSE | Moose Development/Moose/AI/AI_Air_Patrol.lua | 1 | 15986 | --- **AI** - Models the process of A2G patrolling and engaging ground targets for airplanes and helicopters.
--
-- ===
--
-- ### Author: **FlightControl**
--
-- ===
--
-- @module AI.AI_Air_Patrol
-- @image AI_Air_To_Ground_Patrol.JPG
--- @type AI_AIR_PATROL
-- @extends AI.AI_Air#AI_AIR
--- The AI_AIR_PATROL ... | gpl-3.0 |
keyidadi/luci | modules/admin-mini/luasrc/model/cbi/mini/network.lua | 82 | 6273 | --[[
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 |
leecrest/luvit | tests/test-http-encoder.lua | 14 | 3883 | --[[
Copyright 2014 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | apache-2.0 |
ponywolf/ponyblitz | com/ponywolf/joykey.lua | 1 | 2266 | -- joykey 0.1
-- Re-broadcast joystick axis events as arrow keys
-- this module turns gamepad axis events into keyboard
-- events so we don't have to write separate code
-- for joystick and keyboard control
-- just add this line to your main.lua
-- require("com.ponywolf.joykey").start()
local M = {}
local deadZone ... | mit |
tboox/xmake | xmake/core/package/repository.lua | 1 | 7211 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
keyidadi/luci | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 37 | 5651 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 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://w... | apache-2.0 |
NerdWalletOSS/Q | DEPRECATED_Q2/Q_TOOL/deps/coro-websocket.lua | 2 | 4310 | --[[lit-meta
name = "creationix/coro-websocket"
version = "3.0.0"
dependencies = {
"luvit/http-codec@3.0.0",
"creationix/websocket-codec@3.0.0",
"creationix/coro-net@3.0.0",
}
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-websocket.lua"
description = "Websocket helpers assuming ... | mit |
tboox/xmake | xmake/languages/rust/api.lua | 1 | 1715 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
patrikrm13/patix | plugins/anti_bot.lua | 8 | 3103 |
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 |
cyfdecyf/luanet | poll.lua | 1 | 3428 | local sys = require 'luanet.ffi.sys'
local printf = require('luanet.util').printf
local log = require 'luanet.log'
local class = require 'pl.class'
local pollimp
if sys.os == 'OSX' then
pollimp = require 'luanet.poll_kqueue'
end
local M = {}
local polldesc_cache
M.PollDesc = class.PollDesc()
function PollDesc:_... | mit |
Flexibity/luci | modules/flexibity/luasrc/model/cbi/flexibity/wireless.lua | 1 | 4147 | --[[
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 |
cc122cc/THETETOO2 | plugins/decoration.lua | 12 | 8066 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ decoration : زخرفه ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
codergreen/ValyriaTear | img/sprites/map/npcs/npc_woman03_walk.lua | 4 | 1987 | -- Sprite animation file descriptor
-- This file will describe the frames used to load the sprite animations
-- This files is following a special format compared to other animation scripts.
local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH;
local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH;
local ANIM_WEST = vt_map.MapMode.ANI... | gpl-2.0 |
tboox/xmake | xmake/modules/detect/sdks/find_ndk.lua | 1 | 5804 | --!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.