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 |
|---|---|---|---|---|---|
nesstea/darkstar | scripts/zones/Temenos/mobs/Telchines_Monk.lua | 7 | 1120 | -----------------------------------
-- Area: Temenos N T
-- NPC: Telchines_Monk
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/PsoXja/npcs/_i98.lua | 13 | 1544 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems");
----... | gpl-3.0 |
fegimanam/sss | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/globals/items/melon_pie_+1.lua | 35 | 1368 | -----------------------------------------
-- ID: 4523
-- Item: melon_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 5
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm19.lua | 57 | 2137 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm19 (??? - Bomb Coal Fragments)
-- Involved in Quest: In Defiant Challenge
-- @pos -50.175 6.264 251.669 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm19.lua | 57 | 2137 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm19 (??? - Bomb Coal Fragments)
-- Involved in Quest: In Defiant Challenge
-- @pos -50.175 6.264 251.669 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
vonflynee/opencomputersserver | world/opencomputers/05fe03dc-84c6-416b-a304-6f79787f6411/lib/filesystem.lua | 15 | 13264 | local component = require("component")
local unicode = require("unicode")
local filesystem, fileStream = {}, {}
local isAutorunEnabled = nil
local mtab = {name="", children={}, links={}}
local function segments(path)
path = path:gsub("\\", "/")
repeat local n; path, n = path:gsub("//", "/") until n == 0
local p... | mit |
milkmanjack/lama | src/obj/Race.lua | 1 | 1169 | --[[
lama is a MUD server made in Lua.
Copyright (C) 2013 Curtis Erickson
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) ... | gpl-3.0 |
FailcoderAddons/supervillain-ui | SVUI_Skins/components/blizzard/talents.lua | 1 | 9991 | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
local ipairs = _G.ipairs;
local pairs... | mit |
ShaTelTeam/MegaZs | bot/bot.lua | 7 | 30947 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Pahpe_Rauulih.lua | 38 | 1053 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Pahpe Rauulih
-- Type: Standard NPC
-- @zone: 94
-- @pos -39.740 -4.499 53.223
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = n... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Jade_Sepulcher/Zone.lua | 32 | 1271 | -----------------------------------
--
-- Zone: Jade_Sepulcher (67)
--
-----------------------------------
package.loaded["scripts/zones/Jade_Sepulcher/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Jade_Sepulcher/TextIDs");
---------------------------... | gpl-3.0 |
focusworld/aabb | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Bastok-Jeuno_Airship/TextIDs.lua | 5 | 1080 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6382; -- Obtained: <item>
GIL_OBTAINED = 6383; -- Obtained <number> gil
KEYITEM_OBTAINED = 6385; -- Obtain... | gpl-3.0 |
abasshacker/extreme | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Riverne-Site_B01/npcs/Unstable_Displacement.lua | 27 | 2180 | -----------------------------------
-- Area: Riverne Site #B01
-- NPC: Unstable Displacement
-- ENM Battlefield
-- @pos -612 4 693
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scrip... | gpl-3.0 |
nesstea/darkstar | scripts/commands/zone.lua | 23 | 13403 | ---------------------------------------------------------------------------------------------------
-- func: zone
-- desc: Teleports a player to the given zone.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "s"
};
... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/QuBia_Arena/bcnms/heir_to_the_light.lua | 9 | 1740 | -----------------------------------
-- Name: Mission 9-2 SANDO
-----------------------------------
package.loaded["scripts/zones/Qubia_arena/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/zones/Qubia_arena/TextIDs");
--... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/loaf_of_white_bread.lua | 35 | 1278 | -----------------------------------------
-- ID: 4356
-- Item: loaf_of_white_bread
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 16
-- Dexterity -1
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
bowlofstew/Macaroni | Main/Generators/Cpp/UnitFileGenerator.lua | 1 | 13593 | require "Cpp/Common";
require "Plugin";
require "Cpp/ClassCppFileGenerator";
require "Cpp/ClassHFileGenerator";
local EnumFileGenerator = require "Cpp/EnumFileGenerator";
local FunctionGenerator = require "Cpp/FunctionFileGenerator";
require "Cpp/TypedefFileGenerator";
require "Cpp/UnitBlockGenerator";
local Access = ... | apache-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Horlais_Peak/npcs/Hot_springs.lua | 17 | 1948 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Hot Springs
-- @Zone: 139
-- @pos 444 -37 -18
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globa... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Pashhow_Marshlands/npcs/Sharp_Tooth_IM.lua | 13 | 3338 | -----------------------------------
-- Area: Pashhow Marshlands
-- NPC: Sharp Tooth, I.M.
-- Type: Border Conquest Guards
-- @pos 536.291 23.517 694.063 109
-----------------------------------
package.loaded["scripts/zones/Pashhow_Marshlands/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Eastern_Adoulin/npcs/HomePoint#1.lua | 12 | 1238 | -----------------------------------
-- Area: Eastern_Adoulin
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Eastern_Adoulin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Eastern_Adoulin/TextIDs");
require("scripts/globals/homepoi... | gpl-3.0 |
xTVaser/ramwatches | utils_math.lua | 2 | 2018 | -- Math related utility classes/functions.
-- Named to avoid conflict/confusion with the standard math module.
local utils = require "utils"
local Vector3 = {}
function Vector3:new(x, y, z)
-- Make an object of the "class" Vector3.
local obj = {}
setmetatable(obj, self)
self.__index = self
obj.x = x
o... | mit |
UnfortunateFruit/darkstar | scripts/globals/spells/bluemagic/uppercut.lua | 28 | 1859 | -----------------------------------------
-- Spell: Uppercut
-- Damage varies with TP
-- Spell cost: 31 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 3
-- Stat Bonus: STR+2, DEX+1
-- Level: 38
-- Casting Time: 0.5 seconds
-- Recast Time: 17.75 seconds
-- Skillchain Eleme... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Cloister_of_Frost/bcnms/trial-size_trial_by_ice.lua | 13 | 2012 | -----------------------------------
-- Area: Cloister of Frost
-- BCNM: Trial-size Trial by Ice
-- @pos 558 0.1 596 203
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Open_sea_route_to_Mhaura/npcs/Pashi_Maccaleh.lua | 17 | 1245 | -----------------------------------
-- Area: Open sea route to Mhaura
-- NPC: Pashi Maccaleh
-- Guild Merchant NPC: Fishing Guild
-- @zone 4.986 -2.101 -12.026 47
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
e7/latasia | lua_app/service.lua | 1 | 1462 | local cjson = require "cjson"
local sjsonb = require "proto_sjsonb"
--local ffi = require "ffi"
--local pack = require "ltspack"
--
--
--function find_package(data, seek)
-- local ne, magic_no
--
-- while true do
-- ne, magic_no = string.unpack(data, ">I", seek)
--
-- if ne == seek or 0xE78F8A9D == ... | gpl-2.0 |
vonflynee/opencomputersserver | world/opencomputers/4f2775bd-9dcb-42e6-8318-1837ede27e76/lib/buffer.lua | 15 | 11304 | local computer = require("computer")
local unicode = require("unicode")
local buffer = {}
function buffer.new(mode, stream)
local result = {
mode = {},
stream = stream,
bufferRead = "",
bufferWrite = "",
bufferSize = math.max(512, math.min(8 * 1024, computer.freeMemory() / 8)),
bufferMode = ... | mit |
vonflynee/opencomputersserver | world/opencomputers/05fe03dc-84c6-416b-a304-6f79787f6411/lib/buffer.lua | 15 | 11304 | local computer = require("computer")
local unicode = require("unicode")
local buffer = {}
function buffer.new(mode, stream)
local result = {
mode = {},
stream = stream,
bufferRead = "",
bufferWrite = "",
bufferSize = math.max(512, math.min(8 * 1024, computer.freeMemory() / 8)),
bufferMode = ... | mit |
UnfortunateFruit/darkstar | scripts/zones/Port_San_dOria/npcs/Eddy.lua | 38 | 1038 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Eddy
-- Type: NPC Quest Giver
-- @zone: 232
-- @pos -5.209 -8.999 39.833
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------... | gpl-3.0 |
aqasaeed/spartafinal | plugins/stats.lua | 866 | 4001 | 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 |
nesstea/darkstar | scripts/globals/spells/jubaku_ichi.lua | 27 | 1733 | -----------------------------------------
-- Spell: Jubaku: Ichi
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and INT.
-- taken from paralyze
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/globals/spells/paralyze_ii.lua | 13 | 2306 | -----------------------------------------
-- Spell: Paralyze II
-- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND.
-- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point
-- Paralyze II value per point is '1' This is a co... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/mobskills/Gates_of_Hades.lua | 5 | 1261 | ---------------------------------------------
-- Gates of Hades
--
-- Description: Deals severe Fire damage to enemies within an area of effect. Additional effect: Burn
-- Type: Magical
--
--
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 20' radial
-- Notes: Only used when a cerberus's health is 25%... | gpl-3.0 |
focusworld/aabb | plugins/moderation.lua | 336 | 9979 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
local username = v.username
data[tostring(m... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Bastok_Markets/npcs/Oggodett.lua | 36 | 1630 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Oggodett
-- Only sells when Bastok controlls Aragoneu Region
--
-- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
packa... | gpl-3.0 |
Badboy30/badboy30 | plugins/id.lua | 355 | 2795 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, resu... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Batallia_Downs/npcs/qm3.lua | 13 | 1875 | -----------------------------------
-- Area: Batallia Downs
-- NPC: qm3 (???)
-- Involved in Mission 9-1 (San dOria)
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Batallia_Downs/TextIDs");
require("scrip... | gpl-3.0 |
rtfpessoa/dotfiles | vim/.config/nvim/lua/user/lsp/settings/jsonls.lua | 5 | 5386 | local default_schemas = nil
local status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls")
if status_ok then
default_schemas = jsonls_settings.get_default_schemas()
end
local schemas = {
{
description = "TypeScript compiler configuration file",
fileMatch = {
"tsconfig.json",
"tsconfig... | mit |
UnfortunateFruit/darkstar | scripts/zones/Bibiki_Bay/npcs/Noih_Tahparawh.lua | 12 | 3518 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Noih Tahparawh
-- Type: Manaclipper
-- @pos -392 -3 -385 4
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
require("scripts/zones/Bibiki_Bay/TextIDs");
-----------------------------------
-- onTrade Act... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Xarcabard/TextIDs.lua | 13 | 1203 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6392; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6397; -- Obtained: <item>.
GIL_OBTAINED = 6398; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6400; -- Obtained... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Rolanberry_Fields/npcs/Stone_Monument.lua | 13 | 1283 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos 362.479 -34.894 -398.994 110
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require... | gpl-3.0 |
LuaDist/im | doc/html/examples/combine4-10x15.lua | 1 | 3666 | --A script to compose 4 images
require"imlua"
require"imlua_process"
require"iuplua"
function CombineImages(comb_image)
local w = comb_image:Width()-offset
local h = comb_image:Height()-offset
local half_w = math.floor(w/2)
local half_h = math.floor(h/2)
local x = {0, 0, half_w+offs... | mit |
hussian/hell_iraq | plugins/ar-en-short.lua | 1 | 2192 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀
▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ (ملف اختصار روابط المجموعة) ▀▄ ▄... | gpl-2.0 |
vonflynee/opencomputersserver | world/opencomputers/4f2775bd-9dcb-42e6-8318-1837ede27e76/lib/package.lua | 15 | 3021 | local package = {}
package.path = "/lib/?.lua;/usr/lib/?.lua;/home/lib/?.lua;./?.lua;/lib/?/init.lua;/usr/lib/?/init.lua;/home/lib/?/init.lua;./?/init.lua"
local loading = {}
local loaded = {
["_G"] = _G,
["bit32"] = bit32,
["coroutine"] = coroutine,
["math"] = math,
["os"] = os,
["package"] = package,
... | mit |
Disslove-bot/Max3-BOT | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
vonflynee/opencomputersserver | world/opencomputers/689b9f29-1d36-4106-bf0e-c06a2ebfb1ef/bin/redstone.lua | 16 | 2807 | local colors = require("colors")
local component = require("component")
local shell = require("shell")
local sides = require("sides")
if not component.isAvailable("redstone") then
io.stderr:write("This program requires a redstone card or redstone I/O block.")
return
end
local rs = component.redstone
local args, o... | mit |
FailcoderAddons/supervillain-ui | SVUI_FightOMatic/Loader.lua | 4 | 1994 | --[[
##########################################################
S V U I By: S.Jackson
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--GLOBAL NAMESPACE
local _G = _G;
--LUA
local unpack = _G.unpack;
local selec... | mit |
plajjan/snabbswitch | src/dasm_x86.lua | 11 | 74171 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = rawget(_G, "x64"... | apache-2.0 |
xTVaser/ramwatches | utils.lua | 1 | 12989 | -- Various utility functions.
local utils = {}
-- tonumber fix, so that it properly handles strings starting with "-0".
-- See the following bug report: http://cheatengine.org/mantis/view.php?id=328
if originalTonumber==nil then
originalTonumber=tonumber
end
function tonumber(str)
local result = originalTonumb... | mit |
nesstea/darkstar | scripts/globals/spells/cura_ii.lua | 36 | 4121 | -----------------------------------------
-- Spell: Cura
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura's base potency is the same as Cure II's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga III
-- Modeled after our cure_ii.lua, which was modeled after the below refe... | gpl-3.0 |
JustinZZzz/crtmpserver | builders/cmake/crtmpserver/flvplayback.lua | 1 | 1897 | configuration=
{
daemon=false,
pathSeparator="/",
logAppenders=
{
{
name="console appender",
type="coloredConsole",
level=6
},
{
name="file appender",
type="file",
level=6,
fileName="/tmp/crtmpserver",
fileHistorySize=10,
fileLength=1024*1024,
singleLine=true
}
},
applica... | gpl-3.0 |
plajjan/snabbswitch | src/core/lib.lua | 1 | 23080 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local getopt = require("lib.lua.alt_getopt")
local syscall = require("syscall")
require("core.clib_h")
local bit = require("bit")
local band, bor, bnot, lshift, rshift, ... | apache-2.0 |
mobinantispam/irantg | plugins/inpm.lua | 34 | 3688 | 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 |
UnfortunateFruit/darkstar | scripts/zones/Talacca_Cove/Zone.lua | 28 | 1314 | -----------------------------------
--
-- Zone: Talacca_Cove (57)
--
-----------------------------------
package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Talacca_Cove/TextIDs");
----------------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Port_Windurst/npcs/Kususu.lua | 36 | 1768 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kususu
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextID... | gpl-3.0 |
0xd4d/iced | src/rust/iced-x86-lua/lua/types/iced_x86/Formatter.lua | 1 | 37886 | -- SPDX-License-Identifier: MIT
-- Copyright (C) 2018-present iced project and contributors
-- ⚠️This file was generated by GENERATOR!🦹♂️
---@meta
---@diagnostic disable unused-local
---x86 formatter that supports GNU Assembler, Intel XED, masm and nasm syntax
---
---@class Formatter
local Formatter = {}
---Creat... | mit |
nesstea/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Louxiard.lua | 15 | 2494 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Louxiard
-- @zone 80
-- @pos -93 -4 49
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
-------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/Treasure_Coffer.lua | 12 | 4053 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Treasure Coffer
-- @zone 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/... | gpl-3.0 |
alexander-koch/3D-Game-Engine | demos/a_star/scripts/util.lua | 1 | 1089 |
function createObstacle(position, scene, list)
local mesh = Mesh()
mesh:loadCube(1)
mesh:setMaterial(Material("obstacle"))
table.insert(list, mesh)
scene:addEntity(mesh)
local body = RigidBody(Shape.Box, {1,1,1})
body:setMass(1)
body:setMesh(mesh)
body:create({0,0,0,1},position)
... | apache-2.0 |
nesstea/darkstar | scripts/globals/items/istiridye.lua | 18 | 1404 | -----------------------------------------
-- ID: 5456
-- Item: Istiridye
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-- Defense +17.07%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/plate_of_tentacle_sushi.lua | 21 | 1809 | -----------------------------------------
-- ID: 5215
-- Item: plate_of_tentacle_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 20
-- Dexterity 3
-- Agility 3
-- Mind -1
-- Accuracy % 19 (cap 18)
-- Ranged Accuracy % 19 (cap 18)
-- Double Attack 1
--------------------... | gpl-3.0 |
nesstea/darkstar | scripts/globals/effects/aftermath_lv1.lua | 30 | 1130 | -----------------------------------
--
-- EFFECT_AFTERMATH_LV1
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
if (effe... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/loach_gruel.lua | 35 | 1674 | -----------------------------------------
-- ID: 5670
-- Item: loach_soup
-- Food Effect: 4Hour,Group Food, All Races
-----------------------------------------
-- Dexterity 2
-- Agility 2
-- Accuracy % 7
-- Accuracy Cap 30
-- HP % 7
-- HP Cap 30
-- Evasion 4
-- (Did Not Add Group Food Effect)
-------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/absorb-agi.lua | 11 | 1193 | --------------------------------------
-- Spell: Absorb-AGI
-- Steals an enemy's agility.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-------------... | gpl-3.0 |
NezzKryptic/Wire-Extras | lua/entities/gmod_wire_buoyancy/init.lua | 3 | 2054 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include( "shared.lua" )
local MODEL = Model( "models/jaanus/wiretool/wiretool_siren.mdl" )
function ENT:Initialize()
self:SetModel( MODEL )
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/derfland_pear.lua | 35 | 1212 | -----------------------------------------
-- ID: 4352
-- Item: derfland_pear
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
rchamarthy/uwsgi | tests/websockets_echo.lua | 27 | 1867 | #!./uwsgi --https :8443,foobar.crt,foobar.key --http-modifier1 6 --http-raw-body --threads 100 --lua tests/websockets_echo.lua
function app(env)
local function html()
coroutine.yield(string.format([[
<html>
<head>
<script language="Javascript">
var s = new WebSocket("%s://%s... | gpl-2.0 |
nesstea/darkstar | scripts/zones/The_Boyahda_Tree/npcs/HomePoint#1.lua | 27 | 1273 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: HomePoint#1
-- @pos 88 -15 -217 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/The_Boyahda_Tree/TextIDs");
require("scripts/global... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Dynamis-Windurst/bcnms/dynamis_windurst.lua | 22 | 1323 | -----------------------------------
-- Area: Dynamis Windurst
-- Name: Dynamis Windurst
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaWindurst]UniqueID",player:getDynamisUniqueID(1282));
SetServer... | gpl-3.0 |
johnmccabe/dockercraft | world/Plugins/APIDump/Hooks/OnServerPing.lua | 42 | 2367 | return
{
HOOK_SERVER_PING =
{
CalledWhen = "Client pings the server from the server list.",
DefaultFnName = "OnServerPing", -- also used as pagename
Desc = [[
A plugin may implement an OnServerPing() function and register it as a Hook to process pings from
clients in the server server list. It can change... | apache-2.0 |
heyuqi/wxFormBuilder | build/premake/4.3/src/base/help.lua | 26 | 1220 | --
-- help.lua
-- User help, displayed on /help option.
-- Copyright (c) 2002-2008 Jason Perkins and the Premake project
--
function premake.showhelp()
-- display the basic usage
printf("Premake %s, a build script generator", _PREMAKE_VERSION)
printf(_PREMAKE_COPYRIGHT)
printf("%s %s", _VERSION, _COPYRIGHT... | gpl-2.0 |
nesstea/darkstar | scripts/globals/weaponskills/shijin_spiral.lua | 10 | 1804 | -----------------------------------
-- Shijin Spiral
-- Hand-to-Hand weapon skill
-- Skill Level: N/A
-- Delivers a fivefold attack that Plagues the target. Chance of inflicting Plague varies with TP.
-- In order to obtain Shijin Spiral, the quest Martial Mastery must be completed.
-- Aligned with the Flame Gorget, Lig... | gpl-3.0 |
nesstea/darkstar | scripts/globals/items/woozyshroom.lua | 18 | 1170 | -----------------------------------------
-- ID: 4373
-- Item: woozyshroom
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Strength -4
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/La_Theine_Plateau/npcs/Augevinne.lua | 13 | 1565 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Augevinne
-- Involved in Mission: The Rescue Drill
-- @pos -361 39 266 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/m... | gpl-3.0 |
dpino/snabbswitch | src/apps/pcap/tap.lua | 7 | 2543 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local ffi = require("ffi")
local app = require("core.app")
local lib = require("core.lib")
local link = require("core.link")
local pcap = require("lib.pcap.pcap")
local pf = require("pf")
Tap = {}
local tap_... | apache-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Bastok_Mines/TextIDs.lua | 5 | 6682 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6381; -- Try trading again after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <<<Unknown Pa... | gpl-3.0 |
hhrhhr/Lua-utils-for-X-Rebirth | lua/xmlhandler/print.lua | 2 | 3327 | ---@module Handler to generate a simple event trace which
--outputs messages to the terminal during the XML
--parsing, usually for debugging purposes.
--
-- License:
-- ========
--
-- This code is freely distributable under the terms of the [MIT license](LICENSE).
--
--@author Paul Chakravarti (paulc@passtheaar... | gpl-3.0 |
Spartan322/finalfrontier | gamemode/cl_init.lua | 2 | 4883 | -- Copyright (c) 2014 James King [metapyziks@gmail.com]
--
-- This file is part of Final Frontier.
--
-- Final Frontier is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as
-- published by the Free Software Foundation, either version 3 of
-- the Lic... | lgpl-3.0 |
VurtualRuler98/kswep2-NWI | lua/weapons/weapon_kswepi2_mosin/shared.lua | 1 | 3488 | --[[
Copyright 2015 vurtual
VurtualRuler98@gmail.com
vurtual.org
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
nesstea/darkstar | scripts/globals/spells/hydrohelix.lua | 26 | 1690 | --------------------------------------
-- Spell: Hydrohelix
-- Deals water damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/m... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Lower_Jeuno/npcs/_l04.lua | 13 | 1553 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -73.039 6 -95.633
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Southern_San_dOria/npcs/Esmallegue.lua | 13 | 1505 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Esmallegue
-- General Info NPC
-- @zone 230
-- @pos 0 2 -83
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Telepoint.lua | 17 | 1649 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Telepoint
-- @pos 100.000 35.150 340.000 117
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/... | gpl-3.0 |
mramir8274/deltabot | bot/utils.lua | 646 | 23489 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/globals/mobskills/Cyclone_Wing.lua | 7 | 1139 | ---------------------------------------------
-- Tebbad Wing
--
-- Description: Deals darkness damage to enemies within a very wide area of effect. Additional effect: Sleep
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Vrtra and Azdaja
--------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Windurst_Woods/npcs/Samigo-Pormigo.lua | 10 | 2685 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Samigo-Pormigo
-- Type: Guildworker's Union Representative
-- @zone: 241
-- @pos -9.782 -5.249 -134.432
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/keyitems")... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Windurst_Woods/npcs/Apururu.lua | 12 | 7966 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Apururu
-- Involved in Quests: The Kind Cardian, Can Cardians Cry?
-- @zone 241
-- @pos -11 -2 13
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
packa... | gpl-3.0 |
e7/latasia | lua_app/upload.lua | 1 | 4294 | local cjson = require "cjson"
local sjsonb = require "proto_sjsonb"
local lfs = require "lfs"
local prefix = "/tmp"
function length_of_file(filename)
local fh = assert(io.open(filename, "rb"))
local len = assert(fh:seek("end"))
fh:close()
return len
end
function handle_request(content_type, data)
... | gpl-2.0 |
NezzKryptic/Wire-Extras | lua/entities/gmod_wire_hud_indicator_2/fakelib/surface.lua | 1 | 2269 | surface = {
textureID = 0,
width = 1024,
height = 768,
texture = {
size = 25
}
}
function surface.CreateFont() print( "$surface.CreateFont$" ) end
function surface.DrawLine( startX, startY, endX, endY)
print("[FAKE]", "surface.DrawLine( " ..tostring(startX).. ", " ..tostring(startY).. ", " ..tostring(endX).. ... | gpl-3.0 |
Mashape/kong | spec/01-unit/01-db/07-db_spec.lua | 2 | 2415 | local mocker = require("spec.fixtures.mocker")
local function setup_it_block()
mocker.setup(finally, {
modules = {
{"kong.db.strategies", {
new = function()
local connector = {
infos = function()
return {}
end,
connect_migrations = functi... | apache-2.0 |
nesstea/darkstar | scripts/zones/Grauberg_[S]/npcs/qm1.lua | 30 | 1695 | -----------------------------------
-- Area: Grauberg [S]
-- NPC: ???
-- Quest - DNC AF1
-----------------------------------
package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Grauberg_[S]/TextIDs");
-----... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Cape_Teriggan/npcs/Cermet_Headstone.lua | 8 | 3786 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Wind Headstone)
-- @pos -107 -8 450 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
Jacklli/redis-leveldb | deps/lua/src/jit/dis_mips.lua | 17 | 13222 | ----------------------------------------------------------------------------
-- LuaJIT MIPS disassembler module.
--
-- Copyright (C) 2005-2011 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
---------------------------------------------------------------------------... | bsd-3-clause |
nesstea/darkstar | scripts/globals/items/hellsteak.lua | 18 | 1722 | -----------------------------------------
-- ID: 5609
-- Item: hellsteak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 20
-- Strength 6
-- Intelligence -2
-- Health Regen While Healing 2
-- Attack % 19
-- Ranged ATT % 19
-- Dragon Killer 5
-- Demon Killer 5
----------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Arrapago_Reef/npcs/qm1.lua | 30 | 1331 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Lil'Apkallu(ZNM T1))
-- @pos 488 -1 166 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
require("scripts/... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Port_Jeuno/npcs/Chudigrimane.lua | 30 | 1173 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Chudigrimane
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
--------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Yafaaf.lua | 13 | 1095 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Yafaaf
-- Type: Standard Merchant
-- @pos 76.889 -7 -140.379 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
req... | gpl-3.0 |
DarknessBeforeDawn/lxc | src/lua-lxc/lxc.lua | 26 | 10159 | --
-- lua lxc module
--
-- Copyright © 2012 Oracle.
--
-- Authors:
-- Dwight Engen <dwight.engen@oracle.com>
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.... | lgpl-2.1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.