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
Arcscion/Shadowlyre
scripts/zones/Metalworks/npcs/Topuru-Kuperu.lua
3
1057
----------------------------------- -- Area: Metalworks -- NPC: Topuru-Kuperu -- Type: Standard NPC -- @zone 237 -- !pos 28.284 -17.39 42.269 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; require("scripts...
gpl-3.0
jono659/enko
scripts/zones/Windurst_Waters/npcs/Rukuku.lua
36
1417
----------------------------------- -- Area: Windurst Waters -- NPC: Rukuku -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 130 -6 160 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- r...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Misareaux_Coast/npcs/_0p0.lua
3
2580
----------------------------------- -- Area: Misareaux Coast -- NPC: Dilapidated Gate -- !pos 260 9 -435 25 ----------------------------------- package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zones/Misareaux_Coast...
gpl-3.0
jono659/enko
scripts/zones/Spire_of_Mea/npcs/_0l2.lua
36
1313
----------------------------------- -- Area: Spire_of_Mea -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Mea/TextIDs"); ---------------...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Altar_Room/Zone.lua
32
1558
----------------------------------- -- -- Zone: Altar_Room (152) -- ----------------------------------- package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Altar_Room/TextIDs"); ----------------------------------- --...
gpl-3.0
jono659/enko
scripts/zones/Cloister_of_Storms/bcnms/trial-size_trial_by_lightning.lua
13
2437
----------------------------------- -- Area: Cloister of Storms -- BCNM: Trial by Lightning ----------------------------------- package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("script...
gpl-3.0
spawnazzo/luci
libs/core/luasrc/model/uci.lua
86
10653
--[[ LuCI - UCI model Description: Generalized UCI model FileId: $Id$ License: Copyright 2008 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...
apache-2.0
joewalker/prosody-modules
mod_blocking/mod_blocking.lua
32
5669
local jid_split = require "util.jid".split; local st = require "util.stanza"; local xmlns_blocking = "urn:xmpp:blocking"; module:add_feature("urn:xmpp:blocking"); -- Add JID to default privacy list function add_blocked_jid(username, host, jid) local privacy_lists = datamanager.load(username, host, "privacy") or {li...
mit
Arcscion/Shadowlyre
scripts/zones/Balgas_Dais/bcnms/saintly_invitation.lua
3
2008
----------------------------------- -- Area: Horlais Peak -- Name: Saintly Invitation -- !pos 299 -123 345 146 ----------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/zones/Balgas_Dais/Tex...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Northern_San_dOria/npcs/Macuillie.lua
3
2705
----------------------------------- -- Area: Northern San d'Oria -- NPC: Macuillie -- Type: Guildworker's Union Representative -- @zone 231 -- !pos -191.738 11.001 138.656 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/keyitems"); requ...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/stick_of_cotton_candy.lua
12
1231
----------------------------------------- -- ID: 5709 -- Item: Cotton Candy -- Food Effect: 5 Min, All Races ----------------------------------------- -- MP % 10 Cap 200 -- MP Healing 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemChec...
gpl-3.0
kmx/mirror-im
html/examples/process.lua
1
1763
require"imlua" require"imlua_process" function save_histogram (hist, filename, format) local height = 200 -- altura da imagem local max = math.max(unpack(hist)) -- pega o maior valor do histograma local n = table.getn(hist) + 1 -- zero-based local image = im.ImageCreate(n, height, im.GRAY, im.BYTE) -- cria a image...
mit
N0U/Zero-K
effects/heatray.lua
17
2758
-- heatray_ceg -- heatray_hit return { ["heatray_hit"] = { usedefaultexplosions = false, cinder = { air = true, class = [[heatcloud]], count = 1, ground = true, water = true, properties = { alwaysvis...
gpl-2.0
jono659/enko
scripts/zones/Ordelles_Caves/npcs/Grounds_Tome.lua
34
1140
----------------------------------- -- Area: Ordelle's Caves -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Moh_Gates/Zone.lua
17
1206
----------------------------------- -- -- Zone: Moh Gates -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Moh_Gates/TextIDs"] = nil; require("scripts/zones/Moh_Gates/TextIDs"); ----------------------------------- -- onInitialize ----------------------------...
gpl-3.0
jono659/enko
scripts/zones/Northern_San_dOria/npcs/Madaline.lua
36
1615
----------------------------------- -- Area: Northern San d'Oria -- NPC: Madaline -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests...
gpl-3.0
N0U/Zero-K
units/chicken_spidermonkey.lua
3
3308
unitDef = { unitname = [[chicken_spidermonkey]], name = [[Spidermonkey]], description = [[All-Terrain Support]], acceleration = 0.36, brakeRate = 0.205, buildCostEnergy = 0, buildCostMetal = 0, builder = false, buildPic ...
gpl-2.0
Arcscion/Shadowlyre
scripts/zones/Port_Windurst/npcs/Hakkuru-Rinkuru.lua
3
7576
----------------------------------- -- Area: Port Windurst -- NPC: Hakkuru-Rinkuru -- Involved In Quest: Making Amends -- Starts and Ends Quest: Wonder Wands -- !pos -111 -4 101 240 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; package.loaded["scripts/globals/missions...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Bibiki_Bay/npcs/qm1.lua
3
1377
----------------------------------- -- Area: Bibiki Bay -- NPC: ??? (qm1) -- Notes: Used to spawn Shen -- !pos -115.108 0.300 -724.664 4 ----------------------------------- package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bibiki_Bay/TextIDs"); ---...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/effects/voidstorm.lua
35
1337
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_STR,math.floor(effect:getPower()/2)); target:addMod(MOD_DEX,math.floor(effect:g...
gpl-3.0
joewalker/prosody-modules
mod_openid/mod_openid.lua
32
15176
local usermanager = require "core.usermanager" local httpserver = require "net.httpserver" local jidutil = require "util.jid" local hmac = require "hmac" local base64 = require "util.encodings".base64 local humane = require "util.serialization".serialize -- Configuration local base = "openid" local openidns = "http:...
mit
N0U/Zero-K
effects/unused_charlize.lua
25
30008
-- charlize_7 -- charlize_3 -- charlize_2 -- charlize_14 -- charlize_1 -- charlize_17 -- charlize_6 -- charlize_4 -- charlize_10 -- charlize_11 -- charlize_12 -- charlize_21 -- charlize -- charlize_18 -- charlize_8 -- charlize_19 -- charlize_ani -- charlize_9 -- charlize_15 -- charlize_13 -- charlize_5 -- charlize_16 -...
gpl-2.0
jono659/enko
scripts/globals/items/prized_seafood_stewpot.lua
36
1865
----------------------------------------- -- ID: 5240 -- Item: Prized Seafood Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 100 -- MP +20 -- Dexterity 2 -- Vitality 2 -- Agility 2 -- Mind 2 -- HP Recovered while healing 9 -- MP Recovered while he...
gpl-3.0
N0U/Zero-K
LuaRules/Gadgets/CustomUnitShaders/UnitMaterials/1_normalmapping.lua
17
4460
-- $Id$ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- local materials = { normalMappedS3o = { shaderDefinitions = { "#define use_perspective_correct_shadows", "#define use_nor...
gpl-2.0
Arcscion/Shadowlyre
scripts/zones/Port_Windurst/npcs/Sheia_Pohrichamaha.lua
17
1503
----------------------------------- -- Area: Port Windurst -- NPC: Sheia Pohrichamaha -- Only sells when Windurst controlls Fauregandi Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Port...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Bastok_Markets/npcs/Reinberta.lua
3
2148
----------------------------------- -- Area: Bastok Markets -- NPC: Reinberta -- Type: Goldsmithing Guild Master -- !pos -190.605 -7.814 -59.432 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok_Market...
gpl-3.0
N0U/Zero-K
LuaRules/Gadgets/game_share_mode.lua
3
12462
function gadget:GetInfo() return { name = "Share mode", desc = "Allows one to share control of resources and units with other players.", author = "_Shaman", date = "6-23-2016", license = "Do whatever you want with it, just give credit", layer = 0, enabled = true, } end -- Remove unsync and remov...
gpl-2.0
Arcscion/Shadowlyre
scripts/zones/Balgas_Dais/mobs/Maat.lua
14
1549
----------------------------------- -- Area: Balga Dais -- MOB: Maat -- Genkai 5 Fight ----------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Balgas_Dais/TextIDs"); ----------------------------------- -- onMobSpawn Act...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Port_San_dOria/npcs/Artinien.lua
17
1401
----------------------------------- -- Area: Port San d'Oria -- NPC: Artinien -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/quests"); --...
gpl-3.0
Geoffrotism/ProjectPorcupine
Assets/StreamingAssets/LUA/Furniture.lua
5
29895
------------------------------------------------------- -- Project Porcupine Copyright(C) 2016 Team Porcupine -- This program comes with ABSOLUTELY NO WARRANTY; This is free software, -- and you are welcome to redistribute it under certain conditions; See -- file LICENSE, which is part of this source code package, for ...
gpl-3.0
markofu/scripts
nmap/nmap/nselib/mysql.lua
3
16921
--- -- Simple MySQL Library supporting a very limited subset of operations. -- -- http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol -- -- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html -- -- @author "Patrik Karlsson <patrik@cqure.net>" local bin = require "bin" local bit = require "bi...
gpl-2.0
develephant/mod_arthur
arthur/ApiClass.lua
1
9849
--============================================================================-- --== mod_arthur - api --== An oauth.io module for CoronaSDK --== (c)2015 Chris Byerley <@develephant> --============================================================================-- local Class = require('arthur.30log') local Utils = requ...
mit
Arcscion/Shadowlyre
scripts/zones/RuAun_Gardens/mobs/Byakko.lua
3
1586
----------------------------------- -- Area: Ru'Aun Gardens -- NM: Byakko ----------------------------------- package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/zones/RuAun_Gardens/TextIDs"); require("scripts/globals/status"); require("scripts/globals/msg...
gpl-3.0
vieiro/luacons
reader.lua
1
3261
-- -- cons cells using Lua tables -- -- (C) 2014 Antonio Vieiro (antonio@antonioshome.net) -- MIT License -- local cells = require 'cells' local lexer = require 'lexer' -- P: parser local P = {} P.read_next_token = function (parser) parser.token = parser.next_token parser.next_token = parser.lexer:next_tok...
mit
jono659/enko
scripts/zones/Northern_San_dOria/npcs/HomePoint#2.lua
12
1261
----------------------------------- -- Area: Northern San dOria -- NPC: HomePoint#2 -- @pos 10 -0.2 95 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Northern_San_dOria/TextIDs"); require(...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/aspir_knife.lua
7
1093
----------------------------------------- -- ID: 16509 -- Item: Aspir Knife -- Additional effect: MP Drain ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onAdditionalEffect(playe...
gpl-3.0
jono659/enko
scripts/zones/Dragons_Aery/Zone.lua
5
1739
----------------------------------- -- -- Zone: Dragons_Aery (154) -- ----------------------------------- package.loaded["scripts/zones/Dragons_Aery/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Dragons_Aery/T...
gpl-3.0
jono659/enko
scripts/zones/Metalworks/npcs/Alois.lua
13
2114
----------------------------------- -- Area: Metalworks -- NPC: Alois -- Involved in Missions: Wading Beasts -- @pos 96 -20 14 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("s...
gpl-3.0
jono659/enko
scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm4.lua
15
1197
----------------------------------- -- Area: Alzadaal Undersea Ruins -- NPC: ??? (Spawn Wulgaru(ZNM T2)) -- @pos -22 -4 204 72 ----------------------------------- package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Alzadaal_Undersea_Ruins/T...
gpl-3.0
jono659/enko
scripts/zones/Ordelles_Caves/npcs/Stalagmite.lua
9
2447
----------------------------------- -- Area: Ordelles Caves -- NPC: Stalagmite -- Involved In Quest: Sharpening the Sword -- @pos -51 0.1 3 193 ----------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settin...
gpl-3.0
N0U/Zero-K
effects/gundam_xamelimpact.lua
18
12632
-- xamelimpact -- smallxamelimpact return { ["xamelimpact"] = { dirta = { air = true, class = [[CSimpleParticleSystem]], count = 1, properties = { airdrag = 0.7, alwaysvisible = true, colormap = [[0...
gpl-2.0
Arcscion/Shadowlyre
scripts/globals/items/fuscina.lua
7
1060
----------------------------------------- -- ID: 18104 -- Item: Fuscina -- Additional Effect: Lightning Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onAdditionalEffect(p...
gpl-3.0
teto/lispmob32
openWRT/model-cbi-lisp.lua
1
1860
m = Map("lispd", "Network") -- We want to edit the uci config file /etc/config/lispd s = m:section(TypedSection, "map-resolver", "Map Resolver") s:option(Value, "address", "Address", "Encapsulated Map-Requests are sent to this map resolver") s = m:section(TypedSection, "map-server", "Map Server") s:...
gpl-2.0
Arcscion/Shadowlyre
scripts/zones/Ilrusi_Atoll/Zone.lua
17
1420
----------------------------------- -- -- Zone: Ilrusi_Atoll -- zone 55 ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil; require("scripts/zones/Ilrusi_Atoll/TextIDs"); require("scripts/globals/settings"); ----------------------------...
gpl-3.0
jono659/enko
scripts/zones/Bastok_Mines/npcs/Crying_Wind_IM.lua
28
4888
----------------------------------- -- Area: Bastok Mines -- NPC: Crying Wind, 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 Miss...
gpl-3.0
imanmafi/Algorithm-Implementations
Heap_Sort/Lua/Yonaba/heapsort_test.lua
27
1353
-- Tests for heapsort.lua local heapsort = require 'heapsort' 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 end local stat...
mit
Arcscion/Shadowlyre
scripts/globals/weaponskills/retribution.lua
25
1663
----------------------------------- -- Retribution -- Staff weapon skill -- Skill Level: 230 -- Delivers a single-hit attack. Damage varies with TP. -- In order to obtain Retribution, the quest Blood and Glory must be completed. -- Despite the appearance of throwing the staff, this is not a long-range Weapon Skill like...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Windurst_Woods/npcs/Kyaa_Taali.lua
3
1807
----------------------------------- -- Area: Windurst Woods -- NPC: Kyaa Taali -- Type: Bonecraft Image Support -- !pos -10.470 -6.25 -141.700 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); re...
gpl-3.0
hypnoscope/let-s-code-an-indie-game
episode_21/src/math/rectangle.lua
22
1539
local vector = require("src.math.vector") local rectangle = {} local _axisOverlap = function (min1, min2, max1, max2) return (min1 < max2 and max1 > min2) end local overlaps = function (self, another) local xAxisOverlap = _axisOverlap( self.x, another.x, self.x + self.width, another.x + another.w...
mit
Arcscion/Shadowlyre
scripts/zones/The_Eldieme_Necropolis/npcs/_5fg.lua
3
1246
----------------------------------- -- Area: The Eldieme Necropolis -- NPC: Titan's Gate -- !pos 100 -34 -71 195 ----------------------------------- package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil; ----------------------------------- require("scripts/zones/The_Eldieme_Necropolis/TextIDs"); requir...
gpl-3.0
N0U/Zero-K
units/shipcon.lua
5
2159
unitDef = { unitname = [[shipcon]], name = [[Mariner]], description = [[Construction Ship, Builds at 7.5 m/s]], acceleration = 0.051375, activateWhenBuilt = true, brakeRate = 0.061, buildCostMetal = 220, buildDistance =...
gpl-2.0
jono659/enko
scripts/zones/Kazham-Jeuno_Airship/npcs/Oslam.lua
12
2037
----------------------------------- -- Area: Kazham-Jeuno Airship -- NPC: Oslam -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham-Jeuno_Airship/TextIDs"] = nil; require("scripts/zones/Kazham-Jeuno_Airship/TextIDs"); ----------------------------------- -- onTrade Action --...
gpl-3.0
jono659/enko
scripts/globals/items/plate_of_royal_sautee.lua
35
1749
----------------------------------------- -- ID: 4295 -- Item: plate_of_royal_sautee -- Food Effect: 240Min, All Races ----------------------------------------- -- Strength 5 -- Agility 1 -- Intelligence -2 -- Attack % 20 -- Attack Cap 80 -- Ranged ATT % 20 -- Ranged ATT Cap 80 -- Stun Resist 5 -----------...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Abyssea-La_Theine/mobs/Lusion.lua
17
1817
----------------------------------- -- Area: Abyssea - La Theine -- MOB: Luison ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) setLocalVar("transformTime", os.time()) end; --------------------------------...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/steamed_catfish.lua
12
1795
----------------------------------------- -- ID: 4557 -- Item: steamed_catfish -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 30 -- Magic % 1 (cap 110) -- Dex 3 -- Intelligence 1 -- Mind -3 -- Earth Res 10 -- Ranged Accuracy +6% (cap 15) ----------------------------------------- ...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/black_eel.lua
12
1411
----------------------------------------- -- ID: 4429 -- Item: Black Eel -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 -- Evasion 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCh...
gpl-3.0
N0U/Zero-K
LuaRules/Gadgets/CAI/astar.lua
9
7268
--------------------------------------------------------------------- --[[ author: quantum GPL v2 or later http://www.policyalmanac.org/games/aStarTutorial.htm http://en.wikipedia.org/wiki/A*_search_algorithm use: override IsBlocked, GetDistance, etc and run aStar.GetPath -- example -----------------------------...
gpl-2.0
monsieurzhang/OpenNMT
onmt/translate/BeamSearcher.lua
4
9032
--[[ Class for managing the internals of the beam search process. hyp1---hyp1---hyp1 -hyp1 \ / hyp2 \-hyp2 /-hyp2--hyp2 / \ hyp3---hyp3---hyp3 -hyp3 ======================== Takes care of beams. --]] local BeamSearcher = torch.class('BeamSearcher') ...
mit
n1ghtmare/Algorithm-Implementations
Bogosort/Lua/Yonaba/bogosort.lua
27
1070
-- A custom array shuffle implementation -- This is not part of the Bogosort algorithm local function shuffle(list) local n = #list for i = 1, n do local j, k = math.random(1,n), math.random(1,n) list[j], list[k] = list[k], list[j] end return list end -- Checks if an array is sorted local function is_sorted...
mit
k-yak/corona_sdk_base_project
coronaProject/red.lua
1
10804
module(...) -- This file is for use with Corona Game Edition -- -- The function getSpriteSheetData() returns a table suitable for importing using sprite.newSpriteSheetFromData() -- -- Usage example: -- local zwoptexData = require "ThisFile.lua" -- local data = zwoptexData.getSpriteSheetData() -- local spriteSh...
mit
Arcscion/Shadowlyre
scripts/zones/Selbina/npcs/Jimaida.lua
3
1295
----------------------------------- -- Area: Selbina -- NPC: Jimaida -- Involved in Quests: Under the sea -- !pos -15 -2 -16 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scripts/glob...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/yellow_curry_bun_+1.lua
12
2179
----------------------------------------- -- ID: 5763 -- Item: yellow_curry_bun_+1 -- Food Effect: 60 min, All Races ----------------------------------------- -- TODO: Group effects -- Health Points 30 -- Strength 5 -- Vitality 2 -- Agility 3 -- Intelligence -2 -- Attack 22% (caps @ 85) -- Ranged Attack 22% (caps @ 85)...
gpl-3.0
bungle/iresty
libs/resty/validation.lua
1
19614
local setmetatable = setmetatable local getmetatable = getmetatable local rawget = rawget local select = select local tostring = tostring local tonumber = tonumber local type = type local pairs = pairs local ipairs = ipairs local error = error local match = string.match local lower = string.lower local upper = string.u...
bsd-2-clause
jono659/enko
scripts/globals/items/rice_ball.lua
14
1508
----------------------------------------- -- ID: 4405 -- Item: rice_ball -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 10, Vit +2, Dex -1, hHP +1 (Def +50)*enhances rice ball effect ----------------------------------------- require("scripts/globals/status"); require("scripts...
gpl-3.0
jono659/enko
scripts/zones/Empyreal_Paradox/mobs/Selh'teus.lua
6
1571
----------------------------------- -- Area: Empyreal Paradox -- NPC: Selh'teus -- Chains of Promathia 8-4 BCNM Fight ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("/scripts/zones/Empyreal_Paradox/TextIDs"); function onMobInitialize(mob) mob:addM...
gpl-3.0
Arcscion/Shadowlyre
scripts/zones/Riverne-Site_B01/TextIDs.lua
3
1227
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6386; -- Obtained: <item> GIL_OBTAINED = 6387; -- Obtained <number> gil KEYITEM_OBTAINED = 6389; -- Obtain...
gpl-3.0
asfdfdfd/fceuxq
output/luaScripts/PunchOutChallenge.lua
9
10402
--Mike Tyson's Punch Out!! --Intended to Challenge the PROs! --adelikat local NumStars = 0x0342 local UntilStar = 0x0347 --Number of punches to land until Mac can get a star local NumHearts = 0x0321 --Number of hearts, single digit local NumHearts10 = 0x0322 --Number of hearts, 10's digit local CurrentRound...
gpl-2.0
jono659/enko
scripts/zones/Apollyon/mobs/Thunder_Elemental.lua
119
2423
----------------------------------- -- Area: Apollyon SW -- NPC: elemental ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); --------------------------...
gpl-3.0
vieiro/luacons
lexer.lua
1
3672
-- -- cons cells using Lua tables -- -- (C) 2014 Antonio Vieiro (antonio@antonioshome.net) -- MIT License -- -- L : Lexer local L = {} local update_linecount = function(lexer, start_index, end_index) for i = start_index, end_index do if lexer.txt:byte(i) == 10 then lexer.line = lexer.line + 1 lexer...
mit
jono659/enko
scripts/globals/weaponskills/upheaval.lua
30
1538
----------------------------------- -- Upheaval -- Great Axe weapon skill -- Skill Level: 357 -- Delivers a four-hit attack. Damage varies with TP. -- In order to obtain Upheaval, the quest Martial Mastery must be completed. -- Aligned with Flame Gorget, Light Gorget & Shadow Gorget. -- Aligned with Flame Belt, ...
gpl-3.0
rigeirani/sbbb
plugins/invite.lua
47
1193
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
jono659/enko
scripts/zones/Bastok_Mines/npcs/Ranpi-Pappi.lua
38
1047
----------------------------------- -- Area: Bastok Mines -- NPC: Ranpi-Pappi -- Type: Standard NPC -- @zone: 234 -- @pos -4.535 -1.044 49.881 -- -- Auto-Script: Requires Verification (Verified by Brando) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scri...
gpl-3.0
N0U/Zero-K
units/chicken_digger.lua
6
2953
unitDef = { unitname = [[chicken_digger]], name = [[Digger]], description = [[Burrowing Scout/Raider]], acceleration = 0.36, activateWhenBuilt = true, brakeRate = 0.205, buildCostEnergy = 0, buildCostMetal = 0, builder = false, ...
gpl-2.0
jammet/MCServer
MCServer/Plugins/APIDump/Hooks/OnExploding.lua
8
3000
return { HOOK_EXPLODING = { CalledWhen = "An explosion is about to be processed", DefaultFnName = "OnExploding", -- also used as pagename Desc = [[ This hook is called before an explosion has been processed in a world.</p> <p> See also {{OnExploded|HOOK_EXPLODED}} for a similar hook called after the e...
apache-2.0
jono659/enko
scripts/zones/Windurst_Waters_[S]/npcs/Sahnn_Dhansett.lua
38
1054
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Sahnn Dhansett -- Type: Standard NPC -- @zone: 94 -- @pos 112.820 -3.122 47.857 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/serving_of_red_curry.lua
5
2163
----------------------------------------- -- ID: 4298 -- Item: serving_of_red_curry -- Food Effect: 3 hours, All Races ----------------------------------------- -- HP +25 -- Strength +7 -- Agility +1 -- Intelligence -2 -- HP recovered while healing +2 -- MP recovered while healing +1 -- Attack +23% (Cap: 150@652 Base A...
gpl-3.0
jono659/enko
scripts/zones/Al_Zahbi/npcs/Mihli_Aliapoh.lua
38
1034
----------------------------------- -- Area: Al Zahbi -- NPC: Mihli Aliapoh -- Type: Waterserpent General -- @zone: 48 -- @pos -22.615 -7 78.907 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ---------------...
gpl-3.0
monsieurzhang/OpenNMT
test/onmt/DictTest.lua
8
3341
require('onmt.init') local path = require('pl.path') local tester = ... local dictTest = torch.TestSuite() function dictTest.createEmptyDict() local d = onmt.utils.Dict.new() tester:eq(d:size(), 0) end function dictTest.createSimpleDict() local d = onmt.utils.Dict.new() d:add('foo') d:add('bar') d:add(...
mit
jono659/enko
scripts/zones/Quicksand_Caves/npcs/_5s0.lua
19
1270
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- @pos -21 0 -60 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Quicksand_Caves...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/serving_of_bavarois_+1.lua
12
1282
----------------------------------------- -- ID: 5730 -- Item: Serving of Bavarois +1 -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- HP 25 -- Intelligence 4 -- hHP +4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
jono659/enko
scripts/globals/spells/dark_carol.lua
13
1501
----------------------------------------- -- Spell: Dark Carol -- Increases dark resistance for party members within the area of effect. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -------------...
gpl-3.0
AegisEmu/AegisEmu
src/scripts/LuaScripts/QUEST - Moonglade.lua
1
1806
--[[ ****************************************************************** * _____ ___ _ * * ( _ ) ( _`\ _ ( )_ * * | (_) | _ __ ___ | (_(_) ___ _ __ (_) _ _ | ,_) * * | _ |( '__)/'___)`\__ \ /'___)...
agpl-3.0
jotson/1gam-feb2013
pointer.lua
1
1547
-- February2013 -- Copyright © 2013 John Watson <john@watson-net.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 -- us...
mit
jono659/enko
scripts/zones/Windurst_Walls/npcs/Tsuaora-Tsuora.lua
38
1043
----------------------------------- -- Area: Windurst Walls -- NPC: Tsuaora-Tsuora -- Type: Standard NPC -- @zone: 239 -- @pos 71.489 -3.418 -67.809 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ------...
gpl-3.0
N0U/Zero-K
units/hovershotgun.lua
3
3189
unitDef = { unitname = [[hovershotgun]], name = [[Punisher]], description = [[Shotgun Hover]], acceleration = 0.048, activateWhenBuilt = true, brakeRate = 0.043, buildCostMetal = 300, builder = false, buildPic = [[hoverso...
gpl-2.0
N0U/Zero-K
LuaRules/Configs/StartBoxes/TheHunters-v3.lua
17
1313
return { [0] = { startpoints = { {860,451}, }, boxes = { { {819,410}, {901,410}, {901,492}, {819,492}, }, }, }, [1] = { startpoints = { {7496,7578}, }, boxes = { { {7455,7537}, {7537,7537}, {7537,7619}, {7455,7619}, }, }, }, [2] = { startpoints = ...
gpl-2.0
Arcscion/Shadowlyre
scripts/zones/Cloister_of_Gales/npcs/Wind_Protocrystal.lua
17
1950
----------------------------------- -- Area: Cloister of Gales -- NPC: Wind Protocrystal -- Involved in Quests: Trial by Wind, Trial Size Trial By Wind -- @zone -361 1 -381 201 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ----------------------------------- requ...
gpl-3.0
PROXiCiDE/MacroExtender
Lib/Macros.lua
1
8964
ME_MacroFrame_Saved = nil function CheckMacroSyntax( macro ) local seps = {} local seps_count = 0 for _,data in splitIter(";",macro) do table.insert(seps,data) seps_count = seps_count + 1 end local is_closed = 0 local results = fa...
gpl-2.0
Arcscion/Shadowlyre
scripts/zones/Abyssea-Altepa/npcs/qm11.lua
3
1541
----------------------------------- -- Zone: Abyssea-Altepa -- NPC: qm11 (???) -- Spawns Rani -- !pos ? ? ? 218 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/status"); ----------------------------------- -- onTrigger Action ----------------------------------- funct...
gpl-3.0
jono659/enko
scripts/zones/Castle_Oztroja/npcs/_47j.lua
13
1569
----------------------------------- -- Area: Castle Oztroja -- NPC: _47j (Torch Stand) -- Notes: Opens door _472 near password #1 -- @pos -62.533 -1.859 -30.634 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require(...
gpl-3.0
Arcscion/Shadowlyre
scripts/globals/items/serving_of_flounder_meuniere_+1.lua
12
1659
----------------------------------------- -- 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 -4 ---------------------------------------...
gpl-3.0
jono659/enko
scripts/zones/Bhaflau_Thickets/Zone.lua
27
3711
----------------------------------- -- -- Zone: Bhaflau_Thickets (52) -- ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/globals/settings"); requir...
gpl-3.0
mohammad8/12345
plugins/Fabanhammer.lua
14
11813
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
zhangxiangxiao/nn
SpatialBatchNormalization.lua
12
7102
--[[ This file implements Batch Normalization as described in the paper: "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift" by Sergey Ioffe, Christian Szegedy This implementation is useful for inputs coming from convolution l...
bsd-3-clause
Arcscion/Shadowlyre
scripts/zones/Bastok_Mines/npcs/Rodellieux.lua
17
1433
----------------------------------- -- Area: Bastok_Mines -- NPC: Rodellieux -- Only sells when Bastok controlls Fauregandi Region ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones...
gpl-3.0
siktirmirza/croco
plugins/admin.lua
1
2303
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(receiver, '...
gpl-2.0
jono659/enko
scripts/globals/items/pot_of_honey.lua
35
1143
----------------------------------------- -- ID: 4370 -- Item: pot_of_honey -- Food Effect: 5Min, All Races ----------------------------------------- -- Magic Regen While Healing 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIt...
gpl-3.0
alexandregz/prosody-logs
lib/inspect.lua
14
8348
local inspect ={ _VERSION = 'inspect.lua 2.0.0', _URL = 'http://github.com/kikito/inspect.lua', _DESCRIPTION = 'human-readable representations of tables', _LICENSE = [[ MIT LICENSE Copyright (c) 2013 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining a ...
mit
jono659/enko
scripts/zones/Mhaura/npcs/Koh_Lenbalalako.lua
19
2170
----------------------------------- -- Area: Mhaura -- NPC: Koh Lenbalalako -- Type: Standard NPC -- @pos -64.412 -17 29.213 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); require("scripts/g...
gpl-3.0
Geigerkind/ModifiedPowerAurasTBC
libs/LibStub/LibStub.lua
184
1367
-- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info -- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVI...
gpl-3.0