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 |
|---|---|---|---|---|---|
Gwynthell/FFDB | scripts/zones/Eastern_Altepa_Desert/npcs/Laimeve_RK.lua | 3 | 2955 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Laimeve, R.K.
-- Border Conquest Guards
-- @pos 226.493 -12.231 260.194 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/c... | gpl-3.0 |
abbasgh12345/abbassad | plugins/invite.lua | 1 | 1191 | 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 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Al_Zahbi/npcs/Suldiran.lua | 17 | 1811 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Suldiran
-- Type: NPC Quest
-- @zone: 48
-- @pos 41.658 -6.999 -42.528
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/globals/... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/spells/bluemagic/exuviation.lua | 4 | 1341 | -----------------------------------------
-- Spell: Exuviation
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------------------------------... | gpl-3.0 |
Telegram-CN/GroupButler | methods.lua | 2 | 13428 |
local BASE_URL = 'https://api.telegram.org/bot' .. config.bot_api_key
local api = {}
local function sendRequest(url)
--print(url)
local dat, code = HTTPS.request(url)
if not dat then
return false, code
end
local tab = JSON.decode(dat)
if code ~= 200 then
print(clr.red..code, tab.description..clr.rese... | gpl-2.0 |
dongjiaqiang/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
Joeyjohjjo/Johjjodarkfork | scripts/globals/mobskills/Luminous_Lance.lua | 19 | 1379 | ---------------------------------------------
-- Luminous Lance
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-------------------------------------------... | gpl-3.0 |
msafin/luci | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | 1 | 2702 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
Adirelle/LibSerializer-1.0 | tests/tests.lua | 1 | 3367 | --[[
LibSerializer-1.0 - Chat-safe (un)serializer library.
(c) 2014 Adirelle (adirelle@gmail.com)
This file is part of LibSerializer-1.0.
LibSerializer-1.0 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 ... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/globals/items/fum-long_salmon_sub.lua | 36 | 1452 | -----------------------------------------
-- ID: 4266
-- Item: Fum-Long Salmon Sub
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality 1
-- Dexterity 2
-- Intelligence 2
-- Mind -2
-- Ranged Accuracy 3
-----------------------------------------
require("scripts/globals/st... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/San_dOria-Jeuno_Airship/npcs/Nigel.lua | 12 | 2054 | -----------------------------------
-- 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 |
Vivitarut/darkstar | scripts/globals/items/bowl_of_loach_gruel.lua | 36 | 1567 | -----------------------------------------
-- ID: 5670
-- Item: Bowl of Loach Gruel
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Make Group Effect
-- Dexterity 2
-- Agility 2
-- Accuracy 7% Cap 30
-- HP 7% Cap 30
-- Evasion 4
-----------------------------------------
require("scri... | gpl-3.0 |
nagyistoce/cardpeek | dot_cardpeek_dir/scripts/lib/compatibility-with-0.7.lua | 17 | 1952 |
local DEPRECATED_FUNCS = {}
function DEPRECATED_FOR(fname)
local func = debug.getinfo(2, "n")
local orig = debug.getinfo(3, "lS")
if DEPRECATED_FUNCS[func.name]==nil then
log.print(log.WARNING,orig.short_src .. "[" .. orig.currentline .. "]: " .. func.name .. "() is deprecated, please use " .. fn... | gpl-3.0 |
BurmistrovJ/prosody-modules | mod_captcha_registration/util/dataforms.lua | 33 | 6601 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local setmetatable = setmetatable;
local pairs, ipairs = pairs, ipairs;
local tostring, type, next = tost... | mit |
Joeyjohjjo/Johjjodarkfork | scripts/globals/spells/jubaku_ni.lua | 11 | 1694 | -----------------------------------------
-- Spell: Jubaku: Ni
-- 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 |
msafin/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res.lua | 80 | 3097 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
olax/prosody-modules | mod_couchdb/couchdb/mod_couchdb.lua | 32 | 2155 |
local http = require "socket.http";
local url = require "socket.url";
local couchapi = module:require("couchdb/couchapi");
local json = module:require("couchdb/json");
local couchdb_url = assert(module:get_option("couchdb_url"), "Option couchdb_url not specified");
local db = couchapi.db(couchdb_url);
local functio... | mit |
Aftly1951/h4kurd | plugin/inpm.lua | 243 | 3007 | 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 |
kling-igor/actions | tween/spec/tween_spec.lua | 3 | 16040 | local tween = require 'tween'
describe('tween', function()
describe('.new', function()
it('checks parameters', function()
-- time should be a positive number
assert.error(function() tween.new(0, {}, {}) end)
assert.error(function() tween.new(-1, {}, {}) end)
assert.error(function() tween.... | mit |
kyranf/robotarmyfactorio | migrations/robotarmy_0.4.11.lua | 1 | 2111 | require("config.config")
game.reload_script()
--ensure all force-specific tables and researches are handled/created
for i, force in pairs(game.forces) do
force.reset_recipes()
force.reset_technologies()
--force all of the known recipes to be enabled if the appropriate research is already done.
if for... | mit |
kepler155c/opus-apps | farms/apis/crafting.lua | 1 | 1617 | local Adapter = require('core.inventoryAdapter')
local Craft = require('farms.craft')
local turtle = _G.turtle
local CRAFTING_TABLE = 'minecraft:crafting_table'
local function clearGrid(inventory)
for i = 1, 16 do
local count = turtle.getItemCount(i)
if count > 0 then
inventory:insert(i, count)
if t... | mit |
jozeff3/smart_devil | plugins/lock_username.lua | 20 | 1116 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
sprats/arkanoid | scene1.lua | 1 | 2284 | ---------------------------------------------------------------------------------
--
-- scene.lua
--
---------------------------------------------------------------------------------
local sceneName = ...
local composer = require( "composer" )
-- Load scene with same root filename as this file
local scene... | gpl-3.0 |
msafin/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 80 | 2000 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
Gwynthell/FFDB | scripts/zones/Selbina/npcs/Vuntar.lua | 2 | 2947 | -----------------------------------
-- Area: Selbina
-- NPC: Vuntar
-- Starts and Finishes Quest: Cargo (R)
-- @pos 7 -2 -15 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/glo... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/mobskills/Numbshroom.lua | 8 | 1148 | ---------------------------------------------------
-- Queasyshroom
-- Additional effect: Fires a mushroom cap, dealing damage to a single target. Additional effect: paralysis.
-- Range is 14.7 yalms.
-- Piercing damage Ranged Attack.
-- Secondary modifiers: INT: 20%.
---------------------------------------------------... | gpl-3.0 |
sammyt291/wire | lua/entities/gmod_wire_keyboard/init.lua | 3 | 12109 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
AddCSLuaFile("remap.lua")
include('shared.lua')
include('remap.lua')
DEFINE_BASECLASS("base_wire_entity")
ENT.WireDebugName = "Wired Keyboard"
local All_Enums = {} -- table containing key -> key enum conversion
-- Add a few common keys
for i = 48, 57 do -- 0 -... | apache-2.0 |
Vivitarut/darkstar | scripts/globals/items/bowl_of_adoulin_soup_+1.lua | 36 | 1507 | -----------------------------------------
-- ID: 5999
-- Item: Bowl of Adoulin Soup +1
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- HP % 4 Cap 45
-- Vitality 4
-- Defense % 16 Cap 75
-- HP Healing 7
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
Bubbus/ACF-Missiles | lua/acf/shared/missiles/missile_uar.lua | 1 | 13139 |
--define the class
ACF_defineGunClass("UAR", {
type = "missile",
spread = 0.2, --Default is one, but since there's no per-weapon based accuracy, this will have to do.
name ="Unguided Aerial Rockets",
desc = "Rockets which fit in racks. Usefull in rocket artillery. Slow... | mit |
Vivitarut/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/AshmeaBGreinner1.lua | 36 | 1124 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Ashmea B Greinner
-- @zone 80
-- @pos 2 2 -81
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
------------------------... | gpl-3.0 |
Vivitarut/darkstar | scripts/commands/setweather.lua | 4 | 1682 | ---------------------------------------------------------------------------------------------------
-- func: setweather
-- auth: <Unknown> :: Modded by atom0s.
-- desc: Sets the ccurrent weather for the current zone.
---------------------------------------------------------------------------------------------------... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/globals/items/heat_rod.lua | 16 | 1056 | -----------------------------------------
-- ID: 17071
-- Item: Heat Rod
-- Additional Effect: Lightning Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/AlTaieu/npcs/_0x2.lua | 8 | 1992 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Rubious Crystal (West Tower)
-- @pos -683.709 -6.250 -222.142 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
require("... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/RoMaeve/npcs/qm2.lua | 8 | 1917 | -----------------------------------
-- Area: Ro'Maeve
-- NPC: qm2 (???)
-- Involved in Mission: Bastok 7-1
-- @pos 102 -4 -114 122 and <many pos>
-----------------------------------
package.loaded["scripts/zones/RoMaeve/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Behemoths_Dominion/mobs/Behemoth.lua | 8 | 1648 | -----------------------------------
-- Area: Behemoth's Dominion
-- HNM: Behemoth
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
--------------------... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/items/prime_beef_stewpot.lua | 36 | 1890 | -----------------------------------------
-- ID: 5548
-- Item: Prime Beef Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Strength +2
-- Agility +1
-- Mind +1
-- HP Recovered while healing +7
-- MP Recovered while healing +2
-- Atta... | gpl-3.0 |
Telegram-CN/GroupButler | plugins/banhammer.lua | 3 | 7329 | local function cron()
local all = db:hgetall('tempbanned')
if next(all) then
for unban_time,info in pairs(all) do
if os.time() > tonumber(unban_time) then
local chat_id, user_id = info:match('(-%d+):(%d+)')
api.unbanUser(chat_id, user_id, true)
api.unbanUser(chat_id, user_id, false)
db:hdel('temp... | gpl-2.0 |
czanyou/node.lua | modules/rtsp/tests/media/test_ts_reader.lua | 1 | 2108 | local utils = require('util')
local fs = require('fs')
local path = require('path')
local assert = require('assert')
local tap = require('util/tap')
local lmedia = require("lmedia")
local lreader = require("lmedia.ts.reader")
local basePath = utils.dirname()
local test = tap.test
-- 这个测试将从 TS 流中分离出单纯的 ES ... | apache-2.0 |
Gwynthell/FFDB | scripts/globals/items/slice_of_diatryma_meat.lua | 3 | 1229 | -----------------------------------------
-- ID: 5290
-- Item: Slice of Diatryma Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +3
-- Intelligence -5
-----------------------------------------
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Windurst_Woods/npcs/Abby_Jalunshi.lua | 38 | 1042 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Abby Jalunshi
-- Type: Moghouse Renter
-- @zone: 241
-- @pos -101.895 -5 36.172
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-------... | gpl-3.0 |
Gwynthell/FFDB | scripts/zones/East_Ronfaure/TextIDs.lua | 1 | 1033 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6390; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6393; -- Obtained: <item>.
GIL_OBTAINED = 6394; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6396; -- Obt... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Port_Windurst/npcs/Ryan.lua | 34 | 1805 | -----------------------------------
-- Area: Port Windurst
-- NPC: Ryan
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Port_Windurst/TextIDs")... | gpl-3.0 |
sammyt291/wire | lua/wire/stools/grabber.lua | 8 | 1413 | WireToolSetup.setCategory( "Physics/Constraints" )
WireToolSetup.open( "grabber", "Grabber", "gmod_wire_grabber", nil, "Grabbers" )
if CLIENT then
language.Add( "tool.wire_grabber.name", "Grabber Tool (Wire)" )
language.Add( "tool.wire_grabber.desc", "Spawns a constant grabber prop for use with the wire system." )
... | apache-2.0 |
jozeff3/smart_devil | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | gpl-2.0 |
sammyt291/wire | lua/wire/stools/waypoint.lua | 7 | 2827 | WireToolSetup.setCategory( "Detection/Beacon" )
WireToolSetup.open( "waypoint", "Waypoint", "gmod_wire_waypoint", nil, "Waypoints" )
if ( CLIENT ) then
language.Add( "Tool.wire_waypoint.name", "Waypoint Beacon Tool (Wire)" )
language.Add( "Tool.wire_waypoint.desc", "Spawns a waypoint beacon for use with the wire sys... | apache-2.0 |
asgty/teleashraf | plugins/ingroup.lua | 47 | 60291 | do
-- Check Member
local function check_member_autorealm(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.peer_id
if member_id ~= our_id then
-- Group configuration
data[... | gpl-2.0 |
szorfein/dotfiles | awm-m3/.config/awesome/layout/panel-control.lua | 1 | 6077 | local wibox = require('wibox')
local helpers = require('lib.helpers')
local control = class()
function control:init()
self.mem = self:progressbar(5)
self.cpu = self:progressbar(5)
self.geoloc = self:geoloc()
self.disk = self:progressbar(5)
self.battery = self:progressbar(5)
self:signals()
return wibox.w... | mit |
Vivitarut/darkstar | scripts/zones/Port_Bastok/npcs/Talib.lua | 19 | 2852 | -----------------------------------
-- Area: Port Bastok
-- NPC: Talib
-- Starts Quest: Beauty and the Galka
-- Starts & Finishes Quest: Shady Business
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua | 5 | 1335 | -----------------------------------
-- Cavernous Maw
-- Teleports Players to Rolanberry Fields
-- @pos -198 8 360 91
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/teleports");
require("scrip... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Hall_of_Transference/Zone.lua | 9 | 5008 | -----------------------------------
--
-- Zone: Hall_of_Transference
--
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("/scripts/globals/teleports");
require("scripts/zo... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Phomiuna_Aqueducts/npcs/qm2.lua | 34 | 1032 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm2 (???)
-- Notes: Open south door @ F-7
-- @pos -75.329 -24.636 92.512 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trad... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Selbina/npcs/Gabwaleid.lua | 17 | 1506 | -----------------------------------
-- Area: Selbina
-- NPC: Gabwaleid
-- Involved in Quest: Riding on the Clouds
-- @pos -17 -7 11 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
requ... | gpl-3.0 |
blunty666/CC-Programs-and-APIs | utils/aes.lua | 2 | 33201 | -- AES implementation
-- By KillaVanilla
local sbox = {
[0]=0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76,
0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0,
0xB7, 0xFD, 0x93, 0x26, 0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0... | mit |
jeblad/spec | tests/phpunit/includes/LuaLibrary/lua/pure/picklelib/report/ReportAdaptTest.lua | 2 | 2713 | --- Tests for the report module.
-- This is a preliminary solution.
-- @license GPL-2.0-or-later
-- @author John Erling Blad < jeblad@gmail.com >
local testframework = require 'Module:TestFramework'
local lib = require 'picklelib/report/ReportAdapt'
assert( lib )
local name = 'adapt'
local class = 'report-adapt'
l... | gpl-2.0 |
evanphx/gopher-lua | _lua5.1-tests/pm.lua | 5 | 9577 | print('testing pattern matching')
function f(s, p)
local i,e = string.find(s, p)
if i then return string.sub(s, i, e) end
end
function f1(s, p)
p = string.gsub(p, "%%([0-9])", function (s) return "%" .. (s+1) end)
p = string.gsub(p, "^(^?)", "%1()", 1)
p = string.gsub(p, "($?)$", "()%1", 1)
local t = {str... | mit |
Gwynthell/FFDB | scripts/zones/Phomiuna_Aqueducts/npcs/_0rp.lua | 2 | 1560 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueduct... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Labyrinth_of_Onzozo/npcs/qm2.lua | 8 | 1496 | -----------------------------------
-- Area: Labyrinth of Onzozo
-- NPC: ??? (qm2)
-- Involved in Quest: Yomi Okuri
-- @pos -176 10 -60 213
-----------------------------------
package.loaded["scripts/zones/Labyrinth_of_Onzozo/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
re... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/spells/cryohelix.lua | 4 | 1674 | --------------------------------------
-- Spell: Cryohelix
-- Deals ice 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/ma... | gpl-3.0 |
Bubbus/ACF-Missiles | lua/acf/shared/sh_acfm_getters.lua | 1 | 4102 |
function ACF_GetGunValue(bdata, val)
bdata = (type(bdata) == "table" and bdata.Id) or bdata
local guns = list.Get("ACFEnts").Guns
local class = guns[bdata]
if class then
local ret
if class.round then ret = class.round[val] end
if ret == nil then ret = class[val] ... | mit |
xxdamage/xxdamagebot | plugins/dashboard.lua | 5 | 5553 | local function getWelcomeMessage(chat_id, ln)
hash = 'chat:'..chat_id..':welcome'
local type = db:hget(hash, 'type')
local message = ''
if type == 'no' then
message = message..lang[ln].settings.resume.w_default
elseif type == 'media' then
message = message..lang[ln].settings.resume.w_media
else... | gpl-2.0 |
Gwynthell/FFDB | scripts/globals/mobskills/Hydro_Canon.lua | 8 | 1274 | ---------------------------------------------------
-- Hydro_Canon
-- Description:
-- Type: Magical
-- additional effect : 40hp/tick Poison
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
--... | gpl-3.0 |
rpufky/trafficserver | plugins/experimental/ts_lua/business/sethost.lua | 17 | 1188 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); y... | apache-2.0 |
Gwynthell/FFDB | scripts/globals/items/black_eel.lua | 1 | 1284 | -----------------------------------------
-- ID: 4429
-- Item: Black Eel
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
sammyt291/wire | lua/entities/gmod_wire_expression2/core/custom/effects.lua | 5 | 4150 | E2Lib.RegisterExtension("effects", false, "Allows E2s to play arbitrary effects.")
local wire_expression2_effect_burst_max = CreateConVar( "wire_expression2_effect_burst_max", 4, {FCVAR_ARCHIVE} )
local wire_expression2_effect_burst_rate = CreateConVar( "wire_expression2_effect_burst_rate", 0.1, {FCVAR_ARCHIVE} )
-- ... | apache-2.0 |
Vivitarut/darkstar | scripts/zones/Northern_San_dOria/npcs/Maurinne.lua | 38 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Maurinne
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -127.185 0.000 179.193
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
Gwynthell/FFDB | scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Layton.lua | 4 | 1845 | -----------------------------------
-- Area: The Eldieme Necropolis (S)
-- NPC: Layton
-- Type: Standard Merchant NPC
-- Note: Available during Campaign battles
-- @pos 382.679 -39.999 3.541 175
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil;
--------------... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/globals/spells/bluemagic/regurgitation.lua | 8 | 1795 | -----------------------------------------
-- Spell: Regurgitation
-- Deals Water damage to an enemy. Additional Effect: Bind
-- Spell cost: 69 MP
-- Monster Type: Lizards
-- Spell Type: Magical (Water)
-- Blue Magic Points: 1
-- Stat Bonus: INT+1 MND+1 MP+3
-- Level: 68
-- Casting Time: 5 seconds
-- Recast Ti... | gpl-3.0 |
Gwynthell/FFDB | scripts/zones/Temenos/mobs/Iruci.lua | 1 | 1235 | -----------------------------------
-- Area: Temenos Central 1floor
-- NPC: Iruci
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------------... | gpl-3.0 |
UseFedora/lua-resty-auto-ssl | lib/resty/auto-ssl/init_worker.lua | 1 | 1496 | local renewal_job = require "resty.auto-ssl.jobs.renewal"
local run_command = require "resty.auto-ssl.utils.run_command"
local start_sockproc = require "resty.auto-ssl.utils.start_sockproc"
return function(auto_ssl_instance)
local base_dir = auto_ssl_instance:get("dir")
local _, _, mkdir_challenges_err = run_comma... | mit |
sevenbot/seven | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
Vivitarut/darkstar | scripts/globals/items/balik_sis_+1.lua | 35 | 1664 | -----------------------------------------
-- ID: 5601
-- Item: Balik Sis +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 5
-- Mind -2
-- Attack % 15
-- Attack Cap 45
-- Ranged ACC 1
-- Ranged ATT % 15
-- Ranged ATT Cap 45
-----------------------------------------
... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Lower_Jeuno/npcs/Rhimonne.lua | 37 | 1153 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Rhimonne
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Bastok_Markets/npcs/Salimah.lua | 15 | 2905 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Salimah
-- Notes: Start & Finishes Quest: Gourmet
-- @pos -31.687 -6.824 -73.282 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Ordelles_Caves/npcs/qm5.lua | 9 | 1421 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: ??? (qm5)
-- Involved In Quest: Dark Puppet
-- @pos -92 -28 -70 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/items/cup_of_imperial_coffee.lua | 35 | 1254 | -----------------------------------------
-- ID: 5592
-- Item: cup_of_imperial_coffee
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health Regen While Healing 3
-- Magic Regen While Healing 3
-----------------------------------------
require("scripts/globals/status");
-----... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/weaponskills/rampage.lua | 6 | 1235 | -----------------------------------
-- Rampage
-- Axe weapon skill
-- Skill level: 175
-- Delivers a five-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:30%
-- 1... | gpl-3.0 |
czanyou/node.lua | core/tests/http/test-request.lua | 1 | 6498 | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | apache-2.0 |
blunty666/CC-Programs-and-APIs | enderItem/enderItemServer.lua | 1 | 7930 | --===== CHECK START ARGS =====--
local serverName = (...) or false
if serverName then
serverName = "ENDER_ITEM:"..tostring(serverName)
else
serverName = "ENDER_ITEM"
end
--===== LOAD API(S) =====--
if not messageHandlerServer then
if not os.loadAPI("messageHandlerServer") then
error("Could not load API: messageHa... | mit |
Gwynthell/FFDB | scripts/globals/weaponskills/brainshaker.lua | 4 | 1350 | -----------------------------------
-- Brainshaker
-- Club weapon skill
-- Skill level: 70
-- Stuns enemy. Duration of stun varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget.
-- Aligned with the Aqua Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- 1.00 1... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/globals/spells/absorb-mnd.lua | 11 | 1191 | --------------------------------------
-- Spell: Absorb-MND
-- Steals an enemy's mind.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---------------... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/globals/weaponskills/vorpal_scythe.lua | 25 | 1561 | -----------------------------------
-- Vorpal Scythe
-- Scythe weapon skill
-- Skill level: 150
-- Delivers a single-hit attack. params.crit varies with TP.
-- Modifiers: STR:100%
-- 100%TP 200%TP 300%TP
-- 1.0 1.0 1.0
-----------------------------------
require("scripts/globals/settings");
require("scri... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Port_Bastok/npcs/HomePoint#1.lua | 3 | 1712 | -----------------------------------
-- Area: Port Bastok
-- NPC: HomePoint#1
-- @pos 58.850 7.499 -27.790 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Bas... | gpl-3.0 |
Gwynthell/FFDB | scripts/zones/Toraimarai_Canal/Zone.lua | 3 | 1237 | -----------------------------------
--
-- Zone: Toraimarai_Canal (169)
--
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Toraimarai_Canal/TextIDs");
-----------------------------------
-- onInitialize
----... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/globals/weaponskills/vorpal_blade.lua | 30 | 1435 | -----------------------------------
-- Vorpal Blade
-- Sword weapon skill
-- Skill Level: 200
-- Delivers a four-hit attack. Chance of params.critical varies with TP.
-- Stacks with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: None
--... | gpl-3.0 |
Gwynthell/FFDB | scripts/zones/Tavnazian_Safehold/npcs/_0qa.lua | 1 | 1936 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: walnut door
-- Involved in mission 2-4
-- @pos 111 -41 41 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("s... | gpl-3.0 |
Gwynthell/FFDB | scripts/globals/spells/cure_v.lua | 1 | 3876 | -----------------------------------------
-- Spell: Cure V
-- Restores target's HP.
-- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Cape_Teriggan/mobs/Tegmine.lua | 20 | 1982 | ----------------------------------
-- Area: Cape Teriggan
-- NM: Tegmine
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/Windurst_Walls/npcs/Yoriri.lua | 38 | 1403 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Yoriri
-- Type: Standard NPC
-- @pos 65.268 -8.5 -58.309 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
Gwynthell/FFDB | scripts/zones/Upper_Jeuno/npcs/Mailloquetat.lua | 4 | 1363 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mailloquetat
-- Involved in Quests: Save my Sister
-- @zone 244
-- @pos -31 -1 8
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
Gwynthell/FFDB | scripts/globals/weaponskills/bora_axe.lua | 4 | 1490 | -----------------------------------
-- Bora Axe
-- Axe weapon skill
-- Skill level: 290
-- Delivers a single-hit ranged attack at a maximum distance of 15.7'. Chance of binding varies with TP
-- Bind doesn't always break from hitting mob.
-- This Weapon Skill's first hit params.ftp is duplicated for all additional h... | gpl-3.0 |
RRZE-HPC/likwid | examples/Lua-likwidAPI.lua | 1 | 2872 | #!<PREFIX>/bin/likwid-lua
--[[
* =======================================================================================
*
* Filename: Lua-likwidAPI.lua
*
* Description: Example how to use the LIKWID API in Lua scripts
*
* Version: <VERSION>
* Released: <DATE>
*
* Author: Thom... | gpl-3.0 |
ezibyte/EziSocial-PhotoExample | Cocos2dx-3x/PhotoExample/cocos2d/external/lua/luasocket/headers.lua | 133 | 3698 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket")
socket.headers = {}
local _M = socket.headers
... | apache-2.0 |
Gwynthell/FFDB | scripts/zones/Arrapago_Reef/npcs/qm3.lua | 15 | 1190 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Zareehkl the Jubilant(ZNM T2))
-- @pos 176 -4 182 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
-----... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/Arrapago_Reef/npcs/qm3.lua | 15 | 1190 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Zareehkl the Jubilant(ZNM T2))
-- @pos 176 -4 182 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
-----... | gpl-3.0 |
Joeyjohjjo/Johjjodarkfork | scripts/zones/The_Eldieme_Necropolis/npcs/_5f2.lua | 34 | 1104 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Odin's Gate
-- @pos 180 -34 55 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
... | gpl-3.0 |
pascal76680/luacodessc | scripts/races/wraith/deathmatch/props/gbx.lua | 1 | 1426 | Number_Properties_Priority = 2.0
Number_Properties = {
}
String_Properties_Priority = 2.0
String_Properties = {
dm_carriersonly_build_restrict = "wra_shipyard",
-- dm_carriersonly_research_restrict = "MothershipHealthUpgrade1,MothershipMAXSPEEDUpgrade1,MothershipBUILDSPEEDUpgrade1,ShipyardHealthUpgrade1,S... | gpl-2.0 |
Vivitarut/darkstar | scripts/globals/items/zebra_eel.lua | 17 | 1390 | -----------------------------------------
-- ID: 4288
-- Item: Zebra Eel
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-- Evasion 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
Vivitarut/darkstar | scripts/zones/QuBia_Arena/npcs/Burning_Circle.lua | 4 | 2526 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Burning Circle
-- @pos -221 -24 19 206
-------------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/missions");... | gpl-3.0 |
Vivitarut/darkstar | scripts/globals/mobskills/Digest.lua | 10 | 1059 | ---------------------------------------------------
-- Drainkiss
-- Deals dark damage to a single target. Additional effect: Drain
-- Type: Magical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain HP.
--------------------------------------------... | gpl-3.0 |
Gwynthell/FFDB | scripts/globals/weaponskills/realmrazer.lua | 4 | 1217 | -----------------------------------
-- Realmrazer
-- Club weapon skill
-- Skill Level: 357
-- Delivers a seven-hit attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget & Soil Gorget.
-- Aligned with the Shadow Belt & Soil Belt.
-- Element: None
-- Modifiers... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.