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 |
|---|---|---|---|---|---|
Schwertspize/cuberite | Server/Plugins/APIDump/main_APIDump.lua | 9 | 55685 | -- main.lua
-- Implements the plugin entrypoint (in this case the entire plugin)
-- Global variables:
local g_Plugin = nil
local g_PluginFolder = ""
local g_Stats = {}
local g_TrackedPages = {}
local function LoadAPIFiles(a_Folder, a_DstTable)
assert(type(a_Folder) == "string")
assert(type(a_DstTable) == ... | apache-2.0 |
geanux/darkstar | scripts/globals/items/slice_of_grilled_hare.lua | 35 | 1397 | -----------------------------------------
-- ID: 4371
-- Item: slice_of_grilled_hare
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 2
-- Intelligence -1
-- Attack % 30
-- Attack Cap 15
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
tahashakiba/zz | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
kaen/Zero-K | scripts/armnanotc.lua | 20 | 1377 | include "constants.lua"
include "nanoaim.h.lua"
--pieces
local body = piece "body"
local aim = piece "aim"
local emitnano = piece "emitnano"
--local vars
local smokePiece = { piece "aim", piece "body" }
local nanoPieces = { piece "aim" }
local nanoTurnSpeedHori = 0.5 * math.pi
local nanoTurnSpeedVert = 0.3 * math.pi... | gpl-2.0 |
evilexecutable/ResourceKeeper | install/Lua/lib/lua/loop/object/Publisher.lua | 12 | 1656 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... | gpl-2.0 |
marek-g/vlc-signio | share/lua/playlist/pinkbike.lua | 97 | 2080 | --[[
$Id$
Copyright © 2009 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
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 opt... | gpl-2.0 |
geanux/darkstar | scripts/zones/RuAun_Gardens/npcs/Pincerstone.lua | 17 | 3728 | -----------------------------------
-- Area: Ru'Aun Gardens
-- NPC: Pincerstone
-- NPCs which activates the blue teleports in sky
-----------------------------------
package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuAun_Gardens/TextIDs");... | gpl-3.0 |
ExcelF/project-navel | libs/sti/framework/love.lua | 7 | 1581 | local lf = love.filesystem
local lg = love.graphics
local lm = love.math
local lp = love.physics
local framework = {}
framework.version = "LOVE"
assert(lf, "The love.filesystem module is required for this library.")
assert(lg, "The love.graphics module is required for this library.")
assert(lm, "The love.math module ... | mit |
kaen/Zero-K | effects/stumpy.lua | 25 | 5377 | -- stompollute
-- stumpmuzzle
-- stompshells
-- stompollute_smog
-- stompdust
return {
["stompollute"] = {
boom = {
air = true,
class = [[CExpGenSpawner]],
count = 10,
ground = true,
water = true,
properties = {... | gpl-2.0 |
geanux/darkstar | scripts/zones/Metalworks/npcs/Abbudin.lua | 34 | 1045 | -----------------------------------
-- Area: Metalworks
-- NPC: Abbudin
-- Type: Standard Info NPC
-- @pos -56.338 2.777 -31.446 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
... | gpl-3.0 |
rmackay9/rmackay9-ardupilot | libraries/AP_Scripting/applets/MissionSelector.lua | 19 | 2662 | -- Loads one of three mission files to autopilot on each arm, depending on position of the Mission Reset AUX FUNC switch
-- Must have Mission Reset switch assigned, it will function normally when armed or disarmed
-- but also on the disarm to arm transition, it will load (if file exists) a file in the root named
-- mis... | gpl-3.0 |
geanux/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/Grounds_Tome.lua | 34 | 1149 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function ... | gpl-3.0 |
stormchaser3000/minetest-skyblock | skyblock_bags/register_misc.lua | 1 | 2496 | --[[
Skyblock for Minetest
Copyright (c) 2015 cornernote, Brett O'Donnell <cornernote@gmail.com>
Source Code: https://github.com/cornernote/minetest-skyblock
License: GPLv3
]]--
-- register bag tools
minetest.register_tool("skyblock_bags:small", {
description = "Small Bag",
inventory_image = "skyblock_bags_small.... | gpl-3.0 |
ethantang95/DIGITS | digits/tools/torch/test.lua | 6 | 15242 | -- Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved.
require 'torch'
require 'xlua'
require 'optim'
require 'pl'
require 'trepl'
require 'image'
require 'lfs'
local dir_path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]]
if dir_path ~= nil then
package.path = dir_path .."?.lua;".. packa... | bsd-3-clause |
geanux/darkstar | scripts/zones/Northern_San_dOria/npcs/Gilipese.lua | 38 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Gilipese
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -155.088 0.000 120.300
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
geanux/darkstar | scripts/zones/East_Sarutabaruta/TextIDs.lua | 7 | 1523 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6383; -- Obtained: <item>
GIL_OBTAINED = 6384; -- Obtained <number> gil
KEYITEM_OBTAINED = 6386; -- Obtain... | gpl-3.0 |
sami2448/a | plugins/danbooru.lua | 31 | 1751 | do
local URL = "http://danbooru.donmai.us"
local URL_NEW = "/posts.json"
local URL_POP = "/explore/posts/popular.json"
local scale_day = "?scale=day"
local scale_week = "?scale=week"
local scale_month = "?scale=month"
local function get_post(url)
local b, c, h = http.request(url)
if c ~= 200 then return nil end
... | gpl-2.0 |
h0tw1r3/mame | 3rdparty/genie/tests/actions/vstudio/cs2005/propertygroup.lua | 47 | 1157 | --
-- tests/actions/vstudio/cs2005/propertygroup.lua
-- Validate configuration <PropertyGroup/> elements in Visual Studio 2005+ .csproj
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_cs2005_propertygroup = { }
local suite = T.vstudio_cs2005_propertygroup
local cs2005 = premake.vstudio... | gpl-2.0 |
geanux/darkstar | scripts/globals/weaponskills/circle_blade.lua | 30 | 1329 | -----------------------------------
-- Circle Blade
-- Sword weapon skill
-- Skill Level: 150
-- Delivers an area of effect attack. Attack radius varies with TP.
-- Aligned with the Aqua Gorget & Thunder Gorget.
-- Aligned with the Aqua Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:35%
-- 100%TP 2... | gpl-3.0 |
gwx/tome-elementals-race | data/libs/load-utils-0.4.lua | 1 | 3796 | -- 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 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful... | gpl-3.0 |
vvtam/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 |
kobreu/compiler | testinput/lua5.1-tests/checktable.lua | 22 | 1910 |
assert(rawget(_G, "stat") == nil) -- module not loaded before
if T == nil then
stat = function () print"`querytab' nao ativo" end
return
end
function checktable (t)
local asize, hsize, ff = T.querytab(t)
local l = {}
for i=0,hsize-1 do
local key,val,next = T.querytab(t, i + asize)
if key == nil t... | gpl-3.0 |
cribznetwork/jimcrib-hacker | src/hump/timer.lua | 7 | 6207 | --[[
Copyright (c) 2010-2013 Matthias Richter
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 |
geanux/darkstar | scripts/globals/weaponskills/tachi_jinpu.lua | 30 | 1400 | -----------------------------------
-- Tachi Jinpu
-- Great Katana weapon skill
-- Skill level: 150
-- Two-hit attack. Deals Physical and wind elemental damage to enemy. Additonal Effect Damage varies with TP.
-- Will stack with Sneak Attack and Souleater.
-- Aligned with the Breeze Gorget & Shadow Gorget.
-- Al... | gpl-3.0 |
Shayan123456/shayanhallaji | plugins/stats.lua | 168 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
AlexandreCampo/libFamous3 | premake4.lua | 1 | 2725 |
solution "famous"
configurations { "debug", "release", "profile" }
project "famous"
kind "StaticLib"
language "C++"
files { "src/**.h", "src/**.cpp" }
includedirs { "src/", "src/objects", "src/services", "src/devices"}
if os.is ("linux") then
includedirs { "/usr/incl... | gpl-3.0 |
aqasaeed/sparta4 | 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 |
evilexecutable/ResourceKeeper | install/LuaRocks/lua/luarocks/build/builtin.lua | 10 | 10890 |
--- A builtin build system: back-end to provide a portable way of building C-based Lua modules.
--module("luarocks.build.builtin", package.seeall)
local builtin = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local util = require("luarocks.util")
loc... | gpl-2.0 |
geanux/darkstar | scripts/globals/abilities/pets/somnolence.lua | 12 | 1384 | ---------------------------------------------------
-- Somnolence
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------... | gpl-3.0 |
mohammad43/MOHAMMAD | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
Shayan123456/shayanhallaji | bot/creedbot.lua | 1 | 15618 | 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 = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
kaen/Zero-K | scripts/firewalker.lua | 9 | 9026 | include "constants.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local pelvis = piece 'pelvis'
local torso = piece 'torso'
local rgun = piece 'rgun'
local lgu... | gpl-2.0 |
geanux/darkstar | scripts/globals/abilities/pets/glittering_ruby.lua | 12 | 1120 | ---------------------------------------------------
-- Glittering Ruby
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbilit... | gpl-3.0 |
vatanambib/teleseed | plugins/ingroup.lua | 527 | 44020 | 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 |
geanux/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 |
tahashakiba/zz | 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 |
geanux/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 |
kaen/Zero-K | LuaUI/Widgets/gui_spectate_selected_team.lua | 16 | 5033 | function widget:GetInfo()
return {
name = "Spectate Selected Team",
desc = "Automatically spectate team based on selected units, and other spectate options.",
author = "SirMaverick",
version = "0.205", --has added options
date = "2010", --2013
license = "GNU GPL, v2 or later",
... | gpl-2.0 |
kaen/Zero-K | LuaUI/camain.lua | 7 | 4795 | -- $Id: camain.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: main.lua
-- brief: the entry point from gui.lua, relays call-ins to the widget manager
-... | gpl-2.0 |
geanux/darkstar | scripts/zones/Lower_Jeuno/npcs/Stinknix.lua | 36 | 1295 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Stinknix
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Castle_Oztroja/npcs/_47f.lua | 17 | 1240 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47f (Handle)
-- Notes: Opens door _471
-- @pos -182 -15 -19 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/Te... | gpl-3.0 |
geanux/darkstar | scripts/zones/Ordelles_Caves/npcs/Ruillont.lua | 17 | 2186 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: Ruillont
-- Involved in Mission: The Rescue Drill
-- @pos -70 1 607 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions")... | gpl-3.0 |
geanux/darkstar | scripts/zones/Uleguerand_Range/npcs/HomePoint#4.lua | 19 | 1189 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#4
-- @pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
blackops97/SAJJAD.iq | plugins/newgroup.lua | 1 | 36364 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD HUSSIEN ▀▄ ▄▀
▀▄ ▄▀ BY SAJJADHUSSIEN (@sajjad_iq98) ▀▄ ▄▀
▀▄ ▄ JUST WRITED BY SAJJAD HUSSIEN ▀▄ ▄▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄... | gpl-2.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Al_Zahbi/npcs/Banjanu.lua | 4 | 1026 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Banjanu
-- Type: Standard NPC
-- @zone: 48
-- @pos: -75.954 0.999 105.367
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Dynamis-Beaucedine/Zone.lua | 3 | 2006 | -----------------------------------
--
-- Zone: Dynamis-Beaucedine
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Beaucedine/TextIDs");
------------------... | gpl-3.0 |
3583Bytes/PokeBot | Scripts/util/input.lua | 5 | 2272 | local Input = {}
local Bridge = require "util.bridge"
local Memory = require "util.memory"
local Utils = require "util.utils"
local lastSend
local currentButton, remainingFrames, setForFrame
local debug
local bCancel = true
local function bridgeButton(btn)
if btn ~= lastSend then
lastSend = btn
Bridge.input(btn... | mit |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/spells/doton_ichi.lua | 2 | 1316 | -----------------------------------------
-- Spell: Doton: Ichi
-- Deals earth damage to an enemy and lowers its resistance against wind.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------... | gpl-3.0 |
premake/premake-core | tests/base/test_os.lua | 4 | 13228 | ---
-- tests/base/test_os.lua
-- Automated test suite for the new OS functions.
-- Copyright (c) 2008-2017 Jason Perkins and the Premake project
---
local suite = test.declare("base_os")
local cwd
function suite.setup()
cwd = os.getcwd()
os.chdir(_TESTS_DIR)
end
function suite.teardown()
os.chdir(cwd)
e... | bsd-3-clause |
Sonicrich05/FFXI-Server | scripts/globals/mobskills/PW_Tourbillion.lua | 15 | 1122 | ---------------------------------------------
-- Tourbillion
--
-- Description: Delivers an area attack. Additional effect duration varies with TP. Additional effect: Weakens defense.
-- Type: Physical
-- Shadow per hit
-- Range: Unknown range
---------------------------------------------
require("scripts/globals/setti... | gpl-3.0 |
bioh4x/NeatFreq | lib/genometools-1.4.1/testdata/gtscripts/bittab.lua | 1 | 2073 | --[[
Copyright (c) 2007 Gordon Gremme <gremme@zbh.uni-hamburg.de>
Copyright (c) 2007 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permissi... | gpl-2.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Southern_San_dOria/npcs/Rosel.lua | 2 | 2852 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Rosel
-- Starts and Finishes Quest: Rosel the Armorer
-- @zone 230
-- @pos
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Valkurm_Dunes/npcs/Medicine_Axe.lua | 2 | 1741 | -----------------------------------
-- Area: Valkurm Dunes
-- NPC: Medicine Axe
-- @pos 144 -7 104 103
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
require("scr... | gpl-3.0 |
nagyist/assembla-ltrplugins | trunk/Framework/System/Service.lua | 1 | 11376 | --[[
Service.lua
A service is an operation with an associated log file.
--]]
local Service, dbg = Call:newClass{ className = "Service" }
--- Constructor for extending class.
--
function Service:newClass( t )
return Call.newClass( self, t )
end
--- New instance constructor.
--
-... | artistic-2.0 |
Sonicrich05/FFXI-Server | scripts/zones/Ifrits_Cauldron/npcs/Grounds_Tome.lua | 34 | 1143 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrad... | gpl-3.0 |
daVoodooShuffle/OpenRA | mods/d2k/maps/ordos-04/ordos04-AI.lua | 5 | 4180 | IdlingUnits =
{
Harkonnen = { },
Smugglers = { }
}
AttackGroupSize =
{
easy = 6,
normal = 8,
hard = 10
}
AttackDelays =
{
easy = { DateTime.Seconds(4), DateTime.Seconds(7) },
normal = { DateTime.Seconds(2), DateTime.Seconds(5) },
hard = { DateTime.Seconds(1), DateTime.Seconds(3) }
}
EnemyInfantryTypes = { "l... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/plate_of_friture_de_la_misareaux.lua | 3 | 1512 | -----------------------------------------
-- ID: 5159
-- Item: plate_of_friture_de_la_misareaux
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 3
-- Dexterity 3
-- Vitality 3
-- Mind -3
-- Defense 5
-- Ranged ATT % 7
-- Ranged ATT Cap 15
-----------------------------------------
r... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/weaponskills/fell_cleave.lua | 4 | 1210 | -----------------------------------
-- Fell Cleave
-- Great Axe weapon skill
-- Skill Level: 300
-- Delivers an area attack. Radius varies with TP.
-- Aligned with the Breeze Gorget, Thunder Gorget & Soil Gorget.
-- Aligned with the Breeze Belt, Thunder Belt & Soil Belt.
-- Element: None
-- Modifiers: STR: 60%
--... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Talacca_Cove/Zone.lua | 4 | 1224 | -----------------------------------
--
-- Zone: Talacca_Cove (57)
--
-----------------------------------
package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Talacca_Cove/TextIDs");
-----------------------------------
-- onInitialize
-----------------... | gpl-3.0 |
Zytharian/ADHQ | src/Server/StunnerManager.lua | 1 | 11791 | -- Zytharian (roblox: Legend26)
-- Services
local projectRoot = game:GetService("ServerScriptService")
local RS = game:GetService("ReplicatedStorage")
local debris = game:GetService("Debris")
-- Configuration
local toolName = "AD Stunner"
local unlimitedReload = 1 -- seconds
local limitedReload ... | mit |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/simit.lua | 3 | 1228 | -----------------------------------------
-- ID: 5596
-- Item: simit
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 16
-- Dexterity -1
-- Vitality 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemChe... | gpl-3.0 |
fruitwasp/DarkRP | gamemode/modules/afk/sv_interface.lua | 6 | 2208 | DarkRP.hookStub{
name = "playerAFKDemoted",
description = "When a player is demoted for being AFK.",
parameters = {
{
name = "ply",
description = "The player being demoted.",
type = "Player"
}
},
returns = {
{
name = "shouldDemo... | mit |
omid1212/FOXB | plugins/groupmanager.lua | 2 | 17463 | -- data saved to moderation.json
-- check moderation plugin
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 4
local TIME_CHECK = 4 -- seconds
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return... | gpl-2.0 |
daVoodooShuffle/OpenRA | mods/ra/maps/allies-01/allies01.lua | 6 | 6959 | --[[
Copyright 2007-2017 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 |
Sonicrich05/FFXI-Server | scripts/globals/items/slice_of_salted_hare.lua | 35 | 1198 | -----------------------------------------
-- ID: 5737
-- Item: slice_of_salted_hare
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 10
-- Strength 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- On... | gpl-3.0 |
mandrav/moai_pex_editor | src/hp/physics/PhysicsWorld.lua | 1 | 5015 | --------------------------------------------------------------------------------
-- Class that inherits from MOAIBox2DWorld. <br>
-- Has been prepared to create an object, a useful function.
--------------------------------------------------------------------------------
local table = require("hp/lang/table")
local cl... | mit |
FelixPe/nodemcu-firmware | tests/NTest_tmr.lua | 6 | 2261 | local N = ...
N = (N or require "NTest")("tmr")
N.testasync('SINGLE alarm', function(next)
local t = tmr.create();
local count = 0
t:alarm(200, tmr.ALARM_SINGLE,
function()
count = count + 1
ok(count <= 1, "only 1 invocation")
next()
end)
ok(true, "sync end")
end)
N.testasync('SEMI ... | mit |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/items/plate_of_ic_pilav.lua | 3 | 1809 | -----------------------------------------
-- ID: 5584
-- Item: plate_of_ic_pilav
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 65
-- Strength 4
-- Vitality -1
-- Intelligence -1
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 65
-- Ranged ATT % 22
... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/globals/mobskills/Trinary_Tap.lua | 13 | 2016 | ---------------------------------------------------
-- Trinary Tap
-- Attempts to absorb three buffs from a single target, or otherwise steals HP.
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores Shadows
-- Range: Melee
-- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any ... | gpl-3.0 |
emadni/launcherlordbot | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
mohammadkabir1/kabirBot | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
parsaghx/t | plugins/game.lua | 2 | 1639 | function run(msg, matches)
if matches[1] == "rps" then
local system = {'rock','paper','sci'}
local random = system[math.random(#system)]
if matches[2] == 'سنگ' then
you = 'سنگ 👊'
if random == 'rock' then
return "You: "..you.."\nBot: سنگ 👊\n-------------------\n\nمساوی شدید 😕"
elseif random == 'pape... | gpl-2.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Windurst_Woods/npcs/Illu_Bohjaa.lua | 6 | 2086 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Illu Bohjaa
-- Starts the repeatable quest "Creepy Crawlies"
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
req... | gpl-3.0 |
nrodriguez/SpellGainz | libs/AceGUI-3.0/AceGUI-3.0.lua | 47 | 23674 | --- **AceGUI-3.0** provides access to numerous widgets which can be used to create GUIs.
-- AceGUI is used by AceConfigDialog to create the option GUIs, but you can use it by itself
-- to create any custom GUI. There are more extensive examples in the test suite in the Ace3
-- stand-alone distribution.
--
-- **Note**:... | gpl-3.0 |
d909b/GADEL-Snake | Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/List.lua | 12 | 16426 | --- Python-style list class.
--
-- **Please Note**: methods that change the list will return the list.
-- This is to allow for method chaining, but please note that `ls = ls:sort()`
-- does not mean that a new copy of the list is made. In-place (mutable) methods
-- are marked as returning 'the list' in this documentati... | bsd-3-clause |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Southern_San_dOria/npcs/Benaige.lua | 6 | 1906 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Benaige
-- Standard Merchant NPC
-- @zone 230
-- @pos-142,-6 47
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requir... | gpl-3.0 |
RavenX8/osIROSE-new | scripts/npcs/ai/[co-founder_of_the_junon_order]_francis.lua | 2 | 1064 | registerNpc(1003, {
walk_speed = 0,
run_speed = 0,
scale = 120,
r_weapon = 0,
l_weapon = 0,
level = 10,
hp = 100,
attack = 100,
hit = 100,
def = 100,
res = 100,
avoid ... | apache-2.0 |
mobinlord/shadowking-tg- | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
teleantispirit/SPIRIT | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Sonicrich05/FFXI-Server | scripts/zones/Beaucedine_Glacier/npcs/Akane_IM.lua | 28 | 3168 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Akane, I.M.
-- Type: Outpost Conquest Guards
-- @pos -24.351 -60.421 -114.215 111
-------------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-------------------------------------
require("scri... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/globals/mining.lua | 2 | 5448 | -------------------------------------------------
-- Author: Ezekyel
-- Mining functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Mining
-------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
------------------------------------------... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Temenos/mobs/Goblin_Warlord.lua | 16 | 1189 | -----------------------------------
-- Area: Temenos N T
-- NPC: Goblin_Warlord
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-------------------------... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/West_Sarutabaruta_[S]/npcs/Sealed_Entrance_2.lua | 21 | 2309 | -----------------------------------
-- Area: West Sarutabaruta [S]
-- NPC: Sealed Entrance (Sealed_Entrance_2)
-- @pos 263.600 -6.512 40.000 95
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta_[S]/TextIDs"] = nil;
-------------------------------------
require("scripts/global... | gpl-3.0 |
amirf2020/nod32 | plugins/anti_ads.lua | 61 | 1032 |
local function run(msg)
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['antilink'] == 'yes' then
if not is_momod(msg) then
chat_del_user('chat#id'..msg.to.id, 'user#id'..msg.from.id, ok_cb, true)
local msgads = 'ForbiddenAdText'
... | gpl-2.0 |
arabi373/nod32bot | plugins/anti_ads.lua | 61 | 1032 |
local function run(msg)
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)]['settings']['antilink'] == 'yes' then
if not is_momod(msg) then
chat_del_user('chat#id'..msg.to.id, 'user#id'..msg.from.id, ok_cb, true)
local msgads = 'ForbiddenAdText'
... | gpl-2.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Valkurm_Dunes/mobs/Valkurm_Emperor.lua | 2 | 1084 | ----------------------------------
-- Area: Valkurm Dunes
-- NM: Valkurm Emperor
-----------------------------------
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer)
-- Set VE's Window Open Time
SetServerVariable("[POP]Valkurm_Em... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Port_Windurst/Zone.lua | 17 | 2414 | -----------------------------------
--
-- Zone: Port_Windurst (240)
--
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/globals/zone");
require("scripts/globals/settings");
require("scripts/zones/Port_Windurst/TextIDs");
---------------------... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/FeiYin/npcs/qm1.lua | 17 | 1507 | -----------------------------------
-- Area: FeiYin
-- NPC: qm1 (???)
-- Involved In Quest: Pieuje's Decision
-- @pos -55 -16 69 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
RavenX8/osIROSE-new | scripts/mobs/ai/sikuku_elite_assassin.lua | 2 | 1076 | registerNpc(549, {
walk_speed = 300,
run_speed = 650,
scale = 100,
r_weapon = 1111,
l_weapon = 0,
level = 180,
hp = 36,
attack = 891,
hit = 616,
def = 489,
res = 542,
avoi... | apache-2.0 |
0xbs/premade-groups-filter | Modules/RatingInfo.lua | 1 | 4961 | -------------------------------------------------------------------------------
-- Premade Groups Filter
-------------------------------------------------------------------------------
-- Copyright (C) 2022 Elotheon-Arthas-EU
--
-- This program is free software; you can redistribute it and/or modify
-- it under the ter... | gpl-2.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Qulun_Dome/npcs/_440.lua | 4 | 1499 | -----------------------------------
-- Area: Qulun Dome
-- NPC: Door
-- Involved in Mission: Magicite
-- @pos 60 24 -2 147
-----------------------------------
package.loaded["scripts/zones/Qulun_Dome/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Qulun... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/La_Theine_Plateau/npcs/Vicorpasse.lua | 17 | 2134 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Vicorpasse
-- Involved in Mission: The Rescue Drill
-- @pos -344 37 266 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
Sonicrich05/FFXI-Server | scripts/zones/Western_Adoulin/npcs/HomePoint#1.lua | 17 | 1240 | -----------------------------------
-- Area: Western_Adoulin
-- NPC: HomePoint#1
-- @pos
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Western_Adoulin/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
daVoodooShuffle/OpenRA | mods/ra/maps/soviet-05/soviet05-reinforcements_teams.lua | 7 | 6388 | --[[
Copyright 2007-2017 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 |
patverga/torch-relation-extraction | src/nn-modules/EncoderPool.lua | 1 | 2983 | local EncoderPool, parent = torch.class('nn.EncoderPool', 'nn.Container')
function EncoderPool:__init(mapper,reducer)
parent.__init(self)
self.mapper = mapper
self.reducer = reducer
self.modules = {}
table.insert(self.modules,mapper)
table.insert(self.modules,reducer)
end
function EncoderP... | mit |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Kuftal_Tunnel/Zone.lua | 2 | 1226 | -----------------------------------
--
-- Zone: Kuftal_Tunnel (174)
--
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Kuftal_Tunnel/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
rlowrance/re | logisticRegression_rtest4.lua | 1 | 3614 | -- logisticRegression_rtest4.lua
-- generate data and recover paryameters
require 'logisticRegression'
require 'makeVp'
local vp = makeVp(0)
torch.manualSeed(123)
--torch.manualSeed(3737)
n = 1000 -- number of observations
d = 2 -- number of dimensions in each observation
K = 3 -- number of classes
X = torch.r... | gpl-3.0 |
LuaDist2/lzmq | examples/perf2/thr/local_thr.lua | 15 | 1686 | local ZMQ_NAME = "lzmq"
local argc = select("#", ...)
local argv = {...}
if (argc < 3) or (argc > 4)then
print("usage: local_thr <bind-to> <message-size> <message-count> [ffi]");
return 1
end
local bind_to = argv [1]
local message_size = assert(tonumber(argv [2]))
local message_count = assert(tonumber(arg... | mit |
Sonicrich05/FFXI-Server | scripts/globals/weaponskills/weapon_break.lua | 18 | 1792 | -----------------------------------
-- Weapon Break
-- Great Axe weapon skill
-- Skill level: 175
-- Lowers enemy's attack. Duration of effect varies with TP.
-- Lowers attack by as much as 25% if unresisted.
-- Strong against: Manticores, Orcs, Rabbits, Raptors, Sheep.
-- Immune: Crabs, Crawlers, Funguars, Quad... | gpl-3.0 |
kidaa/ffxinfinity | FFXI Server-Development/Build Files/scripts/zones/Dragons_Aery/npcs/relic.lua | 4 | 1836 | -----------------------------------
-- Area: Dragon's Aery
-- NPC: <this space intentionally left blank>
-- @pos -20 -2 61 154
-----------------------------------
package.loaded["scripts/zones/Dragons_Aery/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Dragons_Aery/TextIDs");
------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.