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 |
|---|---|---|---|---|---|
RebootRevival/FFXI_Test | 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 |
djianq/Game | lualib/sharemap.lua | 78 | 1496 | local stm = require "stm"
local sprotoloader = require "sprotoloader"
local sproto = require "sproto"
local setmetatable = setmetatable
local sharemap = {}
function sharemap.register(protofile)
-- use global slot 0 for type define
sprotoloader.register(protofile, 0)
end
local sprotoobj
local function loadsp()
if ... | mit |
gowadbd/DevDroid | plugins/hello.lua | 1 | 2628 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY BAKURY ▀▄ ▄▀
▀▄ ▄▀ BY sadik (@illOlli) ▀▄ ▄▀
▀▄ ▄ JUST WRITED BY BAKURY ▀▄ ▄▀
▀▄ ▄▀ wolcom : ترحيب ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀... | gpl-2.0 |
RebootRevival/FFXI_Test | 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 |
tommo/mock | mock/ai/ScriptedFSMController.lua | 1 | 2942 | module 'mock'
CLASS: ScriptedFSMController ( FSMController )
:MODEL{
Field 'script' :asset( 'com_script' ) :getset( 'Script' );
}
registerComponent( 'ScriptedFSMController', ScriptedFSMController )
function ScriptedFSMController:__init()
self.scriptPath = false
self.delegate = false
self.dataInstance = ... | mit |
onpon4/naev | dat/missions/empire/emp_cargo00.lua | 1 | 4062 | --[[
<?xml version='1.0' encoding='utf8'?>
<mission name="Empire Recruitment">
<flags>
<unique />
</flags>
<avail>
<priority>70</priority>
<chance>40</chance>
<location>Bar</location>
<faction>Empire</faction>
</avail>
</mission>
--]]
--[[
Simple cargo mission that opens up the Empire cargo missions.
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Lower_Jeuno/npcs/_l00.lua | 3 | 2852 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- !pos -107 0 -158 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Sacrificial_Chamber/bcnms/amphibian_assault.lua | 19 | 1761 | -----------------------------------
-- Area: Sacrificial Chamber
-- Name: Amphibian Assualt
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Sacrificial_Chamber/TextIDs");
---------------------... | gpl-3.0 |
openwrt-es/openwrt-luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua | 7 | 11101 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
-- Data init --
local fs = require "nixio.fs"
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
if not uci:get("network", "wan") ... | apache-2.0 |
tommo/mock | mock/extra/ScreenAnchor.lua | 2 | 1181 | module 'mock'
EnumScreenAnchorTypeV = _ENUM_V {
'top',
'center',
'bottom',
}
EnumScreenAnchorTypeH = _ENUM_V {
'left',
'center',
'right',
}
CLASS: ScreenAnchor ( Component )
:MODEL{
Field 'targetCamera' :type( Camera );
Field 'alignH' :enum( EnumScreenAnchorTypeV );
Field 'alignV' :enum( EnumScreenAncho... | mit |
tommo/mock | mock/effect/EffectEmitter.lua | 1 | 5026 | module 'mock'
EnumActionOnStop = _ENUM_V{
'default', --inherit from effect
'detach',
'destroy',
'none'
}
--------------------------------------------------------------------
CLASS: EffectEmitter ( Component )
:MODEL{
Field 'effect' :asset('effect') :set('setEffect');
Field 'autoPlay' :boolean();
... | mit |
RebootRevival/FFXI_Test | scripts/globals/items/nopales_salad.lua | 12 | 1358 | -----------------------------------------
-- ID: 5701
-- Item: nopales_salad
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- Strength 1
-- Agility 6
-- Ranged Accuracy +20
-- Ranged Attack +10
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
akavel/svgmath | svgmath/fonts/glyphlist.lua | 1 | 1600 |
local math, string, table, arg = math, string, table, arg
local pairs, ipairs, require, tonumber, error = pairs, ipairs, require, tonumber, error
local _ENV = {package=package}
local PYLUA = require('PYLUA')
local os = require('os')
GlyphList = PYLUA.class(dict) {
__init__ = function(self, f)
while true do
... | mit |
RebootRevival/FFXI_Test | scripts/globals/items/plate_of_felicifruit_gelatin.lua | 12 | 1387 | -----------------------------------------
-- ID: 5978
-- Item: Plate of Felicifruit Gelatin
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- MP % 5 Cap 100
-- Intelligence +7
-- MP Healing +3
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | 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 |
lzyzsd/ABTestingGateway | admin/runtime/set.lua | 22 | 4799 | local runtimeModule = require('abtesting.adapter.runtime')
local policyModule = require('abtesting.adapter.policy')
local redisModule = require('abtesting.utils.redis')
local systemConf = require('abtesting.utils.init')
local handler = require('abtesting.error.handler').handler
local utils = require... | mit |
RebootRevival/FFXI_Test | scripts/zones/Riverne-Site_A01/npcs/_0u1.lua | 17 | 1367 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_A01/TextIDs");
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Xarcabard/mobs/Biast.lua | 3 | 1302 | -----------------------------------
-- Area: Xarcabard
-- NM: Biast
-- ID: 17235988
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/abilities/pets/magic_mortar.lua | 4 | 1313 | ---------------------------------------------------
-- Magic Mortar
---------------------------------------------------
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/automatonweaponskills")
---------------------------------------------------
function onMobSkillCheck(t... | gpl-3.0 |
MRAHS/SuperGpSupporter | 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 |
RebootRevival/FFXI_Test | scripts/globals/spells/cure_vi.lua | 1 | 4297 | -----------------------------------------
-- Spell: Cure VI
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic")... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/bowl_of_adoulinian_soup.lua | 12 | 1563 | -----------------------------------------
-- ID: 5998
-- Item: Bowl of Adoulin Soup
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- HP % 3 Cap 40
-- Vitality 3
-- Defense % 15 Cap 70
-- HP Healing 6
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
Goodzilam/Goodzila-bot_v1.5 | libs/mimetype.lua | 28 | 2924 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/ato... | gpl-2.0 |
petoju/awesome | tests/examples/wibox/awidget/prompt/keypress.lua | 6 | 1312 | --DOC_GEN_IMAGE --DOC_HIDE
local parent = ... --DOC_NO_USAGE --DOC_HIDE
local wibox = require( "wibox" ) --DOC_HIDE
local awful = { prompt = require("awful.prompt"),--DOC_HIDE
util = require("awful.util"),--DOC_HIDE
screen = require("awful.screen")}--DOC_HIDE
loc... | gpl-2.0 |
rudolfmleziva/AdministratorTeritorial | cocos2d/cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua | 10 | 1459 |
--------------------------------
-- @module WavesTiles3D
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- waves amplitude rate
-- @function [parent=#WavesTiles3D] getAmplitudeRate
-- @param self
-- @return float#float ret (return value: float)
-------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Northern_San_dOria/npcs/Maloquedil.lua | 3 | 3650 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Maloquedil
-- Involved in Quest : Warding Vampires, Riding on the Clouds, Lure of the Wildcat (San d'Oria)
-- !pos 35 0.1 60 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---------------... | gpl-3.0 |
openwrt-es/openwrt-luci | protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6rd.lua | 72 | 2039 | -- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, peeraddr, ip6addr, tunnelid, username, password
local defaultroute, metric, ttl, mtu
ipaddr = s:taboption("general", Value, "ipaddr",
translate("Local IPv4 ad... | apache-2.0 |
bmichalo/MoonGen | lua/include/proto/vxlan.lua | 3 | 6680 | ------------------------------------------------------------------------
--- @file vxlan.lua
--- @brief VXLAN utility.
--- Utility functions for the vxlan_header struct
--- defined in \ref headers.lua . \n
--- Includes:
--- - VXLAN constants
--- - VXLAN header utility
--- - Definition of VXLAN packets
-----------------... | mit |
rudolfmleziva/AdministratorTeritorial | cocos2d/cocos/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioFunc.lua | 39 | 3421 | --tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of GUIReader will be deprecated begin
local GUIReaderDeprecated = { }
function GUIReaderDeprecated.shareReader()
deprecatedTip("GUIReader... | gpl-3.0 |
petoju/awesome | spec/awful/screen_spec.lua | 5 | 4832 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2016 Uli Schlachter
---------------------------------------------------------------------------
local fake_screens = {}
_G.screen = setmetatable({
connect_signal = function() end,
set_index_miss... | gpl-2.0 |
blackzw/openwrt_sdk_dev1 | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/model/cbi/admin_system/backupfiles.lua | 8 | 2706 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | gpl-2.0 |
Afforess/Factorio-Stdlib | stdlib/misc/logger.lua | 1 | 5802 | --- For logging debug information to files.
-- @module Misc.Logger
-- @usage
-- local Logger = require('__stdlib__/stdlib/misc/logger')
-- -- or to create a new logger directly:
-- local Log = require('__stdlib__/stdlib/misc/logger').new()
-- -- log files are saved to script-output/modname/log.log by default
local Log... | isc |
mzguanglin/LuCI | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua | 80 | 2172 | --[[
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
h... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/globals/spells/frost.lua | 1 | 2020 | -----------------------------------------
-- Spell: Frost
-- Deals ice damage that lowers an enemy's agility and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-------------------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Rabao/npcs/Guinavie.lua | 5 | 1719 | -----------------------------------
-- Area: Rabao
-- NPC: Guinavie
-- Chocobo Vendor
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
-- onTrade Actio... | gpl-3.0 |
chen0031/sysdig | userspace/sysdig/chisels/subsecoffset.lua | 18 | 4462 | --[[
Copyright (C) 2013-2014 Draios inc.
Copyright (C) 2015 Brendan Gregg.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
b... | gpl-2.0 |
rw/flatbuffers | tests/namespace_test/NamespaceC/TableInC.lua | 12 | 1513 | -- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: NamespaceC
local flatbuffers = require('flatbuffers')
local TableInC = {} -- the module
local TableInC_mt = {} -- the class metatable
function TableInC.New()
local o = {}
setmetatable(o, {__index = TableInC_mt})
return o... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/globals/abilities/pets/earthen_fury.lua | 34 | 1118 | ---------------------------------------------------
-- Earthen Fury
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
---------------------------------------------... | gpl-3.0 |
GlennS/card-draft | game/dota_addons/card-draft/scripts/vscripts/inputs.lua | 1 | 4528 | -- TODO: we'd prefer not to have to distribute the npc_heroes.txt and npc_abilities.txt files ourselves - is there some better way?
function loadHeroes()
-- Returns a list of all the heroes in Dota 2.
local heroes = LoadKeyValues("scripts/data/npc_heroes.txt")
-- See Unavailable Heroes in http://dota2.gamepedi... | mit |
jpmac26/PGE-Project | Content/configs/SMBX/script/npcs/huge_piranha_plant_turned.lua | 1 | 5009 | -------------------------------------------------------------------------------------
-- Trace of Huge Piranha Plant NPC of SMBX Engine
-------------------------------------------------------------------------------------
-- AI1:0 AI2:0 AI3:0 AI4:0 AI5:0 --INITIAL
-- AI1:71 AI2:4 AI3:0 AI4:0 AI5:0 --HIDDEN
-- AI1... | gpl-3.0 |
naader1380/Dragon1 | plugins/linkpv.lua | 66 | 30275 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Port_Bastok/npcs/Fo_Mocorho.lua | 59 | 1038 | -----------------------------------
-- Area: Port Bastok
-- NPC: Fo Mocorho
-- Type: Weather Reporter
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
--... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/mobskills/lethe_arrows.lua | 29 | 1094 | ---------------------------------------------
-- Lethe Arrows
--
-- Description: Deals a ranged attack to target. Additional effect: Knockback, Bind, and Amnesia
-- Type: Ranged
-- Utsusemi/Blink absorb: Ignores Utsusemi
-- Range: Unknown
-- Notes:
---------------------------------------------
require("scripts/g... | gpl-3.0 |
MRAHS/SuperGpSupporter | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Port_Bastok/npcs/Evi.lua | 17 | 2244 | -----------------------------------
-- Area: Port Bastok
-- NPC: Evi
-- Starts Quests: Past Perfect (100%)
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require(... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/bowl_of_zesty_zoni.lua | 12 | 2081 | -----------------------------------------
-- ID: 5619
-- Item: Bowl of Zesti Zoni
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 12
-- MP 12
-- Strength 2
-- Dexterity 2
-- Vitality 2
-- Agility 2
-- Accuracy +2
-- Ranged Accuracy +2
-- Attack +2
-- Ranged Attack +2
-- Evasion +2
-- MP... | gpl-3.0 |
hfjgjfg/jjjn | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
petoju/awesome | lib/wibox/widget/init.lua | 3 | 3216 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @module wibox.widget
---------------------------------------------------------------------------
local cairo = require("lgi").cairo
local hierarchy = require("wibox.hierarchy")
lo... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/globals/spells/addle.lua | 1 | 1670 | -----------------------------------------
-- Spell: Addle
-- Increases the casting time of the target
-- Exact formula is unknown.
--
-- Raw Value is said to be 30%
-- It is said to increase to 50% w/ Saboteur
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic")... | gpl-3.0 |
mzguanglin/LuCI | applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua | 11 | 1310 | --[[
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
h... | apache-2.0 |
mujiansu/arangodb | 3rdParty/V8-4.3.61/tools/gcmole/gcmole.lua | 26 | 13876 | -- Copyright 2011 the V8 project authors. All rights reserved.
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright
-- notice, this list of ... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Mount_Zhayolm/npcs/qm1.lua | 3 | 1334 | -----------------------------------
-- Area: Mount Zhayolm
-- NPC: ??? (Spawn Brass Borer(ZNM T1))
-- !pos 399 -27 120 61
-----------------------------------
package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mount_Zhayolm/TextIDs");
require("scripts... | gpl-3.0 |
petoju/awesome | tests/examples/awful/wibar/default.lua | 4 | 1324 | --DOC_NO_USAGE --DOC_GEN_IMAGE
local awful = require("awful") --DOC_HIDE
local wibox = require("wibox") --DOC_HIDE
screen[1]._resize {width = 480, height = 200} --DOC_HIDE
local wb = awful.wibar { position = "top" }
--DOC_HIDE Create the same number of tags as the default config
awful.tag({ "1", "2", "3"... | gpl-2.0 |
tgserver2018/Tarfand.farsi | libs/XMLElement.lua | 1 | 3981 |
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, type, getmetatable, tostring, error
local table, string = table, string
local XMLElement={}
local mt
XMLElement.new = function(lom)
return setmetatable({lom=lom or {}}, mt)
end
local function filter(filtery_thing... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/abilities/dark_arts.lua | 4 | 1587 | -----------------------------------
-- Ability: Dark Arts
-- Optimizes black magic capability while lowering white magic proficiency. Grants a bonus to enfeebling, elemental, and dark magic. Also grants access to Stratagems.
-- Obtained: Scholar Level 10
-- Recast Time: 1:00
-- Duration: 2:00:00
-----------------------... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/flask_of_panacea.lua | 70 | 1742 | -----------------------------------------
-- ID: 4163
-- Item: Panacea
-- Item Effect: Removes any number of status effects
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------------------------------------
function onItemCh... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/porcupine_pie.lua | 12 | 2061 | -----------------------------------------
-- ID: 5156
-- Item: porcupine_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 55
-- Strength 6
-- Vitality 2
-- Intelligence -3
-- Mind 3
-- HP recovered while healing 2
-- MP recovered while healing 2
-- Accuracy 5
-- Attack % 18 (cap 95)
... | gpl-3.0 |
mickours/lsyncd | tests/exclude-rsyncssh.lua | 13 | 2934 | #!/usr/bin/lua
require("posix")
dofile("tests/testlib.lua")
cwriteln("****************************************************************");
cwriteln(" Testing excludes ");
cwriteln("****************************************************************");
cwriteln(" (this test needs passwordless ssh localhost access ");
cwri... | gpl-2.0 |
iovisor/bcc | examples/lua/strlen_count.lua | 3 | 1305 | #!/usr/bin/env bcc-lua
--[[
Copyright 2016 GitHub, 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 in ... | apache-2.0 |
sajadaltaie/sejobot | plugins/settings.lua | 1 | 30740 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Metalworks/npcs/Unlucky_Rat.lua | 16 | 2248 | -----------------------------------
-- Area: Metalworks
-- NPC: Unlucky Rat
-- Starts & Finishes Quest: Mean Machine
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Labyrinth_of_Onzozo/mobs/Goblin_Bandit.lua | 3 | 1214 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- MOB: Goblin Bandit
-- Note: Place holder Soulstealer Skullnix
-----------------------------------
require("scripts/globals/groundsofvalor");
require("scripts/zones/Labyrinth_of_Onzozo/MobIDs");
-----------------------------------
-- onMobDeath
-----... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Yuhtunga_Jungle/npcs/Luck_Rune.lua | 3 | 1060 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- !pos -95.486 11.188 418.153 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Yuht... | gpl-3.0 |
TheRikyHUN/fooniks | resources/phoenix_Infospots/infospots-client.lua | 2 | 2115 | local player = getLocalPlayer( );
function SetMyPos( x, y, z )
setElementPosition( player, x, y, z );
local newZ = getGroundPosition( x, y, z ) + math.abs( getElementDistanceFromCentreOfMassToBaseOfModel( player ) );
setElementPosition( player, x, y, newZ );
end
addEvent( "onInteriorPosRequest", true... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/AlTaieu/mobs/Absolute_Virtue.lua | 21 | 2312 | -----------------------------------
-- Area: Al'Taieu
-- HNM: Absolute Virtue
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
funct... | gpl-3.0 |
openwrt-es/openwrt-luci | applications/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua | 9 | 3907 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")),
translate("UPnP allows clients in the local network to automatically configure the... | apache-2.0 |
RebootRevival/FFXI_Test | scripts/zones/Aht_Urhgan_Whitegate/TextIDs.lua | 3 | 5010 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 219; -- You cannot obtain the item. Come back after sorting your inventory.?Prompt?
ITEM_CANNOT_BE_OBTAINEDX = 221; -- You cannot obtain the ?Possible Special Code: 01??Possible Special Code: 05?#?BAD CHAR: 8280??BAD CHAR: 80??BAD CHAR: 8... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/zone.lua | 11 | 3195 | ------------------------------------
--
-- Contains global functions and variables
-- related to area specific things
--
------------------------------------
------------------------------------
-- zone related IDs
------------------------------------
-- Zone Types
ZONETYPE_NONE = 0
ZONETYPE_CI... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/spells/bluemagic/body_slam.lua | 35 | 1710 | -----------------------------------------
-- Spell: Body Slam
-- Delivers an area attack. Damage varies with TP
-- Spell cost: 74 MP
-- Monster Type: Dragon
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 4
-- Stat Bonus: VIT+1, MP+5
-- Level: 62
-- Casting Time: 1 seconds
-- Recast Time: 27.75 seconds
-- Skillch... | gpl-3.0 |
wskplho/sl4a | lua/luasocket/samples/lpr.lua | 59 | 1574 | local lp = require("socket.lp")
local function usage()
print('\nUsage: lua lpr.lua [filename] [keyword=val...]\n')
print('Valid keywords are :')
print(
' host=remote host or IP address (default "localhost")\n' ..
' queue=remote queue or printer name (default "printer")\n' ..
' port=remote port ... | apache-2.0 |
ld-test/many2one | test/many2one.lua | 2 | 3948 | -- many2one lua program to combine many lua files (linked by require) to one lua file for easy distribution
-- Written by Milind Gupta
-- For usage and questions visit http://milindsweb.amved.com/Many2One.html
-- The way it does is to read all files and convert them to strings and to replace the require for each file w... | mit |
pedrus/dota-ra2 | game/dota_addons/ra2/scripts/vscripts/builder.lua | 1 | 6303 | -- A build ability is used (not yet confirmed)
function Build( event )
local caster = event.caster
local ability = event.ability
local ability_name = ability:GetAbilityName()
local building_name = ability:GetAbilityKeyValues()['UnitName']
local gold_cost = ability:GetGoldCost(1)
local hero = ca... | mit |
jthomasbarry/aafmt | archive/book_chapters_LaTeX_original/pgf_3.0.1.tds/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/Distances.lua | 3 | 11636 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | gpl-2.0 |
samijon/s | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
shahabsaf1/fucker | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
RebootRevival/FFXI_Test | scripts/globals/items/plate_of_urchin_sushi.lua | 12 | 1640 | -----------------------------------------
-- ID: 5151
-- Item: plate_of_urchin_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 40
-- Strength 1
-- Vitality 5
-- Accuracy % 15 (cap 72)
-- Ranged ACC % 15 (cap 72)
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
rafradek/wire | lua/wire/timedpairs.lua | 17 | 3271 | -- Timedpairs by Grocel. (Rewrite by Divran)
-- It allows you to go through long tables, but without game freezing.
-- Its like a for-pairs loop.
--
-- How to use:
-- WireLib.Timedpairs(string unique name, table, number ticks done at once, function tickcallback[, function endcallback, ...])
--
-- tickcallback is called... | apache-2.0 |
rafradek/wire | lua/wire/gates/memory.lua | 17 | 11088 | --[[
Memory Gates
]]
GateActions("Memory")
GateActions["latch"] = {
name = "Latch (Edge triggered)",
inputs = { "Data", "Clk" },
output = function(gate, Data, Clk)
local clk = (Clk > 0)
if (gate.PrevValue ~= clk) then
gate.PrevValue = clk
if (clk) then
gate.LatchStore = Data
end
end
return g... | apache-2.0 |
pecio/PetHealth-Broker | Common/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua | 2 | 12516 | --- AceConfigRegistry-3.0 handles central registration of options tables in use by addons and modules.\\
-- Options tables can be registered as raw tables, OR as function refs that return a table.\\
-- Such functions receive three arguments: "uiType", "uiName", "appName". \\
-- * Valid **uiTypes**: "cmd", "dropdown"... | gpl-3.0 |
Afforess/Factorio-Stdlib | stdlib/event/modules/event_filters.lua | 1 | 1341 | --- Event Filters
-- Predefined event filter functions
-- @module Event.Filters
local Filters = {
entity = {},
player = {},
}
function Filters.on_key(event_key, pattern)
return function(event)
local key = event and event[event_key]
return key and key:match(pattern)
end
end
function Fi... | isc |
bmichalo/MoonGen | examples/timestamping-tests/timestamps-software.lua | 2 | 2527 | --- Software timestamping precision test.
local mg = require "dpdk"
local ts = require "timestamping"
local device = require "device"
local hist = require "histogram"
local memory = require "memory"
local stats = require "stats"
local timer = require "timer"
local ffi = require "ffi"
local PKT_SIZE = 60
local N... | mit |
djianq/Game | examples/client.lua | 1 | 2108 | package.cpath = "luaclib/?.so"
package.path = "lualib/?.lua;examples/?.lua"
if _VERSION ~= "Lua 5.3" then
error "Use lua 5.3"
end
local socket = require "clientsocket"
local proto = require "proto"
local sproto = require "sproto"
local host = sproto.new(proto.s2c):host "package"
local request = host:attach(sproto.n... | mit |
RebootRevival/FFXI_Test | scripts/globals/items/venom_bolt.lua | 1 | 1029 | -----------------------------------------
-- ID: 18152
-- Item: Venom Bolt
-- Additional Effect: Poison
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
-- onAdditionalEffect Action
-------... | gpl-3.0 |
tommo/mock | mock/core/DebugHelper.lua | 1 | 6812 | --[[
* MOCK framework for Moai
* Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved.
*
* 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
*... | mit |
RebootRevival/FFXI_Test | scripts/zones/Southern_San_dOria/npcs/Fulchia.lua | 17 | 1048 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Fulchia
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Southern_San_dOri... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/head_of_isleracea.lua | 12 | 1189 | -----------------------------------------
-- ID: 5965
-- Item: Head of Isleracea
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
tommo/mock | mock/gfx/asset/ParticleHelper.lua | 1 | 9972 | --[[
* Particle Script Helper for MOAI
* Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.com). All rights reserved.
*
* 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 restricti... | mit |
RebootRevival/FFXI_Test | scripts/zones/QuBia_Arena/TextIDs.lua | 3 | 1428 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6386; -- Obtained: <item>.
GIL_OBTAINED = 6387; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6389; -- Obtained... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Aht_Urhgan_Whitegate/npcs/Yahsra.lua | 3 | 3585 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Yahsra
-- Type: Assault Mission Giver
-- !pos 120.967 0.161 -44.002 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyit... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Abyssea-Konschtat/npcs/Cavernous_Maw.lua | 3 | 1200 | -----------------------------------
-- Area: Abyssea - Konschatat
-- NPC: Cavernous Maw
-- !pos 159.943 -72.109 -839.986 15
-- Teleports Players to Konschatat Highlands
-----------------------------------
package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
sehraf/Lua4RS | scripts/buryTheDead.lua | 2 | 3451 | -- script to move long time offline peers to a seperated group
-- !!! this may cause a GUI lag !!!
-- enter the group name
local groupName = "Graveyard"
-- days offline
local limit = 30
-- rs.clear()
-- remove group for offline peers
function removeGroup()
local grpList = peers.getGroupInfoList()
fo... | lgpl-3.0 |
onpon4/naev | dat/events/neutral/baron_comm.lua | 1 | 1225 | --[[
<?xml version='1.0' encoding='utf8'?>
<event name="Baroncomm_baron">
<trigger>enter</trigger>
<chance>4</chance>
<cond>
not var.peek("baron_hated") and
not player.misnDone("Baron") and
not player.misnActive("Baron") and
(
system.cur():faction() == faction.get("Empire") or
system.cur():faction(... | gpl-3.0 |
ciufciuf57/nodemcu-firmware | lua_modules/ds3231/ds3231-web.lua | 84 | 1338 | require('ds3231')
port = 80
-- ESP-01 GPIO Mapping
gpio0, gpio2 = 3, 4
days = {
[1] = "Sunday",
[2] = "Monday",
[3] = "Tuesday",
[4] = "Wednesday",
[5] = "Thursday",
[6] = "Friday",
[7] = "Saturday"
}
months = {
[1] = "January",
[2] = "Febuary",
[3] = "March",
[4] = "Apri... | mit |
RebootRevival/FFXI_Test | scripts/globals/weaponskills/steel_cyclone.lua | 26 | 1617 | -----------------------------------
-- Steel Cyclone
-- Great Axe weapon skill
-- Skill level: 240
-- Delivers a single-hit attack. Damage varies with TP.
-- In order to obtain Steel Cyclone, the quest The Weight of Your Limits must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget, Aqua ... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Aydeewa_Subterrane/npcs/qm3.lua | 3 | 1271 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: ??? (Spawn Chigre(ZNM T1))
-- !pos -217 35 12 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aydeewa_Subterrane/TextIDs");
require... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/items/flame_sword.lua | 1 | 1101 | -----------------------------------------
-- ID: 16621
-- Item: Flame Sword
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
-- onAdditionalEffect Action
-... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/PsoXja/npcs/_094.lua | 3 | 2852 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _094 (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- !pos 310.000 -1.925 -101.600 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
r... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/globals/weaponskills/metatron_torment.lua | 19 | 2291 | -----------------------------------
-- Metatron Torment
-- Hand-to-Hand Skill level: 5 Description: Delivers a threefold attack. Damage varies wit weapon skill
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Lowers target's defense. Additional effect: temporarily lowers damage taken from enemies.
-- Defense Down effec... | gpl-3.0 |
RebootRevival/FFXI_Test | scripts/zones/Lower_Delkfutts_Tower/npcs/_542.lua | 3 | 2219 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Cermet Door for Basty Ambassador
-- Bastok Mission 3.3 "Appointment to Jeuno"
-- !pos 596 16 -19 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
----------------------... | gpl-3.0 |
blackzw/openwrt_sdk_dev1 | staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/usr/lib/lua/luci/webapi/common.lua | 1 | 6984 | module("luci.webapi.common", package.seeall)
ReturnCode =
{
"RILD_ERRID_SUCCESS", -- 0
"RILD_ERRID_FAILED", -- 1
"RILD_ERRID_BAD_PARAMETER", -- 2
"RILD_ERRID_DEVICE_NOT_READY", -- 3
"RILD_ERRID_COMM_OPEN_FAILED", -- 4
"RILD_ERRID_AT_INIT_ERROR", -- 5
"RILD_ERRID_RPC_WRITE_FAILED",-- 6
"RIL... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.