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
Scavenge/darkstar
scripts/zones/Norg/npcs/Shivivi.lua
14
3175
----------------------------------- -- Area: Norg -- NPC: Shivivi -- Starts Quest: Secret of the Damp Scroll -- @zone 252 -- @pos 68.729 -6.281 -6.432 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require...
gpl-3.0
Scavenge/darkstar
scripts/globals/spells/bluemagic/cocoon.lua
28
1337
----------------------------------------- -- Spell: Cocoon -- Enhances defense -- Spell cost: 10 MP -- Monster Type: Vermin -- Spell Type: Magical (Earth) -- Blue Magic Points: 1 -- Stat Bonus: VIT+3 -- Level: 8 -- Casting Time: 1.75 seconds -- Recast Time: 60 seconds -- Duration: 90 seconds -- -- Combos: None -------...
gpl-3.0
ghoghnousteam/ghoghnous
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- 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(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
roboplus12/roboplus
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- 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(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
LuaRules/Gadgets/unit_morph.lua
2
41395
-- $Id: unit_morph.lua 4651 2009-05-23 17:04:46Z carrepairer $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_morph.lua -- brief: Adds unit morphing command -- author: Dave Rodgers (imp...
gpl-2.0
Scavenge/darkstar
scripts/commands/changesjob.lua
17
1078
--------------------------------------------------------------------------------------------------- -- func: changesjob -- desc: Changes the players current subjob. --------------------------------------------------------------------------------------------------- require("scripts/globals/status"); cmdprops = { p...
gpl-3.0
angking0802wu/UniLua
Assets/StreamingAssets/LuaRoot/test/vararg.lua
9
2659
print('testing vararg') _G.arg = nil function f(a, ...) local arg = {n = select('#', ...), ...} for i=1,arg.n do assert(a[i]==arg[i]) end return arg.n end function c12 (...) assert(arg == nil) local x = {...}; x.n = #x local res = (x.n==2 and x[1] == 1 and x[2] == 2) if res then res = 55 end return r...
mit
Scavenge/darkstar
scripts/zones/Arrapago_Reef/npcs/qm4.lua
30
1327
----------------------------------- -- Area: Arrapago Reef -- NPC: ??? (Spawn Nuhn(ZNM T3)) -- @pos -451 -7 389 54 ----------------------------------- package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Arrapago_Reef/TextIDs"); require("scripts/global...
gpl-3.0
Scavenge/darkstar
scripts/zones/Castle_Oztroja/npcs/_m70.lua
14
1251
----------------------------------- -- Area: Castle Oztroja -- NPC: _m70 (Torch Stand) -- Involved in Mission: Magicite -- @pos -97.134 24.250 -105.979 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/key...
gpl-3.0
Scavenge/darkstar
scripts/zones/Windurst_Woods/npcs/Spare_Three.lua
17
1507
----------------------------------- -- Area: Windurst Woods -- NPC: Spare Three -- Working 100% -- Involved in quest: A Greeting Cardian ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/globals/quests"] = nil; require("scripts/globals/quests"); package.loaded["scripts/...
gpl-3.0
Scavenge/darkstar
scripts/globals/spells/absorb-int.lua
9
1360
-------------------------------------- -- Spell: Absorb-INT -- Steals an enemy's intelligence. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast -------------...
gpl-3.0
ania1234/EarMod
scripts/brains/earbrain.lua
1
2636
require "behaviours/follow" require "behaviours/wander" require "behaviours/faceentity" require "behaviours/panic" require "behaviours/chattynode" require "behaviours/doaction" require "behaviours/keepcircle" require "behaviours/chaseandattack" require "behaviours/runaway" local MIN_FOLLOW_DIST = 0 local MAX_FOLLOW_DI...
gpl-3.0
Scavenge/darkstar
scripts/zones/North_Gustaberg_[S]/npcs/Cavernous_Maw.lua
29
1418
----------------------------------- -- Area: North Gustaberg [S] -- NPC: Cavernous Maw -- @pos 466 0 479 88 -- Teleports Players to North Gustaberg ----------------------------------- package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyite...
gpl-3.0
taxler/radish
lua/parse/char/utf8/set/init.lua
1
1028
local lib = {} local aliases = { C = 'Other'; Cc = 'Other.Control'; Cf = 'Other.Format'; Cs = 'Other.Surrogate'; Co = 'Other.Private_Use'; L = 'Letter'; Ll = 'Letter.Lowercase'; Lu = 'Letter.Uppercase'; Lt = 'Letter.Titlecase'; Lo = 'Letter.Other'; Lm = 'Letter.Modifier'; M = 'Mark'; Mc = 'Mark...
mit
Scavenge/darkstar
scripts/globals/effects/bust.lua
35
1737
----------------------------------- -- -- -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) if (effect:getSubType() == MOD_DMG) then target:addMod(MO...
gpl-3.0
PicoleDeLimao/Ninpou2
game/dota_addons/ninpou2/scripts/vscripts/items/bijuu_chakra_armor.lua
1
1386
--[[ Author: PicoleDeLimao Date: 04.09.2016 Implement Bijuu Chakra Armor Shield ]] function InitializeShield(event) local caster = event.caster local ability = event.ability caster.bijuuChakraShieldHealth = ability:GetLevelSpecialValueFor("shield_amount", ability:GetLevel() - 1) local particle = ParticleManag...
apache-2.0
Scavenge/darkstar
scripts/globals/abilities/pets/attachments/tension_spring_ii.lua
27
1092
----------------------------------- -- Attachment: Tension Spring II ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onUseAbility ----------------------------------- function onEquip(pet) pet:addMod(MOD_ATTP, 6) pet:addMod(MOD_RATTP, 6) end funct...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/tavnazian_salad.lua
12
1683
----------------------------------------- -- ID: 4279 -- Item: tavnazian_salad -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Dexterity 4 -- Agility 4 -- Vitality 6 -- Charisma 4 -- Defense % 25 -- Defense Cap 150 ----------------------------------------- requir...
gpl-3.0
Scavenge/darkstar
scripts/zones/Northern_San_dOria/npcs/Amarefice.lua
53
1893
----------------------------------- -- Area: Northern San d'Oria -- NPC: Amarefice -- Type: Woodworking Synthesis Image Support -- @pos -181.506 10.15 259.905 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
yrpen/lua-scripts
pets_system/talkactions/pet_heal.lua
1
1738
-- <talkaction words="!petheal" script="pet_heal.lua" /> function onSay(player, words, param, channel) local petUid = player:getPetUid() if petUid == PETS.CONSTANS.STATUS_DOESNT_EXIST then player:petSystemMessage("You don't have a pet!") elseif petUid == PETS.CONSTANS.STATUS_DEAD then playe...
mit
Scavenge/darkstar
scripts/zones/Bastok_Mines/npcs/Gerbaum.lua
17
2291
----------------------------------- -- Area: Bastok Mines -- NPC: Gerbaum -- Starts & Finishes Repeatable Quest: Minesweeper (100%) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/glob...
gpl-3.0
1yvT0s/luvit
tests/test-tls-peer-certificate.lua
5
2171
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. 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...
apache-2.0
BlockMen/minetest_next
mods/tnt/init.lua
1
10693
tnt = {} -- Default to enabled in singleplayer and disabled in multiplayer local singleplayer = minetest.is_singleplayer() local setting = minetest.setting_getbool("enable_tnt") if (not singleplayer and setting ~= true) or (singleplayer and setting == false) then return end -- loss probabilities array (one in X wil...
gpl-3.0
Scavenge/darkstar
scripts/globals/regimereward.lua
36
9093
------------------------------------------------- -- Regime Reward Database(s) ------------------------------------------------- -- ------------------------------------ -- FoV rewards -- ------------------------------------ function getFoVregimeReward(regimeid) local reward = { [1] = 270, [2] = 285...
gpl-3.0
Scavenge/darkstar
scripts/zones/Mhaura/npcs/Orlando.lua
14
3537
----------------------------------- -- Area: Mhaura -- NPC: Orlando -- Type: Standard NPC -- @pos -37.268 -9 58.047 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); require("scripts/globals/keyit...
gpl-3.0
Scavenge/darkstar
scripts/zones/Windurst_Waters/npcs/Foi-Mui.lua
14
1402
----------------------------------- -- Area: Windurst Waters -- NPC: Foi-Mui -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 126 -6 162 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
Scavenge/darkstar
scripts/zones/Labyrinth_of_Onzozo/mobs/Labyrinth_Manticore.lua
14
1061
----------------------------------- -- Area: Labyrinth of Onzozo -- MOB: Labyrinth Manticore -- Note: Place holder Narasimha ----------------------------------- require("scripts/globals/groundsofvalor"); require("scripts/zones/Labyrinth_of_Onzozo/MobIDs"); ----------------------------------- -- onMobDeath ----------...
gpl-3.0
sleep/mal
lua/printer.lua
45
1770
local string = require('string') local table = require('table') local types = require('types') local utils = require('utils') local M = {} function M._pr_str(obj, print_readably) local _r = print_readably if utils.instanceOf(obj, types.Symbol) then return obj.val elseif types._list_Q(obj) then ...
mpl-2.0
Scavenge/darkstar
scripts/zones/Port_Jeuno/npcs/Narsha.lua
27
1730
----------------------------------- -- Area: Port Jeuno -- NPC: Narsha -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- on...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
gamedata/modularcomms/weapons/heavymachinegun.lua
6
1413
local name = "commweapon_heavymachinegun" local weaponDef = { name = [[Heavy Machine Gun]], accuracy = 1024, alphaDecay = 0.7, areaOfEffect = 96, burnblow = true, craterBoost = 0.15, craterMult = 0.3, customParams...
gpl-2.0
xebecnan/UniLua
Assets/StreamingAssets/LuaRoot/lib/unity_engine.lua
4
1453
local ffi = require("lib.ffi") local function _init(_ENV) assembly("mscorlib") assembly("UnityEngine") using("System") using("UnityEngine") class("Object") class("Vector3") :constructor("Vector3(float, float, float)") :field("float x") :field("float y") :field...
mit
angking0802wu/UniLua
Assets/StreamingAssets/LuaRoot/lib/unity_engine.lua
4
1453
local ffi = require("lib.ffi") local function _init(_ENV) assembly("mscorlib") assembly("UnityEngine") using("System") using("UnityEngine") class("Object") class("Vector3") :constructor("Vector3(float, float, float)") :field("float x") :field("float y") :field...
mit
smanolache/kong
spec/plugins/response-transformer/filter_spec.lua
1
2296
local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local cjson = require "cjson" local STUB_GET_URL = spec_helper.PROXY_URL.."/get" local STUB_HEADERS_URL = spec_helper.PROXY_URL.."/response-headers" describe("Response Transformer Plugin #proxy", function() setup(fu...
apache-2.0
novokrest/chdkptp
lua/errutil.lua
6
3282
--[[ Copyright (C) 2014 <reyalp (at) gmail dot com> 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, but WITHOUT A...
gpl-2.0
taxler/radish
lua/exports/xiph/vorbis/init.lua
1
6423
local ffi = require 'ffi' require 'exports.xiph.ogg' ffi.cdef [[ const char* vorbis_version_string(); ]] local lib -- attempt to load statically-linked version, otherwise try dynamically-linked if pcall(function() assert(ffi.C.vorbis_version_string ~= nil) end) then lib = ffi.C else lib = ffi.load 'libvorbis'...
mit
purebn/secure
plugins/youtube.lua
644
1722
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0
Joker-Developer/jokersuper
plugins/help2.lua
4
3487
--[[ # For More Information ....! # Developer : Aziz < @devss_bot > #Dev # our channel: @help_tele ]] do local function run(msg, matches) if is_momod(msg) and matches[1]== "م 1" then return [[🏆🏆 - اوامر العامه في الكروب👑👑 💯💯💯💯💯💯💯💯💯💯💯💯💯 اوامر الحماية 🌒-فتح🔔قفل🔕 الاضافه 🌖-فتح🔔قفل🔕البوتات 🌒-...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
LuaRules/Gadgets/CAI/ScoutHandler.lua
9
1249
--[[ Handles the scouting unit job * Add units to this handler to have them controled by it. * Maintains a heatmap of locations to scout. * Requires perdiodic UpdateHeatmap and RunJobHandler. * Only one of these is needed per teamID. --]] local UnitListHandler = VFS.Include("LuaRules/Gadgets/CAI/UnitListHandler.lua...
gpl-2.0
Scavenge/darkstar
scripts/zones/Ship_bound_for_Selbina/Zone.lua
17
1653
----------------------------------- -- -- Zone: Ship_bound_for_Selbina (220) -- ----------------------------------- package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/zone...
gpl-3.0
angking0802wu/UniLua
Assets/StreamingAssets/LuaRoot/test/gc.lua
6
13779
print('testing garbage collection') collectgarbage() assert(collectgarbage("isrunning")) local function gcinfo () return collectgarbage"count" * 1024 end -- test weird parameters do -- save original parameters local a = collectgarbage("setpause", 200) local b = collectgarbage("setstepmul", 200) local t = {...
mit
xincun/nginx-openresty-windows
LuaJIT-2.1-20150622/dynasm/dasm_x86.lua
116
58970
------------------------------------------------------------------------------ -- DynASM x86/x64 module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local x64 = x64 -- Module i...
bsd-2-clause
Scavenge/darkstar
scripts/globals/items/boiled_crab.lua
12
1307
----------------------------------------- -- ID: 4456 -- Item: Boiled Crab -- Food Effect: 30Min, All Races ----------------------------------------- -- Vitality 2 -- defense % 27 -- defense % 50 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- ...
gpl-3.0
cyclonetm/XmakanX
plugins/stats.lua
1
4166
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
jchuang1977/openwrt
package/lean/luci-app-adbyby-plus/luasrc/controller/adbyby.lua
1
3143
module("luci.controller.adbyby", package.seeall) function index() if not nixio.fs.access("/etc/config/adbyby") then return end entry({"admin", "services", "adbyby"}, alias("admin", "services", "adbyby", "base"), _("ADBYBY Plus +"), 9).dependent = true entry({"admin", "services", "adbyby", "base"}, cbi("adby...
gpl-2.0
novokrest/chdkptp
lua/gui_live.lua
5
17624
--[[ Copyright (C) 2010-2014 <reyalp (at) gmail dot com> 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, but WITH...
gpl-2.0
Scavenge/darkstar
scripts/zones/Dangruf_Wadi/npcs/_5b1.lua
14
2971
----------------------------------- -- Area: Dangruf Wadi -- NPC: Strange Apparatus -- @pos -494 -4 -100 191 ----------------------------------- package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil; require("scripts/zones/Dangruf_Wadi/TextIDs"); require("scripts/globals/strangeapparatus"); --------------------...
gpl-3.0
Kyklas/luci-proto-hso
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
68
1501
--[[ 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
1yvT0s/luvit
examples/stream/libs/wait.lua
11
1307
local coroutine = require('coroutine') local debug = require 'debug' local fiber = {} function fiber.new(block) return function (callback) local paused local co = coroutine.create(block) local function formatError(err) local stack = debug.traceback(co, tostring(err)) if type(err) == "table" then ...
apache-2.0
Scavenge/darkstar
scripts/zones/Caedarva_Mire/npcs/Seaprince_s_Tombstone.lua
14
1026
----------------------------------- -- Area: Caedarva Mire -- NPC: Seaprince's Tombstone -- Involved in quest: Forging a New Myth -- @pos -433 7 -586 79 ----------------------------------- package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil; require("scripts/zones/Caedarva_Mire/TextIDs"); ------------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/weaponskills/aeolian_edge.lua
24
1470
-- Aeolian Edge -- Dagger weapon skill -- Delivers an area attack that deals wind elemental damage. Damage varies with TP. -- Skill Level: 290 -- Aligned with the Breeze Gorget, Soil Gorget & Thunder Gorget. -- Aligned with the Breeze Belt, Soil Belt & Thunder Belt. -- Element: Wind -- Skillchain Properties: Impaction ...
gpl-3.0
xincun/nginx-openresty-windows
lua-resty-mysql-0.15/lib/resty/mysql.lua
9
20190
-- Copyright (C) 2012 Yichun Zhang (agentzh) local bit = require "bit" local sub = string.sub local tcp = ngx.socket.tcp local strbyte = string.byte local strchar = string.char local strfind = string.find local format = string.format local strrep = string.rep local null = ngx.null local band = bit.band local bxor = b...
bsd-2-clause
BlockMen/minetest_next
mods/default/player.lua
2
5423
-- Minetest 0.4 mod: player -- See README.txt for licensing and other information. -- Player animation blending -- Note: This is currently broken due to a bug in Irrlicht, leave at 0 local animation_blend = 0 default.registered_player_models = { } -- Local for speed. local models = default.registered_player_models ...
gpl-3.0
Scavenge/darkstar
scripts/zones/Port_Bastok/npcs/_6kt.lua
61
1067
----------------------------------- -- Area: Port Bastok -- NPC: Drawbridge ----------------------------------- require("scripts/globals/status"); ----------------------------------- ----------------------------------- -- onSpawn ----------------------------------- function onSpawn(npc) local elevator = { ...
gpl-3.0
smanolache/kong
kong/plugins/datadog/statsd_logger.lua
1
2153
local ngx_socket_udp = ngx.socket.udp local ngx_log = ngx.log local table_concat = table.concat local setmetatable = setmetatable local NGX_ERR = ngx.ERR local NGX_DEBUG = ngx.DEBUG local tostring = tostring local statsd_mt = {} statsd_mt.__index = statsd_mt function statsd_mt:new(conf) local sock = ngx_socket_udp(...
apache-2.0
Scavenge/darkstar
scripts/globals/spells/raptor_mazurka.lua
27
1161
----------------------------------------- -- Spell: Raptor Mazurka -- Gives party members enhanced movement ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(cast...
gpl-3.0
Scavenge/darkstar
scripts/globals/spells/voidstorm.lua
32
1182
-------------------------------------- -- Spell: Voidstorm -- Changes the weather around target party member to "gloomy." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- ...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/roast_pipira.lua
12
1574
----------------------------------------- -- ID: 4538 -- Item: roast_pipira -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 3 -- Mind -3 -- Attack % 14 -- Attack Cap 75 -- Ranged ATT % 14 -- Ranged ATT Cap 75 ----------------------------------------- require("scripts/globals/sta...
gpl-3.0
jchuang1977/openwrt
package/lean/luci-app-vsftpd/luasrc/model/cbi/vsftpd/users.lua
6
1402
--[[ LuCI - Lua Configuration Interface Copyright 2016 Weijie Gao <hackpascal@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m =...
gpl-2.0
1yvT0s/wax
tools/Tests/scripts/tests/base64Test.lua
17
1466
describe["Base64 encoding"] = function() it["should be able to round trip tricky combinations of two bytes"] = function() for a = 0,255 do for _,b in ipairs({0,1,2,252,253,254}) do local s = string.char(a)..string.char(b) expect(wax.base64.decode(wax.base64.encode(s))).should_be(s) ...
mit
Scavenge/darkstar
scripts/globals/spells/bluemagic/feather_storm.lua
32
2005
----------------------------------------- -- Spell: Feather Storm -- Additional effect: Poison. Chance of effect varies with TP -- Spell cost: 12 MP -- Monster Type: Beastmen -- Spell Type: Physical (Piercing) -- Blue Magic Points: 3 -- Stat Bonus: CHR+2, HP+5 -- Level: 12 -- Casting Time: 0.5 seconds -- Recast Time: 1...
gpl-3.0
Scavenge/darkstar
scripts/zones/Hall_of_Transference/npcs/_0e5.lua
14
1358
----------------------------------- -- Area: Hall of Transference -- NPC: Large Apparatus (Left) - Dem -- @pos -239 -41 -270 14 ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scri...
gpl-3.0
Scavenge/darkstar
scripts/zones/Valley_of_Sorrows/npcs/qm1.lua
14
2266
----------------------------------- -- Area: Valley of Sorrows -- NPC: qm1 (???) -- Spawns Adamantoise or Aspidochelone -- @pos 0 0 -37 59 ----------------------------------- package.loaded["scripts/zones/Valley_of_Sorrows/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Valley_of_Sorrows/Te...
gpl-3.0
Scavenge/darkstar
scripts/globals/abilities/drain_samba_iii.lua
25
1439
----------------------------------- -- Ability: Drain Samba III -- Inflicts the next target you strike with Drain daze, allowing party members engaged in battle with it to drain its HP. -- Obtained: Dancer Level 65 -- TP Required: 40% -- Recast Time: 1:00 -- Duration: 1:30 ----------------------------------- require(...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/loaf_of_goblin_bread.lua
12
1277
----------------------------------------- -- ID: 4458 -- Item: loaf_of_goblin_bread -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 7 -- Vitality 1 -- Charisma -5 ----------------------------------------- require("scripts/globals/status"); -----------------------------------------...
gpl-3.0
Scavenge/darkstar
scripts/globals/mobskills/Amon_Drive.lua
33
1211
--------------------------------------------- -- Amon Drive -- -- Description: Performs an area of effect weaponskill. Additional effect: Paralysis + Petrification + Poison -- Type: Physical -- 2-3 Shadows? -- Range: Melee range radial -- Special weaponskill unique to Ark Angel TT. Deals ~100-400 damage. --------...
gpl-3.0
lordporya1/6985
plugins/invite.lua
24
2328
--[[ Invite other user to the chat group. Use !invite ********* (where ********* is id_number) to invite a user by id_number. This is the most reliable method. Use !invite @username to invite a user by @username. Less reliable. Some users don't have @username. Use !invite Type print_name Here to invite a user by pri...
gpl-2.0
takaaptech/Moses
spec/table_spec.lua
3
18984
require 'luacov' local _ = require 'moses' context('Table functions specs', function() context('each', function() test('provides values and iteration count ', function() local t = {1,2,3} local inc = 0 _.each(t,function(i,v) inc = inc+1 assert_equal(i,inc) assert_equ...
mit
Scavenge/darkstar
scripts/globals/weaponskills/refulgent_arrow.lua
15
1441
----------------------------------- -- Refulgent Arrow -- Archery weapon skill -- Skill level: 290 -- Delivers a twofold attack. Damage varies with TP. -- Aligned with the Aqua Gorget & Light Gorget. -- Aligned with the Aqua Belt & Light Belt. -- Element: None -- Modifiers: STR: 60% http://www.bg-wiki.com/bg/Refulgent_...
gpl-3.0
smanolache/kong
kong/dao/cassandra_db.lua
1
13041
local timestamp = require "kong.tools.timestamp" local Errors = require "kong.dao.errors" local BaseDB = require "kong.dao.base_db" local utils = require "kong.tools.utils" local uuid = require "lua_uuid" local ngx_stub = _G.ngx _G.ngx = nil local cassandra = require "cassandra" _G.ngx = ngx_stub local CassandraDB = ...
apache-2.0
maksym1221/nlp-rnn
convert_gpu_cpu_checkpoint.lua
4
2176
--[[ A quick patch for converting GPU checkpoints to CPU checkpoints until I implement a more long-term solution. Takes the path to the model and creates a file in the same location and path, but with _cpu.t7 appended. ]]-- require 'torch' require 'nn' require 'nngraph' require 'lfs' require 'util.OneHot' require 'u...
gpl-3.0
Scavenge/darkstar
scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm2.lua
30
1377
----------------------------------- -- Area: Alzadaal Undersea Ruins -- NPC: ??? (Spawn Cheese Hoarder Gigiroon(ZNM T1)) -- @pos -184 -8 24 72 ----------------------------------- package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Alzadaal_U...
gpl-3.0
Scavenge/darkstar
scripts/zones/Northern_San_dOria/npcs/Eugballion.lua
17
1713
----------------------------------- -- Area: Northern San d'Oria -- NPC: Eugballion -- Only sells when San d'Oria controlls Qufim Region ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/Tex...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
units/roostfac.lua
3
2713
unitDef = { unitname = [[roostfac]], name = [[Roost]], description = [[Spawns Big Chickens]], acceleration = 0, brakeRate = 0, buildCostEnergy = 0, buildCostMetal = 0, builde...
gpl-2.0
Scavenge/darkstar
scripts/zones/Lower_Jeuno/npcs/Bluffnix.lua
25
5561
----------------------------------- -- Area: Lower Jeuno -- NPC: Bluffnix -- Starts and Finishes Quests: Gobbiebags I-X -- @pos -43.099 5.900 -114.788 245 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings...
gpl-3.0
Scavenge/darkstar
scripts/globals/weaponskills/thunder_thrust.lua
23
1307
----------------------------------- -- Thunder Thrust -- Polearm weapon skill -- Skill Level: 30 -- Deals lightning elemental damage to enemy. Damage varies with TP. -- Aligned with the Light Gorget & Thunder Gorget. -- Aligned with the Light Belt & Thunder Belt. -- Element: Lightning -- Modifiers: STR:40% ; INT:40% --...
gpl-3.0
1yvT0s/luvit
tests/test-fs-long-path.lua
11
1553
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. 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...
apache-2.0
novokrest/chdkptp
lua/chdku.lua
1
44872
--[[ Copyright (C) 2010-2014 <reyalp (at) gmail dot com> 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, but WITHO...
gpl-2.0
Scavenge/darkstar
scripts/globals/items/choco-katana.lua
12
1197
----------------------------------------- -- ID: 5918 -- Item: Choco-katana -- Food Effect: 3 Min, All Races ----------------------------------------- -- Agility 1 -- Speed 12.5% ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
Scavenge/darkstar
scripts/zones/Windurst_Waters/npcs/Baehu-Faehu.lua
17
1582
----------------------------------- -- Area: Windurst Waters -- NPC: Baehu-Faehu -- Only sells when Windurst has control of Sarutabaruta -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Windurst...
gpl-3.0
Scavenge/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Narito-Pettito.lua
14
1067
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Narito-Pettito -- Type: Standard NPC -- @zone 94 -- @pos -52.674 -5.999 90.403 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ni...
gpl-3.0
vahidazizi/golbarg
plugins/tools.lua
1
21441
--Begin Tools.lua :) local SUDO = aa2 -- put Your ID here! <=== local function index_function(user_id) for k,v in pairs(_config.admins) do if user_id == v[1] then print(k) return k end end -- If not found return false end local function getindex(t,id) for i,v in pairs(t) do if v == id then...
gpl-3.0
Scavenge/darkstar
scripts/zones/Nashmau/npcs/Yohj_Dukonlhy.lua
17
1417
----------------------------------- -- Area: Nashmau -- NPC: Yohj Dukonlhy -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); ----------------------------------- -- onTrade Action...
gpl-3.0
smanolache/kong
spec/spec_helpers.lua
1
7351
-- This file offers helpers for dao and integration tests (migrate, start kong, stop, faker...) -- It is built so that it only needs to be required at the beginning of any spec file. -- It supports other environments by passing a configuration file. require "kong.tools.ngx_stub" local IO = require "kong.tools.io" loc...
apache-2.0
omidtarh/wbot
plugins/channels.lua
4
1726
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
gpl-2.0
Scavenge/darkstar
scripts/zones/Kazham/npcs/Cha_Tigunalhgo.lua
17
1072
----------------------------------- -- Area: Kazham -- NPC: Cha Tigunalhgo -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action ----------------------------------- ...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/bowl_of_loach_soup.lua
12
1799
----------------------------------------- -- ID: 5671 -- Item: Bowl of Loach Soup -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- Dexterity 4 -- Agility 4 -- Accuracy 7% Cap 50 -- Ranged Accuracy 7% Cap 50 -- HP 7% Cap 50 -- Evasion 5 ----------------------------------------- require("scr...
gpl-3.0
Brenin/PJ-3100
Working Launchers/Games/Stepmania/StepMania 5/NoteSkins/dance/easyV2/NoteSkin.lua
2
3642
--I am the bone of my noteskin --Arrows are my body, and explosions are my blood --I have created over a thousand noteskins --Unknown to death --Nor known to life --Have withstood pain to create many noteskins --Yet these hands will never hold anything --So as I pray, Unlimited Stepman Works local ret = ... or {}; --...
mit
Scavenge/darkstar
scripts/zones/Bastok_Markets/npcs/Salimah.lua
25
3318
----------------------------------- -- Area: Bastok Markets -- NPC: Salimah -- Notes: Start & Finishes Quest: Gourmet -- @pos -31.687 -6.824 -73.282 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quest...
gpl-3.0
Scavenge/darkstar
scripts/zones/Silver_Sea_route_to_Nashmau/npcs/Map.lua
14
1039
----------------------------------- -- Area: Silver_Sea_route_to_Nashmau -- NPC: Map -- @pos 0.340 -12.232 -4.120 58 ----------------------------------- package.loaded["scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Silver_Sea_route_to_Nashmau/Tex...
gpl-3.0
smanolache/kong
kong/plugins/basic-auth/api.lua
1
1638
local crud = require "kong.api.crud_helpers" return { ["/consumers/:username_or_id/basic-auth/"] = { before = function(self, dao_factory, helpers) crud.find_consumer_by_username_or_id(self, dao_factory, helpers) self.params.consumer_id = self.consumer.id end, GET = function(self, dao_factory...
apache-2.0
Scavenge/darkstar
scripts/zones/Den_of_Rancor/npcs/Treasure_Coffer.lua
14
3874
----------------------------------- -- Area: Den of Rancor -- NPC: Treasure Coffer -- @zone 160 -- @pos ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); requir...
gpl-3.0
purebn/secure
plugins/location.lua
625
1564
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
gamedata/modularcomms/weapons/napalmgrenade.lua
6
1452
local name = "commweapon_napalmgrenade" local weaponDef = { name = [[Hellfire Grenade]], accuracy = 256, areaOfEffect = 256, --cegTag = [[torpedo_trail]], commandFire = true, craterBoost = 0, craterMult = 0, cust...
gpl-2.0
kankaristo/premake-core
tests/actions/vstudio/vc2010/test_item_def_group.lua
16
1563
-- -- tests/actions/vstudio/vc2010/test_item_def_group.lua -- Check the item definition groups, containing compile and link flags. -- Copyright (c) 2013 Jason Perkins and the Premake project -- local suite = test.declare("vs2010_item_def_group") local vc2010 = premake.vstudio.vc2010 local project = premake.project ...
bsd-3-clause
PredatorMF/Urho3D
bin/Data/LuaScripts/30_LightAnimation.lua
24
9498
-- Light animation example. -- This sample is base on StaticScene, and it demonstrates: -- - Usage of attribute animation for light color & UI animation require "LuaScripts/Utilities/Sample" function Start() -- Execute the common startup for samples SampleStart() -- Create the UI content ...
mit
Arashbrsh/lifemaic
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
purebn/secure
plugins/tweet.lua
634
7120
local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json" local client = OAuth.new(consumer_key, consumer_secret, ...
gpl-2.0
kirubz/Penlight
tests/test-list.lua
8
1658
local List = require 'pl.List' local class = require 'pl.class' local test = require 'pl.test' local asserteq, T = test.asserteq, test.tuple -- note that a _plain table_ is made directly into a list local t = {10,20,30} local ls = List(t) asserteq(t,ls) -- you may derive classes from pl.List, and the result...
mit
kirubz/Penlight
tests/test-config.lua
5
6179
require 'pl' asserteq = require 'pl.test'.asserteq function testconfig(test,tbl,cfg) local f = stringio.open(test) local c = config.read(f,cfg) f:close() if not tbl then print(pretty.write(c)) else asserteq(c,tbl) end end testconfig ([[ ; comment 2 (an ini file) [section!] bon...
mit
Scavenge/darkstar
scripts/globals/items/chocolate_crepe.lua
12
1579
----------------------------------------- -- ID: 5775 -- Item: Chocolate Crepe -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP +5% (cap 15) -- MP Healing 2 -- Magic Accuracy +20% (cap 35) -- Magic Defense +1 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0