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 |
dios-game/dios-cocos-samples | src/lua-coin-tree/Resources/src/cocos/framework/device.lua | 57 | 3841 | --[[
Copyright (c) 2011-2014 chukong-inc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
Kthulupwns/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rt.lua | 17 | 1603 | -----------------------------------
-- 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... | gpl-3.0 |
shayanchabok555/tigerantispam007 | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
Kthulupwns/darkstar | scripts/zones/Leujaoam_Sanctum/Zone.lua | 8 | 1492 | -----------------------------------
--
-- Zone: Leujaoam_Sanctum
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Leujaoam_Sanctum/IDs");
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)... | gpl-3.0 |
AGTMADCAT/naev | dat/missions/common.lua | 13 | 4395 | --[[
Common Lua Mission framework
--]]
-- The common function table.
common = {}
--[[
COMBAT TIER STUFF
--]]
--[[
@brief Calculates the mission combat tier.
Calculations are done with ally and enemy values at the instance where they
are highest. To calculate the enemy/ally ratings you us... | gpl-3.0 |
dpino/snabb | lib/ljsyscall/syscall/netbsd/c.lua | 24 | 2452 | -- This sets up the table of C functions for BSD
-- We need to override functions that are versioned as the old ones selected otherwise
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmet... | apache-2.0 |
Kthulupwns/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iyb.lua | 19 | 1231 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: Particle Gate
-- @pos 1 0.1 -320 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs");
--... | gpl-3.0 |
FPtje/DarkRP | gamemode/modules/fadmin/fadmin/access/sv_init.lua | 1 | 20448 | --Immunity
cvars.AddChangeCallback("_FAdmin_immunity", function(Cvar, Previous, New)
FAdmin.SetGlobalSetting("Immunity", (tonumber(New) == 1 and true) or false)
FAdmin.SaveSetting("_FAdmin_immunity", tonumber(New))
end)
hook.Add("DatabaseInitialized", "InitializeFAdminGroups", function()
MySQLite.query("CR... | mit |
AttacqueSuperior/Engine | mods/d2k/maps/harkonnen-09a/harkonnen09a-AI.lua | 2 | 5792 | --[[
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/globals/mobskills/Pelagic_Tempest.lua | 6 | 1136 | ---------------------------------------------
-- Pelagic Tempest
--
-- Description: Delivers an area attack that inflicts Shock and Terror.
-- Type: Physical?
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 10' cone
-- Notes: Used by Murex affiliated with lightning element. Shock effect is fairly stron... | gpl-3.0 |
GreenFaith/Topics | controller/reply.lua | 1 | 3636 | local json = require "cjson"
local Reply = require "model.reply"
local Topic = require "model.topic"
local rid = tonumber(ngx.var.id)
local respon = {}
if ngx.var.request_method == "GET" then
--read reply list
if not rid then
local tid = tonumber(ngx.var.arg_topic_id)
print(tid)
loca... | mit |
morteza1185/tele-red-bot | plugins/inrealm.lua | 114 | 25001 | -- 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 |
shkan/telebot | plugins/channels.lua | 45 | 1681 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
Kthulupwns/darkstar | scripts/globals/effects/light_arts.lua | 37 | 1963 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:recalculateAbilitiesTable();
local bonus = effect:getPower();
local regen = effect... | gpl-3.0 |
Kthulupwns/darkstar | scripts/zones/Port_Bastok/npcs/Ehrhard.lua | 34 | 1432 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ehrhard
-- Involved in Quest: Stamp Hunt
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_Bastok/Tex... | gpl-3.0 |
reekoheek/dotfiles | nvim/.config/nvim/lua/config/lsp.lua | 1 | 5674 | local lspconfig = require 'lspconfig'
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
-- capabilities.textDocument.completion.completionItem.documentationFormat = { 'markdown' }
-- capabilities.textDocument.completion.completion... | mit |
Lsty/ygopro-scripts | c28573958.lua | 5 | 3473 | --奇跡の代行者 ジュピター
function c28573958.initial_effect(c)
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(28573958,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c2857395... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Giddeus/IDs.lua | 11 | 2645 | -----------------------------------
-- Area: Giddeus
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.GIDDEUS] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after sor... | gpl-3.0 |
MalRD/darkstar | scripts/globals/abilities/box_step.lua | 12 | 7949 | -----------------------------------
-- Ability: Box Step
-- Lowers target's defense. If successful, you will earn two Finishing Moves.
-- Obtained: Dancer Level 30
-- TP Required: 10%
-- Recast Time: 00:05
-- Duration: First Step lasts 1 minute, each following Step extends its current duration by 30 seconds.
----------... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Windurst_Woods/npcs/Bin_Stejihna.lua | 12 | 1365 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Bin Stejihna
-- Only sells when Windurst controlls Zulkheim Region
-- Confirmed shop stock, August 2013
-----------------------------------
local ID = require("scripts/zones/Windurst_Woods/IDs")
require("scripts/globals/shop")
require("scripts/globals... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Jugner_Forest_[S]/IDs.lua | 9 | 1685 | -----------------------------------
-- Area: Jugner_Forest_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.JUGNER_FOREST_S] =
{
text =
{
NOTHING_HAPPENS = 119, -- Nothing happens...
ITEM_CAN... | gpl-3.0 |
Wuzzy2/mobs_mc | pig.lua | 1 | 4724 | --License for code WTFPL and otherwise stated in readmes
-- intllib
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
mobs:register_mob("mobs_mc:pig", {
type = "animal",
runaway = true,
hp_min = 10,
hp_max = 10,
collisionbox = {-0.45, -0.01, -0.45, 0.45, 0.8... | gpl-3.0 |
Lsty/ygopro-scripts | c66518841.lua | 5 | 1372 | --プライドの咆哮
function c66518841.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e1:SetCondition(c66518841.condition)
e1:SetCost(c66518841.cost)
e1:SetOperation(c66518841.activate)
c:RegisterEffe... | gpl-2.0 |
MalRD/darkstar | scripts/zones/Temenos/bcnms/central_temenos_1st_floor.lua | 9 | 1338 | -----------------------------------
-- Area: Temenos
-- Name: Central Temenos 1st Floor
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/battlefield")
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBattlefieldTick(ba... | gpl-3.0 |
Lsty/ygopro-scripts | c25716180.lua | 9 | 1042 | --ゼンマイニャンコ
function c25716180.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(25716180,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)... | gpl-2.0 |
Lsty/ygopro-scripts | c68661341.lua | 7 | 1759 | --一点買い
function c68661341.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c68661341.cost)
e1:SetTarget(c68661341.target)
e1:SetOperation(c68661341.activate)
c:RegisterEffect(e1)... | gpl-2.0 |
MalRD/darkstar | scripts/globals/abilities/pets/attachments/strobe.lua | 11 | 1471 | -----------------------------------
-- Attachment: Strobe
-- http://forum.square-enix.com/ffxi/threads/49065?p=565264#post565264
-- Values are currently PRIOR TO NOVEMBER 2015 UPDATE!
-----------------------------------
require("scripts/globals/automaton")
require("scripts/globals/status")
-----------------------------... | gpl-3.0 |
MalRD/darkstar | scripts/globals/items/frostreaper.lua | 12 | 1065 | -----------------------------------------
-- ID: 16784
-- Item: Frostreaper
-- Additional Effect: Ice Damage
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(player... | gpl-3.0 |
Lsty/ygopro-scripts | c27062594.lua | 3 | 3096 | --運命の扉
function c27062594.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(c27062594.condition)
e1:SetTarget(c27062594.target)
e1:SetOperation(c27062594.activate)
c:RegisterEff... | gpl-2.0 |
Lsty/ygopro-scripts | c84877802.lua | 3 | 1872 | --最強の盾
function c84877802.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c84877802.target)
e1:SetOperation(c84877802.operation)
c:RegisterEffect(e1)
-... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/plate_of_sole_sushi_+1.lua | 11 | 1437 | -----------------------------------------
-- ID: 5163
-- Item: plate_of_sole_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Strength 5
-- Dexterity 6
-- Accuracy % 16
-- Ranged ACC % 16
-- Sleep Resist 2
-----------------------------------------
require("scripts/glob... | gpl-3.0 |
Lsty/ygopro-scripts | c97232518.lua | 3 | 1309 | --深淵のスタングレイ
function c97232518.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c97232518.target)
e1:SetOperation(c97232518.activate)
c:RegisterEffect(e1)
end
function c97232518.target(... | gpl-2.0 |
peterkohaut/scummvm | devtools/create_ultima/files/ultima6/scripts/se/lang/en/game.lua | 19 | 3136 | return {
PASS="Pass!\n",
YOU_SEE="you see %s",
NOTHING="nothing!\n",
SEARCHING_HERE_YOU_FIND="Searching here, you find %s",
SEARCHING_HERE_YOU_FIND_NOTHING="Searching here, you find nothing.\n",
SEARCH_NEXT_OBJ=", %s",
SEARCH_LAST_OBJ=" and %s",
OUT_OF_RANGE="Out of Range!\n",
BLAH="Blah",
CARRY_TOO_MUCH="You are carry... | gpl-3.0 |
Mijyuoon/starfall | lua/moonscript/errors.lua | 1 | 2937 | local util = loadmodule("moonscript.util")
local concat, insert
do
local _obj_0 = table
concat, insert = _obj_0.concat, _obj_0.insert
end
local split, pos_to_line
split, pos_to_line = util.split, util.pos_to_line
local user_error
user_error = function(...)
return error({
"user-error",
...
})
end
local l... | bsd-3-clause |
Lsty/ygopro-scripts | c85520851.lua | 3 | 1318 | --超伝導恐獣
function c85520851.initial_effect(c)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(85520851,0))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c85520851.cost)... | gpl-2.0 |
Lsty/ygopro-scripts | c10117149.lua | 3 | 3648 | --ブンボーグ005
function c10117149.initial_effect(c)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--splimit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCAT... | gpl-2.0 |
kianooshnoori/teleexitbot | bot/seedbot.lua | 1 | 10265 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
pevzi/Simple-Tiled-Implementation | init.lua | 9 | 1323 | --- Simple and fast Tiled map loader and renderer.
-- @module sti
-- @author Landon Manning
-- @copyright 2015
-- @license MIT/X11
local STI = {
_LICENSE = "MIT/X11",
_URL = "https://github.com/karai17/Simple-Tiled-Implementation",
_VERSION = "0.14.1.12",
_DESCRIPTION = "Simple Tiled Implementation... | mit |
rotmanmi/nn | Jacobian.lua | 33 | 13475 | nn.Jacobian = {}
function nn.Jacobian.backward(module, input, param, dparam)
local doparam = 0
if param then
doparam = 1
end
param = param or input
-- output deriv
module:forward(input)
local dout = module.output.new():resizeAs(module.output)
-- 1D view
local sdout = module.output.new(... | bsd-3-clause |
tryroach/vlc | share/lua/playlist/koreus.lua | 57 | 4037 | --[[
Copyright © 2009 the VideoLAN team
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 Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in ... | gpl-2.0 |
rotmanmi/nn | SpatialAveragePooling.lua | 37 | 1063 | local SpatialAveragePooling, parent = torch.class('nn.SpatialAveragePooling', 'nn.Module')
function SpatialAveragePooling:__init(kW, kH, dW, dH)
parent.__init(self)
self.kW = kW
self.kH = kH
self.dW = dW or 1
self.dH = dH or 1
self.divide = true
end
function SpatialAveragePooling:updateOutput(input... | bsd-3-clause |
Mike325/.vim | lua/tests/tables.lua | 1 | 7912 | local random_string = require('tests.utils').random_string
local random_generator = require('tests.utils').random_generator
local random_list = require('tests.utils').random_list
local random_map = require('tests.utils').random_map
local check_clear_lst = require('tests.utils').check_clear_lst
describe('has_attrs', fu... | mit |
MalRD/darkstar | scripts/zones/West_Sarutabaruta/IDs.lua | 8 | 5375 | -----------------------------------
-- Area: West_Sarutabaruta
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.WEST_SARUTABARUTA] =
{
text =
{
NOTHING_HAPPENS = 119, -- Nothing happens...
I... | gpl-3.0 |
gallenmu/MoonGen | libmoon/examples/webserver.lua | 4 | 2623 | local lm = require "libmoon"
local device = require "device"
local stats = require "stats"
local log = require "log"
local memory = require "memory"
local server = require "webserver"
function configure(parser)
parser:description[[
REST API demo, check out these endpoints:
* curl localhost/devices/<id>
* cu... | mit |
MalRD/darkstar | scripts/globals/mobskills/happobarai.lua | 11 | 1037 | ---------------------------------------------
-- Happobarai
--
-- Description: Damages enemies in an area of effect. Additional effect: Stun
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: 10' radial
-- Notes:
---------------------------------------------
require("scripts/globals/monstertpmoves")
requ... | gpl-3.0 |
ashkanpj/yagoopfire | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Distrotech/vlc | share/lua/modules/dkjson.lua | 95 | 25741 | --[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.1*
This module writes no global values, not even the module table.
Import it using
json = require ("dkjson")
Exported functions and values:
`json.encode (object [, state])`
--------------------------------
... | gpl-2.0 |
Lsty/ygopro-scripts | c58268433.lua | 3 | 1173 | --ブレードラビット
function c58268433.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(58268433,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_CHANGE_POS)
e1:SetCondition(c58268433.... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.