repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
rdlaitila/LURE | src/__legacy__/lib/loveframes/objects/form.lua | 14 | 7892 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.form"))
local lovefra... | mit |
Armyluix/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Wyatt.lua | 17 | 1982 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Wyatt
-- @zone 80
-- @pos 124 0 84
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Port_Jeuno/npcs/Horst.lua | 17 | 3539 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Horst
-- Type: Abyssea Warp NPC
-- @pos -54.379 0.001 -10.061 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Jeuno/TextIDs");
-... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars(Broken}/entities(maybe_outdated)/entities/base_structure/init.lua | 7 | 1315 |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
function ENT:OnTakeDamage(dmg)
local damage = dmg:GetDamage()
local attacker=dmg:GetAttacker()
local inflictor=dmg:GetInflictor()
if !dmg:IsExplosionDamage() && ValidEntity(attacker) && attacker:IsPlayer() && attacker:GetTable().ArmorPie... | mit |
jebenexer/kong | spec/02-integration/04-admin_api/09-post_processing_spec.lua | 4 | 3431 | local helpers = require "spec.helpers"
local cjson = require "cjson"
local function it_content_types(title, fn)
local test_form_encoded = fn("application/x-www-form-urlencoded")
local test_json = fn("application/json")
it(title .. " with application/www-form-urlencoded", test_form_encoded)
it(title .. " wit... | apache-2.0 |
Armyluix/darkstar | scripts/zones/Windurst_Walls/npcs/Five_of_Diamonds.lua | 38 | 1048 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Five of Diamonds
-- Type: Standard NPC
-- @zone: 239
-- @pos -220.954 -0.001 -122.708
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sanraku.lua | 24 | 8193 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sanraku
-- Zeni NM pop item and trophy management system.
-- @pos -125.724 0.999 22.136 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
package.loaded["scripts/globals/besieged"] = nil;
... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Earth.lua | 17 | 2269 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Earth
-- Involved in Zilart Mission 7
-- @pos 199 -2 36 168
-------------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-------------------------------------
require("scripts/global... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Southern_San_dOria/npcs/Legata.lua | 17 | 1999 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Legata
-- Starts and Finishes Quest: Starting a Flame (R)
-- @zone 230
-- @pos 82 0 116
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/weaponskills/blade_yu.lua | 18 | 1553 | -----------------------------------
-- Blade Yu
-- Katana weapon skill
-- Skill Level: 290
-- Delivers a water elemental attack. Additional effect Poison. Durration varies with TP.
-- Aligned with the Aqua Gorget & Soil Gorget.
-- Aligned with the Aqua Belt & Soil Belt.
-- Element: Water
-- Modifiers: DEX:50% ;... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/brass_loach.lua | 18 | 1387 | -----------------------------------------
-- ID: 5469
-- Item: Brass Loach
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity +2
-- Mind +4
-- Evasion +5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/spells/bluemagic/heat_breath.lua | 25 | 1751 | -----------------------------------------
-- Spell: Heat Breath
-- Deals fire damage to enemies within a fan-shaped area originating from the caster
-- Spell cost: 169 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 4
-- Stat Bonus: STR+3
-- Level: 71
-- Casting Time: 7.5 seconds
-- Recas... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Lower_Jeuno/npcs/Akamafula.lua | 19 | 1282 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Akamafula
-- Type: Tenshodo Merchant
-- @pos 28.465 2.899 -46.699 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Northern_San_dOria/npcs/Guilberdrier.lua | 14 | 1763 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Guilberdrier
-- Type: Standard Info NPC
-- Involved in Quest: Flyers for Regine, Exit the Gambler
-- @zone 231
-- @pos -159.082 12.000 253.794
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = ni... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Gusgen_Mines/npcs/Treasure_Chest.lua | 19 | 3229 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Treasure Chest
-- Involved In Quest: The Goblin Tailor
-- @zone 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("script... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Sahgygy_WW.lua | 30 | 3067 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Sahgygy, W.W.
-- Border Conquest Guards
-- @pos 226.493 -12.231 260.194 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/c... | gpl-3.0 |
moltafet35/seel | plugins/all.lua | 264 | 4202 | do
data = load_data(_config.moderation.data)
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_print... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/West_Ronfaure/npcs/Yoshihiro_IM.lua | 14 | 3326 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Yoshihiro, I.M.
-- Outpost Conquest Guards
-- @pos -450.571 -20.807 -219.970 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
... | gpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/Speed.lua | 11 | 2899 |
--------------------------------
-- @module Speed
-- @extend Action
-- @parent_module cc
--------------------------------
-- Replace the interior action.<br>
-- param action The new action, it will replace the running action.
-- @function [parent=#Speed] setInnerAction
-- @param self
-- @param #cc.ActionInterval ac... | mit |
abriasffxi/darkstar | scripts/globals/spells/phalanx.lua | 27 | 1151 | -----------------------------------------
-- Spell: PHALANX
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,s... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/weaponskills/piercing_arrow.lua | 30 | 1643 | -----------------------------------
-- Piercing Arrow
-- Archery weapon skill
-- Skill level: 40
-- Ignores enemy's defense. Amount ignored varies with TP.
-- The amount of defense ignored is 0% with 100TP, 35% with 200TP and 50% with 300TP.
-- Typically does less damage than Flaming Arrow.
-- Aligned with the S... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Qufim_Island/npcs/Pitoire_RK.lua | 30 | 3053 | -----------------------------------
-- Area: Qufim Island
-- NPC: Pitoire, R.K.
-- Type: Outpost Conquest Guards
-- @pos -245.366 -20.344 299.502 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/bowl_of_witch_soup.lua | 35 | 1381 | -----------------------------------------
-- ID: 4333
-- Item: witch_soup
-- Food Effect: 4hours, All Races
-----------------------------------------
-- Magic Points 25
-- Strength -1
-- Mind 2
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Port_Windurst/npcs/Honorio.lua | 17 | 1385 | -----------------------------------
-- Area: Port Windurst
-- NPC: Honorio
-- @zone 240
-- @pos 218 -5 114
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyite... | gpl-3.0 |
soheil22222222/shield0 | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
ereizertmbot/sevensp | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
dani-sj/baba | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
jstitch/wesnoth | data/ai/micro_ais/cas/ca_patrol.lua | 26 | 6200 | local AH = wesnoth.require "ai/lua/ai_helper.lua"
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
local function get_patrol(cfg)
local filter = cfg.filter or { id = cfg.id }
local patrol = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", filter }
}[1]... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Castle_Zvahl_Keep/mobs/Viscount_Morax.lua | 14 | 1040 | -----------------------------------
-- Area:
-- MOB: Viscount_Morax
-----------------------------------
-----------------------------------
require("scripts/globals/titles");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
-----------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Caiphimonride.lua | 17 | 1310 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Caiphimonride
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
-------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Bastok_Markets/npcs/Rabid_Wolf_IM.lua | 28 | 4892 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Rabid Wolf, I.M.
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Supply Run Mis... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Woods/npcs/Abby_Jalunshi.lua | 14 | 1055 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Abby Jalunshi
-- Type: Moghouse Renter
-- @zone 241
-- @pos -101.895 -5 36.172
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
---------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Lower_Jeuno/npcs/Chimh_Dlesbah.lua | 38 | 1042 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Chimh Dlesbah
-- Type: Event Scene Replayer
-- @zone: 245
-- @pos -71.995 -1 -115.882
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/Rockwell.lua | 13 | 2288 | -----------------------------------
-- Area: Maze of Shakhrami
-- Quest: Your Crystal Ball
-- @pos -18 -13 181 198
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/title... | gpl-3.0 |
deniz1a/OpenRA | mods/cnc/maps/gdi04a/gdi04a.lua | 7 | 4742 | AutoTrigger = { CPos.New(51, 47), CPos.New(52, 47), CPos.New(53, 47), CPos.New(54, 47) }
GDIHeliTrigger = { CPos.New(27, 55), CPos.New(27, 56), CPos.New(28, 56), CPos.New(28, 57), CPos.New(28, 58), CPos.New(28, 59)}
Nod1Units = { "e1", "e1", "e3", "e3" }
Auto1Units = { "e1", "e1", "e3" }
KillsUntilReinforcements = 1... | gpl-3.0 |
imrandomizer/Algorithm-Implementations | Ranrot-B-Pseudo_Random_Number_Generator/Lua/Yonaba/numberlua.lua | 115 | 13399 | --[[
LUA MODULE
bit.numberlua - Bitwise operations implemented in pure Lua as numbers,
with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces.
SYNOPSIS
local bit = require 'bit.numberlua'
print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff
-- Interface providing strong Lua 5.2 '... | mit |
sum2012/mame | 3rdparty/genie/src/actions/vstudio/vs200x_vcproj.lua | 3 | 19866 | --
-- vs200x_vcproj.lua
-- Generate a Visual Studio 2002-2008 C/C++ project.
-- Copyright (c) 2009-2013 Jason Perkins and the Premake project
--
--
-- Set up a namespace for this file
--
premake.vstudio.vc200x = { }
local vc200x = premake.vstudio.vc200x
local tree = premake.tree
--
-- Return the version-specifi... | gpl-2.0 |
Armyluix/darkstar | scripts/zones/Kazham/npcs/Lalapp.lua | 15 | 3856 | -----------------------------------
-- Area: Kazham
-- NPC: Lalapp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
-63.243702, -11.000023, -97.916130,
... | gpl-3.0 |
dios-game/dios-cocos | src/apps/dios-lua-app/Resources/src/cocos/framework/init.lua | 9 | 2729 | --[[
Copyright (c) 2011-2015 chukong-incc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | mit |
abriasffxi/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_540.lua | 14 | 2241 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Cermet Door for Windy Ambassador
-- Windurst Mission 3.3 "A New Journey"
-- @pos 636 16 59 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
--------------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Selbina/npcs/Mendoline.lua | 17 | 1185 | -----------------------------------
-- Area: Selbina
-- NPC: Mendoline
-- Guild Merchant NPC: Fishing Guild
-- @pos -13.603 -7.287 10.916 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
uspgamedev/backdoor | game/main.lua | 1 | 3004 |
-- FIXME
-- luacheck: no global
-- set libs dir to path
require 'libs'
-- LUX portability
require 'lux.portable'
local common = require 'lux.common'
printf = common.printf
identityp = common.identityp
-- CPML
cpml = require 'cpml'
local Res = require "steaming.res_manager"
local Setup = require ... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/abilities/fight.lua | 26 | 1130 | -----------------------------------
-- Ability: Fight
-- Commands your pet to attack the target.
-- Obtained: Beastmaster Level 1
-- Recast Time: 10 seconds
-- Duration: N/A
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
... | gpl-3.0 |
Wiladams/LJIT2libudev | testy/fun.lua | 12 | 28437 | ---
--- Lua Fun - a high-performance functional programming library for LuaJIT
---
--- Copyright (c) 2013-2014 Roman Tsisyk <roman@tsisyk.com>
---
--- Distributed under the MIT/X11 License. See COPYING.md for more details.
---
--- https://github.com/rtsisyk/luafun
---
local exports = {}
local methods = {}
-----------... | mit |
Armyluix/darkstar | scripts/zones/Windurst_Waters/npcs/Orn.lua | 17 | 1664 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orn
-- @pos -68 -9 30 238
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--... | gpl-3.0 |
jebenexer/kong | spec/02-integration/05-proxy/01-router_spec.lua | 2 | 23464 | local helpers = require "spec.helpers"
local cjson = require "cjson"
local function insert_apis(arr)
if type(arr) ~= "table" then
return error("expected arg #1 to be a table", 2)
end
helpers.dao:truncate_tables()
for i = 1, #arr do
assert(helpers.dao.apis:insert(arr[i]))
end
end
describe("Router",... | apache-2.0 |
imrandomizer/Algorithm-Implementations | Newton_Raphson/Lua/Yonaba/newtonraphson_test.lua | 26 | 1041 | -- Tests for derivative.lua
local nrsolver = require 'newtonraphson'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 e... | mit |
PARADOXTEAM/ParadoxBot | plugins/activeuser.lua | 7 | 11811 | local function checktodaygr(cb_extra, success, result)
local hash = ''
local thash=''
for k,user in pairs(result.members) do
thash = 'today:'..user.peer_id
if redis:get(thash) then
if redis:get(thash) < os.date("%x",os.time() + 16200) then
hash = 'utmsgst:'..user.peer_id..':'..cb_extra
redis:set(hash,0)
... | agpl-3.0 |
Armyluix/darkstar | scripts/zones/Mhaura/npcs/Lacia.lua | 17 | 3143 | -----------------------------------
-- Area: Mhaura
-- NPC: Lacia
-- Starts Quest: Trial Size Trial By Lightning
-- The "TrialSizeLightning_date" still needs to be set at the BCNM/Mob level to reflect defeat by the Avatar
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Crawlers_Nest_[S]/npcs/Tucker.lua | 30 | 3553 | ----------------------------------
-- Area: Crawlers' Nest [S]
-- NPC: Tucker
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil;
require("scripts/zones/Crawlers_Nest_[S]/TextIDs");
require("scripts/globals/quests");
-----------------------------------
-- onTrade Act... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Metalworks/npcs/Glarociquet_TK.lua | 30 | 4750 | -----------------------------------
-- Area: Metalworks
-- NPC: Glarociquet, T.K.
-- @pos 19 -16 -28 237
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Sup... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/cobalt_jellyfish.lua | 18 | 1334 | -----------------------------------------
-- ID: 4443
-- Item: cobalt_jellyfish
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
zjutoe/lackey | mrb_private_L1.lua | 2 | 12167 | #!/usr/bin/env lua
--local Prof = require "profiler"
-- TODO: different instances of the same sb shall be treated as different sb's
-- TODO: do we really support memory writing w/ renaming?
-- TODO: super block merging coelessing
-- the sb's that only depends on a single predecessor, can be merged into the pred... | gpl-2.0 |
Francesco149/lainbot | plugins/search_youtube.lua | 3 | 1425 | do
local function get_yt_data (yt_code)
local base_url = 'http://gdata.youtube.com/feeds/api/'
local url = base_url..'/videos/'..yt_code..'?v=2&alt=jsonc'
local res,code = http.request(url)
if code ~= 200 then return "HTTP ERROR" end
local data = json:decode(res).data
return data
end
local function forma... | gpl-2.0 |
Armyluix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Wahnid.lua | 19 | 1180 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Wahnid
-- Type: Guild Merchant: Fishing Guild
-- @pos -31.720 -6.000 -94.919 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Southern_San_dOria/npcs/Glenne.lua | 13 | 4000 | -------------------------------------
-- Area: Southern San d'Oria
-- NPC: Glenne
-- Starts and Finishes Quest: A Sentry's Peril
-- @zone 230
-- @pos -122 -2 15
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
ElectroDuk/QuackWars | garrysmod/addons/ulx/lua/ulx/modules/cl/xlib.lua | 2 | 36477 | --XLIB -- by Stickly Man!
--A library of helper functions used by XGUI for creating derma controls with a single line of code.
--Currently a bit disorganized and unstandardized, (just put in things as I needed them). I'm hoping to fix that sometime.
xlib = {}
function xlib.makecheckbox( t )
local pnl = vgui.Create(... | mit |
abriasffxi/darkstar | scripts/zones/Chocobo_Circuit/Zone.lua | 17 | 1100 | -----------------------------------
--
-- Zone: Chocobo_Circuit
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Chocobo_Circuit/TextIDs"] = nil;
require("scripts/zones/Chocobo_Circuit/TextIDs");
-----------------------------------
-- onInitialize
----------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Horlais_Peak/bcnms/rank_2_mission.lua | 17 | 2321 | -----------------------------------
-- Area: Horlais Peak
-- Name: Mission Rank 2
-- @pos -509 158 -211 139
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
requi... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/mobskills/Tebbad_Wing_Air.lua | 25 | 1091 | ---------------------------------------------
-- Tebbad Wing
--
-- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Tiamat, Smok and Ildebra... | gpl-3.0 |
cyberix3d/Cyberix3D | Source/ThirdParty/toluapp/src/bin/lua/module.lua | 44 | 1479 | -- tolua: module class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements,... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Northern_San_dOria/npcs/Bertenont.lua | 14 | 1763 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Bertenont
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -165 0.1 226 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/z... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/weaponskills/trueflight.lua | 18 | 4616 | -----------------------------------
-- Skill Level: N/A
-- Description: Deals light elemental damage. Damage varies with TP. Gastraphetes: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Ranger) quest.
-- Does not work with Flashy Shot.
-- Does not work with Stealth Shot.
... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Windurst_Walls/npcs/Yoriri.lua | 14 | 1456 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Yoriri
-- Type: Standard NPC
-- @pos 65.268 -8.5 -58.309 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Bastok_Mines/npcs/Tami.lua | 17 | 2878 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Tami
-- Starts & Finishes Repeatable Quest: Groceries
-- Note: Repeatable until proper completion
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Windurst_Walls/npcs/_6n8.lua | 17 | 1309 | -----------------------------------
-- Area: Windurst Walls
-- Door: Priming Gate
-- Involved in quest: Toraimarai Turmoil
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Windurst_Walls/TextIDs");
-----------------------------... | gpl-3.0 |
mohammadclashclash/hacker2011 | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
Armyluix/darkstar | scripts/globals/items/salmon_croute.lua | 35 | 1351 | -----------------------------------------
-- ID: 4551
-- Item: salmon_croute
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 8
-- MP 8
-- Dexterity 2
-- MP recovered while healing 1
-----------------------------------------
require("scripts/globals/status");
-------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Port_Windurst/npcs/Shanruru.lua | 17 | 2768 | -----------------------------------
-- Area: Port Windurst
-- NPC: Shanruru
-- Involved in Quest: Riding on the Clouds
-- @zone 240
-- @pos -1 -6 187
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Yahsra.lua | 14 | 3617 | -----------------------------------
-- 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 |
abriasffxi/darkstar | scripts/zones/Wajaom_Woodlands/npcs/Watisa.lua | 12 | 1642 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Watisa
-- Type: Chocobo Renter
-- @pos -201 -11 93 51
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
----------------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/pipin_hot_popoto.lua | 35 | 1291 | -----------------------------------------
-- ID: 4282
-- Item: pipin_hot_popoto
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP 25
-- Vitality 3
-- HP recovered while healing 1
-----------------------------------------
require("scripts/globals/status");
-------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/RuAun_Gardens/npcs/Pincerstone.lua | 17 | 3728 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: Pincerstone
-- NPCs which activates the blue teleports in sky
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/spells/bluemagic/lowing.lua | 26 | 1382 | -----------------------------------------
-- Spell: Lowing
-- Gives enemies within range a powerful disease that prevents recovery of HP and MP
-- Spell cost: 66 MP
-- Monster Type: Beasts
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5
-- Level: 71
-- Casting Time: 7 seconds
-- Recast Time: 5... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/spells/absorb-mnd.lua | 18 | 1295 | --------------------------------------
-- Spell: Absorb-MND
-- Steals an enemy's mind.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Ryo.lua | 30 | 1239 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Ryo
-- Type: ZNM assistant
-- @pos -127.086 0.999 22.693 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/T... | gpl-3.0 |
jebenexer/kong | spec/03-plugins/17-jwt/fixtures.lua | 6 | 4844 | return {
rs256_private_key = [[
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAw5mp3MS3hVLkHwB9lMrEx34MjYCmKeH/XeMLexNpTd1FzuNv
6rArovTY763CDo1Tp0xHz0LPlDJJtpqAgsnfDwCcgn6ddZTo1u7XYzgEDfS8J4SY
dcKxZiSdVTpb9k7pByXfnwK/fwq5oeBAJXISv5ZLB1IEVZHhUvGCH0udlJ2vadqu
R03phBHcvlNmMbJGWAetkdcKyi+7TaW7OUSjlge4WYERgYzBB6eJH+UfPjmw3... | apache-2.0 |
Armyluix/darkstar | scripts/zones/Behemoths_Dominion/Zone.lua | 9 | 1830 | -----------------------------------
--
-- Zone: Behemoths_Dominion (127)
--
-----------------------------------
package.loaded["scripts/zones/Behemoths_Dominion/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Be... | gpl-3.0 |
VideahGams/moontastic | moontastic/utils/utf8.lua | 1 | 9167 | -- modified for partial compatibility with Lua 5.3
--utf8 module (Cosmin Apreutesei, public domain).
--byte indices are i's, char (codepoint) indices are ci's.
--invalid characters are counted as 1-byte chars so they don't get lost. validate/sanitize beforehand as needed.
local utf8 = {}
--byte index of the next cha... | mit |
ultranaut/illacceptanything | code/HERE BE DRAGONS.lua | 12 | 336811 | #!/usr/bin/env lua
--[==============================================================================[
-_____
' | -, _ _
/| | |` ,._-_ < \, / \\ /'\\ \\/\\ _-_,
|| |==|| || /-|| || || || || || || ||_.
~|| | |... | mit |
Armyluix/darkstar | scripts/zones/Garlaige_Citadel/npcs/Treasure_Chest.lua | 19 | 2566 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Treasure Chest
-- @zone 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("s... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/army_biscuit.lua | 18 | 1233 | -----------------------------------------
-- ID: 5657
-- Item: army_biscuit
-- Food Effect: 5Min?, All Races
-----------------------------------------
-- HP Recovered While Healing 3
-- MP Recovered While Healing 3
-----------------------------------------
require("scripts/globals/status");
--------------------------... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Northern_San_dOria/npcs/Villion.lua | 14 | 1386 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Villion
-- Type: Adventurer's Assistant NPC
-- Involved in Quest: Flyers for Regine
-- @zone: 231
-- @pos -157.524 4.000 263.818
--
-----------------------------------
-----------------------------------
-- onTrade Action
------------------... | gpl-3.0 |
dios-game/dios-cocos | src/apps/lua-tests/Resources/src/ByteCodeEncryptTest/ByteCodeEncryptTest.lua | 4 | 3906 | local targetPlatform = cc.Application:getInstance():getTargetPlatform()
local is64BitIOSDevice = cc.Application:getInstance():is64BitIOSDevice()
if cc.PLATFORM_OS_LINUX ~= targetPlatform and is64BitIOSDevice ~= true then
require("ByteCodeEncryptTest/ByteCodeTest")
require("ByteCodeEncryptTest/ByteCodeAndEncryptTes... | mit |
abriasffxi/darkstar | scripts/zones/Lower_Jeuno/npcs/Garnev.lua | 14 | 2283 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Garnev
-- Starts and Finishes Quest: Deal with Tenshodo
-- @zone 245
-- @pos 30 4 -36
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
-----------------------... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/items/plate_of_bream_sushi_+1.lua | 17 | 1478 | -----------------------------------------
-- ID: 5177
-- Item: plate_of_bream_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 6
-- Vitality 5
-- Accuracy % 17
-- Ranged ACC % 17
-- Sleep Resist 5
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
dios-game/dios-cocos | src/oslibs/cocos/cocos-src/tests/lua-tests/src/ExtensionTest/WebProxyTest.lua | 11 | 7485 | local function WebSocketTestLayer()
local layer = cc.Layer:create()
local winSize = cc.Director:getInstance():getWinSize()
local MARGIN = 40
local SPACE = 35
local wsSendText = nil
local wsSendBinary = nil
local wsError = nil
local sendTextStatus = nil
local send... | mit |
Nyaa-tan/colony-sim-30 | lib/luigi/luigi/backend/ffisdl.lua | 3 | 14995 | local ROOT = (...):gsub('[^.]*.[^.]*$', '')
local Hooker = require(ROOT .. 'hooker')
local ffi = require 'ffi'
local sdl = require((...) .. '.sdl')
local Image = require((...) .. '.image')
local Font = require((...) .. '.font')
local Keyboard = require((...) .. '.keyboard')
local Text = require((...) .. '.text')
lo... | mpl-2.0 |
Tankobot/botsbots | lib/cog.lua | 1 | 1512 | --[[
Name: Cog Graphical User Interface
Outline:
Declare global variable 'cog'
Store private frame table
Declare methods
Storing new frames
Create new widgets
Yield to cog interface
Refresh cog interface
--]]
--Table to hold cog library
local cog = {}
--Table to hold default cog widget objects
cog... | gpl-3.0 |
Armyluix/darkstar | scripts/globals/items/green_quiche.lua | 35 | 1461 | -----------------------------------------
-- ID: 5170
-- Item: green_quiche
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Agility 1
-- Vitality -1
-- Ranged ACC % 7
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
daurnimator/lredis | lredis/protocol.lua | 1 | 2920 | -- Documentation on the redis protocol found at http://redis.io/topics/protocol
-- Encode a redis bulk string
local function encode_bulk_string(str)
assert(type(str) == "string")
return string.format("$%d\r\n%s\r\n", #str, str)
end
-- Encode a redis request
-- Requests are always just an array of bulk strings
loca... | mit |
PARADOXTEAM/ParadoxBot | plugins/plugins.lua | 3 | 5197 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | agpl-3.0 |
ElectroDuk/QuackWars | garrysmod/gamemodes/Basewars/entities(maybe_outdated)/weapons/weapon_spiderweb/shared.lua | 2 | 11341 | --SpiderMod SpiderWeb Weapon shared code
--Author: ancientevil
--Contact: facepunch.com
--Date: 22 March 2009
--Notes: Primary fire while in the air to shoot a web line. Weblines act like real Spidey weblines in that
-- they do not (much) stretch or pull you in like a grappeling hook. Instead, they are fixed le... | mit |
Armyluix/darkstar | scripts/globals/abilities/devotion.lua | 44 | 1670 | -----------------------------------
-- Ability: Devotion
-- Sacrifices HP to grant a party member the same amount in MP.
-- Obtained: White Mage Level 75
-- Recast Time: 0:10:00
-- Duration: Instant
-- Target: Party member, cannot target self.
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
abriasffxi/darkstar | scripts/globals/abilities/devotion.lua | 44 | 1670 | -----------------------------------
-- Ability: Devotion
-- Sacrifices HP to grant a party member the same amount in MP.
-- Obtained: White Mage Level 75
-- Recast Time: 0:10:00
-- Duration: Instant
-- Target: Party member, cannot target self.
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
sum2012/mame | 3rdparty/lua-zlib/test.lua | 45 | 5882 | print "1..9"
local src_dir, build_dir = ...
package.path = (src_dir or "./") .. "?.lua;" .. package.path
package.cpath = (build_dir or "./") .. "?.so;" .. package.cpath
local tap = require("tap")
local lz = require("zlib")
local ok = tap.ok
local table = require("table")
local io = require("io")
function... | gpl-2.0 |
abriasffxi/darkstar | scripts/zones/Valkurm_Dunes/npcs/Tsunashige_IM.lua | 14 | 3324 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Tsunashige, I.M.
-- Outpost Conquest Guards
-- @pos 139.394 -7.885 100.384 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
re... | gpl-3.0 |
Armyluix/darkstar | scripts/zones/Crawlers_Nest_[S]/Zone.lua | 28 | 1329 | -----------------------------------
--
-- Zone: Crawlers_Nest_[S] (171)
--
-----------------------------------
package.loaded["scripts/zones/Crawlers_Nest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Crawlers_Nest_[S]/TextIDs");
------... | gpl-3.0 |
moteus/lua-path | lua/path/win32/fs.lua | 2 | 36080 | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2013-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENCE' document
--
-- This file is part of lua-path library.
--
-----... | mit |
Armyluix/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Adamantking_Effigy.lua | 12 | 3434 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Adamantking Effigy
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
-----... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.