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 |
|---|---|---|---|---|---|
dr01d3r/darkstar | scripts/zones/Upper_Jeuno/npcs/Mhao_Kehtsoruho.lua | 14 | 1054 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mhao Kehtsoruho
-- Type: Past Event Watcher
-- @zone 244
-- @pos -73.032 -1 146.919
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
----------... | gpl-3.0 |
dr01d3r/darkstar | scripts/globals/abilities/curing_waltz.lua | 6 | 2663 | -----------------------------------
-- Ability: Curing Waltz
-- Heals HP to target player.
-- Obtained: Dancer Level 15
-- TP Required: 20%
-- Recast Time: 00:06
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbility... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c37803970.lua | 2 | 1388 | --アメイジング・ペンデュラム
function c37803970.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,37803970+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c37803970.condition)
e1:SetTarget(c37803970.target)
e1:SetOperation(c37803970.activate... | gpl-2.0 |
abolfazlabbasifx/telegramadminbot | plugins/setcmd.lua | 15 | 1205 | do
local function save_value(msg, name, value)
if (not name or not value) then
return
end
local hash = nil
if msg.to.type == 'chat' or 'channel' then
hash = 'botcommand:variables'
end
if hash then
redis:hset(hash, name, value)
return "انجام شد"
end
end
local function get_variables_hash(m... | gpl-2.0 |
jamesbates/vlc | share/lua/playlist/pluzz.lua | 105 | 3740 | --[[
$Id$
Copyright © 2011 VideoLAN
Authors: Ludovic Fauvet <etix at l0cal dot com>
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 |
mrgreywater/TressFX | amd_tressfx/premake/premake5.lua | 2 | 3448 | _AMD_LIBRARY_NAME = "TressFX"
_AMD_LIBRARY_NAME_ALL_CAPS = string.upper(_AMD_LIBRARY_NAME)
-- Set _AMD_LIBRARY_NAME before including amd_premake_util.lua
dofile ("../../premake/amd_premake_util.lua")
workspace ("AMD_" .. _AMD_LIBRARY_NAME)
configurations { "DLL_Debug", "DLL_Release", "Lib_Debug", "Lib_Release", "D... | mit |
SalvationDevelopment/Salvation-Scripts-Production | c79965360.lua | 7 | 2412 | --アマゾネスの秘宝
function c79965360.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(c79965360.target)
e1:SetOperation(c79965360.operation)
c:RegisterEffect(e1... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c42776855.lua | 2 | 3617 | --追走の翼
function c42776855.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x1e0)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c42776855.target)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c9024367.lua | 2 | 1900 | --ギャラクシー・ドラグーン
function c9024367.initial_effect(c)
--atklimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e1:SetValue(c9024367.bttg)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_DIR... | gpl-2.0 |
dr01d3r/darkstar | scripts/zones/Abyssea-Misareaux/npcs/qm13.lua | 14 | 1548 | -----------------------------------
-- Zone: Abyssea-Misareaux
-- NPC: qm13 (???)
-- Spawns Cirein-Croin
-- @pos ? ? ? 216
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-------------------------------... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c30299166.lua | 5 | 1377 | --ワーム・テンタクルス
function c30299166.initial_effect(c)
--multi atk
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(30299166,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(c30299166.mtcon)
e1:SetCost(c30299166.mtcost)
e1:SetTarget(c30299166.mttg)
... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c93016201.lua | 4 | 4057 | --王宮の弾圧
function c93016201.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c93016201.cost1)
e1:SetTarget(c93016201.target1)
e1:SetOperation(c93016201.activate1)
c:RegisterEffect(e1)
--Activate(timing)
local e2=Effect.CreateE... | gpl-2.0 |
asmagill/hammerspoon-config | utils/_keys/viKeys.lua | 1 | 2931 | local module = {}
module.debugging = false -- whether to print status updates
local eventtap = require "hs.eventtap"
local event = eventtap.event
local inspect = require "hs.inspect"
local watchable = require "hs.watchable"
local keyHandler = function(e)
local watchFor = { h = "left", j = "down", k = "up... | mit |
SalvationDevelopment/Salvation-Scripts-Production | c11439455.lua | 2 | 2686 | --月光蒼猫
function c11439455.initial_effect(c)
--atk up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11439455,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY+EFFE... | gpl-2.0 |
adamlamers/rapidjson | build/premake4.lua | 5 | 3441 | function setTargetObjDir(outDir)
for _, cfg in ipairs(configurations()) do
for _, plat in ipairs(platforms()) do
local action = _ACTION or ""
local prj = project()
--"_debug_win32_vs2008"
local suffix = "_" .. cfg .. "_" .. plat .. "_" .. action
targetPath = outDir
suffi... | mit |
koreader/koreader | spec/unit/gettext_spec.lua | 9 | 18066 | local test_po_part1 = [[
# KOReader PATH/TO/FILE.PO
# Copyright (C) 2005-2019 KOReader Development Team
#
# Translators:
# Frans de Jonge <fransdejonge@gmail.com>, 2014-2019
# Markismus <zulde.zuldemans@gmail.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: KOReader\n"
"Report-Msgid-Bugs-To: https://github.com/koread... | agpl-3.0 |
retep998/Vana | scripts/npcs/bowman3.lua | 2 | 10388 | --[[
Copyright (C) 2008-2016 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c40164421.lua | 9 | 2902 | --ライトロード・メイデン ミネルバ
function c40164421.initial_effect(c)
--search
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40164421,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c40164421.thtg)
e1:SetOp... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c66235877.lua | 6 | 1222 | --デス・デーモン・ドラゴン
function c66235877.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,93220472,16475472,false,false)
--disable
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,LOC... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c22653490.lua | 5 | 2605 | --電光千鳥
function c22653490.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_WIND),4,2)
c:EnableReviveLimit()
--return to deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22653490,0))
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_SI... | gpl-2.0 |
dr01d3r/darkstar | scripts/globals/spells/sacrifice.lua | 33 | 1201 | -----------------------------------------
-- Spell: Sacrifice
--
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c67249508.lua | 2 | 2019 | --竜星の凶暴化
function c67249508.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e1:SetCondition(c67249508.condition)
e1:SetOperation(c67249508.activate)
c:RegisterEffect(e1)
end
function c67249508.condition(e,tp,eg,ep,ev,re,r,rp)
l... | gpl-2.0 |
waruqi/xmake | xmake/core/sandbox/modules/interpreter/print.lua | 1 | 1546 | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | apache-2.0 |
dr01d3r/darkstar | scripts/zones/RuLude_Gardens/npcs/Neraf-Najiruf.lua | 14 | 2050 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Neraf-Najiruf
-- Involved in Quests: Save my Sister
-- @zone 243
-- @pos -36 2 60
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings"... | gpl-3.0 |
grbd/premake-core | tests/base/test_table.lua | 18 | 1436 | --
-- tests/base/test_table.lua
-- Automated test suite for the new table functions.
-- Copyright (c) 2008-2013 Jason Perkins and the Premake project
--
local suite = test.declare("table")
local t
--
-- table.contains() tests
--
function suite.contains_OnContained()
t = { "one", "two", "three" }
test.istru... | bsd-3-clause |
koreader/koreader | plugins/exporter.koplugin/template/md.lua | 4 | 1813 | local _ = require("gettext")
local formatters = {
none = {
formatter = "%s",
label = _("None")
},
bold = {
formatter = "**%s**",
label = _("Bold")
},
italic = {
formatter = "*%s*",
label = _("Italic")
},
bold_italic = {
formatter = "**... | agpl-3.0 |
dr01d3r/darkstar | scripts/zones/Port_Windurst/npcs/Erabu-Fumulubu.lua | 53 | 1835 | -----------------------------------
-- Area: Port Windurst
-- NPC: Erabu-Fumulubu
-- Type: Fishing Synthesis Image Support
-- @pos -178.900 -2.789 76.200 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/st... | gpl-3.0 |
koreader/koreader | frontend/apps/cloudstorage/webdav.lua | 3 | 7166 | local BD = require("ui/bidi")
local ConfirmBox = require("ui/widget/confirmbox")
local DocumentRegistry = require("document/documentregistry")
local InfoMessage = require("ui/widget/infomessage")
local MultiInputDialog = require("ui/widget/multiinputdialog")
local UIManager = require("ui/uimanager")
local ReaderUI = re... | agpl-3.0 |
dr01d3r/darkstar | scripts/zones/Throne_Room/mobs/Shadow_Lord.lua | 23 | 5454 | -----------------------------------
-- Area: Throne Room
-- MOB: Shadow Lord
-- Mission 5-2 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMob... | gpl-3.0 |
joev/SVUI-Temp | SVUI_UnitFrames/libs/Plugins/oUF_Druidness/oUF_Druidness.lua | 1 | 6343 | if(select(2, UnitClass('player')) ~= 'DRUID') then return end
--GLOBAL NAMESPACE
local _G = _G;
--LUA
local unpack = _G.unpack;
local select = _G.select;
local assert = _G.assert;
local error = _G.error;
local print = _G.print;
local pairs = _G.pairs;
local next = _... | mit |
retep998/Vana | scripts/npcs/ludi017.lua | 2 | 1262 | --[[
Copyright (C) 2008-2016 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
dr01d3r/darkstar | scripts/zones/RuAun_Gardens/npcs/qm4.lua | 14 | 1482 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: ??? (Suzaku's Spawn)
-- Allows players to spawn the HNM Suzaku with a Gem of the South and a Summerstone.
-- @pos -514 -70 -264 130
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
----------------------... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c97342942.lua | 7 | 1338 | --エクトプラズマー
function c97342942.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--release
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(97342942,0))
e2:SetCategory(CATEGORY_RELEASE+CATEGORY_DAMAGE)
e... | gpl-2.0 |
dr01d3r/darkstar | scripts/globals/items/plate_of_ic_pilav.lua | 12 | 1953 | -----------------------------------------
-- ID: 5584
-- Item: plate_of_ic_pilav
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 65
-- Strength 4
-- Vitality -1
-- Intelligence -1
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 65
-- Ranged ATT % 22
... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c75923050.lua | 5 | 2034 | --レアメタル・ヴァルキリー
function c75923050.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCode2(c,92421852,38916461,true,true)
--atk up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(75923050,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(E... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c80513550.lua | 4 | 2992 | --バッド・エンド・クイーン・ドラゴン
function c80513550.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c80513550.hspcon)
c:RegisterEffect(e1)... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c92377303.lua | 2 | 2574 | --黒衣の大賢者
function c92377303.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(92377303,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_CHAIN... | gpl-2.0 |
Muffo/space-xy | frameworks/js-bindings/cocos2d-x/plugin/luabindings/auto/api/lua_cocos2dx_pluginx_auto_api.lua | 146 | 1793 | --------------------------------
-- @module plugin
--------------------------------------------------------
-- the plugin PluginProtocol
-- @field [parent=#plugin] PluginProtocol#PluginProtocol PluginProtocol preloaded module
--------------------------------------------------------
-- the plugin PluginManager
-- @fi... | mit |
dr01d3r/darkstar | scripts/zones/Abyssea-Uleguerand/Zone.lua | 33 | 1487 | -----------------------------------
--
-- Zone: Abyssea - Uleguerand
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Uleguerand/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-Ulegue... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/Batallia_Downs/npcs/qm2.lua | 17 | 1515 | -----------------------------------
-- Area: Batallia Downs
-- NPC: qm2 (???)
-- Pop for the quest "Chasing Quotas"
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Batallia_Downs/TextIDs");
require("scripts/... | gpl-3.0 |
nkgm/hammerspoon | extensions/inspect/init.lua | 11 | 10601 | --- === hs.inspect ===
---
--- Produce human-readable representations of Lua variables (particularly tables)
---
--- This extension is based on inspect.lua by Enrique García Cota
--- https://github.com/kikito/inspect.lua
local inspect ={
_VERSION = 'inspect.lua 3.0.0',
_URL = 'http://github.com/kikito/inspect.... | mit |
SalvationDevelopment/Salvation-Scripts-Production | c19353570.lua | 2 | 1195 | --影無茶ナイト
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 |
SalvationDevelopment/Salvation-Scripts-Production | c65685470.lua | 4 | 4192 | --六武衆の御霊代
function c65685470.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(65685470,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(c65685470.eqtg)
e1:SetOperation(c65... | gpl-2.0 |
clehner/openwrt-packages | utils/luci-app-lxc/files/controller/lxc.lua | 77 | 2909 | --[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Author: Petar Koretic <petar.koretic@sart... | gpl-2.0 |
GabrielNicolasAvellaneda/boundary-plugin-zookeeper-deprecated | modules/framework/framework.lua | 1 | 7919 | -- [author] Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>
local boundary = require('boundary')
local Emitter = require('core').Emitter
local Error = require('core').Error
local Object = require('core').Object
local Process = require('uv').Process
local timer = require('timer')
local math = require('math')
l... | apache-2.0 |
dr01d3r/darkstar | scripts/zones/Castle_Oztroja/npcs/Tebhi.lua | 14 | 1073 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Tebhi
-- @pos -136 24 -21 151
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
if (trade:hasItemQty(13121,1) and trade:getItemCo... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm0_1.lua | 17 | 1165 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: qm0 (warp player outside after they win fight)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
-... | gpl-3.0 |
dr01d3r/darkstar | scripts/globals/items/bataquiche_+1.lua | 12 | 1470 | -----------------------------------------
-- ID: 5169
-- Item: Bataquiche +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 10
-- Agility 1
-- Vitality -1
-- Ranged Acc % 7
-- Ranged Acc Cap 20
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
holyodin776/demirogue | src/prelude/table.lua | 3 | 3725 | --
-- misc/table.lua
--
-- Utility functions for working with tables.
--
-- TODO: random functions need optional generator argument.
-- TODO: luafun might be a better option for a lot of these.
--
function table.keys( tbl )
local result = {}
for k, _ in pairs(tbl) do
result[#result+1] = k
end
return result
end... | bsd-3-clause |
SalvationDevelopment/Salvation-Scripts-Production | c38450736.lua | 2 | 2925 | --甲虫装機 ウィーグ
function c38450736.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetDescription(aux.Stringid(38450736,0))
e1:SetCategory(CATEGORY_EQUIP)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(c38450736.eqtg)
e1:SetOperation(c38450736.eqop)
c:Re... | gpl-2.0 |
pmembrey/wireshark | test/lua/pcap_file.lua | 30 | 27491 | -- pcap_file_reader.lua
--------------------------------------------------------------------------------
--[[
This is a Wireshark Lua-based pcap capture file reader.
Author: Hadriel Kaplan
This "capture file" reader reads pcap files - the old style ones. Don't expect this to
be as good as the real thin... | gpl-2.0 |
wfleurant/cjdns | contrib/lua/cjdns/addrcalc.lua | 19 | 1888 | -- Cjdns address conversion functions
-- Translated from Cjdns C code to lua code by Alex <alex@portlandmeshnet.org>
--- @module cjdns.addrcalc
local addrcalc = {}
local bit32 = require("bit32")
local sha2 = require("sha2")
function addrcalc.Base32_decode(input)
local numForAscii = {
99,99,99,99,99,99,99,99,99,9... | gpl-3.0 |
nandub/cjdns | contrib/lua/cjdns/addrcalc.lua | 19 | 1888 | -- Cjdns address conversion functions
-- Translated from Cjdns C code to lua code by Alex <alex@portlandmeshnet.org>
--- @module cjdns.addrcalc
local addrcalc = {}
local bit32 = require("bit32")
local sha2 = require("sha2")
function addrcalc.Base32_decode(input)
local numForAscii = {
99,99,99,99,99,99,99,99,99,9... | gpl-3.0 |
soundsrc/premake-stable | src/base/string.lua | 2 | 1262 | --
-- string.lua
-- Additions to Lua's built-in string functions.
-- Copyright (c) 2002-2008 Jason Perkins and the Premake project
--
--
-- Returns an array of strings, each of which is a substring of s
-- formed by splitting on boundaries formed by `pattern`.
--
function string.explode(s, pattern, plain)
if (pa... | bsd-3-clause |
jinxiaoye1987/RyzomCore | ryzom/common/data_common/r2/r2_ui_player_tracking.lua | 3 | 21867 | -- players tracking window
PlayerTracking =
{
CurrList = {},
CurrActiveList = {},
SortDir = {},
SelectedPlayerId = nil,
TextCache = {}, -- cache for text widgets
CenteredTextCache = {},
NumberCache = {}, -- cache for number widgets
BitmapCache = {}, -- cache for bitmap widgets
-- Map scenario flags to th... | agpl-3.0 |
holyodin776/demirogue | src/GraphGrammar.lua | 3 | 26648 | require 'Graph'
require 'graph2D'
GraphGrammar = {
Rule = {}
}
GraphGrammar.__index = GraphGrammar
GraphGrammar.Rule.__index = GraphGrammar.Rule
-- TODO: Describe graph grammar production rules in a nice terse comment...
-- - The pattern and substitute graphs should be non-empty and connected.
-- - All pattern and ... | bsd-3-clause |
dr01d3r/darkstar | scripts/globals/regimeinfo.lua | 35 | 13239 | -------------------------------------------------
--
-- Regime Info Database
--
-- Stores details on the number of monsters to kill
-- as well as the suggested level range.
-- n1,n2,n3,n4 = Number of monsters needed
-- sl = Start Level range
-- el = Level range
--
-- Example:
-- n1=6, n2=0, n3=0, n4=0, sl=1, el=6, Regi... | gpl-3.0 |
waruqi/xmake | xmake/plugins/project/clang/compile_flags.lua | 1 | 3043 | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | apache-2.0 |
thegrb93/wire | lua/wire/server/modelplug.lua | 8 | 1037 | ModelPlugInfo = {}
--uncomment line 15 and line 26-34 to enable sending model packs to clients
function ModelPlug_Register(category)
if (not ModelPlugInfo[category]) then
local catinfo = {}
local packs = file.Find("WireModelPacks/*.txt", "DATA")
for _,filename in pairs(packs) do
--resource.AddFile("d... | apache-2.0 |
dr01d3r/darkstar | scripts/zones/Jugner_Forest_[S]/mobs/Lobison.lua | 17 | 1817 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Lobison
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
-----------------------------... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c73018302.lua | 6 | 1731 | --黒羽を狩る者
function c73018302.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(73018302,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c73018302.descon)
e1:SetCost(... | gpl-2.0 |
dr01d3r/darkstar | scripts/zones/Altar_Room/npcs/Magicite.lua | 14 | 1682 | -----------------------------------
-- Area: Altar Room
-- NPC: Magicite
-- Involved in Mission: Magicite
-- @zone 152
-- @pos -344 25 43
-----------------------------------
package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scri... | gpl-3.0 |
retep998/Vana | scripts/npcs/subway_in.lua | 2 | 4025 | --[[
Copyright (C) 2008-2016 Vana Development 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; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHO... | gpl-2.0 |
koreader/koreader | plugins/kosync.koplugin/KOSyncClient.lua | 4 | 4837 | local UIManager = require("ui/uimanager")
local DEBUG = require("dbg")
local KOSyncClient = {
service_spec = nil,
custom_url = nil,
}
function KOSyncClient:new(o)
if o == nil then o = {} end
setmetatable(o, self)
self.__index = self
if o.init then o:init() end
return o
end
function KOSync... | agpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c71934924.lua | 5 | 1597 | --疾風!凶殺陣
function c71934924.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--damage cal
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_SZONE)
e2:SetCode(E... | gpl-2.0 |
soundsrc/premake-stable | tests/project/test_vpaths.lua | 51 | 3834 | --
-- tests/project/test_vpaths.lua
-- Automated test suite for the project support functions.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
T.project_vpaths = { }
local suite = T.project_vpaths
local project = premake.project
--
-- Setup and teardown
--
local sln
function suite.setup()
... | bsd-3-clause |
k20human/domoticz-lua | script_device_tv_source.lua | 1 | 1551 | -----------------------------------------
-- Gestion de la source de la TV
-----------------------------------------
commandArray = {}
tvIp = '192.168.1.36'
tvPort = '1925'
selector = 'Source TV'
sourceTv = 'TV'
sourceShield = 'Shield'
sourceNeutral = 'Neutre'
package.path = package.path .. ';' .. '/home/k20/domotic... | mit |
koreader/koreader | spec/unit/document_registry_spec.lua | 8 | 2568 | describe("document registry module", function()
local DocSettings, DocumentRegistry
setup(function()
require("commonrequire")
DocSettings = require("docsettings")
DocumentRegistry = require("document/documentregistry")
end)
it("should get preferred rendering engine", function()... | agpl-3.0 |
dr01d3r/darkstar | scripts/globals/items/shrimp_cracker_+1.lua | 12 | 1497 | -----------------------------------------
-- ID: 5636
-- Item: shrimp_cracker_+1
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Vitality 2
-- Defense +10
-- Amorph Killer 12
-- Resist Virus 12
-- HP Recovered While Healing 9
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
koreader/koreader | frontend/ui/widget/confirmbox.lua | 4 | 7032 | --[[--
Widget that shows a confirmation alert with a message and Cancel/OK buttons.
Example:
UIManager:show(ConfirmBox:new{
text = _("Save the document?"),
ok_text = _("Save"), -- ok_text defaults to _("OK")
ok_callback = function()
-- save document
end,
})
It is ... | agpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c48422921.lua | 2 | 2123 | --猪突猛進
function c48422921.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(c48422921.condition)
e1:SetTarget(c48422921.target)
e1:SetOperation(c48422921.operation)
c:RegisterEffect(... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c31476755.lua | 5 | 1455 | --砂塵の結界
function c31476755.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c31476755.target)
c:RegisterEffect(e1)
--immune
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:... | gpl-2.0 |
Herve-M/OpenRA | mods/cnc/maps/nod08a/nod08a-AI.lua | 2 | 5752 | --[[
Copyright 2007-2022 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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 later vers... | gpl-3.0 |
dr01d3r/darkstar | scripts/zones/Bhaflau_Thickets/mobs/Sea_Puk.lua | 12 | 1367 | -----------------------------------
-- Area: Bhaflau Thickets
-- MOB: Sea Puk
-- Note: Place holder Nis Puk
-----------------------------------
require("scripts/zones/Bhaflau_Thickets/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, player, isK... | gpl-3.0 |
sempiternum/telegram-bot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
soundsrc/premake-stable | tests/actions/vstudio/sln2005/header.lua | 51 | 1327 | --
-- tests/actions/vstudio/sln2005/header.lua
-- Validate generation of Visual Studio 2005+ solution header.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_sln2005_header = { }
local suite = T.vstudio_sln2005_header
local sln2005 = premake.vstudio.sln2005
--
-- Setup
--
local sln... | bsd-3-clause |
delaram16/Avvvv | plugins/weather.lua | 3 | 5045 | local function temps(K)
local F = (K*1.8)-459.67
local C = K-273.15
return F,C
end
local function run(msg, matches)
local res = http.request("http://api.openweathermap.org/data/2.5/weather?q="..URL.escape(matches[2]).."&appid=269ed82391822cc692c9afd59f4aabba")
local jtab = JSON.decode(res)
if jtab.name then
if... | gpl-2.0 |
waruqi/xmake | xmake/core/base/emoji.lua | 1 | 32767 | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | apache-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c46181000.lua | 5 | 1314 | --前線基地
function c46181000.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(46181000,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetT... | gpl-2.0 |
dr01d3r/darkstar | scripts/zones/Bastok_Markets/npcs/Gwill.lua | 26 | 2969 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Gwill
-- Starts & Ends Quest: The Return of the Adventurer
-- Involved in Quests: The Cold Light of Day, Riding on the Clouds
-- @zone 235
-- @pos 0 0 0
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
... | gpl-3.0 |
HHmmominion/basemmominion | LuaMods/Dev/WayPoint/166.lua | 1 | 1353 | -- Persistent Data
local multiRefObjects = {
} -- multiRefObjects
local obj1 = {
[1] = {
["y"] = 9;
["x"] = -7.05111;
["name"] = "Manor Claviger-kill";
["z"] = -1.568203;
["h"] = -0.821861;
};
[2] = {
["y"] = -3.779982;
["x"] = -3.865242;
["name"] = "Manor Claviger-tank";
["z"] = 1.604352;
["h"]... | gpl-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c91819979.lua | 6 | 2234 | --マジックブラスト
function c91819979.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c91819979.damtg)
e1:SetOperation(c91819979.damop)
c:RegisterEffect(e1)
--salvage
local e2=Effect.CreateEffect(c)
e2:SetDesc... | gpl-2.0 |
waruqi/xmake | xmake/modules/detect/tools/find_qmake.lua | 1 | 1374 | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | apache-2.0 |
SalvationDevelopment/Salvation-Scripts-Production | c17536995.lua | 5 | 1294 | --紋章変換
function c17536995.initial_effect(c)
--end battle phase
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c17536995.condition)
e1:SetTarget(c17536995.target)
e1:SetOperation(c17536995.operation)
c:Re... | gpl-2.0 |
dr01d3r/darkstar | scripts/globals/mobskills/Flat_Blade.lua | 9 | 1360 | ---------------------------------------------
-- Flat Blade
--
-- Description: Stuns enemy. Chance of stunning varies with TP.
-- Type: Physical
-- Utsusemi/Blink absorb: Shadow per hit
-- Range: Melee
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/sett... | gpl-3.0 |
fir3element/forgottenserver036 | data/npc/scripts/loot.lua | 7 | 2677 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type,... | gpl-2.0 |
dwmw2/domoticz | dzVents/runtime/device-adapters/rgbw_device.lua | 3 | 7614 | local TimedCommand = require('TimedCommand')
return {
baseType = 'device',
name = 'RGB(W) device adapter',
matches = function (device, adapterManager)
local res = device.deviceType == 'Color Switch'
adapterManager.addDummyMethod(device, 'setKelvin')
adapterManager.addDummyMethod(device, 'setWhiteMode')
a... | gpl-3.0 |
SalvationDevelopment/Salvation-Scripts-Production | c19163116.lua | 4 | 1503 | --ジェムナイト・オブシディア
function c19163116.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(19163116,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)... | gpl-2.0 |
dr01d3r/darkstar | scripts/zones/AlTaieu/Zone.lua | 32 | 2324 | -----------------------------------
--
-- Zone: AlTaieu (33)
--
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/AlTaieu/TextIDs");
require("scripts/globals/titles");
require("scrip... | gpl-3.0 |
githubmereza/jackreza | plugins/stats.lua | 236 | 3989 | 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 |
Squeakz/darkstar | scripts/globals/items/faerie_apple.lua | 18 | 1190 | -----------------------------------------
-- ID: 4363
-- Item: faerie_apple
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -4
-- Intelligence 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5c5.lua | 13 | 2051 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Gate: Magical Gizmo
-- Involved In Mission: The Horutoto Ruins Experiment
-- @pos 419 0 -27 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Kuftal_Tunnel/mobs/Guivre.lua | 4 | 14754 | ----------------------------------
-- Area: Gustav Tunnel
-- NM: Guivre
-----------------------------------
local path =
{
106.836830, 0.753614, -3.944333,
106.991020, 0.588184, -4.941793,
107.207207, 0.424275, -5.923915,
107.583046, 0.424275, -6.866960,
108.040382, 0.424275, -7.778655,
108.4... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Defects/4_5/Trigger_PTU_NO_Certificate/1888_4_secure_video_force_on.lua | 1 | 1506 | ---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/SmartDeviceLink/sdl_core/issues/1888
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = requi... | bsd-3-clause |
Squeakz/darkstar | scripts/zones/Port_Bastok/npcs/Kurando.lua | 12 | 2343 | -----------------------------------
-- Area: Port Bastok
-- NPC: Kurando
-- Type: Quest Giver
-- @zone: 236
-- @pos -23.887 3.898 0.870
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
----------------------... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Kuftal_Tunnel/mobs/Phantom_Worm.lua | 23 | 1639 | -----------------------------------
-- Area: Kuftal Tunnel (173)
-- Mob: Phantom Worm
-----------------------------------
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, player, isKiller)
end;
-----------------------------------
-- onMobDespawn
----... | gpl-3.0 |
ff-kbu/fff-luci | contrib/luadoc/lua/luadoc/taglet/standard.lua | 93 | 16319 | -------------------------------------------------------------------------------
-- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $
-------------------------------------------------------------------------------
local assert, pairs, tostring, type = assert, pairs, tostring, type
local io = require "io... | apache-2.0 |
Squeakz/darkstar | scripts/globals/mobskills/Corrosive_ooze.lua | 34 | 1192 | ---------------------------------------------------
-- Corrosive Ooze
-- Family: Slugs
-- Description: Deals water damage to an enemy. Additional Effect: Attack Down and Defense Down.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Radial
-- Notes:
------------------------------------------... | gpl-3.0 |
ff-kbu/fff-luci | contrib/luadoc/lua/luadoc/util.lua | 93 | 5826 | -------------------------------------------------------------------------------
-- General utilities.
-- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local posix = require "nixio.fs"
local type, table, string, io, as... | apache-2.0 |
jlcvp/otxserver | data/monster/humanoids/elf_arcanist.lua | 2 | 4030 | local mType = Game.createMonsterType("Elf Arcanist")
local monster = {}
monster.description = "an elf arcanist"
monster.experience = 175
monster.outfit = {
lookType = 63,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 63
monster.Bestiary = {
class = "H... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.