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 |
|---|---|---|---|---|---|
ppriest/mame | plugins/hiscore/init.lua | 3 | 6898 | -- hiscore.lua
-- by borgar@borgar.net, WTFPL license
--
-- This uses MAME's built-in Lua scripting to implment
-- high-score saving with hiscore.dat infom just as older
-- builds did in the past.
--
require('lfs')
local exports = {}
exports.name = "hiscore"
exports.version = "1.0.0"
exports.description = "Hiscore"
e... | gpl-2.0 |
swiftgeek/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/policyconfig.lua | 104 | 1918 | -- ------ extra functions ------ --
function policyCheck() -- check to see if this policy's name exceed the maximum of 15 characters
policyNameLength = string.len(arg[1])
if policyNameLength > 15 then
nameTooLong = 1
end
end
function policyWarn() -- display status and warning messages at the top of the page
if ... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BastionTwilight/AscendantCouncil.lua | 1 | 24006 | local mod = DBM:NewMod(158, "DBM-BastionTwilight", nil, 72)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 145 $"):sub(12, -3))
mod:SetCreatureID(43686, 43687, 43688, 43689, 43735)
--mod:SetEncounterID(1028)--ES probably doesn't fire until final phase, verify this
mod:SetZone()
mod:SetUsedIcons(3, 4... | gpl-2.0 |
mahdidoraj/secretbot | plugins/Map.lua | 4 | 1528 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
n0xus/darkstar | scripts/commands/togglegm.lua | 26 | 1924 | ---------------------------------------------------------------------------------------------------
-- func: togglegm
-- desc: Toggles a GMs nameflags/icon.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = ""
... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/ogre_eel.lua | 18 | 1390 | -----------------------------------------
-- ID: 4481
-- Item: ogre_eel
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
xopxe/LuPA | tests/test_demos.lua | 1 | 2429 | require("socket")
local name=arg[1] or "test_demos"
local host=arg[2] or "localhost"
local port=arg[3] or 9182
local function randomize ()
local fl = io.open("/dev/urandom");
local res = 0;
for f = 1, 4 do res = res*256+(fl:read(1)):byte(1, 1); end;
fl:close();
math.randomseed(res);
end;
randomize()
local subsn... | gpl-3.0 |
mpeterv/luacheck | spec/format_spec.lua | 3 | 4529 | local format = require "luacheck.format".format
local function mark_colors(s)
return (s:gsub("\27%[%d+m", "\27"):gsub("\27+", "#"))
end
describe("format", function()
it("returns formatted report", function()
assert.equal([[Checking stdin 1 warning
stdin:2:7: unused ... | mit |
misterdustinface/gamelib-common-polyglot | src/param-adjuster/main.lua | 1 | 2833 | local constants = require 'constants'
local datastore = require 'datastore'
local touchmap = require 'touchmap'
local layout = require 'layout'
local rects = require 'rects'
local main_ui = require 'layout-partials.main-ui'
local backend = require 'metasys.backend'
local touchmapProcessor = require 'touchmap-processor'... | gpl-2.0 |
Ne02ptzero/Grog-Like | Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/stringx.lua | 12 | 12022 | --- Python-style extended string library.
--
-- see 3.6.1 of the Python reference.
-- If you want to make these available as string methods, then say
-- `stringx.import()` to bring them into the standard `string` table.
--
-- See @{03-strings.md|the Guide}
--
-- Dependencies: `pl.utils`
-- @module pl.stringx
local util... | apache-2.0 |
n0xus/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Kasim.lua | 17 | 1861 | -----------------------------------
-- Area: The Sanctuary of Zitah
-- NPC: Kasim
-- @pos -46 0 -148 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_Zitah/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conq... | gpl-3.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/luaffi/dynasm/dynasm.lua | 7 | 30899 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2011 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | lgpl-3.0 |
ppriest/mame | 3rdparty/luafilesystem/tests/test.lua | 63 | 5429 | #!/usr/bin/env lua5.1
local tmp = "/tmp"
local sep = string.match (package.config, "[^\n]+")
local upper = ".."
local lfs = require"lfs"
print (lfs._VERSION)
io.write(".")
io.flush()
function attrdir (path)
for file in lfs.dir(path) do
if file ~= "." and file ~= ".." then
... | gpl-2.0 |
n0xus/darkstar | scripts/commands/hp.lua | 26 | 1049 | ---------------------------------------------------------------------------------------------------
-- func: !hp <amount> <player>
-- desc: Sets the GM or target players health.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Temenos/mobs/Airi.lua | 16 | 1281 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Airi
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
----------------------... | gpl-3.0 |
Primordus/lua-quickcheck | spec/generators/char_spec.lua | 2 | 1713 | local random = require 'lqc.random'
local char = require 'lqc.generators.char'
local r = require 'lqc.report'
local property = require 'lqc.property'
local lqc = require 'lqc.quickcheck'
local lowest_ascii_value = 32
local highest_ascii_value = 126
local lowest_ascii_char = string.char(lowest_ascii_value)
local funct... | mit |
Python1320/wire | lua/wire/stools/light.lua | 9 | 4131 | WireToolSetup.setCategory( "Visuals/Lights" )
WireToolSetup.open( "light", "Light", "gmod_wire_light", nil, "Lights" )
if CLIENT then
language.Add( "tool.wire_light.name", "Light Tool (Wire)" )
language.Add( "tool.wire_light.desc", "Spawns a Light for use with the wire system." )
language.Add( "tool.wire_light.0", ... | apache-2.0 |
misterdustinface/gamelib-common-polyglot | src/try-to-make-a-language/sets/sets_runtime_round2.lua | 1 | 3354 | local sets = {}
sets.runtime = {}
sets.runtime.stack = {}
sets.runtime.words = {}
sets.runtime.wordcount = 0
sets.runtime.message = ""
sets.runtime.sets = {}
-- local accumulate_args_until = function(xOp)
-- local args = {}
-- local argcount = 0
-- return function(arg)
-- if arg == xOp then
-- return t... | gpl-2.0 |
janlou2/TeleA | plugins/anti_spam.lua | 435 | 3886 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
LuaDist2/lua-aplicado | test/cases/0070-fork.lua | 2 | 1739 | --------------------------------------------------------------------------------
-- test/cases/0070-fork.lua: tests for fork.lua
-- This file is a part of Lua-Aplicado library
-- Copyright (c) Lua-Aplicado authors (see file `COPYRIGHT` for the license)
-------------------------------------------------------------------... | mit |
davymai/CN-QulightUI | Interface/AddOns/DBM-Core/DBM-Core.lua | 1 | 364495 | -- *********************************************************
-- ** Deadly Boss Mods - Core **
-- ** http://www.deadlybossmods.com **
-- *********************************************************
--
-- This addon is written and copyrighted by:
-- * Paul Emmerich (Tanda... | gpl-2.0 |
n0xus/darkstar | scripts/globals/abilities/repair.lua | 18 | 4423 | -----------------------------------
-- 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 |
n0xus/darkstar | scripts/globals/items/plate_of_fish_and_chips.lua | 35 | 1558 | -----------------------------------------
-- ID: 5145
-- Item: plate_of_fish_and_chips
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 3
-- Vitality 3
-- Mind -3
-- defense 5
-- Ranged ATT % 7
-- Ranged ATT Cap 10
-----------------------------------------
require("... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/serving_of_crimson_jelly.lua | 35 | 1426 | -----------------------------------------
-- ID: 5144
-- Item: serving_of_crimson_jelly
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 12
-- Magic Cap 85
-- Intelligence 6
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/global... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Port_San_dOria/npcs/HomePoint#2.lua | 17 | 1255 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#2
-- @pos 48 -12.000 -105 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require("script... | gpl-3.0 |
LuffyPan/skynet | test/testredis.lua | 85 | 1039 | local skynet = require "skynet"
local redis = require "redis"
local conf = {
host = "127.0.0.1" ,
port = 6379 ,
db = 0
}
local function watching()
local w = redis.watch(conf)
w:subscribe "foo"
w:psubscribe "hello.*"
while true do
print("Watch", w:message())
end
end
skynet.start(function()
skynet.fork(watc... | mit |
n0xus/darkstar | scripts/globals/spells/absorb-dex.lua | 18 | 1300 | --------------------------------------
-- Spell: Absorb-DEX
-- Steals an enemy's dexterity.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
----------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Caedarva_Mire/npcs/_273.lua | 32 | 3549 | -----------------------------------
-- Area: Caedarva Mire
-- Door: Runic Seal
-- @pos -353 -3 -20 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mobskills/MP_Drainkiss.lua | 13 | 1241 | ---------------------------------------------------
-- MP Drainkiss
-- Deals dark damage to a single target. Additional effect: Aspir
-- Type: Magical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain MP.
-----------------------------------------... | gpl-3.0 |
aqasaeed/satan | plugins/Map.lua | 87 | 1499 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
alirezanile/Ldcxvx | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
SimpleITK/SimpleITK | ExpandTemplateGenerator/JSONQuery.lua | 4 | 1801 | --!/usr/bin/env lua
--=========================================================================
--
-- Copyright NumFOCUS
--
-- 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
--
-- ... | apache-2.0 |
pjasicek/CaptainClaw | Box2D/premake4.lua | 16 | 1537 | -- Box2D premake script.
-- http://industriousone.com/premake
local action = _ACTION or ""
solution "Box2D"
location ( "Build/" .. action )
configurations { "Debug", "Release" }
configuration "vs*"
defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "Debug"
targetdir ( "Build/" .. action .. "/bin/Debug"... | gpl-3.0 |
xubigshu/skynet | lualib/mysql.lua | 2 | 17619 | -- Copyright (C) 2012 Yichun Zhang (agentzh)
-- Copyright (C) 2014 Chang Feng
-- This file is modified version from https://github.com/openresty/lua-resty-mysql
-- The license is under the BSD license.
local socketchannel = require "socketchannel"
local bit = require "bit32"
local mysqlaux = require "mysqlaux.c"
local... | mit |
Primordus/lua-quickcheck | lqc/generators/char.lua | 2 | 1136 |
--- Module for generating a random (ASCII) char (no 'special' characters such as NUL, NAK, ...)
-- @lqc.generators.char
-- @alias char
local Gen = require 'lqc.generator'
local int = require 'lqc.generators.int'
local lowest_ascii_value = 32 -- 'space'
local highest_ascii_value = 126 -- '~'
local int_gen = int(l... | mit |
n0xus/darkstar | scripts/zones/Jugner_Forest_[S]/npcs/qm8.lua | 30 | 1802 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: ???
-- Type: Quest NPC
-- @pos -6 0 -295
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Forest_[S]/TextIDs");
require("scri... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Windurst_Waters/npcs/Serukoko.lua | 38 | 1040 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Serukoko
-- Type: Standard NPC
-- @zone: 238
-- @pos -54.916 -7.499 114.855
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Icecrown/localization.tw.lua | 1 | 11300 | if GetLocale() ~= "zhTW" then return end
local L
----------------------
-- Lord Marrowgar --
----------------------
L = DBM:GetModLocalization("LordMarrowgar")
L:SetGeneralLocalization{
name = "瑪洛嘉領主"
}
-------------------------
-- Lady Deathwhisper --
-------------------------
L = DBM:GetModLocalization("Dea... | gpl-2.0 |
Azmaedus/GarrisonJukeBox | libs/AceLocale-3.0/AceLocale-3.0.lua | 67 | 5637 | --- **AceLocale-3.0** manages localization in addons, allowing for multiple locale to be registered with fallback to the base locale for untranslated strings.
-- @class file
-- @name AceLocale-3.0
-- @release $Id: AceLocale-3.0.lua 1035 2011-07-09 03:20:13Z kaelten $
local MAJOR,MINOR = "AceLocale-3.0", 6
local AceLoc... | gpl-2.0 |
gcheron/optim | nag.lua | 2 | 2651 | ----------------------------------------------------------------------
-- An implementation of SGD adapted with features of Nesterov's
-- Accelerated Gradient method, based on the paper
-- On the Importance of Initialization and Momentum in Deep Learning
-- Sutsveker et. al., ICML 2013
--
-- ARGS:
-- opfunc : a functi... | bsd-3-clause |
sini370/telelife | plugins/info.lua | 51 | 9099 |
do
local SUDO = 106164433 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کا... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Bostaunieux_Oubliette/npcs/Novalmauge.lua | 17 | 4021 | -----------------------------------
-- Area: Bostaunieux Obliette
-- NPC: Novalmauge
-- Starts and Finishes Quest: The Rumor
-- Involved in Quest: The Holy Crest, Trouble at the Sluice
-- @pos 70 -24 21 167
-----------------------------------
package.loaded["scripts/zones/Bostaunieux_Oubliette/TextIDs"] = nil;
... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Firelands/Volcanus.lua | 1 | 1604 | local mod = DBM:NewMod("Volcanus", "DBM-Firelands")
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 121 $"):sub(12, -3))
mod:SetCreatureID(53833)
--7/14 23:59:03.242 UNIT_DIED,0x0000000000000000,nil,0x80000000,0x80000000,0xF130D2490000CE02,"Volcanus",0x10a48,0x0
mod:SetModelID(38592)
mod:SetZone()
... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Root/Libs/oUF/elements/pvp.lua | 2 | 1910 | --[[ Element: PvP Icon
Handles updating and toggles visibility based upon the units PvP status.
Widget
PvP - A Texture used to display the faction or FFA icon.
Notes
This element updates by changing the texture.
Examples
-- Position and size
local PvP = self:CreateTexture(nil, 'OVERLAY')
PvP:SetSi... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Mhaura/npcs/Phoochuchu.lua | 19 | 1446 | -----------------------------------
-- Area: Mhaura
-- NPC: Phoochuchu
-- Involved in Quest: A Thief in Norg!?
-- @pos -4 -4 69 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Mh... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Qulun_Dome/npcs/The_Mute.lua | 19 | 1089 | -----------------------------------
-- Area: Qulun Dome
-- NPC: The Mute
-- @zone 148
-- @pos <many>
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beadeaux/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackrockFoundry/localization.en.lua | 1 | 2389 | local L
---------------
-- Gruul --
---------------
L= DBM:GetModLocalization(1161)
---------------------------
-- Oregorger, The Devourer --
---------------------------
L= DBM:GetModLocalization(1202)
---------------------------
-- The Blast Furnace --
---------------------------
L= DBM:GetModLocalization(1154)
L:... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/Tooltip.lua | 1 | 31893 | if not Qulight["tooltip"].enable then return end
local _, ns = ...
local oUF = ns.oUF or oUF
if not oUF then return end
local shadows = {
bgFile = Qulight["media"].texture,
edgeFile = Qulight["media"].glow,
edgeSize = 4,
insets = { left = 3, right = 3, top = 3, bottom = 3 }
}
local Tooltip = CreateFrame("Frame",... | gpl-2.0 |
Ne02ptzero/Grog-Like | Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/path.lua | 12 | 10171 | --- Path manipulation and file queries.
--
-- This is modelled after Python's os.path library (10.1); see @{04-paths.md|the Guide}.
--
-- Dependencies: `pl.utils`, `lfs`
-- @module pl.path
-- imports and locals
local _G = _G
local sub = string.sub
local getenv = os.getenv
local tmpnam = os.tmpname
local attributes, cu... | apache-2.0 |
rddim/Notepad-plus-plus | PowerEditor/Test/UrlDetection/verifyUrlDetection.lua | 9 | 5390 | local testFiles = {"verifyUrlDetection_1a",
"verifyUrlDetection_1b"}
local URL_INDIC = 8
local timerInterval = 10
local curPos = 0
local task = -1
local uFrom = 0
local uTo = 0
local mFrom = 0
local mTo = 0
local OKorKO = "OK"
local nFile = 1
local testResults = {}
local outFile = nil
... | gpl-3.0 |
mrdunk/home_automation_2 | openwrt/fs_root/usr/share/homeautomation/control.lua | 1 | 30673 | #!/usr/bin/lua
require 'helper_functions'
info.components = {}
info.thread_counter = 0
local control = {}
control.__index = control
function control.new()
log("control.new()")
local self = setmetatable({}, control)
if not is_file_or_dir(WEB_DIR) then
log('Creating ' .. WEB_DIR)
mkdir(WEB_DIR)
end
... | mit |
Ne02ptzero/Grog-Like | Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/file.lua | 21 | 1695 | --- File manipulation functions: reading, writing, moving and copying.
--
-- Dependencies: `pl.utils`, `pl.dir`, `pl.path`
-- @module pl.file
local os = os
local utils = require 'pl.utils'
local dir = require 'pl.dir'
local path = require 'pl.path'
--[[
module ('pl.file',utils._module)
]]
local file = {}
--- return t... | apache-2.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Rholont.lua | 15 | 3941 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Rholont
-- @zone 80
-- @pos -168 -2 56
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
... | gpl-3.0 |
n0xus/darkstar | scripts/globals/abilities/chi_blast.lua | 18 | 1101 | -----------------------------------
-- Ability: Chi Blast
-- Releases Chi to attack an enemy.
-- Obtained: Monk Level 41
-- Recast Time: 3:00
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
--... | gpl-3.0 |
CameronHynes/OpenRA | mods/cnc/maps/nod03b/nod03b.lua | 32 | 3032 | NodUnits = { "e1", "e1", "bggy", "bike", "e1", "e1", "bike", "bggy", "e1", "e1" }
Engineers = { "e6", "e6", "e6" }
FirstAttackWaveUnits = { "e1", "e1", "e2" }
SecondAttackWaveUnits = { "e1", "e1", "e1" }
ThirdAttackWaveUnits = { "e1", "e1", "e1", "e2" }
SendAttackWave = function(units, action)
Reinforcements.Reinforc... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Castle_Oztroja/npcs/_47x.lua | 17 | 1247 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47x (Handle)
-- Notes: Opens door _477
-- @pos -99 -71 -41 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextI... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/serving_of_elysian_eclair.lua | 36 | 1430 | -----------------------------------------
-- ID: 5560
-- Item: Serving of Elysian Eclair
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +15
-- Intelligence +2
-- HP Recoverd while healing 2
-- MP Recovered while healing 2
--------------------------------... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/UF/Raid/tags.lua | 1 | 5627 | local _, ns = ...
local oUF = ns.oUF or oUF
assert(oUF, "oUF_q was unable to locate oUF install.")
utf8sub = function(string, i, dots)
if not string then return end
local bytes = string:len()
if bytes <= i then
return string
else
local len, pos = 0, 1
while (pos <= bytes) do
len = len + 1
local c = str... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/qm5.lua | 34 | 1108 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm5 (???)
-- Notes: Opens door @ F-8 from behind
-- @pos -65.512 -25.262 62.918 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackTemple/localization.kr.lua | 1 | 4474 | if GetLocale() ~= "koKR" then return end
local L
-----------------
-- Najentus --
-----------------
L = DBM:GetModLocalization("Najentus")
L:SetGeneralLocalization{
name = "대장군 나젠투스"
}
L:SetOptionLocalization{
InfoFrame = "체력이 낮은 대상을 정보 창으로 보기(8800 미만)"
}
L:SetMiscLocalization{
HealthInfo = "체력 정보"
}
--------... | gpl-2.0 |
ddysher/turbo | examples/chatapp/chatapp.lua | 12 | 4688 | --- Turbo.lua Chat app using WebSockets.
--
-- Copyright 2013 John Abrahamsen
--
-- 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... | apache-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wxLua/samples/wxluasudoku.wx.lua | 2 | 216884 | -------------------------------------------------------------------------=---
-- Name: wxluasudoku.wx.lua
-- Purpose: wxLuaSudoku - a wxLua program to generate/solve/play Sudoku puzzles
-- Author: John Labenski
-- Created: 2006
-- Copyright: (c) 2006 John Labenski. All rights reserved.
-- Licence: wxWindo... | lgpl-3.0 |
n0xus/darkstar | scripts/globals/items/magma_steak_+1.lua | 36 | 1540 | -----------------------------------------
-- ID: 6072
-- Item: Magma Steak +1
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- Strength +9
-- Attack +24% Cap 185
-- Ranged Attack +24% Cap 185
-- Vermin Killer +6
-----------------------------------------
require("scripts/globals/status");... | gpl-3.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/libs/rpcc/luasrc/rpcc/ruci.lua | 93 | 1432 | --[[
LuCIRPCc
(c) 2009 Steven Barth <steven@midlink.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$
]]--
local util = require "luci.ut... | gpl-2.0 |
qllpa/TAEFWN | plugins/robot.lua | 3 | 2621 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
l... | gpl-2.0 |
seeker24/butlr | utilities.lua | 1 | 25524 | -- utilities.lua
-- Functions shared among plugins.
local misc = {}
local roles = {}
function misc.get_word(s, i) -- get the indexed word in a string
s = s or ''
i = i or 1
local t = {}
for w in s:gmatch('%g+') do
table.insert(t, w)
end
return t[i] or false
end
function string:input() -- Returns the stri... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-Sunwell/Kil'jaeden.lua | 1 | 4343 | local mod = DBM:NewMod("Kil", "DBM-Sunwell")
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 527 $"):sub(12, -3))
mod:SetCreatureID(25315)
mod:SetModelID(23200)
mod:SetZone()
mod:SetUsedIcons(4, 5, 6, 7, 8)
mod:RegisterCombat("yell", L.YellPull)
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED",
"... | gpl-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/loop/lua/loop/collection/PriorityQueue.lua | 12 | 3250 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria/npcs/Ephauge.lua | 36 | 1468 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ephauge
-- General Info NPC
-- @zone 230
-- @pos -2 -2 45
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
xxlxx20/DEVKEEPER | libs/feedparser.lua | 543 | 11955 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-2.0 |
n0xus/darkstar | scripts/globals/abilities/shikikoyo.lua | 17 | 1096 | -----------------------------------
-- Ability: Shikikoyo
-- Share TP above 100 with a party member.
-- Obtained: Samurai Level 75
-- Recast Time: 5:00
-- Duration: Instant
-- Target: Party member, cannot target self.
-----------------------------------
require("scripts/globals/settings");
require("scripts/g... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/choco-scroll.lua | 36 | 1153 | -----------------------------------------
-- ID: 5917
-- Item: Choco-scroll
-- Food Effect: 3 Min, All Races
-----------------------------------------
-- Mind 1
-- Speed 12.5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
da2ce7/cjdns | contrib/lua/cjdns/admin.lua | 42 | 2939 | -- Cjdns admin module for Lua
-- Written by Philip Horger
common = require 'cjdns/common'
AdminInterface = {}
AdminInterface.__index = AdminInterface
common.AdminInterface = AdminInterface
function AdminInterface.new(properties)
properties = properties or {}
properties.host = properties.host or "127.0.0... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Enaremand.lua | 38 | 1047 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Enaremand
-- Type: Standard NPC
-- @zone: 26
-- @pos 95.962 -42.003 51.613
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
--... | gpl-3.0 |
DDRBoxman/obs-studio | UI/frontend-plugins/frontend-tools/data/scripts/pause-scene.lua | 21 | 1169 | obs = obslua
pause_scene = ""
function on_event(event)
if event == obs.OBS_FRONTEND_EVENT_SCENE_CHANGED then
local scene = obs.obs_frontend_get_current_scene()
local scene_name = obs.obs_source_get_name(scene)
if pause_scene == scene_name then
obs.obs_frontend_recording_pause(true)
else
obs.obs_frontend... | gpl-2.0 |
Ne02ptzero/Grog-Like | Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/Set.lua | 12 | 3759 | --- A Set class.
--
-- > Set = require 'pl.Set'
-- > = Set{'one','two'} == Set{'two','one'}
-- true
-- > fruit = Set{'apple','banana','orange'}
-- > = fruit['banana']
-- true
-- > = fruit['hazelnut']
-- nil
-- > colours = Set{'red','orange','green','blue'}
-- > = fruit,colours
--... | apache-2.0 |
TestMaster12/Tele_bot | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
The404Hacking/TGSeeD | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | agpl-3.0 |
DEVOmarReal/Omar-Real | plugins/welcome.lua | 1 | 3293 | do
local function run(msg, matches)
local r = get_receiver(msg)
local welc = 'oo:'..msg.to.id
local bay = 'zz:'..msg.to.id
local xxxx = redis:get(welc)
local zzzz = redis:get(bay)
if is_momod(msg) and matches[1]== 'ضع الترحيب' then
redis:set(welc, matches[2])
local text = 'تم ✅ ... | gpl-2.0 |
Python1320/wire | lua/entities/gmod_wire_expression2/core/http.lua | 6 | 2360 | /*
Simple HTTP Extension
(McLovin)
*/
E2Lib.RegisterExtension( "http", true )
local cvar_delay = CreateConVar( "wire_expression2_http_delay", "3", FCVAR_ARCHIVE )
local cvar_timeout = CreateConVar( "wire_expression2_http_timeout", "15", FCVAR_ARCHIVE )
local requests = {}
local run_on = {
clk = 0,
ents = {}... | apache-2.0 |
n0xus/darkstar | scripts/globals/player.lua | 24 | 7822 | -----------------------------------
--
--
--
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/globals/status");
require("scr... | gpl-3.0 |
Azmaedus/GarrisonJukeBox | music/mus_cata1.lua | 1 | 29598 | -- STRUCTURE
-- [1] : Integer - ID of the music (new system)
-- [2] : String - Path of the music file
-- [3] : Integer - Length of the music file in seconds
-- [4] : Integer - Blizzard File ID
-- Get localization
local GJB = LibStub("AceAddon-3.0"):GetAddon("GarrisonJukeBox")
local L = GJB.L -- local L = LibStub("Ace... | gpl-2.0 |
MOSAVI17/Informationbot | plugins/currency.lua | 10 | 1371 | local command = 'cash [amount] <from> to <to>'
local doc = [[```
/cash [amount] <from> to <to>
Example: /cash 5 USD to EUR
Returns exchange rates for various currencies.
Source: Google Finance.
```]]
local triggers = {
'^/cash[@'..bot.username..']*'
}
local action = function(msg)
local input = msg.text:upper()
if... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria/npcs/Daggao.lua | 17 | 1975 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Daggao
-- Involved in Quest: Peace for the Spirit, Lure of the Wildcat (San d'Oria)
-- @pos 89 0 119 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
--------------------------------... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/DBM-BlackrockFoundry/Kromog.lua | 1 | 6545 | local mod = DBM:NewMod(1162, "DBM-BlackrockFoundry", nil, 457)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 12912 $"):sub(12, -3))
mod:SetCreatureID(77692)
mod:SetEncounterID(1713)
mod:SetZone()
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 157060 157054 156704 1575... | gpl-2.0 |
n0xus/darkstar | scripts/globals/mobskills/Seismostomp.lua | 51 | 1154 | ---------------------------------------------
-- Seismostomp
--
-- Description: Damage varies with TP. Additional effect: "Stun."
-- Type: Physical (Blunt)
--
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmov... | gpl-3.0 |
n0xus/darkstar | scripts/globals/items/serving_of_flounder_meuniere_+1.lua | 35 | 1657 | -----------------------------------------
-- ID: 4345
-- Item: serving_of_flounder_meuniere_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 6
-- Vitality 1
-- Mind -1
-- Ranged ACC 15
-- Ranged ATT % 14
-- Ranged ATT Cap 30
-- Enmity -3
---------------------------... | gpl-3.0 |
kbehafarin/newfies-dialer | lua/libs/constant.lua | 3 | 1634 | --
-- Newfies-Dialer License
-- http://www.newfies-dialer.org
--
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this file,
-- You can obtain one at http://mozilla.org/MPL/2.0/.
--
-- Copyright (C) 2011-2013 Star2Billing S.L.
--
--... | mpl-2.0 |
bnk-iitb/torch7 | CmdLine.lua | 62 | 7104 | local CmdLine = torch.class('torch.CmdLine')
local function strip(str)
return string.match(str, '%-*(.*)')
end
local function pad(str, sz)
return str .. string.rep(' ', sz-#str)
end
function CmdLine:error(msg)
print('')
io.stderr:write(msg)
print('')
self:help()
os.exit(1)
end
function CmdLine:... | bsd-3-clause |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-multiwan/luasrc/controller/multiwan.lua | 75 | 1930 | module("luci.controller.multiwan", package.seeall)
function index()
local fs = luci.fs or nixio.fs
if not fs.access("/etc/config/multiwan") then
return
end
local page
page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN"))
page.dependent = true
entry({"admin", "network", "... | gpl-2.0 |
mojo2012/factorio-mojo-advanced-tech | stdlib/area/position.lua | 6 | 5803 | --- Position module
-- @module position
Position = {}
require 'stdlib/core'
--- Creates a position that is offset by x,y coordinate pair
-- @param pos the position to offset
-- @param x the amount to offset the position in the x direction
-- @param y the amount to offset the position in the y direction
-- @return a ... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Waughroon_Shrine/bcnms/up_in_arms.lua | 17 | 1778 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: up in arms
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zone... | gpl-3.0 |
The404Hacking/TGSeeD | plugins/anti_spam.lua | 417 | 3978 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | agpl-3.0 |
arman-hc/bot | plugins/anti_spam.lua | 417 | 3978 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
mwgoldsmith/vlc | share/lua/playlist/extreme.lua | 17 | 3665 | --[[
$Id$
Copyright © 2011 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
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 opt... | gpl-2.0 |
xopxe/LuPA | pdp/fsm_box.lua | 1 | 1479 | #!/usr/bin/lua
--[[
Copyright 2008 MINA Group, Facultad de Ingenieria, Universidad de la
Republica, Uruguay.
This file is part of the RAN System.
The RAN System 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... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/Grounds_Tome.lua | 34 | 1157 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function on... | gpl-3.0 |
realglobe-Inc/edo-auth | test/auth_session.lua | 1 | 1897 | -- Copyright 2015 realglobe, 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
--
-- Unless required by applicable law or agreed to... | apache-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Test/tests-sqlite3.lua | 3 | 10225 |
--[[--------------------------------------------------------------------------
Author: Michael Roth <mroth@nessie.de>
Copyright (c) 2004 Michael Roth <mroth@nessie.de>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
file... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Dynamis-Valkurm/mobs/Goblin_Replica.lua | 12 | 2390 | -----------------------------------
-- Area: Dynamis Valkurm
-- NPC: Goblin Replica
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.