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 |
|---|---|---|---|---|---|
MostTheBest/Nod-32 | plugins/inpm.lua | 59 | 3138 | 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 |
HorrorClown/PewX-Awesome-Browser | PAB/client/classes/dxGUI/CDX__Manager.lua | 1 | 2380 | --
-- HorrorClown (PewX)
-- Using: IntelliJ IDEA 14 Ultimate
-- Date: 19.12.2014 - Time: 18:19
-- pewx.de // iGaming-mta.de // iRace-mta.de // iSurvival.de // mtasa.de
--
CDXManager = {}
function CDXManager:constructor()
self.windows = {}
end
function CDXManager:destructor()
end
function CDXManager:show()
a... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/weaponskills/gale_axe.lua | 25 | 1339 | -----------------------------------
-- Gale Axe
-- Axe weapon skill
-- Skill level: 70
-- Chokes enemy. Duration of effect varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget.
-- Aligned with the Breeze Belt.
-- Element: Wind
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- 1.00 ... | gpl-3.0 |
MrClash/M0nster | bot/utils.lua | 473 | 24167 | 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 |
Arcscion/Shadowlyre | scripts/globals/abilities/fighters_roll.lua | 3 | 2585 | -----------------------------------
-- Ability: Fighter's Roll
-- Improves "Double Attack" rate for party members within area of effect
-- Optimal Job: Warrior
-- Lucky Number: 5
-- Unlucky Number: 9
-- Level: 49
--
-- Die Roll |No WAR |With WAR
-- -------- -------- -----------
-- 1 |2% |8%
-- 2 ... | gpl-3.0 |
LouisK130/Orange-Cosmos-Roleplay | ocrp/entities/weapons/swat_usp_ocrp/shared.lua | 1 | 1185 | if (CLIENT) then
SWEP.PrintName = "USP"
SWEP.Slot = 2
SWEP.SlotPos = 3
SWEP.IconLetter = "u"
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = false
SWEP.CSMuzzleFlashes = true
SWEP.SwayScale = 1.0
SWEP.BobScale = 1.0
killicon.AddFont("swat_usp_ocrp","CSKillIcons",SWEP.IconLetter,Color(255,80,0,25... | mit |
Arcscion/Shadowlyre | scripts/commands/zone.lua | 7 | 14233 | ---------------------------------------------------------------------------------------------------
-- func: zone
-- desc: Teleports a player to the given zone.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "b"
};
... | gpl-3.0 |
Cyumus/GarryWare13 | gamemode/init.lua | 1 | 17294 | ////////////////////////////////////////////////
// // GarryWare Gold //
// by Hurricaaane (Ha3) //
// and Kilburn_ //
// http://www.youtube.com/user/Hurricaaane //
//--------------------------------------------//
// Serverside Initializati... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/globals/items/fish_mithkabob.lua | 12 | 1464 | -----------------------------------------
-- ID: 4398
-- Item: fish_mithkabob
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 1
-- Vitality 2
-- Mind -1
-- Defense % 25
-- Defense Cap 90
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
jono659/enko | scripts/zones/Toraimarai_Canal/npcs/qm9.lua | 23 | 1404 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: ???
-- Involved In Quest: Wild Card
-- @zone 169 // not accurate
-- @pos 220 16 -50 // not accurate
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Port_San_dOria/npcs/HomePoint#2.lua | 3 | 1264 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#2
-- !pos 48 -12.000 -105 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require("scripts/globals/... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Uleguerand_Range/Zone.lua | 1 | 2506 | -----------------------------------
--
-- Zone: Uleguerand_Range (5)
--
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/zones/Uleguerand_Range/MobIDs");
require("sc... | gpl-3.0 |
jono659/enko | scripts/zones/Southern_San_dOria/npcs/Pourette.lua | 30 | 2210 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Pourette
-- Only sells when San d'Oria controlls Derfland Region
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
N0U/Zero-K | units/chickena.lua | 3 | 4501 | unitDef = {
unitname = [[chickena]],
name = [[Cockatrice]],
description = [[Assault/Anti-Armor]],
acceleration = 0.36,
brakeRate = 0.205,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildPic = [[chickena.p... | gpl-2.0 |
simenkid/nodemcu-mqtt-node | mqnode.lua | 1 | 25891 | ------------------------------------------------------------------------------
-- Client Device of Light-weight MQTT Machine Network (LWMQN) for NODEMCU
-- LWMQN Project
-- LICENSE: MIT
-- Simen Li <simenkid@gmail.com>
------------------------------------------------------------------------------
local M = {}
local tm,... | mit |
rtsisyk/tarantool | test/box/access_bin.test.lua | 1 | 4095 | env = require('test_run')
test_run = env.new()
--
-- Access control tests which require a binary protocol
-- connection to the server
--
box.schema.user.grant('guest','read,write,execute','universe')
session = box.session
remote = require('net.box')
c = remote.connect(box.cfg.listen)
c:call("dostring", "session.su('adm... | bsd-2-clause |
Arcscion/Shadowlyre | scripts/zones/Jugner_Forest_[S]/npcs/Glowing_Pebbles.lua | 3 | 1896 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Glowing Pebbles
-- Type: Involved in Quest
-- !pos
-- player:startEvent(0x006a); Left over Cutscene
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/items/serving_of_royal_jelly.lua | 12 | 1140 | -----------------------------------------
-- ID: 4508
-- Item: Serving of Royal Jelly
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- MP Recovery while healing 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
wez2020/new | plugins/invite.lua | 11 | 1182 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/zones/Garlaige_Citadel/npcs/qm5.lua | 3 | 1370 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm5 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- !pos -259.927 -5.500 194.410 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
N0U/Zero-K | scripts/jumpcon.lua | 5 | 19664 | include "constants.lua"
include "JumpRetreat.lua"
local jump = piece 'jump'
local torso = piece 'torso'
local flare = piece 'flare'
local pelvis = piece 'pelvis'
local rcalf = piece 'rcalf'
local lcalf = piece 'lcalf'
local lthigh = piece 'lthigh'
local rthigh = piece 'rthigh'
local larm = piece 'larm'
local ... | gpl-2.0 |
mamad-sudo/novin | plugins/lock-fosh.lua | 24 | 2263 | local function pre_process(msg)
local chkfosh = redis:hget('settings:fosh',msg.chat_id_)
if not chkfosh then
redis:hset('settings:fosh',msg.chat_id_,'off')
end
end
local function run(msg, matches)
--Commands --دستورات فعال و غیرفعال کردن فحش
if matches[1]:lower() == 'unlock' then
if matches[2]:lower() == 'fo... | gpl-3.0 |
N0U/Zero-K | LuaRules/Gadgets/bank.lua | 5 | 3213 | function gadget:GetInfo()
return {
name = "Bank",
desc = "Handle Debts.",
author = "CarRepairer",
date = "2010-07-24",
license = "GNU GPL, v2 or later",
layer = 1,
enabled = false,
}
end
local echo = Spring.Echo
-------------------------------------------... | gpl-2.0 |
jono659/enko | scripts/zones/Gusgen_Mines/npcs/Mining_Point.lua | 29 | 1093 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Gusgen_Mines/TextIDs");
----------... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Metalworks/npcs/High_Bear.lua | 3 | 1884 | -----------------------------------
-- Area: Metalworks
-- NPC: High Bear
-- Type: Quest Giver
-- @zone 237
-- !pos 25.231 -14.999 4.552
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/keyitems");
require("scripts/globals/titles");
-----------------------------------... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/West_Sarutabaruta/npcs/Cavernous_Maw.lua | 3 | 1467 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Cavernous Maw
-- Teleports Players to West Sarutabaruta [S]
-- !pos -2.229 0.001 -162.715 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
jono659/enko | scripts/globals/items/ojo_rice_ball.lua | 15 | 1749 | -----------------------------------------
-- ID: 5929
-- Item: Ojo Rice Ball
-- Food Effect: 60 Mins, All Races
-----------------------------------------
-- HP 50
-- Dexterity 5
-- Vitality 5
-- Character 5
-- Effect with enhancing equipment
-- Attack +60
-- Defense +40
-- Triple Attack 2
------------------------------... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/spells/blind.lua | 5 | 1586 | -----------------------------------------
-- Spell: Blind
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
functi... | gpl-3.0 |
jono659/enko | scripts/zones/Windurst_Waters/npcs/Machitata.lua | 36 | 1704 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Machitata
-- Involved in Quest: Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = 163 0 -22
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
requir... | gpl-3.0 |
srvz/telegram-bot | 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 |
Moodstocks/torch7 | File.lua | 7 | 16006 | local File = torch.getmetatable('torch.File')
function File:writeBool(value)
if value then
self:writeInt(1)
else
self:writeInt(0)
end
end
function File:readBool()
return (self:readInt() == 1)
end
local TYPE_NIL = 0
local TYPE_NUMBER = 1
local TYPE_STRING = 2
local TYPE_TABLE = 3
l... | bsd-3-clause |
Arcscion/Shadowlyre | scripts/zones/Kazham/npcs/Gatih_Mijurabi.lua | 3 | 1873 | -----------------------------------
-- Area: Kazham
-- NPC: Gatih Mijurabi
-- Type: Standard NPC
-- @zone 250
-- !pos 58.249 -13.086 -49.084
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
----------------------... | gpl-3.0 |
jono659/enko | scripts/zones/Aydeewa_Subterrane/npcs/qm1.lua | 15 | 1185 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: ??? (Spawn Nosferatu(ZNM T3))
-- @pos -199 8 -62 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aydeewa_Subterrane/TextIDs");
-... | gpl-3.0 |
jono659/enko | scripts/globals/items/red_hot_cracker.lua | 35 | 1341 | -----------------------------------------
-- ID: 4281
-- Item: red_hot_cracker
-- Food Effect: 3Min, All Races
-----------------------------------------
-- HP Recovered While Healing 9
-- Beast Killer 5
-- Resist Sleep 5
-----------------------------------------
require("scripts/globals/status");
--------... | gpl-3.0 |
jono659/enko | scripts/globals/abilities/pets/glittering_ruby.lua | 6 | 1111 | ---------------------------------------------------
-- Glittering Ruby
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbi... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/North_Gustaberg/npcs/Kuuwari-Aori_WW.lua | 3 | 3343 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Kuuwari-Aori, W.W.
-- Type: Outpost Conquest Guards
-- !pos -584.687 39.107 54.281 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
zzh442856860/skynet-Note | lualib/mqueue.lua | 115 | 1798 | -- This is a deprecated module, use skynet.queue instead.
local skynet = require "skynet"
local c = require "skynet.core"
local mqueue = {}
local init_once
local thread_id
local message_queue = {}
skynet.register_protocol {
name = "queue",
-- please read skynet.h for magic number 8
id = 8,
pack = skynet.pack,
u... | mit |
N0U/Zero-K | LuaRules/Configs/StartBoxes/Conquest_of_Paradise_v1.lua | 11 | 13079 | return {
[0] = {
boxes = {
{
{1337, 4200},
{1835.4140625, 3731.3166503906},
{1781.3040771484, 3796.2602539063},
{1766.8371582031, 3928.3518066406},
{1770.8837890625, 4173.1723632813},
{1672.4652099609, 4296.7426757813},
{1602.6494140625, 4462.306640625},
{1630.5236816406, 4583.8208... | gpl-2.0 |
jono659/enko | scripts/globals/mobskills/Dispelling_Wind.lua | 6 | 1038 | ---------------------------------------------
-- Dispelling Wind
--
-- Description: Dispels two effects from targets in an area of effect.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 10' radial
-- Notes:
---------------------------------------------
require("/scripts/globals/s... | gpl-3.0 |
adib1380/anti | plugins/rae.lua | 616 | 1312 | do
function getDulcinea( text )
-- Powered by https://github.com/javierhonduco/dulcinea
local api = "http://dulcinea.herokuapp.com/api/?query="
local query_url = api..text
local b, code = http.request(query_url)
if code ~= 200 then
return "Error: HTTP Connection"
end
dulcinea = json:decode(b)
... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/zones/Jugner_Forest_[S]/npcs/Gate_Sentry.lua | 3 | 1042 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Gate Sentry
-- Type: Standard NPC
-- !pos -265.235 -2.399 405.246 82
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Forest_[... | gpl-3.0 |
jono659/enko | scripts/zones/Port_San_dOria/npcs/Jaireto.lua | 36 | 1373 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Jaireto
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextI... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Southern_San_dOria/npcs/Anxaberoute.lua | 3 | 1501 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Anxaberoute
-- Type: Standard Info NPC
-- @zone 230
-- !pos 108.892 0.000 -49.038
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/South... | gpl-3.0 |
Cyumus/GarryWare13 | gamemode/wareminigames/alarmcrates.lua | 1 | 3760 | WARE.Author = "Kilburn"
WARE.Models = {
"models/props_junk/wood_crate001a.mdl",
"models/props_wasteland/speakercluster01a.mdl"
}
local Alarms = {
"ambient/alarms/alarm_citizen_loop1.wav",
"ambient/alarms/alarm1.wav",
"ambient/alarms/city_firebell_loop1.wav",
"ambient/alarms/siren.wav",
}
WARE.Speakers = {}
fun... | gpl-2.0 |
jono659/enko | scripts/zones/Sealions_Den/Zone.lua | 15 | 2028 | -----------------------------------
--
-- Zone: Sealions_Den (32)
--
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Sealions_Den/TextIDs");
----------------------... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Yughott_Grotto/TextIDs.lua | 3 | 1096 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6539; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6545; -- Obtained: <item>.
GIL_OBTAINED = 6546; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6548; -- Obtained... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/San_dOria-Jeuno_Airship/npcs/Nigel.lua | 30 | 2316 | -----------------------------------
-- Area: San d'Oria-Jeuno Airship
-- NPC: Nigel
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/San_dOria-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/San_dOria-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade... | gpl-3.0 |
jono659/enko | scripts/zones/Western_Altepa_Desert/npcs/Cermet_Headstone.lua | 17 | 2670 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Earth Fragment)
-- @pos -108 10 -216 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
------------------------... | gpl-3.0 |
rtsisyk/tarantool | test/vinyl/gh.test.lua | 1 | 8035 | fiber = require('fiber')
env = require('test_run')
test_run = env.new()
-- gh-283: hang after three creates and drops
s = box.schema.space.create('space0', {engine='vinyl'})
i = s:create_index('space0', {type = 'tree', parts = {1, 'string'}})
s:insert{'a', 'b', 'c'}
s:drop()
s = box.schema.space.create('space0', {eng... | bsd-2-clause |
jono659/enko | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Spear.lua | 17 | 1476 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Spear
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
functio... | gpl-3.0 |
spawnazzo/luci | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo.lua | 141 | 1038 | --[[
smap_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.i18n")
re... | apache-2.0 |
jono659/enko | 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 |
Arcscion/Shadowlyre | scripts/zones/Southern_San_dOria/npcs/Kipopo.lua | 3 | 1843 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Kipopo
-- Type: Leathercraft Synthesis Image Support
-- !pos -191.050 -2.15 12.285 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
jono659/enko | scripts/globals/spells/foe_requiem.lua | 11 | 1624 | -----------------------------------------
-- Spell: Foe Requiem
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,sp... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/abilities/rapture.lua | 4 | 1125 | -----------------------------------
-- Ability: Rapture
-- Enhances the potency of your next white magic spell.
-- Obtained: Scholar Level 55
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge
-- ----- -------- -----... | gpl-3.0 |
jono659/enko | scripts/zones/The_Garden_of_RuHmet/mobs/Aw_zdei.lua | 12 | 1904 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- MOB: Aw'Zdei
-- Animation Sub 0 Pot Form
-- Animation Sub 1 Pot Form (reverse eye position)
-- Animation Sub 2 Bar Form
-- Animation Sub 3 Ring Form
-----------------------------------
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
bjtaylor1/osrm-backend | third_party/flatbuffers/lua/flatbuffers/numTypes.lua | 6 | 4437 | local m = {}
local ba = require("flatbuffers.binaryarray")
local bpack = ba.Pack
local bunpack = ba.Unpack
local type_mt = {}
function type_mt:Pack(value)
return bpack(self.packFmt, value)
end
function type_mt:Unpack(buf, pos)
return bunpack(self.packFmt, buf, pos)
end
function type_mt:ValidNumber(n)... | bsd-2-clause |
Arcscion/Shadowlyre | scripts/zones/Uleguerand_Range/npcs/HomePoint#4.lua | 3 | 1251 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#4
-- !pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
monsieurzhang/OpenNMT | tools/build_vocab.lua | 7 | 1515 | require('onmt.init')
local cmd = onmt.utils.ExtendedCmdLine.new('build_vocab.lua')
local options = {
{
'-data', '',
[[Data file.]],
{
valid = onmt.utils.ExtendedCmdLine.fileExists
}
},
{
'-save_vocab', '',
[[Vocabulary dictionary prefix.]],
{
valid = onmt.utils.ExtendedCm... | mit |
jono659/enko | scripts/zones/Southern_San_dOria/npcs/Ominous_Cloud.lua | 19 | 5169 | -----------------------------------
-- Area: Southern Sandoria
-- NPC: Ominous Cloud
-- Type: Traveling Merchant NPC
-- @zone: 230
-- @pos -41.550 1.999 -2.845
--
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
------------... | gpl-3.0 |
JoseEduardo/shaykie_bot | classes/lootprocedure.lua | 1 | 7310 | --[[
@Authors: Ben Dol (BeniS)
@Details: LootProcedure class for auto looting logic.
]]
if not Procedure then
dofile("procedure.lua")
end
LootProcedure = extends(Procedure, "LootProcedure")
LootProcedure.create = function(id, position, corpse, timeoutTicks)
local proc = LootProcedure.internalCreate()
proc:... | mit |
sdgdsffdsfff/skynet | test/testredis2.lua | 82 | 1043 | local skynet = require "skynet"
local redis = require "redis"
local db
function add1(key, count)
local t = {}
for i = 1, count do
t[2*i -1] = "key" ..i
t[2*i] = "value" .. i
end
db:hmset(key, table.unpack(t))
end
function add2(key, count)
local t = {}
for i = 1, count do
... | mit |
Arcscion/Shadowlyre | scripts/zones/Western_Adoulin/npcs/Ruth.lua | 3 | 1688 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Ruth
-- Type: Standard NPC and Quest NPC
-- Involved With Quest: 'A Pioneers Best (Imaginary) Friend'
-- @zone 256
-- !pos -144 4 -10 256
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/quests");... | gpl-3.0 |
hfjgjfg/m54 | plugins/arabic_lock.lua | 30 | 1090 |
antiarabic = {}-- An empty table for solving multiple kicking problem
do
local function run(msg, matches)
if is_momod(msg) then -- Ignore mods,owner,admins
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['lock_arabic'] then
if data[tostring(msg.to.id... | gpl-2.0 |
abasshacker/aliend0 | plugins/cpu.lua | 244 | 1893 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' you... | gpl-2.0 |
jono659/enko | scripts/zones/The_Eldieme_Necropolis/npcs/_5ff.lua | 34 | 1109 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Leviathan's Gate
-- @pos 88 -34 -60 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextID... | gpl-3.0 |
hfjgjfg/m54 | plugins/boobs.lua | 90 | 1731 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
jono659/enko | scripts/zones/Misareaux_Coast/npcs/_0p8.lua | 17 | 1776 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Iron Gate
-- Entrance to Sacrarium
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Misarea... | gpl-3.0 |
Noiwex/gmod-medialib | ext/id3parser.lua | 2 | 5367 | -- Enables parsing ID3 headers of given mp3 files. This means service:query returns a lot more relevant
-- information, such as artist and title instead of just the filename.
--
-- The downside is that parsing the header requires fetching the whole mp3 file, which is expensive and
-- takes a while.
--
-- Orig. Source: ... | mit |
Arcscion/Shadowlyre | scripts/globals/spells/bluemagic/grand_slam.lua | 33 | 1713 | -----------------------------------------
-- Spell: Grand Slam
-- Delivers an area attack. Damage varies with TP
-- Spell cost: 24 MP
-- Monster Type: Beastmen
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 2
-- Stat Bonus: INT+1
-- Level: 30
-- Casting Time: 1 seconds
-- Recast Time: 14.25 seconds
-- Skillchain... | gpl-3.0 |
SinaMSRE/ABTestingGateway | lib/abtesting/adapter/policy.lua | 3 | 4544 | ---
-- @classmod abtesting.adapter.policy
-- @release 0.0.1
local modulename = "abtestingAdapterPolicy"
local _M = { _VERSION = "0.0.1" }
local mt = { __index = _M }
local ERRORINFO = require('abtesting.error.errcode').info
local fields = require('abtesting.utils.init').fields
local separator = ':'
---
-- policyI... | mit |
Arcscion/Shadowlyre | scripts/zones/Windurst_Waters_[S]/npcs/Rohn_Ehlbalna.lua | 3 | 1063 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Rohn Ehlbalna
-- Type: Standard NPC
-- @zone 94
-- !pos -43.473 -4.5 46.496
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/The_Eldieme_Necropolis/npcs/Treasure_Coffer.lua | 16 | 4793 | -----------------------------------
-- 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/keyitems"... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/mobskills/dragon_breath.lua | 34 | 1375 | ---------------------------------------------
-- Dragon Breath
--
-- Description: Deals Fire damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Fafnir, Nidhogg, Cynoprosopi, and Wyrm. Because of the high damage output... | gpl-3.0 |
adirab/wg-wrk | deps/luajit/src/jit/bcsave.lua | 20 | 18123 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | apache-2.0 |
jono659/enko | scripts/globals/spells/ionohelix.lua | 22 | 1721 | --------------------------------------
-- Spell: Ionohelix
-- Deals lightning 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/glob... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/commands/completequest.lua | 7 | 1554 | ---------------------------------------------------------------------------------------------------
-- func: completequest <logID> <questID> <player>
-- desc: Completes the given quest for the GM or target player.
---------------------------------------------------------------------------------------------------
requi... | gpl-3.0 |
jono659/enko | scripts/zones/The_Boyahda_Tree/npcs/HomePoint#1.lua | 12 | 1203 | -----------------------------------
-- 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 |
Arcscion/Shadowlyre | scripts/zones/Apollyon/mobs/Barometz.lua | 17 | 1394 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Barometz
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
---------------------------------... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Spear.lua | 17 | 1486 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Spear
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEngag... | gpl-3.0 |
jono659/enko | scripts/zones/LaLoff_Amphitheater/npcs/qm1_1.lua | 12 | 2355 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Port_Windurst/npcs/Pherchabalet.lua | 3 | 1052 | -----------------------------------
-- Area: Port Windurst
-- NPC: Pherchabalet
-- Type: Standard NPC
-- @zone 240
-- !pos 34.683 -5.999 137.447
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------------... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Temenos/mobs/Temenos_Aern.lua | 19 | 2374 | -----------------------------------
-- Area: Temenos
-- NPC: Temenos_Aern
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------------
-... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/zones/Northern_San_dOria/npcs/HomePoint#2.lua | 3 | 1271 | -----------------------------------
-- Area: Northern San dOria
-- NPC: HomePoint#2
-- !pos 10 -0.2 95 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/g... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/items/meat_mithkabob.lua | 12 | 1456 | -----------------------------------------
-- ID: 4381
-- Item: meat_mithkabob
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack % 22
-- Attack Cap 60
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
N0U/Zero-K | LuaRules/Gadgets/weapon_projectile_retarget.lua | 3 | 3981 | function gadget:GetInfo()
return {
name = "Projectile Retarget",
desc = "Retargets newly created projectiles and implements burnblow.",
author = "Google Frog",
date = "10 June 2014",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true,
}
end
-----------... | gpl-2.0 |
jono659/enko | scripts/zones/Windurst_Waters_[S]/npcs/Kopol-Rapol.lua | 38 | 1051 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kopol-Rapol
-- Type: Standard NPC
-- @zone: 94
-- @pos 131.179 -6.75 172.758
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
spawnazzo/luci | libs/nixio/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local... | apache-2.0 |
Arcscion/Shadowlyre | scripts/zones/Maze_of_Shakhrami/Zone.lua | 1 | 2132 | -----------------------------------
--
-- Zone: Maze_of_Shakhrami (198)
--
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Maze_of_Shakhrami/TextIDs");
require("scripts/zones/Maze_of_Shakhrami/MobIDs");
requi... | gpl-3.0 |
hypnoscope/let-s-code-an-indie-game | episode_34/src/logic/rooms/tilemap.lua | 9 | 2415 | local tilemap = {}
local getTile = function (self, x, y, tileSize)
local i = (math.floor(x / tileSize) + math.floor(y / tileSize) * self.tilesWide) + 1
self.lastGotTile = i
return self.map:sub(i,i)
end
local _walkable = function (char)
return (char == '.' or char == ',' or char == '~')
end
local getWalkabl... | mit |
Arcscion/Shadowlyre | scripts/zones/Valkurm_Dunes/npcs/qm4.lua | 3 | 1052 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: qm4 (???)
-- Involved in quest: Pirate's Chart
-- !pos -160 4 -131 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Valkurm_Dunes/TextIDs");... | gpl-3.0 |
MRunFoss/skynet | service/bootstrap.lua | 29 | 1191 | local skynet = require "skynet"
local harbor = require "skynet.harbor"
require "skynet.manager" -- import skynet.launch, ...
local memory = require "memory"
skynet.start(function()
local sharestring = tonumber(skynet.getenv "sharestring")
memory.ssexpand(sharestring or 4096)
local standalone = skynet.getenv "stand... | mit |
abbasgh12345/extreme0 | plugins/admin.lua | 46 | 6101 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, '... | gpl-2.0 |
Arcscion/Shadowlyre | scripts/zones/Apollyon/mobs/Earth_Elemental.lua | 119 | 2740 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
Arcscion/Shadowlyre | scripts/globals/items/pork_cutlet_rice_bowl_+1.lua | 12 | 2051 | -----------------------------------------
-- ID: 6407
-- Item: pork_cutlet_rice_bowl_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- HP +65
-- MP +65
-- STR +8
-- VIT +4
-- AGI +6
-- INT -8
-- Fire resistance +21
-- Attack +24% (cap 130)
-- Ranged Attack +24% (cap 130)
-- Store TP +5
-... | gpl-3.0 |
LouisK130/Orange-Cosmos-Roleplay | ocrp/entities/entities/police_siren/cl_init.lua | 1 | 7253 | include('shared.lua')
ENT.RenderGroup = RENDERGROUP_BOTH
local Lights = {}
Lights.Positions = {
{Vector(-34, 94, 38), Angle(0, 0, 0), Color(255,255,255,255), false};
{Vector(34, 94, 38), Angle(0, 0, 0), Color(255,255,255,255), true};
{Vector(-27, -105, 32), Angle(180, -180, 0), Color(255,0,0,255), false};
{Vector(27... | mit |
jono659/enko | scripts/zones/Southern_San_dOria/npcs/Benaige.lua | 36 | 1982 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Benaige
-- Standard Merchant NPC
-- @zone 230
-- @pos-142,-6 47
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
N0U/Zero-K | LuaRules/Gadgets/lups_flame_jitter.lua | 17 | 6545 | -- $Id: lups_flame_jitter.lua 3643 2009-01-03 03:00:52Z jk $
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Lups Flamethrower Jitter",
d... | gpl-2.0 |
jono659/enko | scripts/zones/Norg/npcs/Colleraie.lua | 38 | 1028 | -----------------------------------
-- Area: Norg
-- NPC: Colleraie
-- Type: Event Scene Replayer
-- @zone: 252
-- @pos -24.684 0.097 -39.409
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
---------------------... | gpl-3.0 |
imanmafi/Algorithm-Implementations | Boyer_Moore_Horspool/Lua/Yonaba/bmh_test.lua | 27 | 1111 | -- Tests for bmh.lua
local bmh = require 'bmh'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local status = ok and 'PA... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.