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 |
|---|---|---|---|---|---|
Wuzzy2/mobs_mc | enderman.lua | 1 | 10214 | --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 |
tarulas/luadch | luasec/samples/dhparam/server.lua | 8 | 1196 | --
-- Public domain
--
local socket = require("socket")
local ssl = require("ssl")
local function readfile(filename)
local fd = assert(io.open(filename))
local dh = fd:read("*a")
fd:close()
return dh
end
local function dhparam_cb(export, keylength)
print("---")
print("DH Callback")
print("Export", ex... | gpl-3.0 |
tarulas/luadch | scripts/cmd_ban.lua | 1 | 29290 | --[[
cmd_ban.lua by blastbeat
- this script adds a command "ban" and "unban" to ban/unban users by sid/nick/cid or show/clear all banned users
- usage ban: [+!#]ban sid|nick|cid|ip <SID>|<NICK>|<CID>|<IP> [<time> <reason>] / [+!#]ban show|showhis|clear|clearhis
- usage unban: [+!#... | gpl-3.0 |
Lsty/ygopro-scripts | c19159413.lua | 3 | 1156 | --魔法除去
function c19159413.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:SetTarget(c19159413.target)
e1:SetOperation(c19159413.activate)
c:RegisterEffect(e1)
e... | gpl-2.0 |
Jguer/awmdotfiles | mpv/scripts/auto-save.lua | 1 | 1237 | -- In case "save-position-on-quit" is used (e.g. by config) this script will
-- remove it when only a certain amount of seconds are left to play (threshold).
if not mp.get_property_bool("options/save-position-on-quit") then
return
end
local opts = require 'mp.options'
local o = {
thresh_end = 180,
thresh_start... | gpl-2.0 |
maxrio/luci981213 | applications/luci-app-dns2socks/luasrc/model/cbi/dns2socks.lua | 13 | 1287 | --[[
--dns2socks configuration page. Made by 981213
--
]]--
local fs = require "nixio.fs"
m = Map("dns2socks", translate("DNS2Socks"),
translatef("DNS2SOCKS is a command line utility running to forward DNS requests to a DNS server via a SOCKS tunnel."))
s = m:section(TypedSection, "dns2socks", translate("Set... | apache-2.0 |
Lsty/ygopro-scripts | c73694478.lua | 3 | 3260 | --転生の超戦士
function c73694478.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:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCountLimit(1,73694478+EFFECT_COUNT_COD... | gpl-2.0 |
Lsty/ygopro-scripts | c99342953.lua | 3 | 2170 | --古代遺跡コードA
function c99342953.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--counter
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_DESTROYE... | gpl-2.0 |
Lsty/ygopro-scripts | c21785144.lua | 3 | 1641 | --ライトロード・ドラゴン グラゴニス
function c21785144.initial_effect(c)
--atk def
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(c21785144.value)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(... | gpl-2.0 |
Frenzie/koreader | plugins/calibre.koplugin/main.lua | 4 | 14748 | --[[
This plugin implements KOReader integration with *some* calibre features:
- metadata search
- wireless transfers
This module handles the UI part of the plugin.
--]]
local BD = require("ui/bidi")
local CalibreExtensions = require("extensions")
local CalibreSearch = require("search")
local... | agpl-3.0 |
kidaa/luafun | tests/generators.lua | 5 | 3254 | --------------------------------------------------------------------------------
-- range
--------------------------------------------------------------------------------
dump(range(0))
print('--')
for i=1,0 do print(i) end
--[[test
--
--test]]
dump(range(0, 0))
print('--')
for i=0,0 do print(i) end
--[[test
0
--
0
-... | mit |
RamiLego4Game/PlatformerWorld | Engine/loveframes/objects/internal/scrollable/scrollbutton.lua | 10 | 3765 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- scrollbutton clas
local newobject = loveframes.NewObject("scrollbutton", "loveframes_object_scrollbutton", true)
--[[---... | gpl-2.0 |
Lsty/ygopro-scripts | c8903700.lua | 3 | 1209 | --儀式魔人リリーサー
function c8903700.initial_effect(c)
--ritual material
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EXTRA_RITUAL_MATERIAL)
e1:SetValue(1)
c:RegisterEffect(e1)
--become material
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
... | gpl-2.0 |
sagarwaghmare69/nn | TemporalDynamicKMaxPooling.lua | 8 | 2240 | --[[
This file implements Dynamic K Max Pooling as described in the paper:
"A Convolutional Neural Network for Modelling Sentences"
by Nal Kalchbrenner, Edward Grefenstette, Phil Blunsom
The operation is simply selecting the k highest values out of a sequence.
k can be a calculated va... | bsd-3-clause |
gallenmu/MoonGen | libmoon/lua/lib/syscall/linux/x86/ffi.lua | 24 | 1567 | -- x86 specific definitions
return {
ucontext = [[
typedef int greg_t, gregset_t[19];
typedef struct _fpstate {
unsigned long cw, sw, tag, ipoff, cssel, dataoff, datasel;
struct {
unsigned short significand[4], exponent;
} _st[8];
unsigned long status;
} *fpregset_t;
typedef struct {
gregset_t gregs;
... | mit |
MalRD/darkstar | scripts/globals/spells/bluemagic/dimensional_death.lua | 8 | 1537 | -----------------------------------------
-- Spell: Dimensional Death
-- Damage varies with TP
-- Spell cost: 48 MP
-- Monster Type: Undead
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 5
-- Stat Bonus: DEX+1, CHR+1, HP+5
-- Level: 60
-- Casting Time: 0.5 seconds
-- Recast Time: 23.75 seconds
-- Skillchain Prop... | gpl-3.0 |
Lsty/ygopro-scripts | c2511717.lua | 7 | 1623 | --真六武衆-カゲキ
function c2511717.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(2511717,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c2511717.sptg)
e1:SetOperation(c25... | gpl-2.0 |
CommandPost/CommandPost-App | extensions/httpserver/httpserver_hsminweb.lua | 4 | 85441 |
--- === hs.httpserver.hsminweb ===
---
--- Minimalist Web Server for Hammerspoon
---
--- This module aims to be a minimal, but (mostly) standards-compliant web server for use within Hammerspoon. Expanding upon the Hammerspoon module, `hs.httpserver`, this module adds support for serving static pages stored at a speci... | mit |
Lsty/ygopro-scripts | c32663969.lua | 3 | 1849 | --ドミノ
function c32663969.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(32663969,0))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE... | gpl-2.0 |
maxrio/luci981213 | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/collectd.lua | 68 | 2082 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
m = Map("luci_statistics",
translate("Collectd Settings"),
translate(
"Collectd is a small daemon for collecting data from " ..
"various sources through different p... | apache-2.0 |
Lsty/ygopro-scripts | c1357146.lua | 7 | 1670 | --粋カエル
function c1357146.initial_effect(c)
--change code
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(84451804)
c:RegisterEffect(e1)
--draw
local e2=Effect.CreateEffect(c)
e2:SetD... | gpl-2.0 |
MalRD/darkstar | scripts/globals/spells/bio.lua | 11 | 2274 | -----------------------------------------
-- Spell: Bio
-- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/utils")
req... | gpl-3.0 |
Frenzie/koreader | frontend/ui/widget/frontlightwidget.lua | 4 | 19731 | local Blitbuffer = require("ffi/blitbuffer")
local Button = require("ui/widget/button")
local ButtonProgressWidget = require("ui/widget/buttonprogresswidget")
local CenterContainer = require("ui/widget/container/centercontainer")
local Device = require("device")
local FocusManager = require("ui/widget/focusmanager")
lo... | agpl-3.0 |
T-L-N/Dev_TLN | plugins/insta.lua | 1 | 4549 | --[[
--By @x_I_10_I_x
--By @llN00Nll
--By @liknil
--ch> @Dev_TLN
▀▄ ▄▀ insta : انستا ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀
--]]
local access_token = "3084249803.280d5d7.999310365c8248f8948ee0f6929c2f02" -- your api key
local function instagramUser(msg, query)
local receive... | gpl-2.0 |
Lsty/ygopro-scripts | c48568432.lua | 3 | 4303 | --トライゴン
function c48568432.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(48568432,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c48568432.eqtg)
e1:SetOperation(c4856... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/yellow_curry_bun.lua | 11 | 1837 | -----------------------------------------
-- ID: 5757
-- Item: yellow_curry_bun
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- TODO: Group effects
-- Health Points 20
-- Strength 5
-- Agility 2
-- Intelligence -4
-- Attack 20% (caps @ 75)
-- Ranged Attack 20% (caps @ 75)
-- Resist Sle... | gpl-3.0 |
Lsty/ygopro-scripts | c70546737.lua | 5 | 2541 | --アンブラル・ウィル・オ・ザ・ウィスプ
function c70546737.initial_effect(c)
--lv change
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(70546737,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c705... | gpl-2.0 |
digoot/dotfiles | hammerspoon/Spoons/WindowHalfsAndThirds.spoon/init.lua | 1 | 21571 | --- === WindowHalfsAndThirds ===
---
--- Simple window movement and resizing, focusing on half- and third-of-screen sizes
---
--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowHalfsAndThirds.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowHalfsAndThirds.spoon.zip)
lo... | apache-2.0 |
cleytonk/globalfull | data/events/scripts/player.lua | 3 | 3323 | function Player:onBrowseField(position)
return true
end
function Player:onLook(thing, position, distance)
local description = "You see " .. thing:getDescription(distance)
if self:getGroup():getAccess() then
if thing:isItem() then
description = string.format("%s\nItemID: [%d]", description, thing:getId())
l... | gpl-2.0 |
Frenzie/koreader | frontend/device/generic/powerd.lua | 4 | 10634 | local UIManager -- will be updated when available
local Math = require("optmath")
local logger = require("logger")
local time = require("ui/time")
local BasePowerD = {
fl_min = 0, -- min frontlight intensity
fl_max = 10, -- max frontlight intensity
fl_intensity = n... | agpl-3.0 |
MalRD/darkstar | scripts/globals/abilities/jump.lua | 10 | 2284 | -----------------------------------
-- Ability: Jump
-- Delivers a short jumping attack on a targeted enemy.
-- Obtained: Dragoon Level 10
-- Recast Time: 1:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/weaponskills")
require("scripts/globals/settings")
require("scripts/globals/st... | gpl-3.0 |
Lsty/ygopro-scripts | c37970940.lua | 3 | 1664 | --地霊使いアウス
function c37970940.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(37970940,0))
e1:SetCategory(CATEGORY_CONTROL)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP)
e1:SetTarget(c37970940.target)
e1:SetOperation(c37970940.oper... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Lower_Jeuno/npcs/Ruslan.lua | 9 | 1488 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Ruslan
-- Involved In Quest: Wondering Minstrel
-- !pos -19 -1 -58 245
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
require("scripts/globals/titles");
---... | gpl-3.0 |
LuaDist2/ljlinenoise | eg/repl_cl.lua | 3 | 1281 | #!/usr/bin/env luajit
--
-- Copyright (C) 2014 Francois Perrad.
--
--[[
$ eg/repl_cl.lua
> set me tarzan
> set you jane
> set us "tarzan & jane"
> print us $me and $you
us tarzan and jane
$ eg/repl_cl.lua
> (set 'me' "tarzan")
> (set 'you' "jane")
> (set 'us' "tarzan & jane")... | mit |
MalRD/darkstar | scripts/zones/Western_Adoulin/npcs/Chanteillie.lua | 9 | 2488 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Chanteillie
-- Type: Standard NPC and Quest NPC
-- Involved with Quests: 'Do Not Go Into the Light'
-- 'Vegetable Vegetable Crisis'
-- !pos 89 0 -75 256
-----------------------------------
require("scripts/globals/keyitems"... | gpl-3.0 |
groupforspeed/WaderTG | plugins/bot-lock.lua | 15 | 2101 | local function isAntiBotEnabled (chatId)
local hash = 'bot:lock:'..chatId
local lock = redis:get(hash)
return lock
end
local function enableAntiBot (chatId)
local hash = 'bot:lock:'..chatId
redis:set(hash, true)
end
local function disableAntiBot (chatId)
local hash = 'bot:lock:'..chatId
redis:del(hash)
end
local ... | gpl-2.0 |
Lsty/ygopro-scripts | c73262676.lua | 3 | 1412 | --「A」細胞散布爆弾
function c73262676.initial_effect(c)
--counter
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_COUNTER+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c73262676.target)
e1:SetOperation(c73262676.operation)
... | gpl-2.0 |
Lsty/ygopro-scripts | c43889633.lua | 3 | 3710 | --忘却の海底神殿
function c43889633.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c43889633.target1)
e1:SetOperation(c43889633.operation)
c:RegisterEffect(e1)
--instant(chain)
local e2=Effect.CreateEffect(c)
e2:SetDescription(a... | gpl-2.0 |
MalRD/darkstar | scripts/globals/abilities/pets/meteor_strike.lua | 11 | 1409 | ---------------------------------------------------
-- Geocrush
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
require("scripts/globals/magic")
---------------------------------------------------
funct... | gpl-3.0 |
adan830/luacheck | src/luacheck/fs.lua | 4 | 4293 | local fs = {}
local utils = require "luacheck.utils"
fs.has_lfs, fs.lfs = pcall(require, "lfs")
local function ensure_dir_sep(path)
if path:sub(-1) ~= utils.dir_sep then
return path .. utils.dir_sep
end
return path
end
if utils.is_windows then
function fs.split_base(path)
if path:match("^%a... | mit |
tarulas/luadch | scripts/cmd_uptime.lua | 1 | 5257 | --[[
cmd_uptime.lua by Night
usage: [+!#]uptime
v0.7: by pulsar
- changes in get_hubuptime() and get_hubruntime()
v0.6: by pulsar
- using new luadch date style
v0.5: by pulsar
- shows the complete hub runtime since th... | gpl-3.0 |
BaumannMatthieu/Cursed-Crown | skeleton.lua | 1 | 6304 | local good, chaotic_good, neutral, chaotic_bad, bad = 0, 1, 2, 3, 4
character = {
description = {
name = "Skeleton Warrior",
life = 100.0,
mana = 0.0,
defense = 3.0,
touch = 18.0,
esquive = 0.0,
displacement_speed = 4.0,
max... | gpl-2.0 |
Lsty/ygopro-scripts | c3431737.lua | 3 | 1111 | --バスター・ビースト
function c3431737.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(3431737,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCost(c3431737.cost)
e1:SetTarget(c3431737.target)
e1:SetOperation... | gpl-2.0 |
colesbury/cudnn.torch | Pooling.lua | 1 | 4074 | local Pooling, parent = torch.class('cudnn._Pooling', 'nn.Module')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
function Pooling:__init(kW, kH, dW, dH, padW, padH)
parent.__init(self)
self.kW = kW
self.kH = kH
self.dW = dW or kW
self.dH = dH or kW
self.padW = padW or 0
self.padH = pad... | bsd-2-clause |
Lsty/ygopro-scripts | c92346415.lua | 7 | 1697 | --サイコ・ソード
function c92346415.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(c92346415.target)
e1:SetOperation(c92346415.operation)
c:RegisterEffect(e1)... | gpl-2.0 |
Noneatme/MTA-SCP-049 | resources/bone_attach/bone_pos_rot.lua | 7 | 2070 | sx,sy,sz = 0,0,3
tx,ty,tz = 0,0,4
fx,fy,fz = 0,1,3
function getMatrixFromPoints(x,y,z,x3,y3,z3,x2,y2,z2)
x3 = x3-x
y3 = y3-y
z3 = z3-z
x2 = x2-x
y2 = y2-y
z2 = z2-z
local x1 = y2*z3-z2*y3
local y1 = z2*x3-x2*z3
local z1 = x2*y3-y2*x3
x2 = y3*z1-z3*y1
y2 = z3*x1-x3*z1
z2 = x3*y1-y3*x1
local len1 = 1/math.s... | mit |
Lsty/ygopro-scripts | c50304345.lua | 5 | 1661 | --E-HERO ヘル・ブラット
function c50304345.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:SetTargetRange(POS_FACEUP_ATTACK,0)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c50304345.spcon)
c:Regi... | gpl-2.0 |
frankyifei/koreader | frontend/document/pdfdocument.lua | 2 | 7256 | local Cache = require("cache")
local CacheItem = require("cacheitem")
local KoptOptions = require("ui/data/koptoptions")
local Document = require("document/document")
local DrawContext = require("ffi/drawcontext")
local DEBUG = require("dbg")
local util = require("util")
local PdfDocument = Document:new{
_document... | agpl-3.0 |
li-wl/kong | kong/plugins/ldap-auth/asn1.lua | 6 | 8466 | require "lua_pack"
local bpack = string.pack
local bunpack = string.unpack
local math = math
local bit = bit
local setmetatable = setmetatable
local table = table
local string_reverse = string.reverse
local string_char = string.char
local _M = {}
_M.BERCLASS = {
Universal = 0,
Application = 64,
ContextSpecific... | apache-2.0 |
HuangYuNan/thcsvr | expansions/script/c421403.lua | 1 | 1739 | --Rabbit House 天天座理世
function c421403.initial_effect(c)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(421403,0))
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVEN... | gpl-2.0 |
bn7/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm17.lua | 14 | 1904 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: ???
-- Spawns Glavoid
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
function... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/temper.lua | 27 | 1135 | -----------------------------------------
--
-- Spell: Temper
--
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c24037.lua | 1 | 1961 |
--复燃「恋的埋火」
function c24037.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c24037.target)
e1:SetOperation(c24037.activate)
c:RegisterEf... | gpl-2.0 |
bn7/darkstar | scripts/globals/spells/rasp.lua | 9 | 1843 | -----------------------------------------
-- Spell: Rasp
-- Deals earth damage that lowers an enemy's dexterity and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
---------------------------... | gpl-3.0 |
simonemainardi/ntopng | scripts/lua/get_http_hosts_data.lua | 1 | 4377 | --
-- (C) 2013-17 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
-- Table parameters
all = _GET["all"]
currentPage = _GET["currentPage"]
perPage = _GET["perPage"]
sortColumn =... | gpl-3.0 |
bn7/darkstar | scripts/zones/Lebros_Cavern/IDs.lua | 67 | 1719 | Lebros = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6376, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6379, -- Obtained: <item>
GIL_OBTAINED = 6380, -- Obtained <number> gil
KEYITEM_OBTAINED = 6382, -- Obtained... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/slice_of_roast_mutton.lua | 12 | 1390 | -----------------------------------------
-- ID: 4437
-- Item: slice_of_roast_mutton
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Waters/npcs/Yuli_Yaam.lua | 14 | 1915 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Yuli Yaam
-- Involved In Quest: Wondering Minstrel
-- Working 100%
-- @zone = 238
-- @pos = -61 -4 23
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
bn7/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Resauchamet.lua | 17 | 1028 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Resauchamet
-- Standard Info NPC
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrig... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/block_of_stone_cheese.lua | 12 | 1214 | -----------------------------------------
-- ID: 4460
-- Item: Block of Stone Cheese
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health +6% (cap 40)
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c10368.lua | 1 | 3059 | --天仪『太阳系仪』
function c10368.initial_effect(c)
--Activate
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_ACTIVATE)
e5:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e5)
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetRange(LOCATION_SZONE)
e1:SetCode(EVENT_SUMMON... | gpl-2.0 |
bn7/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Ix_aern_drk.lua | 7 | 3668 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- MOB: Ix'aern (drk)
-- @pos -240 5.00 440 35
-- @pos -280 5.00 240 35
-- @pos -560 5.00 239 35
-- @pos -600 5.00 440 35
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/glob... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c31040.lua | 1 | 2857 | --绀珠的人类✿博丽灵梦
function c31040.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x100),aux.FilterBoolFunction(Card.IsFusionSetCard,0x208),true)
--draw
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(31040,0))
e1:SetCategory... | gpl-2.0 |
krichter722/vlc | share/lua/meta/art/01_googleimage.lua | 74 | 1764 | --[[
Gets an artwork from images.google.com
$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 la... | lgpl-2.1 |
HuangYuNan/thcsvr | expansions/script/c27041.lua | 1 | 1624 | --神光「无忤为宗」
function c27041.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
--e1:SetCost(c27041.cost)
e1:SetTarget(c27041.target)
e1:SetOperation(c27041.activate)
c:RegisterEffect(e1)
end
function c27041... | gpl-2.0 |
sarahgerweck/Ace3 | tests/AceConfigCmd-3.0.lua | 1 | 5053 | dofile("wow_api.lua")
dofile("LibStub.lua")
dofile("../CallbackHandler-1.0/CallbackHandler-1.0.lua")
dofile("../AceConsole-3.0/AceConsole-3.0.lua")
dofile("../AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua")
dofile("../AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.lua")
local ccmd = assert(LibStub("Ac... | bsd-3-clause |
bn7/darkstar | scripts/zones/QuBia_Arena/bcnms/those_who_lurk_in_shadows.lua | 59 | 2394 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Those Who Lurk in Shadows
-- @pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions"... | gpl-3.0 |
bn7/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Knuckles.lua | 17 | 1498 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Knuckles
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEn... | gpl-3.0 |
sarahgerweck/Ace3 | AceGUI-3.0/AceGUI-3.0.lua | 1 | 23369 | --- **AceGUI-3.0** provides access to numerous widgets which can be used to create GUIs.
-- AceGUI is used by AceConfigDialog to create the option GUIs, but you can use it by itself
-- to create any custom GUI. There are more extensive examples in the test suite in the Ace3
-- stand-alone distribution.
--
-- **Note**:... | bsd-3-clause |
ArmanIr/arbot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
magamplus/test1 | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
bn7/darkstar | scripts/zones/Windurst_Woods/npcs/Kuoh_Rhel.lua | 13 | 4075 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Kuoh Rhel
-- Type: Standard NPC
-- @zone 241
-- @pos 131.437 -6 -102.723
-- Starts quests: Chocobilious, In a Stew
-- Note: In a Stew should only repeat once per conquest tally. The tally is not implemented at time of
-- writing this quest. ... | gpl-3.0 |
hilbertdu/TurboEngine | Code/External/bgfx/bimg/scripts/texturec.lua | 4 | 1477 | --
-- Copyright 2010-2017 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
project "texturec"
kind "ConsoleApp"
includedirs {
path.join(BX_DIR, "include"),
path.join(BIMG_DIR, "include"),
path.join(BIMG_DIR, "3rdparty"),
path.join(BIMG_DIR, "3rd... | mit |
HuangYuNan/thcsvr | expansions/script/c22252.lua | 1 | 3642 | --元素融合『自然』
function c22252.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c22252.target)
e1:SetOperation(c22252.activate)
c:RegisterEffect(e1)
--to gravee
l... | gpl-2.0 |
frankyifei/koreader | datastorage.lua | 2 | 1253 | -- need low-level mechnism to detect android to avoid recursive dependency
local isAndroid = pcall(require, "android")
local lfs = require("libs/libkoreader-lfs")
local DataStorage = {}
function DataStorage:getDataDir()
local data_dir
if isAndroid then
data_dir = "/sdcard/koreader"
elseif os.geten... | agpl-3.0 |
bn7/darkstar | scripts/globals/weaponskills/last_stand.lua | 16 | 1848 | -----------------------------------
-- Last Stand
-- Skill Level: 357
-- Description: Attacks once or twice, depending on remaining ammunition. Damage dealt varies with TP.
-- If the first shot of the weapon skill does enough damage to defeat the target, the second shot will not be used.
-- To obtain Last Stand, the qu... | gpl-3.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua | 7 | 4108 |
--------------------------------
-- @module SkeletonRenderer
-- @extend Node,BlendProtocol
-- @parent_module sp
--------------------------------
--
-- @function [parent=#SkeletonRenderer] setTimeScale
-- @param self
-- @param #float scale
-- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonR... | mit |
bn7/darkstar | scripts/zones/Port_Windurst/npcs/Panja-Nanja.lua | 53 | 1909 | -----------------------------------
-- Area: Port Windurst
-- NPC: Panja-Nanja
-- Type: Fishing Adv. Image Support
-- @pos -194.499 -3 58.692 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
AverageJamz/ac-dissector | messages/msgCharacterList.lua | 1 | 2103 | -- 0xF658
fields.MsgCharacterListObjectId = ProtoField.uint32("ac.msg.char_list.obj_id", "ObjectID", base.HEX)
fields.MsgCharacterListCharacterName = ProtoField.string("ac.msg.char_list.char_name", "Name")
fields.MsgCharacterListDeleteTimeout = ProtoField.uint32("ac.msg.char_list.del_timeout... | mit |
bn7/darkstar | scripts/globals/mining.lua | 8 | 16725 | ------------------------------------------------------------------------------------------
-- Mining 2.0
-- Note: When implementing new zones, ensure there are more mining point locations
-- than there are mining points for the zone.
-----------------------------------------------------------------------------------... | gpl-3.0 |
gboleda/reference | first_encounter/dire_sebastian.lua | 1 | 2242 | local function compute_dire_sb2_model_weight_distribution(raw_similarity_profile_to_entity_matrix, i, temperature, shared_raw_new_entity_mapping)
-- computing the new-entity cell value
-- average or max or sum by default of input vector cells...
local patch_constant = 0.5
local raw_similarity_profi... | gpl-3.0 |
bn7/darkstar | scripts/zones/Bastok_Markets/npcs/Harmodios.lua | 14 | 2447 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Harmodios
-- Standard Merchant NPC
-- @pos -79.928 -4.824 -135.114 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scri... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/invisible.lua | 27 | 1280 | -----------------------------------------
-- Spell: Invisible
-- Lessens chance of being detected by sight.
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/candy_cane.lua | 12 | 1280 | -----------------------------------------
-- ID: 5622
-- Item: Candy Cane
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- Intelligence 4
-- Mind 4
-- MP Recovery while healing 2
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Kazham/npcs/Pofhu_Tendelicon.lua | 17 | 1074 | -----------------------------------
-- Area: Kazham
-- NPC: Pofhu Tendelicon
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Woods/npcs/Nikkoko.lua | 53 | 1835 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Nikkoko
-- Type: Clothcraft Image Support
-- @pos -32.810 -3.25 -113.680 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Walls/npcs/Komulili.lua | 17 | 1097 | -----------------------------------
-- Area: Port Windurst
-- NPC: Komulili
-- Warps players to Port Windurst
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Walls/TextIDs");
------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Rolanberry_Fields/npcs/Saarlan.lua | 29 | 8425 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: Saarlan
-- Legion NPC
-- @pos 242 24.395 468
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/key... | gpl-3.0 |
bn7/darkstar | scripts/zones/Spire_of_Holla/Zone.lua | 30 | 1406 | -----------------------------------
--
-- Zone: Spire_of_Holla (17)
--
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Spire_of_Holla/TextIDs");
---------------------------... | gpl-3.0 |
frankyifei/koreader | frontend/ui/gesturerange.lua | 7 | 2083 | local TimeVal = require("ui/timeval")
local GestureRange = {
-- gesture matching type
ges = nil,
-- spatial range limits the gesture emitting position
range = nil,
-- temproal range limits the gesture emitting rate
rate = nil,
-- scale limits of this gesture
scale = nil,
}
function Ges... | agpl-3.0 |
gaoxiaojun/symphony | ref/lua-5.1.5/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
Bilibili/vlc | share/lua/meta/fetcher/tvrage.lua | 48 | 2571 | --[[
Gets metas for tv episode using tvrage.
$Id$
Copyright © 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 version 2 of the License, or
(at your option) any l... | gpl-2.0 |
bn7/darkstar | scripts/zones/Horlais_Peak/bcnms/dropping_like_flies.lua | 30 | 1741 | -----------------------------------
-- Area: Horlias peak
-- Name: Dropping Like Flies
-- BCNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXA... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c21085.lua | 1 | 3431 | --竹林隐居少女✿藤原妹红
function c21085.initial_effect(c)
--def atk
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DEFENSE_ATTACK)
e1:SetCondition(c21085.condition)
c:RegisterEffect(e1)
--special summon
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(21085,0))
e4:SetCate... | gpl-2.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/ImageView.lua | 7 | 3432 |
--------------------------------
-- @module ImageView
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- Load texture for imageview.<br>
-- param fileName file name of texture.<br>
-- param texType @see `Widget::TextureResType`
-- @function [parent=#ImageView] loadTexture
-- @param sel... | mit |
bn7/darkstar | scripts/zones/Ifrits_Cauldron/npcs/Flame_Spout.lua | 14 | 1607 | ----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Flame Spout
-- @pos 193.967 -0.400 19.492 205
-----------------------------------
require("scripts/zones/Ifrits_Cauldron/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/quests");
-----------------------------------
-- onTrad... | gpl-3.0 |
bn7/darkstar | scripts/globals/abilities/repair.lua | 26 | 4408 | -----------------------------------
-- Ability: Repair
-- Uses oil to restore pet's HP.
-- Obtained: Puppetmaster Level 15
-- Recast Time: 3:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/pets");
------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Abyssea-Grauberg/npcs/qm4.lua | 14 | 1390 | -----------------------------------
-- Zone: Abyssea-Grauberg
-- NPC: qm4 (???)
-- Spawns Bomblix Flamefinger
-- @pos ? ? ? 254
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,... | gpl-3.0 |
yinjun322/quick-ng | quick/framework/cc/sdk/Store.lua | 13 | 3883 |
local Store = {}
local function checkCCStore()
if not cc.Store then
printError("framework.cc.sdk.Store - cc.Store not exists.")
return false
end
return true
end
function Store.init(listener)
if not checkCCStore() then return false end
if cc.storeProvider then
printError("... | mit |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua | 76 | 3146 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.