repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
Cloudef/darkstar | scripts/zones/Sacrificial_Chamber/Zone.lua | 5 | 1155 | -----------------------------------
--
-- Zone: Sacrificial_Chamber (163)
--
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/missi... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/meru/init.lua | 8 | 5621 | -- Parameters
local COORD = false -- Print tower co-ordinates to terminal (cheat)
local XMIN = 1000 -- Area for the meru mountain spawn
local XMAX = 1000
local ZMIN = 14000
local ZMAX = 14000
local BASRAD = 64 -- Average radius at y = -32
local HEIGHT = 2048 -- Approximate height measured from y = -32
local CONVEX =... | unlicense |
Owlies/server | test/testpipeline.lua | 27 | 1255 | local skynet = require "skynet"
local redis = require "redis"
local conf = {
host = "127.0.0.1",
port = 6379,
db = 0
}
local function read_table(t)
local result = { }
for i = 1, #t, 2 do result[t[i]] = t[i + 1] end
return result
end
skynet.start(function()
local db = redis.connect(conf)
db.pipelini... | mit |
ld-test/lusty-store-mysql | lusty-store-mysql/store/mysql/post.lua | 1 | 1106 | local query = require 'lusty-store-mysql.query'
local connection = require 'lusty-store-mysql.store.mysql.connection'
local function keysAndValues(tbl)
local n, keys, values = 1, {}, {}
for k, v in pairs(tbl) do
keys[n] = k
if type(v) == 'number' then
values[n] = v
else
values[n] = ngx.quot... | mit |
Cloudef/darkstar | scripts/globals/weaponskills/resolution.lua | 23 | 1835 | -----------------------------------
-- Resolution
-- Great Sword weapon skill
-- Skill Level: 357
-- Delivers a fivefold attack. Damage varies with TP.
-- In order to obtain Resolution, the quest Martial Mastery must be completed.
-- This Weapon Skill's first hit params.ftp is duplicated for all additional hits.
-- Res... | gpl-3.0 |
david-xiao/luci | modules/luci-base/luasrc/sys/iptparser.lua | 47 | 9515 | --[[
Iptables parser and query library
(c) 2008-2009 Jo-Philipp Wich <jow@openwrt.org>
(c) 2008-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:... | apache-2.0 |
MicroJOo/OpenRA | mods/ra/maps/allies-03a/allies03a.lua | 14 | 9218 | ProductionUnits = { "e1", "e1", "e2" }
ProductionBuildings = { USSRBarracks1, USSRBarracks2 }
TransportReinforcements = { "e1", "e1", "e1", "e2", "e2" }
FirstUSSRBase = { USSRFlameTower1, USSRBarracks1, USSRPowerPlant1, USSRPowerPlant2, USSRConstructionYard1, USSRTechCenter, USSRBaseGuard1, USSRBaseGuard2, USSRBaseGuar... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/spells/foe_lullaby.lua | 2 | 1289 | -----------------------------------------
-- Spell: Foe Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
... | gpl-3.0 |
fgprodigal/RayUI | Interface/AddOns/RayUI/modules/skins/blizzard/calendar.lua | 1 | 6896 | ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
local function LoadSkin()
CalendarFrame:DisableDrawLayer("BORDER")
for i = 1, 15 do
if i ~= 10 and i ~= 11 and i ~= 12 and i ~= 1... | mit |
Cloudef/darkstar | scripts/zones/West_Ronfaure/npcs/Doladepaiton_RK.lua | 2 | 2987 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Doladepaiton, R.K.
-- Type: Outpost Conquest Guards
-- !pos -448 -19 -214 100
-------------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
--------------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
zzamboni/hammerspoon | extensions/appfinder/init.lua | 20 | 2772 | --- === hs.appfinder ===
---
--- Easily find ```hs.application``` and ```hs.window``` objects
---
--- This module is *deprecated*; you can use `hs.window.find()`, `hs.window.get()`, `hs.application.find()`,
--- `hs.application.get()`, `hs.application:findWindow()` and `hs.application:getWindow()` instead.
local appfin... | mit |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/libraries/modificationloader.lua | 3 | 5671 | -- Modification loader.
-- Dependencies:
-- - fn
-- - simplerr
/*---------------------------------------------------------------------------
Disabled defaults
---------------------------------------------------------------------------*/
DarkRP.disabledDefaults = {}
DarkRP.disabledDefaults["modules"] = {
["... | mit |
Cloudef/darkstar | scripts/zones/Balgas_Dais/bcnms/charming_trio.lua | 5 | 1791 | -----------------------------------
-- Area: Balgas_Dais
-- Name: Charming Trio
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zones/Balgas_Dais/T... | gpl-3.0 |
ryanjmulder/premake-4.x | tests/project/test_vpaths.lua | 51 | 3834 | --
-- tests/project/test_vpaths.lua
-- Automated test suite for the project support functions.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
T.project_vpaths = { }
local suite = T.project_vpaths
local project = premake.project
--
-- Setup and teardown
--
local sln
function suite.setup()
... | bsd-3-clause |
MinetestForFun/server-minetestforfun | mods/vector_extras/vector_meta.lua | 3 | 4442 | vector.meta = vector.meta or {}
vector.meta.nodes = {}
vector.meta.nodes_file = {
load = function()
local nodesfile = io.open(minetest.get_worldpath()..'/vector_nodes.txt', "r")
if nodesfile then
local contents = nodesfile:read('*all')
io.close(nodesfile)
if contents ~= nil then
local lines = string.... | unlicense |
nyasukun/openstackcraft | world/Plugins/Core/web_manageserver.lua | 5 | 1368 | function HandleRequest_ManageServer( Request )
local Content = ""
if (Request.PostParams["RestartServer"] ~= nil) then
cRoot:Get():QueueExecuteConsoleCommand("restart");
elseif (Request.PostParams["ReloadServer"] ~= nil) then
cRoot:Get():GetPluginManager():ReloadPlugins();
elseif (Request.PostParams["StopServe... | apache-2.0 |
Cloudef/darkstar | scripts/zones/South_Gustaberg/npcs/Cavernous_Maw.lua | 4 | 1541 | -----------------------------------
-- Area: South Gustaberg
-- NPC: Cavernous Maw
-- !pos 340 -0.5 -680
-- Teleports Players to Abyssea - Altepa
-----------------------------------
package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Windurst_Waters/npcs/Furakku-Norakku.lua | 5 | 4500 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Furakku-Norakku
-- Involved in Quests: Early Bird Catches the Bookworm, Chasing Tales, Class Reunion
-- !pos -19 -5 101 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | entities/entities/spawned_money/init.lua | 4 | 1713 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel(GAMEMODE.Config.moneyModel or "models/props/cs_assault/money.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:SetUseType... | mit |
woshihuo12/UnityHello | UnityHello/Assets/ToLua/Lua/jit/dis_ppc.lua | 59 | 20301 | ----------------------------------------------------------------------------
-- LuaJIT PPC disassembler module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------... | mit |
Cloudef/darkstar | scripts/zones/Lower_Jeuno/npcs/Vhana_Ehgaklywha.lua | 2 | 1968 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Vhana Ehgaklywha
-- Lights lamps in Lower Jeuno if nobody accepts Community Service by 1AM.
-- !pos -122.853 0.000 -195.605 245
-----------------------------------
require("scripts/zones/Lower_Jeuno/globals");
require("scripts/zones/Lower_Jeuno/MobIDs");... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/chaos_roll.lua | 2 | 2851 | -----------------------------------
-- Ability: Chaos Roll
-- Enhances attack for party members within area of effect
-- Optimal Job: Dark Knight
-- Lucky Number: 4
-- Unlucky Number: 8
-- Level: 14
-- Phantom Roll +1 Value: 3
--
-- Die Roll |No DRK |With DRK
-- -------- -------- -----------
-- 1 |6%... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Dragons_Aery/mobs/Fafnir.lua | 4 | 1542 | -----------------------------------
-- Area: Dragons Aery
-- HNM: Fafnir
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
function onMobInitialize(mob)
end;
function onMobSpawn(mob)
i... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/marron_glace.lua | 2 | 1078 | -----------------------------------------
-- ID: 4502
-- Item: Marron Glace
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 13
-- Magic Cap 85
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/tacticians_roll.lua | 2 | 2808 | -----------------------------------
-- Ability: Tacticians's Roll
-- Grants a Regain effect to party members within area of effect.
-- Optimal Job: None
-- Lucky Number: 5
-- Unlucky Number: 8
-- Level: 86
-- Phantom Roll +1 Value: 2
--
-- Die Roll | Regain
-- -------- -------
-- 1 |+10
-- 2 |... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/weaponskills/chant_du_cygne.lua | 26 | 1307 | -----------------------------------
-- Chant du Cygne
-- Sword weapon skill
-- Skill level: EMPYREAN
-- Delivers a three-hit attack. Chance of params.critical varies with TP.
-- Will stack with Sneak Attack.
-- Element: None
-- Modifiers: DEX:60%
-- 100%TP 200%TP 300%TP
-- ALL 2.25
-----------------------... | gpl-3.0 |
david-xiao/luci | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrd6.lua | 68 | 16296 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
local fs = require "nixio.fs"
local util = require "luci.util"
local ip = require "luci.ip"
local has_ipip = fs.glob("/etc/mo... | apache-2.0 |
jsfdez/premake-core | tests/test_string.lua | 84 | 1550 | --
-- tests/test_string.lua
-- Automated test suite for the new string functions.
-- Copyright (c) 2008 Jason Perkins and the Premake project
--
T.string = { }
--
-- string.endswith() tests
--
function T.string.endswith_ReturnsTrue_OnMatch()
test.istrue(string.endswith("Abcdef", "def"))
end
function T.strin... | bsd-3-clause |
ryanjmulder/premake-4.x | tests/test_string.lua | 84 | 1550 | --
-- tests/test_string.lua
-- Automated test suite for the new string functions.
-- Copyright (c) 2008 Jason Perkins and the Premake project
--
T.string = { }
--
-- string.endswith() tests
--
function T.string.endswith_ReturnsTrue_OnMatch()
test.istrue(string.endswith("Abcdef", "def"))
end
function T.strin... | bsd-3-clause |
MinetestForFun/server-minetestforfun | mods/profnsched/queue.lua | 7 | 2496 | scheduler = {}
-- scheduler.queue = {[1]={first=1, last=2, groups={[1]={}, [2]={}}}}
scheduler.queue = {[1]={cur={}, nxt={}, ncur=1, nnxt=1}}
function scheduler.add(priority, job)
-- get asked class
local class = scheduler.queue[priority]
local p = priority
while not class do -- create all classes under 'priority'... | unlicense |
masoudre11/luasocket | test/ftptest.lua | 26 | 3156 | local socket = require("socket")
local ftp = require("socket.ftp")
local url = require("socket.url")
local ltn12 = require("ltn12")
-- override protection to make sure we see all errors
--socket.protect = function(s) return s end
dofile("testsupport.lua")
local host, port, index_file, index, back, err, ret
local t ... | mit |
letoram/durden | durden/firstrun.lua | 1 | 1109 | meta_guard_reset(true)
-- normally, add would query for a bind, don't want that to happen
dispatch_bindtarget("/target/window/destroy");
dispatch_symbol("/global/settings/titlebar/buttons/left/add=icon_destroy");
dispatch_bindtarget("/target/window/minimize");
dispatch_symbol("/global/settings/titlebar/buttons/left/a... | bsd-3-clause |
bocaaust/Rotae | New App/Rotae/Libs/RuntimeResources.bundle/smtp.lua | 6 | 8060 | -----------------------------------------------------------------------------
-- SMTP client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-------------------------------------------------------------------------... | apache-2.0 |
david-xiao/luci | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 68 | 7091 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ip = require "luci.ip"
local fs = require "nixio.fs"
if arg[1] then
mp = Map("olsrd", translate("OLSR - Plugins"))
p = mp:section(TypedSection, "Load... | apache-2.0 |
Cloudef/darkstar | scripts/zones/Apollyon/mobs/Adamantshell.lua | 5 | 1054 | -----------------------------------
-- Area: Apollyon SE
-- NPC: Adamantshell
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
----------------------------------... | gpl-3.0 |
fgprodigal/RayUI | Interface/AddOns/RayUI/libs/oUF/elements/range.lua | 10 | 3089 | --[[
# Element: Range Fader
Changes the opacity of a unit frame based on whether the frame's unit is in the player's range.
## Widget
Range - A table containing opacity values.
## Notes
Offline units are handled as if they are in range.
## Options
.outsideAlpha - Opacity when the unit is out of range. Defaults t... | mit |
Cloudef/darkstar | scripts/zones/Lufaise_Meadows/mobs/Padfoot.lua | 4 | 1420 | -----------------------------------
-- Area: Lufaise Meadows
-- MOB: Padfoot
-- !pos -43.689 0.487 -328.028 24
-- !pos 260.445 -1.761 -27.862 24
-- !pos 412.447 -0.057 -200.161 24
-- !pos -378.950 -15.742 144.215 24
-- !pos -141.523 -15.529 91.709 24
-----------------------------------
require("scripts/zones/Lufaise_M... | gpl-3.0 |
boknilev/rnn | recursiveUtils.lua | 1 | 3229 |
function rnn.recursiveResizeAs(t1,t2)
if torch.type(t2) == 'table' then
t1 = (torch.type(t1) == 'table') and t1 or {t1}
for key,_ in pairs(t2) do
t1[key], t2[key] = rnn.recursiveResizeAs(t1[key], t2[key])
end
elseif torch.isTensor(t2) then
t1 = torch.isTensor(t1) and t1 or t2.new... | bsd-3-clause |
Cloudef/darkstar | scripts/zones/Port_Windurst/npcs/Posso_Ruhbini.lua | 5 | 1261 | -----------------------------------
-- Area: Port Windurst
-- NPC: Posso Ruhbini
-- Regional Marchant NPC
-- Only sells when Windurst controlls Norvallen
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Konschtat_Highlands/mobs/Ghillie_Dhu.lua | 5 | 1782 | -----------------------------------
-- Area: Konschtat Highlands
-- NM: Ghillie Dhu
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/globals/status");
require("scripts/globals/utils");
require("scripts/globals/msg");
-----------------------------------
function onMobInit... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/fail/cookie.lua | 10 | 5055 | -- Cookies Recipe :
if not rawget(_G,"data") then
data = {}
end
data.oven = minetest.get_worldpath().."/cookies"
data.cookies = {}
-- cookie_baker priv to create cookie
minetest.register_privilege("baker","Is able to bake CooKies and give them to anybody else")
-- Loading cookies from oven
pntf = io.open(data.oven... | unlicense |
Cloudef/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Pihra_Rhebenslo.lua | 4 | 3974 | -----------------------------------
-- Area: Windurst Waters [S]
-- NPC: Pihra_Rhebenslo
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstora... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/mobs/shark.lua | 7 | 2961 |
-- local variables
local l_colors = {
"#111010:200", --dark_grey
"#101020:225", --dark_blue
"#404030:225", --cold_grey
"#404040:210", --light_grey
"#202020:210" --grey
}
local l_skins = {
{"(shark_first.png^[colorize:"..l_colors[1]..")^(shark_second.png^[colorize:"..l_colors[5]..")^shark_third.png"},
{"(shark_f... | unlicense |
MicroJOo/OpenRA | mods/ra/maps/soviet-04b/AI.lua | 19 | 2829 | IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt) end end
IdlingUnits = function()
local lazyUnits = Greece.GetGroundAttackers()
Utils.Do(lazyUnits, function(unit)
Trigger.OnDamaged(unit, function()
Trigger.ClearAll(unit)
Trigger.AfterDelay(0, function() IdleHunt(unit) end)
... | gpl-3.0 |
Owlies/server | owlies/owlies-lua/owlies-lua-agent.lua | 1 | 2062 | local skynet = require "skynet"
local netpack = require "netpack"
local socket = require "socket"
local protobufLoader = require "owlies.protobufLoader"
local WATCHDOG
local host
local sendRequest
local CMD = {}
local REQUEST = {}
local clientFd
function REQUEST:get()
print("get", self.what)
local r = skynet.call(... | mit |
Cloudef/darkstar | scripts/zones/Port_San_dOria/npcs/Pomilla.lua | 5 | 1372 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Pomilla
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos -38 -4 -55 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Sa... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/fish_mithkabob.lua | 2 | 1215 | -----------------------------------------
-- 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 |
Cloudef/darkstar | scripts/zones/Valkurm_Dunes/npcs/Song_Runes.lua | 5 | 1435 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Song Runes
-- Finishes Quest: Path of the Bard
-- !pos -721 -7 102 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
----------------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Northern_San_dOria/npcs/Abioleget.lua | 5 | 2235 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Abioleget
-- Type: Quest Giver (Her Memories: The Faux Pas and The Vicasque's Sermon) / Merchant
-- @zone 231
-- !pos 128.771 0.000 118.538
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
... | gpl-3.0 |
Ali-2h/hossein | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
Cloudef/darkstar | scripts/zones/Southern_San_dOria/npcs/Sharzalion.lua | 5 | 3393 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Sharzalion
-- Starts and Finishes Quest: The Crimson Trial
-- Involved in Quest: Peace for the Spirit
-- @zone 230
-- !pos 95 0 111
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
------------... | gpl-3.0 |
Ali-2h/hossein | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
Cloudef/darkstar | scripts/globals/mobskills/chemical_bomb.lua | 2 | 1138 | ---------------------------------------------
-- Chemical_Bomb
--
-- Description: slow + elegy
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------------------------------
function onMobSki... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p8.lua | 5 | 1464 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Iron Gate
-- Entrance to Sacrarium
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Misareaux_Coast/Tex... | gpl-3.0 |
sm00vik/QuikSharp | tests/Profiler/lua/socket.lua | 146 | 4061 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------------------------------------... | apache-2.0 |
Cloudef/darkstar | scripts/zones/Port_Windurst/npcs/Yujuju.lua | 5 | 2373 | -----------------------------------
-- Area: Port Windurst
-- NPC: Yujuju
-- Involved In Quest: Making Headlines
-- !pos 201.523 -4.785 138.978 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
re... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/mobskills/corrosive_ooze.lua | 2 | 1202 | ---------------------------------------------------
-- Corrosive Ooze
-- Family: Slugs
-- Description: Deals water damage to an enemy. Additional Effect: Attack Down and Defense Down.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Radial
-- Notes:
------------------------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/abilities/coursers_roll.lua | 2 | 2932 | -----------------------------------
-- Ability: Courser's Roll
-- Enhances "Snapshot" effect for party members within area of effect.
-- Optimal Job: None
-- Lucky Number: 3
-- Unlucky Number: 9
-- Level: 81
-- Phantom Roll +1 Value: 1
--
-- No Reliable Community Data available. Numbers Based on Blitzer's Roll Values.... | gpl-3.0 |
flingo64/PhotoStation-Upload-Lr-Plugin | PhotoStation_upload.lrplugin/PSPluginTagsetComments.lua | 1 | 1671 | --[[----------------------------------------------------------------------------
PSPluginTagsetComments.lua
This file is part of Photo StatLr - Lightroom plugin.
Copyright(c) 2015-2022, Martin Messmer
Summary information for Photo StatLr
Photo StatLr is free software: you can redistribute it and/or modify
it under t... | gpl-3.0 |
mosavy/1bbb1 | plugins/filter.lua | 1 | 3299 | local function addword(msg, name)
local hash = 'chat:'..msg.chat_id_..':badword'
redis:hset(hash, name, 'newword')
tg.sendMessage(msg.chat_id_, msg.id_, 1, '*[* '..name..' *] added to filtered words list*\n\n`Channel:` @LeaderCh', 1, 'md')
end
local function get_badword_hash(msg)
return 'chat:'..msg.ch... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/pipeworks/init.lua | 8 | 3709 | -- Pipeworks mod by Vanessa Ezekowitz - 2013-07-13
--
-- This mod supplies various steel pipes and plastic pneumatic tubes
-- and devices that they can connect to.
--
-- License: WTFPL
--
pipeworks = {}
local DEBUG = false
pipeworks.worldpath = minetest.get_worldpath()
pipeworks.modpath = minetest.get_modpath("pipew... | unlicense |
Cloudef/darkstar | scripts/globals/weaponskills/judgment.lua | 25 | 1492 | -----------------------------------
-- Judgment
-- Club weapon skill
-- Were you looking for Judgment Key?
-- Skill level: 200
-- 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... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Hall_of_the_Gods/npcs/Shimmering_Circle.lua | 5 | 1457 | -----------------------------------
-- Area: Hall of the Gods
-- NPC: Shimmering Circle
-- Lifts players up to the sky!
-- !pos 0 -20 147 251
-----------------------------------
package.loaded["scripts/zones/Hall_of_the_Gods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/garlic_cracker_+1.lua | 2 | 1096 | -----------------------------------------
-- ID: 4280
-- Item: garlic_cracker_+1
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP recovered while healing +8
-- Undead Killer +12
-- Blind Resist +12
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
UserXYZ/esp8266_measure_mqtt | startup.lua | 1 | 2097 | -- start configuration
local conf = require("config")
local wifiConfig = {}
wifiConfig.mode = wifi.STATION
wifiConfig.stationPointConfig = {}
wifi.setmode(wifiConfig.mode)
wifi.sta.config(conf.wlan.ssid, conf.wlan.pwd)
wifiConfig = nil
collectgarbage()
-- print message to console and display, if enabled
function print... | gpl-2.0 |
m13790115/evil | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
Cloudef/darkstar | scripts/zones/Altar_Room/npcs/Magicite.lua | 5 | 1311 | -----------------------------------
-- Area: Altar Room
-- NPC: Magicite
-- Involved in Mission: Magicite
-- !pos -344 25 43 152
-----------------------------------
package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/... | gpl-3.0 |
aliazaliaz/fire1 | plugins/banhammer.lua | 1 | 36766 | local function pre_process(msg)
chat = msg.chat_id_
user = msg.sender_user_id_
local function check_newmember(arg, data)
test = load_data(_config.moderation.data)
lock_bots = test[arg.chat_id]['settings']['lock_bots']
local hash = "gp_lang:"..arg.chat_id
local lang = redis:get(hash)
if data.type_.ID == "UserTy... | gpl-3.0 |
vvavva/vva | plugins/ingroup.lua | 371 | 44212 | 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.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
telesparta/Spartacus_TG | plugins/ingroup.lua | 371 | 44212 | 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.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
Cloudef/darkstar | scripts/zones/Ghelsba_Outpost/bcnms/save_the_children.lua | 5 | 2037 | -----------------------------------
-- Area: Ghelsba Outpost
-- Name: San d'Oria Mission 1-3 Save the children
-- !pos -162 -11 78 140
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scrip... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Port_San_dOria/npcs/Deguerendars.lua | 5 | 1912 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Deguerendars
-- Only sells when San d'Oria contrls Tavnazian Archipelago
-- Only available to those with CoP Ch. 4.1 or higher
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Lower_Jeuno/npcs/Guttrix.lua | 5 | 3737 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Guttrix
-- Starts and Finishes Quest: The Goblin Tailor
-- @zone 245
-- !pos -36.010 4.499 -139.714
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/weaponskills/steel_cyclone.lua | 26 | 1617 | -----------------------------------
-- Steel Cyclone
-- Great Axe weapon skill
-- Skill level: 240
-- Delivers a single-hit attack. Damage varies with TP.
-- In order to obtain Steel Cyclone, the quest The Weight of Your Limits must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget, Aqua ... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Windurst_Waters/npcs/Maqu_Molpih.lua | 5 | 1381 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Maqu Molpih
-- Only sells when Windurst controlls Aragoneu Region
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/items/sleep_dagger.lua | 2 | 1045 | -----------------------------------------
-- ID: 16497
-- Item: Sleep Dagger
-- Additional Effect: Sleep
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(player,... | gpl-3.0 |
fredericjoanis/buildsystem | extern/lua/base/io.lua | 5 | 1541 | --
-- io.lua
-- Additions to the I/O namespace.
-- Copyright (c) 2008-2009 Jason Perkins and the Premake project
--
--
-- Prepare to capture the output from all subsequent calls to io.printf(),
-- used for automated testing of the generators.
--
function io.capture()
io.captured = ''
end
--
-- Returns the cap... | mit |
kiarash14/advan | plugins/anti_spam.lua | 8 | 5149 | --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 |
pmachowski/next-lua | next.lua | 2 | 3869 | --====================================================================--
--
-- Code by Piotr Machowski <piotr@machowski.co>
--
-- inspired by DMC Lua Library: Promises
--====================================================================--
local VERSION = "0.1.0"
--===================================================... | mit |
Cloudef/darkstar | scripts/zones/Windurst_Waters/npcs/Churano-Shurano.lua | 5 | 1139 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Churano-Shurano
-- Working 100%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Monastic_Cavern/Zone.lua | 4 | 1037 | -----------------------------------
--
-- Zone: Monastic_Cavern (150)
--
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Monastic_Cavern/TextIDs");
require("scripts/zones/Monastic_Cavern/MobIDs");
require("scri... | gpl-3.0 |
focusworld/focus_aspp | plugins/Boobs.lua | 150 | 1613 | 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 |
patrickallaert/MySQL-Proxy-scripts-for-devs | slow.lua | 1 | 1507 | -- MySQL Proxy script for simulating a slow server
--
-- Written by Patrick Allaert <patrickallaert@php.net>
-- Copyright © 2009-2011 Libereco Technologies
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Soft... | gpl-3.0 |
MinetestForFun/server-minetestforfun | mods/WorldEdit/worldedit_limited/init.lua | 26 | 3114 | do return end
do
local MAX_VOLUME = 30 * 30 * 30
local we = worldedit
local volume = we.volume
local safewrap = function(func)
return function(pos1, pos2, ...)
if validbox(pos1, pos2) then
return func(pos1, pos2, ...)
end
return 0, pos1, pos2
end
end
local validbox = function(pos1, pos2)
tpos... | unlicense |
omar-polo/dotfiles | Xorg/conky/conky_draw_config.lua | 1 | 1964 | -- Define your visual elements here
-- For examples, and a complete list on the possible elements and their
-- properties, go to https://github.com/fisadev/conky-draw/
-- (and be sure to use the lastest version)
elements = {
{
kind = 'ring_graph',
conky_value = 'execi 1 volume',
center = {... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Misareaux_Coast/npcs/Spatial_Displacement.lua | 5 | 1459 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Spacial Displacement
-- Entrance to Riverne Site #A01 and #B01
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scrip... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Port_Jeuno/npcs/Sagheera.lua | 5 | 10339 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Sagheera
-- !pos -3 0.1 -9 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones... | gpl-3.0 |
david-xiao/luci | applications/luci-app-upnp/luasrc/controller/upnp.lua | 39 | 1886 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.upnp", package.seeall)
function index()
if not nixio.fs.access("/etc/config/upnpd") then
return
end
local page
page = entry({"... | apache-2.0 |
Cloudef/darkstar | scripts/globals/spells/massacre_elegy.lua | 2 | 1780 | -----------------------------------------
-- Spell: Massacre Elegy
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end... | gpl-3.0 |
dddaaaddd/teleseed_super | plugins/inpm.lua | 1114 | 3008 | 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 |
Cloudef/darkstar | scripts/globals/items/bowl_of_loach_gruel.lua | 2 | 1483 | -----------------------------------------
-- 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
-- Ranged Accuracy 7% Cap 30
-- HP 7% Cap 30
-- Evasion 4
---------------------------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Western_Adoulin/npcs/Rising_Solstice.lua | 5 | 2687 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Rising Solstice
-- Type: Standard NPC and Quest Giver
-- Starts, Involved With, and Finishes Quest: 'A Certain Substitute Patrolman'
-- @zone 256
-- !pos -154 4 -29 256
-----------------------------------
package.loaded["scripts/zones/Western_Adou... | gpl-3.0 |
david-xiao/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/olsrd.lua | 43 | 1470 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("OLSRd Plugin Configuration"),
translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd."))
s = m:section(NamedSection,... | apache-2.0 |
david-xiao/luci | applications/luci-app-ocserv/luasrc/model/cbi/ocserv/user-config.lua | 79 | 4831 | -- Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local has_ipv6 = fs.access("/proc/net/ipv6_route")
m = Map("ocserv", translate("OpenConnect VPN"))
s = m:section(TypedSection, "ocserv", "OpenConnect")
s.ano... | apache-2.0 |
Cloudef/darkstar | scripts/globals/abilities/dark_maneuver.lua | 2 | 1469 | -----------------------------------
-- Ability: Dark Maneuver
-- Enhances the effect of dark attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
req... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Southern_San_dOria/npcs/Andecia.lua | 5 | 2818 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Andecia
-- Starts and Finishes Quest: Grave Concerns
-- @zone 230
-- !pos 167 0 45
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/So... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Western_Adoulin/npcs/Clemmar.lua | 7 | 1245 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Clemmar
-- Type: Standard NPC and Quest NPC
-- Involved with Quest: 'A Certain Substitute Patrolman'
-- @zone 256
-- !pos -12 0 12
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/quests");
---------... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Norg/npcs/Solby-Maholby.lua | 5 | 1192 | -----------------------------------
-- Area: Norg
-- NPC: Solby-Maholby
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Norg/TextIDs");
--------------------------... | gpl-3.0 |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/health/sv_init.lua | 4 | 1062 | local function SetHealth(ply, cmd, args)
if not args[1] then return false end
local Health = tonumber(args[2] or 100)
if not Health then return false end
local targets = FAdmin.FindPlayer(args[1])
if not targets or #targets == 1 and not IsValid(targets[1]) then
targets = {ply}
Heal... | mit |
Cloudef/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fp.lua | 5 | 2281 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: West Plate
-- !pos 128 -34 20 195
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local state0 = 8;
local state1 = 9;
local DoorOffset = npc:getID() - 24; -- _5f1
if... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.