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 |
|---|---|---|---|---|---|
mayoub/hhana | latex/unicode-math.lua | 5 | 1634 | --
-- This is file `unicode-math.lua',
-- generated with the docstrip utility.
--
-- The original source files were:
--
-- unicode-math.dtx (with options: `lua')
-- Copyright 2006-2011 Will Robertson <will.robertson@latex-project.org>
-- Copyright 2010-2011 Philipp Stephani <st_philipp@yahoo.de>
-- Copyright 2012 Khal... | gpl-3.0 |
Electrovirus/flooder | plugins/groupcontrol.lua | 8 | 41886 | do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 4
local TIME_CHECK = 4 -- seconds
local function generate_link(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local user_id = cb_extra.user_id
local chat_id = string.gsub(rece... | gpl-3.0 |
Zariel/bollo | lib/AceGUI-3.0/widgets/AceGUIWidget-DropDown-Items.lua | 5 | 10105 | --[[ $Id: AceGUIWidget-DropDown-Items.lua 76326 2008-06-09 09:29:17Z nevcairiel $ ]]--
local AceGUI = LibStub("AceGUI-3.0")
local function fixlevels(parent,...)
local i = 1
local child = select(i, ...)
while child do
child:SetFrameLevel(parent:GetFrameLevel()+1)
fixlevels(child, child:GetChildren())
i = i + ... | bsd-3-clause |
HuangYuNan/thcsvr | expansions/script/c50300.lua | 1 | 3329 |
--潜水舰-伊168
function c50300.initial_effect(c)
local temp = 0
while temp<7 do
c:RegisterFlagEffect(50200,0,0,0)
temp = temp+1
end
--destroy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(50300,0))
e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_T... | gpl-2.0 |
bn7/darkstar | scripts/globals/spells/blindga.lua | 6 | 1146 | -----------------------------------------
-- Spell: Blind
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c40035.lua | 1 | 5551 |
--精灵魔装-贯穿真实之剑
function c40035.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:SetCost(c40035.cost)
e1:SetTarget(c40035.target)
e1:SetOperation(c40035.operation)... | gpl-2.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/ipkg-ar71xx/luci-base/usr/lib/lua/luci/ltn12.lua | 83 | 11303 | --[[
LuaSocket 2.0.2 license
Copyright � 2004-2007 Diego Nehab
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, me... | gpl-2.0 |
nulian/InlineAura | libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua | 52 | 9726 | local AceGUI = LibStub("AceGUI-3.0")
-- Lua APIs
local pairs, assert, type = pairs, assert, type
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame, UIParent = CreateFrame, UIParent
-- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
-- List them here for Mikk's FindGlobals... | gpl-2.0 |
frankyifei/koreader | frontend/ui/widget/linewidget.lua | 3 | 1099 | local Widget = require("ui/widget/widget")
local Blitbuffer = require("ffi/blitbuffer")
local LineWidget = Widget:new{
style = "solid",
background = Blitbuffer.COLOR_BLACK,
dimen = nil,
--@TODO replay dirty hack here 13.03 2013 (houqp)
empty_segments = nil,
}
function LineWidget:paintTo(bb, x, y)... | agpl-3.0 |
bn7/darkstar | scripts/globals/weaponskills/tachi_yukikaze.lua | 18 | 1763 | -----------------------------------
-- Tachi Yukikaze
-- Great Katana weapon skill
-- Skill Level: 200 (Samurai only.)
-- Blinds target. Damage varies with TP.
-- Blind effect duration is 60 seconds when unresisted.
-- Will stack with Sneak Attack.
-- Tachi: Yukikaze appears to have an attack bonus of 50%. http://www.b... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Waters/npcs/Door_House.lua | 6 | 3197 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Door_House
-- 17752333 (Corsair's Gants) @pos -200 -4 -111 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Waters/TextIDs");
re... | gpl-3.0 |
bn7/darkstar | scripts/zones/Apollyon/mobs/Air_Elemental.lua | 119 | 2740 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c50695.lua | 1 | 2061 |
--球磨型重雷装巡洋舰-北上改二
function c50695.initial_effect(c)
c:EnableReviveLimit()
local temp = 0
while temp<11 do
c:RegisterFlagEffect(50200,0,0,0)
temp = temp+1
end
--special summon
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABL... | gpl-2.0 |
LuaDist2/kong | kong/tools/ip.lua | 5 | 1207 | local ip = require "resty.mediador.ip"
local px = require "resty.mediador.proxy"
local function trust_all() return true end
local function trust_none() return false end
local _M = { valid = ip.valid }
function _M.init(config)
local ips = config.trusted_ips
local count = #ips
local trusted_ips = {}
local... | apache-2.0 |
shizhai/wprobe | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/sys/zoneinfo/tzoffset.lua | 72 | 3904 | --[[
LuCI - Autogenerated Zoneinfo Module
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.sys.zoneinfo.tzoffset"
OFFSET = {
gmt =... | gpl-2.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/ipkg-ar71xx/luci-base/usr/lib/lua/luci/sys/zoneinfo/tzoffset.lua | 72 | 3904 | --[[
LuCI - Autogenerated Zoneinfo Module
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.sys.zoneinfo.tzoffset"
OFFSET = {
gmt =... | gpl-2.0 |
bn7/darkstar | scripts/commands/area.lua | 1 | 13361 | ---------------------------------------------------------------------------------------------------
-- func: areagm
-- desc: Teleports a player to the given zone.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "s"
};... | gpl-3.0 |
bn7/darkstar | scripts/zones/Bastok_Mines/npcs/Gumbah.lua | 17 | 2154 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Gumbah
-- Finishes Quest: Blade of Darkness
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
req... | gpl-3.0 |
nolansingroy/cocos2d-x-samples | samples/FantasyWarrior3D/src/actors/Slime.lua | 9 | 4882 | require "GlobalVariables"
require "MessageDispatchCenter"
require "Helper"
require "AttackCommand"
local file = "model/slime/slime.c3b"
Slime = class("Slime", function()
return require "Actor".create()
end)
function Slime:ctor()
copyTable(ActorCommonValues, self)
copyTable(SlimeValues,self)
self._ang... | mit |
HuangYuNan/thcsvr | expansions/script/c1156013.lua | 1 | 8804 | --铃兰与甜美的交织✿梅蒂欣
function c1156013.initial_effect(c)
--
c:EnableReviveLimit()
aux.AddLinkProcedure(c,c1156013.lkcheck,2,2)
--
-- local e11=Effect.CreateEffect(c)
-- e11:SetType(EFFECT_TYPE_FIELD)
-- e11:SetCode(EFFECT_SPSUMMON_PROC)
-- e11:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
-- e11:SetRange(LO... | gpl-2.0 |
bn7/darkstar | scripts/zones/Windurst_Walls/npcs/Seven_of_Diamonds.lua | 14 | 1076 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Seven of Diamonds
-- Type: Standard NPC
-- @pos 6.612 -3.5 278.553 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
-----------------------------------
-- onT... | gpl-3.0 |
bn7/darkstar | scripts/zones/Grauberg_[S]/npcs/qm1.lua | 30 | 1695 | -----------------------------------
-- Area: Grauberg [S]
-- NPC: ???
-- Quest - DNC AF1
-----------------------------------
package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Grauberg_[S]/TextIDs");
-----... | gpl-3.0 |
bbinet/GoIoT | apps/modbus/serial.lua | 6 | 2252 | local rs232 = require("luars232")
local class = {}
-- Linux
-- port_name = "/dev/ttyS0"
-- (Open)BSD
-- port_name = "/dev/cua00"
-- Windows
--port_name = "COM1"
function class:open(port_name, opt)
-- open port
local e, p = rs232.open(port_name)
if e ~= rs232.RS232_ERR_NOERROR then
-- handle error
return nil, ... | gpl-2.0 |
bbinet/GoIoT | apps/ir/serial.lua | 6 | 2252 | local rs232 = require("luars232")
local class = {}
-- Linux
-- port_name = "/dev/ttyS0"
-- (Open)BSD
-- port_name = "/dev/cua00"
-- Windows
--port_name = "COM1"
function class:open(port_name, opt)
-- open port
local e, p = rs232.open(port_name)
if e ~= rs232.RS232_ERR_NOERROR then
-- handle error
return nil, ... | gpl-2.0 |
yinjun322/quick-ng | quick/framework/transition.lua | 20 | 19757 | --[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
bn7/darkstar | scripts/zones/North_Gustaberg/npcs/Cavernous_Maw.lua | 29 | 1442 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Cavernous Maw
-- @pos 466 0 479 106
-- Teleports Players to North Gustaberg [S]
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings"... | gpl-3.0 |
aleju/sky-generator | dataset_colorize.lua | 1 | 8138 | require 'torch'
require 'image'
require 'paths'
local dataset = {}
-- load data from these directories
dataset.dirs = {}
-- load only images with these file extensions
dataset.fileExtension = ""
-- expected original height/width of images
dataset.originalHeight = 32
dataset.originalWidth = 64
-- desired height/width... | mit |
HuangYuNan/thcsvr | expansions/script/c20016.lua | 1 | 1619 | --春之妖精 莉莉布莱克
function c20016.initial_effect(c)
--xyz summon
c:EnableReviveLimit()
Nef.AddXyzProcedureCustom(c,c20016.mfilter,c20016.xyzcheck,1,2)
--remove
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
e1:SetDescription(aux.Stringid(20016,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFF... | gpl-2.0 |
bn7/darkstar | scripts/zones/Arrapago_Reef/npcs/qm1.lua | 30 | 1331 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Lil'Apkallu(ZNM T1))
-- @pos 488 -1 166 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
require("scripts/... | gpl-3.0 |
bn7/darkstar | scripts/zones/Upper_Jeuno/npcs/Areebah.lua | 17 | 1314 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Areebah
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
-- onTrade... | gpl-3.0 |
bn7/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Ishin_IM.lua | 14 | 3344 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Ishin, I.M.
-- Outpost Conquest Guards
-- @pos -481.164 -32.858 49.188 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest... | gpl-3.0 |
aleju/sky-generator | train.lua | 1 | 10039 | require 'torch'
require 'image'
require 'pl' -- this is somehow responsible for lapp working in qlua mode
require 'paths'
ok, DISP = pcall(require, 'display')
if not ok then print('display not found. unable to plot') end
ADVERSARIAL = require 'adversarial'
DATASET = require 'dataset'
NN_UTILS = require 'utils.nn_utils'... | mit |
bn7/darkstar | scripts/zones/Kazham/npcs/Beyzen.lua | 14 | 1044 | -----------------------------------
-- Area: Kazham
-- NPC: Beyzen
-- Type: Event Scene Replayer
-- @zone 250
-- @pos -53.976 -10.769 -74.771
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
--------------------... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/trumpet_shell.lua | 12 | 1332 | -----------------------------------------
-- ID: 5466
-- Item: Trumpet Shell
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c50807.lua | 1 | 2048 |
--35.6cm连装炮
function c50807.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(c50807.target)
e1:SetOperation(c50807.operation)
e1:SetCost(c50807.cost)
... | gpl-2.0 |
Dysoch/DyWorld | DyWorld-Dynamics/data/logistics/tier-2/loader.lua | 1 | 4549 |
local DyWorld_Prototype_1 = DyDs_CopyPrototype("loader-1x1", "loader-1x1", "loader-2", true)
DyWorld_Prototype_1.minable = {mining_time = 0.5, result = "loader-2"}
DyWorld_Prototype_1.flags = {"placeable-neutral", "player-creation", "fast-replaceable-no-build-while-moving"}
DyWorld_Prototype_1.speed = (30 / 480)
DyWo... | gpl-3.0 |
bn7/darkstar | scripts/zones/East_Ronfaure/npcs/Logging_Point.lua | 17 | 1085 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/East_Ronfaure/TextIDs");
---------------... | gpl-3.0 |
li-wl/kong | spec/01-unit/10-database_cache_spec.lua | 2 | 5079 | local cache = require "kong.tools.database_cache"
local json = require "cjson"
describe("Database cache", function()
it("returns a valid API cache key", function()
assert.are.equal("apis:httpbin.org", cache.api_key("httpbin.org"))
end)
it("returns a valid PLUGIN cache key", function()
assert.are.equal(... | apache-2.0 |
bn7/darkstar | scripts/zones/Metalworks/npcs/Leonhardt.lua | 5 | 1505 | -----------------------------------
-- Area: Metalworks
-- NPC: Leonhardt
-- Involved in Quest: Too Many Chefs
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
--------------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Dynamis-Buburimu/mobs/Serjeant_Tombstone.lua | 22 | 1228 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Serjeant_Tombstone
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
----... | gpl-3.0 |
bn7/darkstar | scripts/zones/Kazham/npcs/Nenepp.lua | 27 | 4251 | -----------------------------------
-- Area: Kazham
-- NPC: Nenepp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
29.014000, -11.00000, -183.884000,
31.023000, -... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/frost_turnip.lua | 12 | 1194 | -----------------------------------------
-- ID: 4382
-- Item: frost_turnip
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Abyssea-Uleguerand/npcs/qm1.lua | 14 | 1392 | -----------------------------------
-- Zone: Abyssea-Uleguerand
-- NPC: qm1 (???)
-- Spawns Ironclad Triturator
-- @pos ? ? ? 253
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,np... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/bluemagic/radiant_breath.lua | 25 | 2259 | -----------------------------------------
-- Spell: Radiant Breath
-- Deals light damage to enemies within a fan-shaped area of effect originating from the caster. Additional effect: Slow and Silence.
-- Spell cost: 116 MP
-- Monster Type: Wyverns
-- Spell Type: Magical (Light)
-- Blue Magic Points: 4
-- Stat Bonus: CH... | gpl-3.0 |
bn7/darkstar | scripts/globals/weaponskills/kings_justice.lua | 19 | 1810 | -----------------------------------
-- Kings Justice
-- Great Axe weapon skill
-- Skill Level: N/A
-- Delivers a threefold attack. Damage varies with TP. Conqueror: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Warrior) quest.
-- Aligned with the Breeze Gorget, Thunder Gorget... | gpl-3.0 |
bn7/darkstar | scripts/zones/Port_Jeuno/npcs/Horst.lua | 29 | 3441 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Horst
-- Type: Abyssea Warp NPC
-- @pos -54.379 0.001 -10.061 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Jeuno/TextIDs");
------------... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/bluemagic/pollen.lua | 27 | 1817 | -----------------------------------------
-- Spell: Pollen
-- Restores HP
-- Spell cost: 8 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Light)
-- Blue Magic Points: 1
-- Stat Bonus: CHR+1, HP+5
-- Level: 1
-- Casting Time: 2 seconds
-- Recast Time: 5 seconds
--
-- Combos: Resist Sleep
---------------------------... | gpl-3.0 |
Guema/GuemUICastBars | CastBarZ/Libs/AceDB-3.0/AceDB-3.0.lua | 17 | 25099 | --- **AceDB-3.0** manages the SavedVariables of your addon.
-- It offers profile management, smart defaults and namespaces for modules.\\
-- Data can be saved in different data-types, depending on its intended usage.
-- The most common data-type is the `profile` type, which allows the user to choose
-- the active profi... | unlicense |
lagerstrom/urpuppet | modules/awesome/files/awesome_config_old/apw/pulseaudio.lua | 1 | 2581 | -- Copyright 2013 mokasin
-- This file is part of the Awesome Pulseaudio Widget (APW).
--
-- APW 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
-- (at your option) any l... | apache-2.0 |
HuangYuNan/thcsvr | expansions/script/c26052.lua | 1 | 2153 | --命莲-光符「正义的威光」
function c26052.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c26052.target)
e1:SetOperation(c26052.activate)
c:RegisterEffect(e1)
e... | gpl-2.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/TransitionMoveInL.lua | 7 | 1093 |
--------------------------------
-- @module TransitionMoveInL
-- @extend TransitionScene,TransitionEaseScene
-- @parent_module cc
--------------------------------
-- Returns the action that will be performed. <br>
-- return The action that will be performed.
-- @function [parent=#TransitionMoveInL] action
-- @param... | mit |
HuangYuNan/thcsvr | expansions/script/c23507.lua | 1 | 3879 | --白狼与天狗的连结✿犬走椛
function c23507.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,c23507.matfilter,2,2)
c:EnableReviveLimit()
--sm
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetCountLimit(1)
e3:SetCondition(c23507.condition)
e... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c23051.lua | 1 | 2074 | --水符「河童幻想大瀑布」
function c23051.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,23051+EFFECT_COUNT_CODE_OATH)
c:RegisterEffect(e1)
--set
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(23051,0))
e2:SetT... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c401310.lua | 1 | 3652 | --深海栖舰-港湾栖姬
function c401310.initial_effect(c)
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER),aux.NonTuner(nil),1)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c23178.lua | 1 | 1857 | --丰作之地
function c23178.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--Atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE)
e2:SetTarget(... | gpl-2.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/TMXObjectGroup.lua | 18 | 3248 |
--------------------------------
-- @module TMXObjectGroup
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Sets the offset position of child objects. <br>
-- param offset The offset position of child objects.
-- @function [parent=#TMXObjectGroup] setPositionOffset
-- @param self
-- @param #v... | mit |
rweichler/powowlua | soundcloud/search/users.lua | 1 | 1859 | local path = bundle_path.."soundcloud/key.lua"
if not io.open(path) and not private_key then
error('soundcloud private key missing (put "return \'KEY_HERE\'" in key.lua)')
end
local private_key = private_key or dofile(path)
--actual class
SEARCH.title = "Users"
SEARCH.icon = "BarArtists.png"
function SEARCH:Searc... | mit |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/PhysicsWorld.lua | 10 | 8552 |
--------------------------------
-- @module PhysicsWorld
-- @parent_module cc
--------------------------------
-- set the gravity value of this physics world.<br>
-- param gravity A gravity value of this physics world.
-- @function [parent=#PhysicsWorld] setGravity
-- @param self
-- @param #vec2_table gravity
-- @re... | mit |
bn7/darkstar | scripts/zones/South_Gustaberg/npcs/qm1.lua | 14 | 1424 | -----------------------------------
-- Area: South Gustaberg
-- NPC: qm1 (???)
-- Involved in Quest: The Cold Light of Day
-- @pos 744 0 -671 107
-----------------------------------
package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/South_Gustabe... | gpl-3.0 |
bn7/darkstar | scripts/globals/items/bowl_of_quadav_stew.lua | 12 | 1385 | -----------------------------------------
-- ID: 4569
-- Item: Bowl of Quadav Stew
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility -4
-- Vitality 2
-- Defense % 17
-- Defense Cap 60
-----------------------------------------
require("scripts/globals/status");
--------------------... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c999704.lua | 1 | 1676 | --百鬼夜行✿伊吹萃香
local M = c999704
local Mid = 999704
function M.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,2,2)
c:EnableReviveLimit()
--sp
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetDescription(aux.Stringid(Mid,0))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)... | gpl-2.0 |
Dysoch/DyWorld | DyWorld-Dynamics/data/core/recipes/oil.lua | 1 | 4550 | data:extend({
{
type = "recipe",
name = "oil-to-petroleum",
category = "oil-processing",
main_product = "petroleum-gas",
normal =
{
ingredients =
{
{type = "fluid", name = "crude-oil", amount = 100, maximum_temperature = 25},
},
results =
{
{type = "flu... | gpl-3.0 |
shyamalschandra/vlc | share/lua/modules/simplexml.lua | 103 | 3732 | --[==========================================================================[
simplexml.lua: Lua simple xml parser wrapper
--[==========================================================================[
Copyright (C) 2010 Antoine Cellerier
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
This progra... | lgpl-2.1 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[community]/parachute/skydiving_cl.lua | 3 | 8125 | local WARNING_HEIGHT = 300 -- height at which the 'open your parachute' message is shown
local slow_speed = 0.75 -- overall (x,y,z) speed limit after which z_accelerate is used
local accelerate_speed = 0.03 -- forward acceleration speed while holding forward (skydiving)
local z_accelerate = 0.007 -- forward accelerati... | mit |
bn7/darkstar | scripts/zones/Port_Windurst/npcs/Puo_Rhen.lua | 14 | 1050 | -----------------------------------
-- Area: Port Windurst
-- NPC: Puo Rhen
-- Type: Mission Starter
-- @zone 240
-- @pos -227.964 -9 187.087
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
--------------... | gpl-3.0 |
Guema/GuemUICastBars | CastBarZ_Media/Libs/LibStub/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | unlicense |
nulian/InlineAura | libs/LibDispellable-1.0/LibStub.lua | 184 | 1367 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI... | gpl-2.0 |
bn7/darkstar | scripts/zones/Kamihr_Drifts/Zone.lua | 17 | 1219 | -----------------------------------
--
-- Zone: Kamihr Drifts
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Kamihr_Drifts/TextIDs"] = nil;
require("scripts/zones/Kamihr_Drifts/TextIDs");
-----------------------------------
-- onInitialize
----------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Port_Bastok/npcs/Tete.lua | 17 | 1303 | -----------------------------------
-- Area: Port Bastok
-- NPC: Tete
-- Continues Quest: The Wisdom Of Elders
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
------------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
requ... | gpl-3.0 |
sorblack-x/anti_spam | bot/nod32bot.lua | 1 | 11991 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
bn7/darkstar | scripts/zones/RuAun_Gardens/npcs/HomePoint#3.lua | 27 | 1266 | -----------------------------------
-- Area: RuAun_Gardens
-- NPC: HomePoint#3
-- @pos -312 -42 -422 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/RuAun_Gardens/TextIDs");
require("scripts/globals/homep... | gpl-3.0 |
bn7/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Thierride.lua | 14 | 3302 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Thierride
-- @zone 80
-- @pos -124 -2 14
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
-----------------------------------
-- Item 1019 = Lufet Salt
-- Had to u... | gpl-3.0 |
WalkWifi/Openwrt | package/ramips/ui/luci-mtk/src/applications/luci-ahcp/luasrc/model/cbi/ahcp.lua | 36 | 3895 | --[[
LuCI - Lua Configuration Interface
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://www.apache.org/licenses/LICENSE-2.0
$Id: init.lua... | gpl-2.0 |
bn7/darkstar | scripts/zones/Western_Adoulin/npcs/Marjoirelle.lua | 14 | 1308 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Majoirelle
-- Type: Standard NPC and Quest NPC
-- Involved With Quest: 'Order Up'
-- @zone 256
-- @pos 127 4 -81
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
-------... | gpl-3.0 |
LuaDist2/kong | spec/01-unit/011-balancer_spec.lua | 7 | 3100 | describe("Balancer", function()
local singletons, balancer
local UPSTREAMS_FIXTURES
local TARGETS_FIXTURES
--local uuid = require("kong.tools.utils").uuid
setup(function()
balancer = require "kong.core.balancer"
singletons = require "kong.singletons"
singletons.dao = {}
singletons.dao.upst... | apache-2.0 |
bn7/darkstar | scripts/zones/West_Sarutabaruta/Zone.lua | 12 | 4557 | -----------------------------------
--
-- Zone: West_Sarutabaruta (115)
--
-----------------------------------
package.loaded[ "scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require( "scripts/zones/West_Sarutabaruta/TextIDs... | gpl-3.0 |
kondrak/bgfx | scripts/genie.lua | 3 | 8337 | --
-- Copyright 2010-2016 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
newoption {
trigger = "with-amalgamated",
description = "Enable amalgamated build.",
}
newoption {
trigger = "with-ovr",
description = "Enable OculusVR integration.",
}
newoptio... | bsd-2-clause |
li-wl/kong | kong/api/init.lua | 2 | 3659 | local lapis = require "lapis"
local utils = require "kong.tools.utils"
local tablex = require "pl.tablex"
local responses = require "kong.tools.responses"
local singletons = require "kong.singletons"
local app_helpers = require "lapis.application"
local api_helpers = require "kong.api.api_helpers"
local find = string... | apache-2.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/FadeOutTRTiles.lua | 7 | 2556 |
--------------------------------
-- @module FadeOutTRTiles
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- brief Show the tile at specified position.<br>
-- param pos The position index of the tile should be shown.
-- @function [parent=#FadeOutTRTiles] turnOnTile
-- @param self
... | mit |
Widjet/mudlet | src/mudlet-lua/lua/LuaGlobal.lua | 3 | 2608 | ----------------------------------------------------------------------------------
--- Mudlet Lua packages loader
----------------------------------------------------------------------------------
if package.loaded["rex_pcre"] then rex = require "rex_pcre" end
if package.loaded["lpeg"] then lpeg = require "lpeg" end
... | gpl-2.0 |
bn7/darkstar | scripts/commands/fireworks.lua | 2 | 1089 | ---------------------------------------------------------------------------------------------------
-- func: Fireworks!
-- auth: Tagban
-- desc: FREAKING FIREWORKS!
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 0,
parameters = "iii... | gpl-3.0 |
bn7/darkstar | scripts/globals/mobskills/crystal_weapon.lua | 37 | 1031 | ---------------------------------------------
-- Crystal Weapon
--
-- Description: Invokes the power of a crystal to deal magical damage of a random element to a single target.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown
-- Notes: Can be Fire, Earth, Wind, or Water element. Funct... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c40031.lua | 1 | 1054 |
--精灵剑舞祭
function c40031.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:SetTarget(c40031.target)
e1:SetOperation(c40031.activate)
c:RegisterEffect(e1)
end
function c40031.cfilter(c)
r... | gpl-2.0 |
Dysoch/DyWorld | DyWorld-Dynamics/data/tech/core/packs.lua | 1 | 7369 |
function Dy_Tech_Time_Calc(TIME, HOUR)
if HOUR then
return (math.floor(TIME * 60 * 60))
else
return (math.floor(TIME * 60))
end
end
local function StackSizeCheck(StackSize)
local Multi = settings.startup["DyWorld_Expensive_Tech_Modifier"].value
if math.ceil((StackSize * Multi)) >= 65000 then
return 65000
... | gpl-3.0 |
li-wl/kong | spec/03-plugins/06-statsd/01-log_spec.lua | 3 | 6699 | local helpers = require "spec.helpers"
local UDP_PORT = 20000
describe("Plugin: statsd (log)", function()
local client
setup(function()
local api1 = assert(helpers.dao.apis:insert {
name = "logging1_com",
hosts = { "logging1.com" },
upstream_url = "http://mockbin.com"
})
local api2 = ... | apache-2.0 |
bn7/darkstar | scripts/globals/items/garlic_cracker_+1.lua | 12 | 1345 | -----------------------------------------
-- ID: 4280
-- Item: garlic_cracker_+1
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP recovered while healing +8
-- Undead Killer +12
-- Blind Resist +12
-----------------------------------------
require("scripts/globals/status");
------------... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/bluemagic/uppercut.lua | 35 | 1828 | -----------------------------------------
-- Spell: Uppercut
-- Damage varies with TP
-- Spell cost: 31 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: STR+2, DEX+1
-- Level: 38
-- Casting Time: 0.5 seconds
-- Recast Time: 17.75 seconds
-- Skillchain Element(s): Fire... | gpl-3.0 |
bn7/darkstar | scripts/zones/Port_Bastok/npcs/Nokkhi_Jinjahl.lua | 9 | 13210 | -----------------------------------
-- Area: Port Bastok
-- NPC: Nokkhi Jinjahl
-- Type: Travelling Merchant NPC / NPC Quiver Maker / Bastok 1st Place
-- @zone 236
-- @pos 112.667 7.455 -46.174
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rp.lua | 14 | 1660 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueduct... | gpl-3.0 |
XJMLN/MTA-PSZ | resources/[PSZMTA]/[obiekty]/jack-tablice/tablice_pos.lua | 1 | 2921 | tablice_pos = {
{pos_header={-2032.37,143.83,31}, pos_footer={-2032.37, 143.83, 29.3}, t_header="10 Najlepszych drifterów", dim=0, int=0, id=1}, -- SF mechanik
{pos_header={2352.79,-1459.49,26}, pos_footer={2352.79,-1459.49,24.7}, t_header="10 Najlepszych poszukiwaczy totemów", dim=0, int=0, id=2}, -- sklep pamiatki ... | mit |
bn7/darkstar | scripts/zones/Port_Windurst/npcs/_6o7.lua | 14 | 1067 | -----------------------------------
-- Area: Port Windurst
-- NPC: Door: Arrivals Entrance
-- @zone 240
-- @pos 212 -6 96
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Po... | gpl-3.0 |
bn7/darkstar | scripts/globals/spells/sheepfoe_mambo.lua | 27 | 1608 | -----------------------------------------
-- Spell: Sheepfoe Mambo
-- Grants evasion bonus to all members.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caste... | gpl-3.0 |
bestofkeeperbot/keeperbot | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
simonemainardi/ntopng | scripts/lua/examples/sqlite.lua | 11 | 1830 | --
-- (C) 2014-15-15 - ntop.org
--
-- Hello world
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
dofile(dirs.installdir .. "/scrip... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/ipkg-ar71xx/luci-base/usr/lib/lua/luci/ccache.lua | 82 | 1863 | --[[
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
ht... | gpl-2.0 |
bn7/darkstar | scripts/globals/mobskills/digest.lua | 10 | 1110 | ---------------------------------------------------
-- Digest
-- Deals dark damage to a single target. Additional effect: Drain
-- Type: Magical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain HP.
---------------------------------------------
r... | gpl-3.0 |
gboleda/reference | lent-and-returned/old/data-OLD.lua | 1 | 17601 | -- returns an embeddings table and the dimensionality of the
-- embeddings
function load_embeddings(i_file,normalize_embeddings)
print('reading embeddings file ' .. i_file)
local embeddings={}
local current_data={}
local f = io.input(i_file)
while true do
local lines, rest = f:read(BUFSIZE, "*line... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Walls/npcs/Juvillie.lua | 14 | 1054 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Juvillie
-- Type: Event Replayer
-- @zone 239
-- @pos -180.731 -3.451 143.138
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
----------... | gpl-3.0 |
AntonioModer/Algorithm-Implementations | Best_First_Search/Lua/Yonaba/bfs_test.lua | 26 | 2639 | -- Tests for bfs.lua
local BFS = require 'bfs'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function same(t, p, comp)
for k,v in ipairs(t) do
if not comp(v, p[k]) then return false end
end
return true
end
... | mit |
bn7/darkstar | scripts/zones/Quicksand_Caves/npcs/Goblin_Geologist.lua | 14 | 1039 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Goblin Geologist
-- Type: Mission
-- @pos -737.000 -11.125 -550.000 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.