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/LaLoff_Amphitheater/mobs/Ark_Angel_MR.lua | 9 | 1305 | -----------------------------------
-- Area: LaLoff Amphitheater
-- Mob: Ark Angel MR
-----------------------------------
mixins = {require("scripts/mixins/job_special")}
require("scripts/globals/status");
-----------------------------------
-- TODO: Allegedly has a 12 hp/sec regen. Determine if true, and add to onM... | gpl-3.0 |
Lsty/ygopro-scripts | c45410988.lua | 3 | 1803 | --レッドアイズ・トランスマイグレーション
function c45410988.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(c45410988.target)
e1:SetOperation(c45410988.activate)
c:RegisterEffect(e1)
end
function c454109... | gpl-2.0 |
Lsty/ygopro-scripts | c20277376.lua | 7 | 1384 | --神竜 アポカリプス
function c20277376.initial_effect(c)
--salvage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20277376,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c20277376.th... | gpl-2.0 |
MalRD/darkstar | scripts/globals/abilities/pets/sand_breath.lua | 11 | 1413 | ---------------------------------------------------
-- Sand Breath
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
require("scripts/globals/ability")
---------------------------------------------------
... | gpl-3.0 |
Lsty/ygopro-scripts | c47030842.lua | 3 | 1903 | --ギアギアクセル
function c47030842.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_SPSUM_PARAM)
e1:SetRange(LOCATION_HAND)
e1:SetTargetRange(POS_FACEUP_DEFENCE,0)
e1:SetCondition(c47030842.spcon)
c:RegisterEf... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Uleguerand_Range/npcs/Zebada.lua | 9 | 1884 | -----------------------------------
-- Area: Uleguerand Range
-- NPC: Zebada
-- Type: ENM Quest Activator
-- !pos -308.112 -42.137 -570.096 5
-----------------------------------
local ID = require("scripts/zones/Uleguerand_Range/IDs");
require("scripts/globals/keyitems");
-----------------------------------
function ... | gpl-3.0 |
Lsty/ygopro-scripts | c4466015.lua | 3 | 1134 | --ヴェノム・スプラッシュ
function c4466015.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_DRAW_PHASE)
e1:SetTarget(c4466015.target)
e1:SetOperation(... | gpl-2.0 |
sagarwaghmare69/nn | Parallel.lua | 10 | 3954 | local Parallel, parent = torch.class('nn.Parallel', 'nn.Container')
function Parallel:__init(inputDimension,outputDimension)
parent.__init(self)
self.modules = {}
self.inputDimension = inputDimension
self.outputDimension = outputDimension
end
function Parallel:updateOutput(input)
local nModule=input:si... | bsd-3-clause |
Lsty/ygopro-scripts | c11224934.lua | 3 | 1204 | --強化空間
function c11224934.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c11224934.condition)
e1:SetTarget(... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Bastok_Markets/npcs/Harmodios.lua | 9 | 1815 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Harmodios
-- Standard Merchant NPC
-- !pos -79.928 -4.824 -135.114 235
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets/IDs")
require("scripts/globals/quests")
require("scripts/globals/shop")
function onTrigger(pla... | gpl-3.0 |
openwrt/luci | applications/luci-app-nft-qos/luasrc/controller/nft-qos.lua | 5 | 1607 | -- Copyright 2018 Rosy Song <rosysong@rosinson.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.nft-qos", package.seeall)
function index()
if not nixio.fs.access("/etc/config/nft-qos") then
return
end
local e
e = entry({"admin", "status", "realtime", "rate"}, template("nft-... | apache-2.0 |
MalRD/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Faith.lua | 12 | 1159 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NM: Jailer of Faith
-----------------------------------
local ID = require("scripts/zones/The_Garden_of_RuHmet/IDs")
mixins = {require("scripts/mixins/job_special")}
-----------------------------------
function onMobSpawn(mob)
-- Change animat... | gpl-3.0 |
Frenzie/koreader | frontend/device/kobo/device.lua | 1 | 56128 | local Generic = require("device/generic/device")
local Geom = require("ui/geometry")
local UIManager -- Updated on UIManager init
local WakeupMgr = require("device/wakeupmgr")
local time = require("ui/time")
local ffiUtil = require("ffi/util")
local lfs = require("libs/libkoreader-lfs")
local logger = require("logger")... | agpl-3.0 |
MalRD/darkstar | scripts/zones/Garlaige_Citadel/Zone.lua | 12 | 2857 | -----------------------------------
--
-- Zone: Garlaige_Citadel (200)
--
-----------------------------------
local ID = require("scripts/zones/Garlaige_Citadel/IDs");
require("scripts/globals/conquest");
require("scripts/globals/treasure")
require("scripts/globals/status");
-----------------------------------
functio... | gpl-3.0 |
gallenmu/MoonGen | lua/moongen-compat.lua | 5 | 2602 | --- MoonGen pre-1.0 compatibility layer
local log = require "log"
local dpdk = require "dpdk"
local moongen = require "moongen"
local device = require "device"
dpdk.__name = "dpdk"
moongen.__name = "moongen"
-- make functions that were moved to the libmoons/moongen module available
local function deprecatedF... | mit |
MalRD/darkstar | scripts/zones/Southern_San_dOria/IDs.lua | 9 | 9961 | -----------------------------------
-- Area: Southern_San_dOria
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.SOUTHERN_SAN_DORIA] =
{
text =
{
HOMEPOINT_SET = 24, -- Home point set!
IT... | gpl-3.0 |
Lsty/ygopro-scripts | c23327298.lua | 5 | 1485 | --パラレル・セレクト
function c23327298.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCondition(c23327298.condition)
e1:SetTarget(c23327298.target)
e1:SetO... | gpl-2.0 |
MalRD/darkstar | scripts/globals/mobskills/binary_tap.lua | 11 | 1449 | ---------------------------------------------
-- Binary Tap
-- Attempts to absorb two buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any buffs
---... | gpl-3.0 |
Mijyuoon/starfall | lua/moonscript/parse.lua | 1 | 17407 |
local util = loadmodule("moonscript.util")
local data = loadmodule("moonscript.data")
local types = loadmodule("moonscript.types")
local ntype = types.ntype
local trim = util.trim
local getfenv = util.getfenv
local setfenv = util.setfenv
local unpack = util.unpack
local Stack = data.Stack
local function count_in... | bsd-3-clause |
MalRD/darkstar | scripts/globals/mobskills/vitriolic_spray.lua | 11 | 1113 | ---------------------------------------------
-- Vitriolic Spray
-- Family: Wamouracampa
-- Description: Expels a caustic stream at targets in a fan-shaped area of effect. Additional effect: Burn
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadow
-- Range: Cone
-- Notes: Burn is 10-30/tic
------------------... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Monastic_Cavern/npcs/Magicite.lua | 9 | 1319 | -----------------------------------
-- Area: Monastic Cavern
-- NPC: Magicite
-- Involved in Mission: Magicite
-- !pos -22 1 -66 150
-----------------------------------
require("scripts/globals/keyitems")
local ID = require("scripts/zones/Monastic_Cavern/IDs")
-----------------------------------
function onTrade(play... | gpl-3.0 |
Lsty/ygopro-scripts | c5998840.lua | 5 | 1482 | --XX-セイバー ボガーナイト
function c5998840.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(5998840,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c5998840.sumtg)
e1:SetOperat... | gpl-2.0 |
Wuzzy2/mobs_mc | spider.lua | 1 | 2642 | --MCmobs v0.4
--maikerumine
--made for MC like Survival game
--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")
--dofile(minetest.get_modpath("mobs").."/api.lua")
--###################
--########... | gpl-3.0 |
wzb56/lua-resty-kafka | lib/resty/kafka/response.lua | 2 | 2137 | -- Copyright (C) Dejiang Zhu(doujiang24)
local bit = require "bit"
local setmetatable = setmetatable
local byte = string.byte
local sub = string.sub
local lshift = bit.lshift
local bor = bit.bor
local strbyte = string.byte
local _M = { _VERSION = "0.01" }
local mt = { __index = _M }
function _M.new(self, str)
... | bsd-3-clause |
Lsty/ygopro-scripts | c71519605.lua | 3 | 1596 | --オシャレオン
function c71519605.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(71519605,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_BATTLE_DESTROYED)
e1:SetCondition(c71519605.condition)
e1:SetTarget(c71519605.t... | gpl-2.0 |
gallenmu/MoonGen | libmoon/lua/distribute.lua | 8 | 3439 | ---------------------------------
--- @file distribute.lua
--- @brief Distribute ...
--- @todo TODO docu
---------------------------------
local ffi = require "ffi"
local dpdk = require "dpdk"
local serpent = require "Serpent"
local log = require "log"
ffi.cdef [[
struct mg_distribute_queue{
uint16_t next_idx;
ui... | mit |
Lsty/ygopro-scripts | c22842214.lua | 3 | 3813 | --シー・ランサー
function c22842214.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22842214,0))
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET+EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1... | gpl-2.0 |
Lsty/ygopro-scripts | c33184167.lua | 3 | 1532 | --同族感染ウィルス
function c33184167.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(33184167,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c33184167.cost)
e1:SetTarget(c33184167.target)
e1:SetOperation(c33184167... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Dominion_Tactician.lua | 12 | 3893 | -----------------------------------
-- Area: Abyssea - Grauberg
-- NPC: Dominion Tactician
-----------------------------------
local ID = require("scripts/zones/Abyssea-Grauberg/IDs")
require("scripts/globals/abyssea")
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(play... | gpl-3.0 |
rotmanmi/nn | BCECriterion.lua | 9 | 2746 | local BCECriterion, parent = torch.class('nn.BCECriterion', 'nn.Criterion')
local eps = 1e-12
function BCECriterion:__init(weights, sizeAverage)
parent.__init(self)
if sizeAverage ~= nil then
self.sizeAverage = sizeAverage
else
self.sizeAverage = true
end
if weights ~= nil then
... | bsd-3-clause |
MalRD/darkstar | scripts/globals/items/betta.lua | 11 | 1044 | -----------------------------------------
-- ID: 5139
-- Item: Betta
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------------
... | gpl-3.0 |
Mijyuoon/starfall | lua/starfall/libs_sh/find.lua | 1 | 5413 | -------------------------------------------------------------------------------
-- Find functions
-------------------------------------------------------------------------------
--- Find library. Finds entities in various shapes.
-- @shared
local find_library, _ = SF.Libraries.Register("find")
-- Register privileges
... | bsd-3-clause |
MalRD/darkstar | scripts/globals/spells/bluemagic/sudden_lunge.lua | 8 | 1940 | -----------------------------------------
-- Spell: Sudden Lunge
-- Damage varies with TP. Additional effect: "Stun."
-- Spell cost: 18 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 4
-- Stat Bonus: HP-5 MP-5 DEX+1 AGI+1
-- Level: 95
-- Casting Time: 0.5 seconds
-- Recast Time: 15 ... | gpl-3.0 |
Nuthen/ludum-dare-39 | libs/inspect.lua | 20 | 9749 | local inspect ={
_VERSION = 'inspect.lua 3.1.0',
_URL = 'http://github.com/kikito/inspect.lua',
_DESCRIPTION = 'human-readable representations of tables',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
... | mit |
Frenzie/koreader | spec/unit/spore_spec.lua | 4 | 3891 | local service = [[
{
"base_url" : "http://httpbin.org",
"name" : "api",
"methods" : {
"get_info" : {
"path" : "/get",
"method" : "GET",
"required_params" : [
"user"
],
"optional_params" : [
"age"
... | agpl-3.0 |
xylosper/mpv | player/lua/defaults.lua | 4 | 14636 | -- Compatibility shim for lua 5.2/5.3
unpack = unpack or table.unpack
-- these are used internally by lua.c
mp.UNKNOWN_TYPE.info = "this value is inserted if the C type is not supported"
mp.UNKNOWN_TYPE.type = "UNKNOWN_TYPE"
mp.ARRAY.info = "native array"
mp.ARRAY.type = "ARRAY"
mp.MAP.info = "native map"
mp.MAP.typ... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/silken_smile.lua | 11 | 1026 | -----------------------------------------
-- ID: 5628
-- Item: Silken Smile
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- Intelligence 2
-- HP Recovered while healing 4
-- MP Recovered while healing 7
-----------------------------------------
require("scripts/global... | gpl-3.0 |
Lsty/ygopro-scripts | c14089428.lua | 5 | 1181 | --ブルーサンダーT45
function c14089428.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(14089428,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetCondition(aux.bdocon)
e1:SetTarget(c1... | gpl-2.0 |
Frenzie/koreader | frontend/apps/cloudstorage/dropbox.lua | 3 | 6219 | local BD = require("ui/bidi")
local ConfirmBox = require("ui/widget/confirmbox")
local DocumentRegistry = require("document/documentregistry")
local DropBoxApi = require("apps/cloudstorage/dropboxapi")
local InfoMessage = require("ui/widget/infomessage")
local MultiInputDialog = require("ui/widget/multiinputdialog")
lo... | agpl-3.0 |
Lsty/ygopro-scripts | c11596936.lua | 3 | 1364 | --レクリスパワー
function c11596936.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCost(c11596936.cost)
e1:SetTarget(c11596936.target)
e1:SetOperation(c11596936.activ... | gpl-2.0 |
Lsty/ygopro-scripts | c31467372.lua | 7 | 1244 | --不死式冥界砲
function c31467372.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(31467372,0))
e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYP... | gpl-2.0 |
shahabsaf1/My-system | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
Lsty/ygopro-scripts | c27415516.lua | 5 | 1835 | --水征竜-ストリーム
function c27415516.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(27415516,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,27415516)
e1:SetCost(c27415516.spcost)
e1:SetTarget(c274... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Justinius.lua | 9 | 1569 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Justinius
-- Involved in mission : COP2-3
-- !pos 76 -34 68 26
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
end;... | gpl-3.0 |
Lsty/ygopro-scripts | c61314842.lua | 3 | 2283 | --高等紋章術
function c61314842.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c61314842.target)
e1:SetOperation(c61314842.activate)
c:RegisterEffe... | gpl-2.0 |
t4im/homedecor_modpack | homedecor/handlers/sit.lua | 13 | 1049 | function homedecor.sit(pos, node, clicker)
do return end -- delete it when the engine is stabler for the player's physics
local meta = minetest.get_meta(pos)
local param2 = node.param2
local name = clicker:get_player_name()
if name == meta:get_string("is_sit") then
meta:set_string("is_sit", "")
pos.y = pos.y-... | lgpl-3.0 |
GovanifY/Polycode | Examples/Lua/2D_Physics/2DPhysics_CollisionOnly/Scripts/2DPhysics_CollisionOnly.lua | 10 | 1323 |
scene = PhysicsScene2D(0.1, 60)
checkShape = ScenePrimitive(ScenePrimitive.TYPE_VPLANE, 0.2,0.03)
scene:addCollisionChild(checkShape, PhysicsScene2DEntity.ENTITY_RECT)
for i=0,50 do
shape = ScenePrimitive(ScenePrimitive.TYPE_VPLANE, 0.1,0.02)
shape:setRoll(random(360))
shape:setPosition(-0.5 + random(), -0.5 + ra... | mit |
cshore-firmware/openwrt-luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua | 68 | 1959 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
codec_a_mu = module:option(Li... | apache-2.0 |
RamiLego4Game/PlatformerWorld | Engine/loveframes/objects/panel.lua | 10 | 3765 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- panel object
local newobject = loveframes.NewObject("panel", "loveframes_object_panel", true)
--[[----------------------... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Port_San_dOria/npcs/Altiret.lua | 9 | 1834 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Altiret
-- NPC for Quest "The Pickpocket"
-- !pos 21.263 -3.999 -65.776 232
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/titles")
require("scri... | gpl-3.0 |
kotwarrior/clanTools | Admin Commands/Client.lua | 2 | 5402 | print('Loading Red Vice Admin LocalScript')
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local Players = game:GetService('Players')
local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
Player.CharacterAdded:wait() wait()
local Character = Player.Character
local Humanoid = Character:Wai... | mit |
dani-sj/kirbot | plugins/stats.lua | 56 | 3988 | 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 |
stephenfournier/Dota-2-Building-Helper | game/dota_addons/samplerts/scripts/vscripts/buildings/research.lua | 7 | 1806 | --[[
Adds the search to the player research list
]]
function ResearchComplete( event )
local caster = event.caster
local player = caster:GetPlayerOwner()
local ability = event.ability
local research_name = ability:GetAbilityName()
-- It shouldn't be possible to research the same upgrade more than once.
player.u... | gpl-3.0 |
Lsty/ygopro-scripts | c23303072.lua | 7 | 1456 | --モンタージュ・ドラゴン
function c23303072.initial_effect(c)
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--special summon
local e2=... | gpl-2.0 |
zhaozg/lit | deps/pathjoin.lua | 20 | 2808 | --[[lit-meta
name = "creationix/pathjoin"
description = "The path utilities that used to be part of luvi"
version = "2.0.0"
tags = {"path"}
license = "MIT"
author = { name = "Tim Caswell" }
]]
local getPrefix, splitPath, joinParts
local isWindows
if _G.jit then
isWindows = _G.jit.os == "Windows"
else
... | apache-2.0 |
mohammad25253/new43 | plugins/owners.lua | 284 | 12473 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
ASDF482/TeleTak | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
thebracket/bgame | world_defs/species.lua | 1 | 2498 |
humanoid_parts = {
head = { qty=1, size = 10 },
neck = { qty=1, size = 1 },
torso = { qty = 1, size = 50 },
left_arm = { qty=1, size = 10 },
left_hand = { qty=1, size = 2 },
right_arm = { qty=1, size = 10 },
right_hand = { qty=1, size = 2 },
left_leg = { qty=1, size = 10 },
left_f... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Lion_Springs.lua | 9 | 1272 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Door:Lion Springs
-- !pos 96 0 106 80
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/missions");
require("scripts/globals/settings");
-----------------------------------
function onTrade(player,... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Periqia/npcs/Rune_of_Release.lua | 9 | 1450 | -----------------------------------
-- Area: Ilrusi Atoll
-- NPC: Rune of Release
-- !pos 412 -9 54 55
-----------------------------------
local ID = require("scripts/zones/Periqia/IDs")
require("scripts/globals/besieged")
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Windurst_Woods/npcs/Kyaa_Taali.lua | 12 | 1245 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Kyaa Taali
-- Type: Bonecraft Image Support
-- !pos -10.470 -6.25 -141.700 241
-----------------------------------
local ID = require("scripts/zones/Windurst_Woods/IDs")
require("scripts/globals/crafting")
require("scripts/globals/status")
-----------... | gpl-3.0 |
staeld/minnet | minnet/cmdvocab.lua | 1 | 3068 | #!/usr/bin/env lua
-- cmdvocab.lua - command vocabulary file for minnet
-- Copyright Stæld Lakorv, 2011 <staeld@staeld.co.cc>
-- This file is part of Minnet.
-- Minnet is released under the GPLv3 - see ../COPYING
-- This file is used as an abstraction layer between the received commands
-- and the actual, known comma... | gpl-3.0 |
cleytonk/globalfull | data/npc/lib/npcsystem/keywordhandler.lua | 8 | 5090 | -- Advanced NPC System by Jiddo
if KeywordHandler == nil then
KeywordNode = {
keywords = nil,
callback = nil,
parameters = nil,
children = nil,
parent = nil
}
-- Created a new keywordnode with the given keywords, callback function and parameters and without any childNodes.
function KeywordNode:new(keys,... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Windurst_Waters/npcs/Chomoro-Kyotoro.lua | 9 | 1200 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Chomoro-Kyotoro
-- Involved in Quest: Making the Grade
-- !pos 133 -5 167 238
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
---------------------------... | gpl-3.0 |
Lsty/ygopro-scripts | c49202331.lua | 3 | 1945 | --CX 超巨大空中要塞バビロン
function c49202331.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,11,3)
c:EnableReviveLimit()
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(49202331,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFEC... | gpl-2.0 |
SmartArduino/nodemcu-firmware | lua_examples/adc_rgb.lua | 73 | 1163 | --
-- Light sensor on ADC(0), RGB LED connected to gpio12(6) Green, gpio13(7) Blue & gpio15(8) Red.
-- This works out of the box on the typical ESP8266 evaluation boards with Battery Holder
--
-- It uses the input from the sensor to drive a "rainbow" effect on the RGB LED
-- Includes a very "pseudoSin" function
--
f... | mit |
jmattsson/nodemcu-firmware | lua_examples/adc_rgb.lua | 73 | 1163 | --
-- Light sensor on ADC(0), RGB LED connected to gpio12(6) Green, gpio13(7) Blue & gpio15(8) Red.
-- This works out of the box on the typical ESP8266 evaluation boards with Battery Holder
--
-- It uses the input from the sensor to drive a "rainbow" effect on the RGB LED
-- Includes a very "pseudoSin" function
--
f... | mit |
Lsty/ygopro-scripts | c74131780.lua | 3 | 1181 | --ならず者傭兵部隊
function c74131780.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(74131780,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c74131780.cost)
e1:SetTarget(c74... | gpl-2.0 |
Death15/Test | plugins/GroupControl.lua | 1 | 15503 | -- data saved to data/moderation.json
do
local function export_chat_link_cb(extra, success, result)
local msg = extra.msg
local data = extra.data
if success == 0 then
return send_large_msg(get_receiver(msg), 'Cannot generate invite link for this group.\nMake sure you are an admin or a sudoer.')
... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/tonosama_rice_ball.lua | 11 | 1150 | -----------------------------------------
-- ID: 4277
-- Item: Tonosama Rice Ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +15
-- Dex +3
-- Vit +3
-- Chr +3
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Atk +50
-- Def +30
-- Double Attack... | gpl-3.0 |
Lsty/ygopro-scripts | c21977828.lua | 3 | 3069 | --甲虫装機 ギガウィービル
function c21977828.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(21977828,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetRange(LOCATION_HAND)
e1:SetTarget(c21977828.eqtg)
e1:SetOperation... | gpl-2.0 |
kinbei/lua-test | test_binary_heap.lua | 3 | 4317 | local binary_heap = require "binary_heap"
local math_random = math.random
local table_sort, table_remove = table.sort, table.remove
-- tests -----------------------------------------------------------------------
local function test_heap_write(h)
io.write("Pretty-printing heap:\n")
for i = 1, 20 do
h:insert(... | mit |
openwrt/luci | libs/luci-lib-nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | apache-2.0 |
nmabhi/Webface | training/attic/test-hardNeg.lua | 8 | 6898 | -- Copyright 2015-2016 Carnegie Mellon University
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable ... | apache-2.0 |
Lsty/ygopro-scripts | c62560742.lua | 3 | 2008 | --TG レシプロ・ドラゴン・フライ
function c62560742.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure2(c,nil,aux.NonTuner(nil))
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(62560742,0))
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EF... | gpl-2.0 |
Wuzzy2/mobs_mc | intllib.lua | 53 | 1122 |
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl... | gpl-3.0 |
tarulas/luadch | examples/etc/other_available_scripts/etc_example.lua | 2 | 2850 | --[[
etc_example.lua v0.03 by blastbeat
]]--
local scriptname = "etc_example"
local scriptversion = "0.03"
local check_failed = function( user, rank )
if not user:isregged( ) or user:rank( ) < rank then
return true
end
return false
end
hub.setlisten... | gpl-3.0 |
Lsty/ygopro-scripts | c81524977.lua | 3 | 1904 | --種子弾丸
function c81524977.initial_effect(c)
c:SetCounterLimit(0x20,5)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--add counter
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(... | gpl-2.0 |
Lsty/ygopro-scripts | c32314730.lua | 3 | 2922 | --コアキメイル・クルセイダー
function c32314730.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(c32... | gpl-2.0 |
Lsty/ygopro-scripts | c32835363.lua | 3 | 1836 | --クラッキング
function c32835363.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:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetRange(LOCAT... | gpl-2.0 |
coral-framework/coral-qt | samples/coralPathEditor/CoralPathEditorDialog.lua | 1 | 3702 | -------------------------------------------------------------------------------
--- Required modules
-------------------------------------------------------------------------------
local qt = require "qt"
local AbstractListModel = require "qt.AbstractListModelDelegate"
local M = {}
-----------------------------------... | mit |
Lsty/ygopro-scripts | c7452945.lua | 7 | 2988 | --天命の聖剣
function c7452945.initial_effect(c)
c:SetUniqueOnField(1,0,7452945)
--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(c7452945.target)
e1:SetOperation(c7452945.oper... | gpl-2.0 |
maxrio/luci981213 | applications/luci-app-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua | 92 | 6917 | -- wizard rewrite wip
local uci = require "luci.model.uci".cursor()
local sys = require "luci.sys"
local util = require "luci.util"
local ip = require "luci.ip"
local community = "profile_" .. (uci:get("freifunk", "community", "name") or "Freifunk")
local mesh_network = ip.IPv4(uci:get_first(community, "community", "... | apache-2.0 |
Lsty/ygopro-scripts | c19353570.lua | 3 | 1186 | --影無茶ナイト
function c19353570.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(19353570,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCondition(c19353570.s... | gpl-2.0 |
Lsty/ygopro-scripts | c61840587.lua | 3 | 3318 | --携帯型バッテリー
function c61840587.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)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c61840587.target)
e1:SetOper... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rt.lua | 12 | 1083 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- !pos -60 -23 60 27
-----------------------------------
require("scripts/globals/missions");
local ID = require("scripts/zones/Phomiuna_Aqueducts/IDs");
-----------------------------------
function onTrade(player,npc,trade)
end;
funct... | gpl-3.0 |
openwrt/luci | applications/luci-app-wifischedule/luasrc/controller/wifischedule/wifi_schedule.lua | 5 | 2066 | -- Copyright (c) 2016, prpl Foundation
--
-- Permission to use, copy, modify, and/or distribute this software for any purpose with or without
-- fee is hereby granted, provided that the above copyright notice and this permission notice appear
-- in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... | apache-2.0 |
MalRD/darkstar | scripts/zones/Cape_Teriggan/IDs.lua | 9 | 3415 | -----------------------------------
-- Area: Cape_Teriggan
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.CAPE_TERIGGAN] =
{
text =
{
NOTHING_HAPPENS = 119, -- Nothing happens...
ITEM_CANNO... | gpl-3.0 |
Lsty/ygopro-scripts | c5373478.lua | 5 | 1816 | --サイバー・ドラゴン・ツヴァイ
function c5373478.initial_effect(c)
--atkup
local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c5373478.atkcon)
e1:SetValue(300)
c:RegisterEffect(e1)
--change code... | gpl-2.0 |
MalRD/darkstar | scripts/globals/weaponskills/knights_of_round.lua | 10 | 1784 | -----------------------------------
-- Knights Of Round
-- Sword Weapon Skill
-- Skill Level: N/A
-- Caliburn/Excalibur: Additional Effect: Regen.
-- Regen 10HP/Tick, duration varies with TP.
-- Available only when equipped with the Relic Weapons Caliburn (Dynamis use only) or Excalibur.
-- Also available without after... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Norg/npcs/Ranemaud.lua | 9 | 3367 | -----------------------------------
-- Area: Norg
-- NPC: Ranemaud
-- Involved in Quest: Forge Your Destiny, The Sacred Katana
-- !pos 15 0 23 252
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
local ID = require("scripts/zones/Norg/IDs");
------------------... | gpl-3.0 |
openwrt/luci | applications/luci-app-radicale2/luasrc/model/cbi/radicale2/auth.lua | 3 | 7013 | -- Licensed to the public under the Apache License 2.0.
local rad2 = require "luci.controller.radicale2"
local fs = require("nixio.fs")
local util = require("luci.util")
local m = Map("radicale2", translate("Radicale 2.x"),
translate("A lightweight CalDAV/CardDAV server"))
local s = m:section(NamedSection, "a... | apache-2.0 |
Lsty/ygopro-scripts | c8964854.lua | 3 | 1886 | --コンビネーション・アタック
function c8964854.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(c8964854.condition)
e1:SetTarget(c8964854.target)
e1:SetOp... | gpl-2.0 |
JCM6/Spring-ITF | LuaUI/Widgets/init_start_point_remover.lua | 1 | 1087 | -- $Id: init_start_point_remover.lua 3171 2008-11-06 09:06:29Z det $
function widget:GetInfo()
return {
name = "Start Point Remover",
desc = "Deletes your start point once the game begins",
author = "TheFatController and jK",
date = "Jul 11, 2007",
license = "GNU GPL, v2 or lat... | gpl-3.0 |
io7m/coreland-opengl-ada | opengl-mkapi.lua | 1 | 5699 | #!/usr/bin/env lua
local string_ex = require ("string_ex")
local io = require ("io")
local argv = arg
local argc = table.maxn (argv)
assert (argc == 3)
local api_types_map = io.open (argv[1])
local api_names_map = io.open (argv[2])
local gl_types_map = io.open (argv[3])
assert (api_types_map)
assert... | isc |
Lsty/ygopro-scripts | c2122975.lua | 9 | 1197 | --トラップ・キャプチャー
function c2122975.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c2122975.condition)
e1:SetCost(c2122975.cost)
e1:SetOperation(c2122975.activate)
c:RegisterEffect(e1)
end
function c2122975.condition(e,tp,eg,e... | gpl-2.0 |
Lsty/ygopro-scripts | c97169186.lua | 3 | 1095 | --地砕き
function c97169186.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c97169186.target)
e1:SetOperation(c97169186.activate)
c:RegisterEffect(e1)
end
function c97169186.filter(c)
return c:... | gpl-2.0 |
Lsty/ygopro-scripts | c17194258.lua | 3 | 2393 | --融合徴兵
function c17194258.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,17194258+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c17194258.target)
e1:SetOperation(c17194258.activa... | gpl-2.0 |
Frenzie/koreader | spec/unit/readerrolling_spec.lua | 3 | 9035 | describe("Readerrolling module", function()
local DocumentRegistry, ReaderUI, Event, Screen
local readerui, rolling
setup(function()
require("commonrequire")
DocumentRegistry = require("document/documentregistry")
ReaderUI = require("apps/reader/readerui")
Event = require("u... | agpl-3.0 |
Lsty/ygopro-scripts | c89870349.lua | 5 | 2615 | --M・HERO ブラスト
function c89870349.initial_effect(c)
c:EnableReviveLimit()
--special summon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE)
c:RegisterEffect(e1)
--atk
local e2=Effect.C... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.