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 |
|---|---|---|---|---|---|
FailcoderAddons/supervillain-ui | SVUI_Skins/components/addons/TradeSkillDW.lua | 2 | 5779 | --[[
##########################################################
S V U I By: Failcoder
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select... | mit |
nesstea/darkstar | scripts/globals/mobskills/Chains_of_Rage.lua | 18 | 1157 | ---------------------------------------------
-- Chains of Apathy
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/keyitems");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Lower_Jeuno/npcs/Tuh_Almobankha.lua | 27 | 4090 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Tuh Almobankha
-- Title Change NPC
-- @pos -14 0 -61 245
-----------------------------------
require("scripts/globals/titles");
local title2 = { BROWN_MAGE_GUINEA_PIG , BROWN_MAGIC_BYPRODUCT , RESEARCHER_OF_CLASSICS , TORCHBEARER , FORTUNETELLER_IN_TRAI... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Yorcia_Weald_U/Zone.lua | 19 | 1065 | -----------------------------------
--
-- Zone: Yorcia Weald U
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Yorcia_Weald_U/TextIDs"] = nil;
require("scripts/zones/Yorcia_Weald_U/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
FailcoderAddons/supervillain-ui | SVUI_UnitFrames/libs/oUF_1.6.9/elements/combat.lua | 7 | 1931 | --[[ Element: Combat Icon
Toggles the visibility of `self.Combat` based on the player's combat status.
Widget
Combat - Any UI widget.
Notes
The default assistant icon will be applied if the UI widget is a texture and
doesn't have a texture or color defined.
Examples
-- Position and size
local Combat ... | mit |
UnfortunateFruit/darkstar | scripts/globals/spells/bio_iv.lua | 7 | 2047 | -----------------------------------------
-- Spell: Bio IV
-- Deals dark damage that weakens an enemy's attacks and gradually reduces its HP.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/RuLude_Gardens/npcs/Albiona.lua | 13 | 1382 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Albiona
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/globals/que... | gpl-3.0 |
nesstea/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_2.lua | 13 | 2440 | -----------------------------------
-- 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 |
Spartan322/finalfrontier | gamemode/sgui/shields.lua | 3 | 6607 | -- Copyright (c) 2014 James King [metapyziks@gmail.com]
--
-- This file is part of Final Frontier.
--
-- Final Frontier is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as
-- published by the Free Software Foundation, either version 3 of
-- the Lic... | lgpl-3.0 |
trilastiko/keys | VSCOKeys.lrdevplugin/ActivateKeys.lua | 11 | 1463 | --[[----------------------------------------------------------------------------
VSCO Keys for Adobe Lightroom
Copyright (C) 2015 Visual Supply Company
Licensed under GNU GPLv2 (or any later version).
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lic... | gpl-2.0 |
NezzKryptic/Wire-Extras | lua/weapons/gmod_tool/stools/wire_useholoemitter.lua | 2 | 4635 | TOOL.Category = "Wire Extras/Visuals/Holographic"
TOOL.Name = "Interactable Holography Emitter"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.Tab = "Wire"
if CLIENT then
language.Add( "Tool.wire_useholoemitter.name", "Interactable Holographic Emitter Tool (Wire)" )
language.Add( "Tool.wire_useholoemitter.de... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Balgas_Dais/bcnms/saintly_invitation.lua | 27 | 2028 | -----------------------------------
-- Area: Horlais Peak
-- Name: Saintly Invitation
-- @pos 299 -123 345 146
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Balgas_Dais/Tex... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mathlouq.lua | 37 | 1029 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mathlouq
-- Type: Standard NPC
-- @pos -92.892 -7 129.277 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_White... | gpl-3.0 |
PUMpITapp/instantpizza | src/Menu.lua | 1 | 3294 | --- Tells if the program shall be run on the box or not
local onBox = false
--- Checks if the file was called from a test file.
-- @return true if called from a test file, indicating the file is being tested, else false
function checkTestMode()
runFile = debug.getinfo(2, "S").source:sub(2,3)
if (runFile ~= './' ) ... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Konschtat_Highlands/npcs/qm1.lua | 34 | 1376 | -----------------------------------
-- Area: Konschtat Highlands
-- NPC: qm1 (???)
-- Continues Quests: Past Perfect
-- @pos -201 16 80 108
-----------------------------------
package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quest... | gpl-3.0 |
johnmccabe/dockercraft | world/Plugins/Core/regen.lua | 6 | 1937 |
-- regen.lua
-- Implements the in-game and console commands for chunk regeneration
function HandleRegenCommand(a_Split, a_Player)
-- Check the params:
local numParams = #a_Split
if (numParams == 2) or (numParams > 3) then
SendMessage(a_Player, "Usage: '" .. a_Split[1] .. "' or '" .. a_Split[1] .. " <chunk x... | apache-2.0 |
UnfortunateFruit/darkstar | scripts/globals/pathfind.lua | 19 | 2549 | -- Util methods for pathfinding
pathfind = {};
PATHFLAG_NONE = 0
PATHFLAG_RUN = 1
PATHFLAG_WALLHACK = 2
PATHFLAG_REVERSE = 4
-- returns the point at the given index
function pathfind.get(points, index)
local pos = {};
if(index < 0) then
index = (#points + index - 2) / 3;
end
pos[1] = points[i... | gpl-3.0 |
dpino/snabbswitch | src/apps/lwaftr/ctable_wrapper.lua | 3 | 2528 | module(..., package.seeall)
local ctable = require('lib.ctable')
local math = require("math")
local os = require("os")
local S = require("syscall")
local bit = require("bit")
local bnot, bxor = bit.bnot, bit.bxor
local floor, ceil = math.floor, math.ceil
local HASH_MAX = 0xFFFFFFFF
-- This is only called when the ta... | apache-2.0 |
nesstea/darkstar | scripts/zones/Gusgen_Mines/npcs/_5ge.lua | 13 | 1340 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5ge (Lever E)
-- @pos 20 -20.561 143.801 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
--------------------------... | gpl-3.0 |
hussian/hell_iraq | plugins/short_link.lua | 8 | 1185 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY(@AHMED_ALOBIDE) ▀▄ ▄▀
▀▄ ▄▀ BY(@hussian_9) ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/zones/RuLude_Gardens/npcs/Morlepiche.lua | 28 | 3206 | -----------------------------------
-- Area: Rulude Gardens
-- NPC: Morlepiche
-- @pos -95 0 160 243
-------------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/conquest")... | gpl-3.0 |
ShaTelTeam/MegaZs | plugins/mute.lua | 3 | 7669 | do
local function muteuser(user_id, channel_id)
local hash = 'mute:'..channel_id
redis:sadd(hash, user_id)
end
local function is_mute(user_id, channel_id)
local hash = 'mute:'..channel_id
local muted = redis:sismember(hash, user_id)
return muted or false
end
local function muteuser_by_reply(extra, success, re... | gpl-2.0 |
AttacqueSuperior/Engine | mods/d2k/maps/harkonnen-02a/harkonnen02a.lua | 2 | 2633 | --[[
Copyright 2007-2021 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Morangeart.lua | 38 | 1057 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Morangeart
-- Type: ENM Quest Activator
-- @zone: 26
-- @pos -74.308 -24.782 -28.475
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"]... | gpl-3.0 |
amin041/tele-dam- | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
ASHRAF97/ASHRAFKASPERV3 | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/items/royal_omelette.lua | 36 | 2710 | -----------------------------------------
-- ID: 4564
-- Item: royal_omelette
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 5
-- Dexterity 2
-- Intelligence -3
-- Mind 4
-- Attack % 22
-- Attack Cap 65
-----------------------------------------
-- IF ELVAAN ONLY
-- HP 20
-- MP 2... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Cloister_of_Tides/Zone.lua | 32 | 1658 | -----------------------------------
--
-- Zone: Cloister_of_Tides (211)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Tides/TextIDs");
------... | gpl-3.0 |
rohanp/Algorithm-Implementations | Bellman_Ford_Search/Lua/Yonaba/bellmanford.lua | 26 | 3025 | -- Bellman Ford single source shortest path search algorithm implementation
-- See : https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm
-- Notes : this is a generic implementation of Bellman Ford search algorithm.
-- It is devised to be used on waypoint graphs.
-- The BellmanFord class expects a handler to b... | mit |
dpino/snabb | lib/pflua/src/pf/regalloc.lua | 7 | 16379 | -- Implements register allocation for pflua's native backend
--
-- Follows the algorithm described in:
-- "Linear scan register allocation"
-- Poletto and Sarkar
-- https://dl.acm.org/citation.cfm?id=330250
--
-- The result of register allocation is a table that describes
-- the register allocated for the give... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/galkan_sausage_-1.lua | 35 | 1586 | -----------------------------------------
-- ID: 5862
-- Item: galkan_sausage_-1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength -3
-- Dexterity -3
-- Vitality -3
-- Agility -3
-- Mind -3
-- Intelligence -3
-- Charisma -3
-----------------------------------------
re... | gpl-3.0 |
LuaDist/lzmq | test/test_req_relaxed.lua | 16 | 3251 | ---
-- Test ZMQ_REQ_RELAXED mode and reconnect socket
-- This test requires [lua-llthreads2](https://github.com/moteus/lua-llthreads2) library
local zmq = require "lzmq"
local ztimer = require "lzmq.timer"
local zthreads = require "lzmq.threads"
local zassert = zmq.assert
local ENDPOINT = "tcp://127.0.0.1:55... | mit |
billypu/lua-lab | anapurna/anapurna.lua | 1 | 2625 | module("anapurna", package.seeall)
package.cpath = package.cpath .. ";./?.so;./lib/?.so"
local core = require("anapurna.core")
TCP = function (ip, port, isserver)
local server_ip = ip
local server_port = port
local isserver = (isserver == nil or isserver == false) and false or true
local listen_fd = ... | mit |
Kthulupwns/darkstar | scripts/zones/Metalworks/npcs/relic.lua | 42 | 1834 | -----------------------------------
-- Area: Metalworks
-- NPC: <this space intentionally left blank>
-- @pos -20 -11 33 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
------------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_San_dOria/npcs/HomePoint#1.lua | 12 | 1262 | -----------------------------------
-- Area: Port San dOria
-- NPC: HomePoint#1
-- @pos -67.963 -4.000 -105.023 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_San_dOria/TextIDs");
require... | gpl-3.0 |
AGTMADCAT/naev | dat/factions/spawn/sirius.lua | 6 | 3074 | include("dat/factions/spawn/common.lua")
include("dat/factions/spawn/mercenary_helper.lua")
-- @brief Spawns a small patrol fleet.
function spawn_patrol ()
local pilots = {}
local r = rnd.rnd()
if r < pbm then
pilots = spawnLtMerc("Sirius")
elseif r < 0.5 then
scom.addPilot( pilots, "Si... | gpl-3.0 |
telbbs/luci-0.12 | libs/px5g/lua/px5g/util.lua | 170 | 1148 | --[[
* px5g - Embedded x509 key and certificate generator based on PolarSSL
*
* Copyright (C) 2009 Steven Barth <steven@midlink.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License, version 2.1 as published by the Free ... | apache-2.0 |
Kthulupwns/darkstar | scripts/globals/items/messhikimaru.lua | 21 | 1033 | -----------------------------------------
-- ID: 17826
-- Item: Messhikimaru
-- Enchantment: Arcana Killer
-- Durration: 10 Mins
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------------------... | gpl-3.0 |
Mleaf/mleaf_luci | modules/base/luasrc/sgi/cgi.lua | 87 | 2260 | --[[
LuCI - SGI-Module for CGI
Description:
Server Gateway Interface for CGI
FileId:
$Id$
License:
Copyright 2008 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... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Yuhtunga_Jungle/npcs/Mupia_RK.lua | 30 | 3052 | -----------------------------------
-- Area: Yuhtunga Jungle
-- NPC: Mupia, R.K.
-- Border Conquest Guards
-- @pos -241.334 -1 478.602 123
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Gigirk.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Gigirk
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
agaran/protector | init.lua | 1 | 16202 |
-- older privelage for admins to rbypass protected nodes, do not use anymore
-- instead grant admin 'protection_bypass' privelage.
-- 'delprotect' priv removed, use 'protection_bypass' instead
--minetest.register_privilege("delprotect","Ignore player protection")
-- get minetest.conf settings
protector = {}
protecto... | mit |
AGTMADCAT/naev | dat/missions/flf/flf_pre02.lua | 3 | 18115 | --[[
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warra... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Cloister_of_Frost/bcnms/class_reunion.lua | 13 | 1526 | -----------------------------------
-- Area: Cloister of Tremors
-- BCNM: Class Reunion
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Frost/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Cloister_of_Frost/TextIDs");
------------------------------... | gpl-3.0 |
junrw/ember-gsoc2012 | src/components/ogre/widgets/Give.lua | 2 | 2932 | -----------------------------------------
--A widget for giving something from the inventory to someone. Right now just shows a list of stuff that can be given. This will need to be extended to something much nicer. Perhaps even something which interacts with other inventory widgets.
---------------------------------... | gpl-3.0 |
MmxBoy/Metal-bot-V.2 | plugins/inv.lua | 46 | 1079 | do
local function callbackres(extra, success, result)
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then
send_large_msg(chat, 'User is globaly banned.')
... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Stellar_Fulcrum/Zone.lua | 15 | 2251 | -----------------------------------
--
-- Zone: Stellar_Fulcrum
--
-----------------------------------
package.loaded["scripts/zones/Stellar_Fulcrum/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Stellar_Fulcrum/TextIDs");
----------------... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Stellar_Fulcrum/npcs/_4z0.lua | 12 | 1593 | -----------------------------------
-- Area: Stellar Fulcrum
-- Door: Qe'Lov Gate
-- @pos -520 -4 17 179
-------------------------------------
package.loaded["scripts/zones/Stellar_Fulcrum/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glo... | gpl-3.0 |
Kthulupwns/darkstar | scripts/globals/mobskills/Thundris_Shriek.lua | 6 | 1047 | ---------------------------------------------
-- Thundris Shriek
--
-- Description: Deals heavy lightning damage to targets in area of effect. Additional effect: Terror
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown
-- Notes: Players will begin to be intimidated by the dvergr af... | gpl-3.0 |
mlody1039/ModernOts | data/npc/scripts/Training Assistant.lua | 1 | 2123 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) en... | gpl-3.0 |
CCAAHH/x | bot/utils.lua | 356 | 14963 | 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 |
pmachowski/growl-lua | growl.lua | 1 | 2725 | --
-- Code by Piotr Machowski <piotr@machowski.co>
--
local Growl = {}
Growl.__n = 'GrowlNotifications'
Growl.set = {}
Growl.isAnimating = false
--global config
Growl.SHOW_TIME = 5000
Growl.FONT_SIZE = 8
Growl.NOTIFICATION_WIDTH = display.contentWidth*.25
--private functions
function Growl:_removeNotification( _n )
... | mit |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 10