repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
starlightknight/darkstar | scripts/zones/Windurst_Walls/npcs/Ambrosius.lua | 11 | 4127 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Ambrosius
--
-- Quest NPC for "The Postman Always KOs Twice"
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
-----------------------------------
function onTrigger(player,npc)
QuestStatu... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/cup_of_date_tea.lua | 12 | 1411 | -----------------------------------------
-- ID: 5926
-- Item: Cup of Date Tea
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 20
-- MP 30
-- Vitality -1
-- Charisma 5
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Pradiulot.lua | 9 | 1399 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Pradiulot
-- Involved in Quest: Unforgiven
-- !pos -20.814 -22 8.399 26
-----------------------------------
local ID = require("scripts/zones/Tavnazian_Safehold/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/quests")
----------... | gpl-3.0 |
mmaxs/pull_requests--ettercap | src/lua/share/third-party/stdlib/mkrockspecs.lua | 12 | 1359 | -- Generate rockspecs from a prototype with variants
require "std"
if select ("#", ...) < 2 then
io.stderr:write "Usage: mkrockspecs PACKAGE VERSION\n"
os.exit ()
end
package_name = select (1, ...)
version = select (2, ...)
function format (x, indent)
indent = indent or ""
if type (x) == "table" then
lo... | gpl-2.0 |
ABrandau/OpenRA | mods/cnc/maps/nod06a/nod06a.lua | 4 | 8916 | --[[
Copyright 2007-2019 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you 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) any later vers... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Port_San_dOria/npcs/Avandale.lua | 3 | 1051 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Avandale
-- Type: Standard NPC
-- @zone 232
-- !pos -105.524 -9 -125.274
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-------------... | gpl-3.0 |
raymondtfr/forgottenserver | data/talkactions/scripts/info.lua | 24 | 1561 | function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
local target = Player(param)
if not target then
player:sendCancelMessage("Player not found.")
return false
end
if target:getAccountType() > player:getAccountType() then
player:sendCancelMessage("You can not ge... | gpl-2.0 |
LuaDist2/inspect | spec/inspect_spec.lua | 1 | 14316 | local inspect = require 'inspect'
local unindent = require 'spec.unindent'
local is_luajit, ffi = pcall(require, 'ffi')
local has_rawlen = type(_G.rawlen) == 'function'
describe( 'inspect', function()
describe('numbers', function()
it('works', function()
assert.equals("1", inspect(1))... | mit |
blackmady/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
opendp/dpdk-redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
xuguruogu/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
happyeverydayzhh/LuaBridge | LuaBridge/Vendor/lua-5.1.3/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
starlightknight/darkstar | scripts/globals/items/sis_kebabi.lua | 11 | 1375 | -----------------------------------------
-- ID: 5598
-- Item: sis_kebabi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 6
-- Vitality -2
-- Intelligence -2
-- Attack % 20
-- Attack Cap 70
-- Ranged ATT % 20
-- Ranged ATT Cap 70
-----------------------------------------
require("... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Horlais_Peak/bcnms/dropping_like_flies.lua | 30 | 1741 | -----------------------------------
-- Area: Horlias peak
-- Name: Dropping Like Flies
-- BCNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXA... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Port_Windurst/npcs/Taniko-Maniko.lua | 17 | 1797 | -----------------------------------
-- Area: Port Windurst
-- NPC: Taniko-Maniko
-- 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/TextIDs")... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Southern_San_dOria/npcs/Lotte.lua | 17 | 1455 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Lotte
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/TextIDs");
require("scripts/globals/set... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/weaponskills/keen_edge.lua | 25 | 1370 | -----------------------------------
-- Keen Edge
-- Great Axe weapon skill
-- Skill level: 150
-- Delivers a single hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget.
-- Aligned with the Shadow Belt.
-- Element: None
-- Modifiers: STR:35%
-- 100%TP ... | gpl-3.0 |
ironjade/DevStack | LanCom/DesignPattern/LUA/Multiset.lua | 1 | 1099 | #!/usr/local/bin/lua
--[[
Copyright (c) 2004 by Bruno R. Preiss, P.Eng.
$Author: brpreiss $
$Date: 2004/11/27 18:20:25 $
$RCSfile: Multiset.lua,v $
$Revision: 1.2 $
$Id: Multiset.lua,v 1.2 2004/11/27 18:20:25 brpreiss Exp $
--]]
require "Set"
--{
-- Base class from which all multiset class... | apache-2.0 |
starlightknight/darkstar | scripts/zones/Bastok_Markets/npcs/Matthias.lua | 9 | 6995 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Matthias
-- Standard Info NPC
-- Involved in Quest:
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets/IDs");
require("scripts/globals/quests");
-----------------------------------
--local variables for item IDs to m... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Mount_Zhayolm/Zone.lua | 11 | 1066 | -----------------------------------
--
-- Zone: Mount_Zhayolm (61)
--
-----------------------------------
local ID = require("scripts/zones/Mount_Zhayolm/IDs")
require("scripts/globals/helm")
require("scripts/globals/zone")
-----------------------------------
function onInitialize(zone)
GetMobByID(ID.mob.CERBERUS)... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/weaponskills/earth_crusher.lua | 10 | 1304 | -----------------------------------
-- Earth Crusher
-- Staff weapon skill
-- Skill Level: 70
-- Delivers an area of effect earth elemental attack. Damage varies with TP.
-- Aligned with the Breeze Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt & Thunder Belt.
-- Element: Earth
-- Modifiers: STR:30% INT:30%
... | gpl-3.0 |
kidaa/lsyncd | bin2carray.lua | 22 | 1259 | #!/usr/bin/lua
--============================================================================
-- bin2carray.lua
--
-- License: GPLv2 (see COPYING) or any later version
--
-- Authors: Axel Kittenberger <axkibe@gmail.com>
--
-- Transforms a binary file (the compiled lsyncd runner script) in a c array
-- so it can be inc... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Metalworks/npcs/Franziska.lua | 17 | 1138 | -----------------------------------
-- Area: Metalworks
-- NPC: Franziska
-- Type: Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
-----------------------------------
-- on... | gpl-3.0 |
gedads/Neodynamis | scripts/commands/haskeyitem.lua | 8 | 1630 | ---------------------------------------------------------------------------------------------------
-- func: haskeyitem <ID> <player>
-- desc: Checks if player has specified KeyItem.
-- Can use either of number or the variable string from keyitems.lua
--------------------------------------------------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Beadeaux/npcs/Haggleblix.lua | 12 | 6781 | -----------------------------------
-- Area: Beadeaux
-- NPC: Haggleblix
-- Type: Dynamis NPC
-- !pos -255.847 0.595 106.485 147
-----------------------------------
local ID = require("scripts/zones/Beadeaux/IDs");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/dynam... | gpl-3.0 |
pravsingh/Algorithm-Implementations | Alpha_Beta_Pruning/Lua/Yonaba/alpha_beta_pruning_test.lua | 26 | 1062 | -- Tests for alpha_beta_pruning.lua
local ABP = require 'alpha_beta_pruning'
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 = pa... | mit |
soccermitchy/heroku-lapis | opt/src/openresty/bundle/LuaJIT-2.1-20150223/dynasm/dasm_mips.lua | 120 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | gpl-2.0 |
hkuro/jit-construct | dynasm/dasm_mips.lua | 120 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | bsd-2-clause |
gedads/Neodynamis | scripts/globals/items/alabaligi.lua | 12 | 1324 | -----------------------------------------
-- ID: 5461
-- Item: Alabaligi
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---------... | gpl-3.0 |
Lymia/MPPatch | src/patch/ui/hooks/frontend/modsmenu/modsmenu_enablempmenu.lua | 3 | 3309 | -- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, co... | mit |
starlightknight/darkstar | scripts/zones/Northern_San_dOria/npcs/Ulycille.lua | 12 | 1397 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ulycille
-- Type: Woodworking Adv. Synthesis Image Support
-- !pos -183.320 9.999 269.651 231
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Northern_S... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Waoud.lua | 9 | 7704 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Waoud
-- Standard Info NPC
-- Involved in quests: An Empty Vessel (BLU flag), Beginnings (BLU AF1)
-- !pos 65 -6 -78 50
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/gl... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Selbina/npcs/Mathilde.lua | 9 | 1345 | -----------------------------------
-- Area: Selbina
-- NPC: Mathilde
-- Involved in Quest: Riding on the Clouds
-- !pos 12.578 -8.287 -7.576 248
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/npc_util")
require("scripts/globals/ques... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Southern_San_dOria/npcs/Sharzalion.lua | 9 | 3320 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Sharzalion
-- Starts and Finishes Quest: The Crimson Trial
-- Involved in Quest: Peace for the Spirit
-- !pos 95 0 111 230
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("script... | gpl-3.0 |
janlou/AdvanSource | system/libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
mehrandani/bot | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | agpl-3.0 |
starlightknight/darkstar | scripts/zones/Metalworks/npcs/Karst.lua | 9 | 1444 | -----------------------------------
-- Area: Metalworks
-- NPC: Karst
-- Type: President
-- Involved in Bastok Missions 5-2
-- !pos 106 -21 0 237
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,np... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/prized_beef_stewpot.lua | 11 | 1735 | -----------------------------------------
-- ID: 5549
-- Item: Prized Angler's Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 100
-- MP +20
-- Strength +4
-- Agility +2
-- Mind +2
-- HP Recovered while healing +9
-- MP Recovered while healing +3
-... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Abyssea-Grauberg/npcs/qm2.lua | 3 | 1417 | -----------------------------------
-- Zone: Abyssea-Grauberg
-- NPC: qm2 (???)
-- Spawns Ningishzida
-- !pos ? ? ? 254
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
-... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Bastok_Mines/Zone.lua | 9 | 2024 | -----------------------------------
--
-- Zone: Bastok_Mines (234)
--
-----------------------------------
local ID = require("scripts/zones/Bastok_Mines/IDs")
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/conquest")
require("scripts/globals/missions")
require("scripts/globals/settings")
r... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Gusgen_Mines/npcs/_5g7.lua | 3 | 2949 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Strange Apparatus
-- !pos 219 -39 255 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
require("scripts/zones/Gusgen_Mines/TextIDs");
require("scripts/globals/strangeapparatus");
---------------------... | gpl-3.0 |
thatoneprogrammerkid/gameofsquares | input.lua | 2 | 2706 | local function selectSlot( slotNum )
print( "Selected slot #" .. tostring( slotNum ) )
local item = game.config.hotBar[ slotNum ]
if item then
local block = game.block.type[item] or false
if block then
game.curBlockType = block
else
game.curBlockType = game.block.type.stone
end
else
... | mit |
SuperStarPL/PonyPlayerModels | pony_player_models/lua/ppm/cache.lua | 2 | 42093 |
PPM.CacheGroups = { OC_DATA = 0, PONY_MARK = 1 }
PPM.CacheTransferOptions = PPM.CacheTransferOptions or { PACKET_SIZE = 1024, PACKET_DELAY = 2, CLIENT_TIMEOUT = 300, UPDATE_DELAY = 300, OC_COUNT = 30, RETRY_LIMIT = 10 }
PPM.MessageNames = { INITIAL_SERVER_UPDATE = 0, ITEM_REQUEST = 1, ITEM_PAYLOAD = 2 }
-- Entry Form... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Castle_Oztroja/npcs/_47b.lua | 3 | 2071 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47b (Handle)
-- Notes: Opens Trap Door (_47a) or Brass Door (_470)
-- !pos 22.310 -1.087 -14.320 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Windurst_Woods/TextIDs.lua | 2 | 7087 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6539; -- Come back after sorting your inventory.
ITEM_OBTAINED = 6545; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>
GIL_OBTAINED = 6546; -- O... | gpl-3.0 |
fatbob313/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/nat_traffic.lua | 79 | 1251 | local function scrape()
-- documetation about nf_conntrack:
-- https://www.frozentux.net/iptables-tutorial/chunkyhtml/x1309.html
nat_metric = metric("node_nat_traffic", "gauge" )
for e in io.lines("/proc/net/nf_conntrack") do
-- output(string.format("%s\n",e ))
local fields = space_split(e)
local ... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/LaLoff_Amphitheater/npcs/qm0_4.lua | 17 | 1168 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: qm0 (warp player outside after they win fight)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
-... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/betta.lua | 12 | 1320 | -----------------------------------------
-- ID: 5139
-- Item: Betta
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Temenos/mobs/Light_Elemental.lua | 28 | 1715 | -----------------------------------
-- Area: Temenos E T
-- NPC: Light_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/mobskills/ink_jet_alt.lua | 9 | 1030 | ---------------------------------------------
-- Ink Jet alt
--
-- Description: Unleashes a torrent of black spores in a fan-shaped area of effect, dealing dark damage to targets. Additional effect: Blind
-- Type: Magical Dark (Element)
--
-- Notes: Used by Fe'e in Up in Arms BCNM
----------------------------------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/QuBia_Arena/mobs/Worgbut_of_Clan_Death.lua | 23 | 2661 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
end;
-----------------------------------
-- onMobFight
----------------------------... | gpl-3.0 |
Craige/prosody-modules | mod_storage_mongodb/mod_storage_mongodb.lua | 32 | 1724 | local next = next;
local setmetatable = setmetatable;
local params = assert ( module:get_option("mongodb") , "mongodb configuration not found" );
prosody.unlock_globals();
local mongo = require "mongo";
prosody.lock_globals();
local json = require "util.json";
local conn
local keyval_store = {};
keyval_store.__ind... | mit |
starlightknight/darkstar | scripts/globals/spells/dragonfoe_mambo.lua | 10 | 1607 | -----------------------------------------
-- Spell: Dragonfoe Mambo
-- Grants evasion bonus to all members.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0... | gpl-3.0 |
soccermitchy/heroku-lapis | opt/src/luarocks/src/luarocks/purge.lua | 20 | 2636 |
--- Module implementing the LuaRocks "purge" command.
-- Remove all rocks from a given tree.
--module("luarocks.purge", package.seeall)
local purge = {}
package.loaded["luarocks.purge"] = purge
local util = require("luarocks.util")
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local search =... | gpl-2.0 |
uziins/uzzbot | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
pichina/skynet | service/cslave.lua | 50 | 6448 | local skynet = require "skynet"
local socket = require "socket"
require "skynet.manager" -- import skynet.launch, ...
local table = table
local slaves = {}
local connect_queue = {}
local globalname = {}
local queryname = {}
local harbor = {}
local harbor_service
local monitor = {}
local monitor_master_set = {}
local ... | mit |
O-P-E-N/CC-ROUTER | feeds/luci/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/netlink.lua | 68 | 2502 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
local devices = luci.sys.net.devices()
m = Map("luci_statistics",
translate("Netlink Plugin Configuration"),
translate(
"The netlink plugin collects extended informa... | gpl-2.0 |
hyee/dbcli | lua/hotkeys.lua | 1 | 3705 | local env=env
local hotkeys={}
local map={
["\8"]="BACKSPACE",
["^%?"]="BACKSPACE",
["^H"]="BACKSPACE",
["^[^H"]="ALT-BACKSPACE",
["^_"]="ALT-BACKSPACE",
["\9"]="TAB",
["^[[2~"]="INSERT",
["^[[3~"]="DEL",
["^[[4~"]="END",
["^[[5~"]="PGUP",
["^[[6~"]="PGDOWN",
["^[[H"]="HO... | mit |
gedads/Neodynamis | scripts/zones/Mhaura/npcs/Felisa.lua | 17 | 1201 | -----------------------------------
-- Area: Mhaura
-- NPC: Felisa
-- Admits players to the dock in Mhaura.
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
-----------------------------------
-- onT... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/weaponskills/ruinator.lua | 10 | 1698 | -----------------------------------
-- Ruinator
-- Axe weapon skill
-- Skill level: 357
-- Description: Delivers a four-hit attack. params.accuracy varies with TP
-- In order to obtain Ruinator, the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all additional hit... | gpl-3.0 |
bigrpg/skynet | test/testcrypt.lua | 12 | 1179 | local skynet = require "skynet"
local crypt = require "skynet.crypt"
local text = "hello world"
local key = "12345678"
local function desencode(key, text, padding)
local c = crypt.desencode(key, text, crypt.padding[padding or "iso7816_4"])
return crypt.base64encode(c)
end
local function desdecode(key, text, paddin... | mit |
starlightknight/darkstar | scripts/zones/Bastok_Markets/npcs/Enu.lua | 9 | 2198 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Enu
-- Type: Quest NPC
-- !pos -253.673 -13 -92.326 235
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets/IDs");
require("scripts/globals/weather");
require("scripts/globals/quests");
--------------------------------... | gpl-3.0 |
Micr0Bit/OpenRA | mods/ra/maps/soviet-05/main.lua | 33 | 8124 | CheckForBase = function()
baseBuildings = Map.ActorsInBox(Map.TopLeft, CFBPoint.CenterPosition, function(actor)
return actor.Type == "fact" or actor.Type == "powr"
end)
return #baseBuildings >= 2
end
CheckForCYard = function()
ConYard = Map.ActorsInBox(mcvGGLoadPoint.CenterPosition, ReinfEastPoint.CenterPositio... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/weaponskills/tachi_enpi.lua | 10 | 1387 | -----------------------------------
-- Tachi Enpi
-- Great Katana weapon skill
-- Skill Level: 5
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Light Gorget & Soil Gorget.
-- Aligned with the Light Belt & Soil Belt.
-- Element: None
-- Modifiers: STR:60%
-- 100... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Southern_San_dOria_[S]/npcs/Fiaudie.lua | 3 | 1112 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Fiaudie
-- @zone 80
-- !pos -10 1 35
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Caedarva_Mire/npcs/Nareema.lua | 3 | 2741 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Nareema
-- Type: Assault
-- !pos 518.387 -24.707 -467.297 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glob... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/mobskills/armor_buster.lua | 11 | 1155 | ---------------------------------------------------
-- Armor_Buster
-- Description:
-- Type: Magical
-- additional effect: WEIGHT
---------------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
--------------------------... | gpl-3.0 |
xmrxx/mrx | plugins/kickme.lua | 5 | 1221 | local function run(msg, matches)
if matches[1] == 'مغادره' then
local hash = 'kick:'..msg.to.id..':'..msg.from.id
redis:set(hash, "waite")
return '😐 يا حبيبي ('..msg.from.print_name..')\nاذا تريد تطلع من المجموعه\nدز نعم حتى اطردك لو دز لا حتى اعوفك هنا اوكك 🖖🏿🌚'
end
if msg.text then
l... | gpl-2.0 |
gedads/Neodynamis | scripts/globals/items/imperial_omelette.lua | 12 | 2964 |
-----------------------------------------
-- ID: 4331
-- Item: imperial_omelette
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Non Elvaan Stats
-- Strength 5
-- Dexterity 2
-- Intelligence -3
-- Mind 4
-- Attack % 22
-- Attack Cap 70
-- Ranged ATT % 22
-- Ranged ATT Cap 70
------------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Uleguerand_Range/npcs/Zebada.lua | 9 | 1884 | -----------------------------------
-- Area: Uleguerand Range
-- NPC: Zebada
-- Type: ENM Quest Activator
-- !pos -308.112 -42.137 -570.096 5
-----------------------------------
local ID = require("scripts/zones/Uleguerand_Range/IDs");
require("scripts/globals/keyitems");
-----------------------------------
function ... | gpl-3.0 |
pichina/skynet | lualib/http/httpd.lua | 101 | 3708 | local internal = require "http.internal"
local table = table
local string = string
local type = type
local httpd = {}
local http_status_msg = {
[100] = "Continue",
[101] = "Switching Protocols",
[200] = "OK",
[201] = "Created",
[202] = "Accepted",
[203] = "Non-Authoritative Information",
[204] = "No Content",... | mit |
deathshadow85/max | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
gedads/Neodynamis | scripts/globals/weaponskills/heavy_swing.lua | 25 | 1367 | -----------------------------------
-- Heavy Swing
-- Staff weapon skill
-- Skill Level: 5
-- Deacription:Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/bibikibo.lua | 12 | 1323 | -----------------------------------------
-- ID: 4314
-- Item: Bibikibo
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Bastok_Markets/npcs/Zacc.lua | 3 | 1627 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Zacc
-- Type: Quest NPC
-- !pos -255.709 -13 -91.379 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets/TextIDs");
require("sc... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/embrava.lua | 11 | 1070 | --------------------------------------
-- Spell: Embrava
-- Consumes 20% of your maximum MP. Gradually restores
-- target party member's HP and MP and increases attack speed.
--------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
---... | gpl-3.0 |
zzzaaiidd/TCHUKY | plugins/decoration.lua | 2 | 7421 |
local function th3boss(msg, matches)
local reply_id = msg['id']
if not is_momod(msg) then
local th3boss= '❌ لَتلعَب بكَيفك 😜 المشرفيَنَ فقطَ ✔️ 👍'
return
reply_msg(reply_id, th3boss, ok_cb, false)
end
if #matches < 2 then
return "بعد هذا الأمر، من خلال تحديد كلمة المسافة أو العبارة التي تريد إدخال الكتابة ا... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Windurst_Waters_[S]/npcs/Ruirara.lua | 3 | 1057 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ruirara
-- Type: Standard NPC
-- @zone 94
-- !pos -87.378 -2 -158.019
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Garlaige_Citadel/Zone.lua | 12 | 2857 | -----------------------------------
--
-- Zone: Garlaige_Citadel (200)
--
-----------------------------------
local ID = require("scripts/zones/Garlaige_Citadel/IDs");
require("scripts/globals/conquest");
require("scripts/globals/treasure")
require("scripts/globals/status");
-----------------------------------
functio... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/mobskills/astral_flow_pet.lua | 5 | 2855 | ---------------------------------------------
-- Astral Flow
-- Will make existing pet use astral flow skill
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/msg");
------------------... | gpl-3.0 |
arrayfire/arrayfire_lua | wrapper/arrayfire/funcs/linear_algebra.lua | 4 | 4521 | --- Linear algebra functions.
-- Modules --
local af = require("arrayfire_lib")
local array = require("impl.array")
-- Imports --
local Call = array.Call
local CallWrap = array.CallWrap
local IsArray = array.IsArray
local ToType = array.ToType
-- Exports --
local M = {}
-- See also: https://github.com/arrayfire/arr... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/Oldton_Movalpolos/npcs/Mining_Point.lua | 17 | 1092 | -----------------------------------
-- Area: Oldton Movalpolos
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Oldton_Movalpolos/TextIDs");
-----... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Temenos/bcnms/central_temenos_3rd_floor.lua | 9 | 1339 | -----------------------------------
-- Area: Temenos
-- Name: Central Temenos 3rd Floor
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/battlefield")
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBattlefieldTick(ba... | gpl-3.0 |
dani-sj/mahandany | plugins/chatbot.lua | 31 | 1138 |
local function run(msg)
if msg.text == "hi" then
return "Hello bb"
end
if msg.text == "Hi" then
return "Hello honey"
end
if msg.text == "Hello" then
return "Hi bb"
end
if msg.text == "hello" then
return "Hi honey"
end
if msg.text == "Salam" then
return "Salam aleykom"
end
if msg.text == "salam" then
return "va a... | gpl-2.0 |
gedads/Neodynamis | scripts/zones/Bastok_Mines/npcs/Echo_Hawk.lua | 3 | 1618 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Echo Hawk
-- Standard Info NPC
-- Involved in Quest: The Siren's Tear
-- !pos -0.965 5.999 -15.567 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/spells/sleep_ii.lua | 12 | 1105 | -----------------------------------------
-- Spell: Sleep II
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(caster, target, spell)
return 0
end
functi... | gpl-3.0 |
gedads/Neodynamis | scripts/globals/items/black_curry_bun.lua | 12 | 1955 | -----------------------------------------
-- ID: 5758
-- Item: black_curry_bun
-- Food Effect: 30minutes, All Races
-----------------------------------------
-- TODO: Group effects
-- DEX +2
-- VIT +4
-- INT +1
-- Accuracy +5
-- Ranged Accuracy +5
-- Evasion +5
-- DEF +15% (cap 180)
-- Resist Sleep +3
-- hHP +2
-- hMP ... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/mobskills/binary_tap.lua | 11 | 1449 | ---------------------------------------------
-- Binary Tap
-- Attempts to absorb two buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any buffs
---... | gpl-3.0 |
hyee/dbcli | mysql/sql.lua | 1 | 2633 | local env=env
local db,grid=env.getdb(),env.grid
local cfg=env.set
local sql=env.class(env.scripter)
function sql:ctor()
self.db=env.getdb()
self.command="sql"
self.help_title='Run SQL script under the "sql" directory. '
self.script_dir,self.extend_dirs=self.db.ROOT_PATH.."sql",{}
end
function sql:val... | mit |
gedads/Neodynamis | scripts/globals/mobskills/randgrith.lua | 33 | 1026 | ---------------------------------------------
-- Randgrith
--
-- Description: Lowers target's evasion. Gullintani/Mjollnir: Temporarily improves accuracy.
-- Type: Physical
-- Range: Melee
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require... | gpl-3.0 |
rezaar/Tele-Sorena | plugins/googel.lua | 1 | 1049 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
BillardDRP/nathaniel-rp-addons | addons/billard_ents/lua/entities/billard_weed_plant/init.lua | 3 | 1175 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/props_lab/cactus.mdl") //Because who needs custom models, amirite?
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
local phys =... | gpl-3.0 |
gedads/Neodynamis | scripts/zones/Vunkerl_Inlet_[S]/Zone.lua | 10 | 2225 | -----------------------------------
--
-- Zone: Vunkerl_Inlet_[S] (83)
--
-----------------------------------
package.loaded["scripts/zones/Vunkerl_Inlet_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Vunkerl_Inlet_[S]/TextIDs");
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
arrayfire/arrayfire_lua | examples/graphics/fractal.lua | 4 | 2876 | --[[
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... | bsd-3-clause |
gedads/Neodynamis | scripts/zones/Bhaflau_Thickets/npcs/Kamih_Mapokhalam.lua | 17 | 1869 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: Kamih Mapokhalam
-- 20 -30 597 z 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Bhaflau_Thickets... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/death_scythe_+1.lua | 12 | 1069 | -----------------------------------------
-- ID: 16791
-- Item: Death Scythe +1
-- Additional Effect: Drains HP
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(pla... | gpl-3.0 |
starlightknight/darkstar | scripts/globals/items/salmon_rice_ball.lua | 11 | 1213 | -----------------------------------------
-- ID: 4590
-- Item: Salmon Rice Ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +10
-- Dex +2
-- Vit +2
-- Mnd -1
-- hHP +1
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Atk +40
-- Def +40
--------... | gpl-3.0 |
starlightknight/darkstar | scripts/zones/Metalworks/npcs/Ayame.lua | 9 | 2541 | -----------------------------------
-- Area: Metalworks
-- NPC: Ayame
-- Involved in Missions
-- Starts and Finishes Quest: True Strength
-- !pos 133 -19 34 237
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/titles");
require("script... | gpl-3.0 |
bradparks/hammerspoon-config | _scratch/rdoc.lua | 2 | 1121 | -- Doc tools
local module = {}
local fnutils = require("hs.fnutils")
module.rdoc = function(thing)
if type(thing) ~= "table" then
print("rdoc(docObject, filename) -- Output recursive documentation dump.")
else
print(thing)
print("--------------------------------------------------------... | mit |
gedads/Neodynamis | scripts/globals/items/smoldering_salisbury_steak.lua | 12 | 1757 | -----------------------------------------
-- ID: 5924
-- Item: Smoldering Salisbury Steak
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- HP +30
-- Strength +7
-- Intelligence -5
-- Attack % 20 Cap 160
-- Ranged Attack %20 Cap 160
-- Dragon Killer +5
-------------------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.