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 |
|---|---|---|---|---|---|
ffxiphoenix/darkstar | scripts/zones/Cloister_of_Flames/Zone.lua | 32 | 1663 | -----------------------------------
--
-- Zone: Cloister_of_Flames (207)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Flames/TextIDs");
---... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/globals/items/slice_of_karakul_meat.lua | 18 | 1290 | -----------------------------------------
-- ID: 5571
-- Item: Slice of Karakul Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +2
-- Intelligence -4
-----------------------------------------
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Castle_Oztroja/npcs/qm3.lua | 1 | 1508 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: qm3 (???)
-- Used In Quest: A boy's Dream (temp spawn instead of fishing)
-- @pos -78 23 -35
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
dail8859/ScintilluaPlusPlus | ext/scintillua/lexers/cuda.lua | 5 | 4318 | -- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- CUDA LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local table = _G.table
local M = {_NAME = 'cuda'}
-- Whitespace
local ws = token(l.WHITESPACE, l.space^1)
-- Ke... | gpl-2.0 |
vilarion/Illarion-Content | alchemy/lte/id_330_language.lua | 3 | 1907 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero 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 wi... | agpl-3.0 |
RodneyMcKay/x_hero_siege | game/scripts/vscripts/components/demo/init.lua | 1 | 4996 | --------------------------------------------------------------------------------
-- GameEvent:OnGameRulesStateChange
--------------------------------------------------------------------------------
ListenToGameEvent('game_rules_state_change', function()
local state = GameRules:State_Get()
if GetMapName() ~= "x_hero_... | gpl-2.0 |
Quenty/NevermoreEngine | src/fakeskybox/src/Client/FakeSkybox.lua | 1 | 3225 | --[=[
Allow transitions between skyboxes
@class FakeSkybox
]=]
local require = require(script.Parent.loader).load(script)
local Workspace = game:GetService("Workspace")
local AccelTween = require("AccelTween")
local FakeSkyboxSide = require("FakeSkyboxSide")
local Maid = require("Maid")
local Signal = require("Sig... | mit |
lxl1140989/sdk-for-tb | feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/bmx6json.lua | 16 | 5303 | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
Contributors Jo-Philipp Wich <xm@subsignal.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... | gpl-2.0 |
rigeirani/crd | plugins/Boobs.lua | 150 | 1613 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
ffxiphoenix/darkstar | scripts/globals/mobskills/Ill_Wind.lua | 10 | 1508 | ---------------------------------------------
-- Ill Wind
-- Description: Deals Wind damage to enemies within an area of effect. Additional effect: Dispel
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes Shadows
-- Range: Unknown radial
-- Notes: Only used by Puks in Mamook, Besieged, and the following Noto... | gpl-3.0 |
Quenty/NevermoreEngine | src/camera/src/Client/Input/CameraInputUtils.lua | 1 | 1272 | --[=[
@class CameraInputUtils
]=]
local UserGameSettings = UserSettings():GetService("UserGameSettings")
local Workspace = game:GetService("Workspace")
local CameraInputUtils = {}
function CameraInputUtils.getPanBy(panDelta, sensivity)
local viewportSize = Workspace.CurrentCamera.ViewportSize
local aspectRatio = ... | mit |
ffxiphoenix/darkstar | scripts/globals/weaponskills/seraph_strike.lua | 30 | 1314 | -----------------------------------
-- Seraph Strike
-- Club weapon skill
-- Skill level: 40
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%TP
-- ... | gpl-3.0 |
Phrohdoh/OpenRA | mods/d2k/maps/ordos-04/ordos04.lua | 3 | 5429 | --[[
Copyright 2007-2020 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 |
zneext/mtasa-blue | utils/buildactions/install_cef.lua | 3 | 1869 | require 'utils'
premake.modules.install_cef = {}
-- Config variables
local CEF_PATH = "vendor/cef3/"
local CEF_URL = "https://mirror.mtasa.com/bdata/cef-latest.tar.bz2"
local CEF_URL_MD5 = "https://mirror.mtasa.com/bdata/cef-latest.tar.bz2.md5"
newaction {
trigger = "install_cef",
description = "Downloads an... | gpl-3.0 |
0x0mar/ettercap | src/lua/share/third-party/stdlib/src/string_ext.lua | 12 | 9440 | --- Additions to the string module
-- TODO: Pretty printing (use in getopt); see source for details.
require "table_ext"
local list = require "list"
local strbuf = require "strbuf"
-- Write pretty-printing based on:
--
-- John Hughes's and Simon Peyton Jones's Pretty Printer Combinators
--
-- Based on "The Desi... | gpl-2.0 |
noooway/love2d_arkanoid_tutorial | 3-16_FinalScreen/buttons.lua | 8 | 2279 | local vector = require "vector"
local buttons = {}
function buttons.new_button( o )
return( { position = o.position or vector( 300, 300 ),
width = o.width or 100,
height = o.height or 50,
text = o.text or "hello",
image = o.image or nil,
quad = o.quad or nil,
quad_when_sel... | mit |
ffxiphoenix/darkstar | scripts/globals/mobskills/Necropurge.lua | 43 | 1080 | ---------------------------------------------
-- Necropurge
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------
function onMobSkillCheck(target,mob,skill)
if(m... | gpl-3.0 |
JamesPan/orz-ops | nginx/lua/dynamic-upstream-weight.lua | 1 | 4830 |
local string2array = function (str)
local arr = {}
if str == nil or str == '' then
return arr
end
for field in string.gmatch(str, "([^, ]+)") do
table.insert(arr, field)
end
return arr
end
local update_server_res_time = function (addr, time, dict, passed_weight, current_weight... | gpl-2.0 |
ffxiphoenix/darkstar | scripts/globals/spells/bluemagic/poison_breath.lua | 18 | 2069 | -----------------------------------------
-- Spell: Poison Breath
-- Deals water damage to enemies within a fan-shaped area originating from the caster. Additional effect: Poison
-- Spell cost: 22 MP
-- Monster Type: Hound
-- Spell Type: Magical (Water)
-- Blue Magic Points: 1
-- Stat Bonus: MND+1
-- Level: 22
... | gpl-3.0 |
gregier/libpeas | loaders/lua5.1/resources/peas-lua-strict.lua | 4 | 1512 | --
-- Copyright (C) 2015 - Garrett Regier
--
-- libpeas 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 2.1 of the License, or (at your option) any later version.
--
-- libpeas is d... | lgpl-2.1 |
jledet/backfire-git | package/uci/trigger/lib/trigger.lua | 40 | 8391 | module("uci.trigger", package.seeall)
require("posix")
require("uci")
local path = "/lib/config/trigger"
local triggers = nil
local tmp_cursor = nil
function load_modules()
if triggers ~= nil then
return
end
triggers = {
list = {},
uci = {},
active = {}
}
local modules = posix.glob(path .. "/*.lua")
if ... | gpl-2.0 |
PouriaDev/Signal-New | plugins/Plugins.lua | 1 | 4080 | do
local function plugin_enabled(name)
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
return false
end
local function plugin_exists(name)
for k,v in pairs(plugins_names()) do
if name..'.lua' == v then
return true
end
end
return false
end
local ... | gpl-3.0 |
moonlight/blues-brothers-rpg | data/scripts/MusicController.lua | 2 | 3503 | --
-- This file contains the music controller. It can be told to play and stop
-- songs. As a bonus, it can also dynamically change the parameters of a
-- channel over a period of time. Using this feature it can fade from one
-- music to another.
--
-- By Bjorn Lindeijer
MC_NORMAL = 0
MC_FADE_IN ... | gpl-2.0 |
vilarion/Illarion-Content | triggerfield/akaltutschamber_mudwarp.lua | 5 | 1625 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero 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 wi... | agpl-3.0 |
AfuSensi/Mr.Green-MTA-Resources | resources/[admin]/anti/colstate_c.lua | 4 | 1240 | local theCollisionlessTable = {}
addEventHandler("onClientResourceStart",resourceRoot,function() triggerServerEvent("onClientRequestCollisionlessTable",resourceRoot) end)
addEvent("onClientReceiveCollisionlessTable",true)
addEventHandler("onClientReceiveCollisionlessTable",root,function(t)
theCollisionlessTable = t
... | mit |
aqasaeed/tele | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
moonlight/blues-brothers-rpg | data/scripts/GuiTheme.lua | 1 | 2791 | --
-- The GUI theme
-- By Bjorn Lindeijer
import("Object.lua")
GuiTheme = Object:subclass
{
name = "GuiTheme";
init = function(self)
self.cornerUL = m_create_sub_bitmap(self.bitmap, 1, 0, 2, 2)
self.cornerUR = m_create_sub_bitmap(self.bitmap, 3, 0, 2, 2)
self.cornerLL = m_create_sub_bitmap(self.bitmap, 1, 2... | gpl-2.0 |
crzang/awesome-config | crzang/widget/temp_widget.lua | 1 | 1683 | --
-- Created by IntelliJ IDEA.
-- User: crzang
-- Date: 12.01.15
-- Time: 0:01
-- To change this template use File | Settings | File Templates.
--
local setmetatable = setmetatable
local first_line = require("crzang.lib").helpers.first_line
local temp_widget = { mt = {} }
local indicator = require("crzang.widget.indi... | apache-2.0 |
ffxiphoenix/darkstar | scripts/globals/items/boiled_crayfish.lua | 35 | 1248 | -----------------------------------------
-- ID: 4535
-- Item: Boiled Crayfish
-- Food Effect: 30Min, All Races
-----------------------------------------
-- defense % 30
-- defense % 25
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
kondrak/ProDBG | bin/win32/scripts/tundra/syntax/rust-cargo.lua | 5 | 7385 | -- rust-cargo.lua - Support for Rust and Cargo
module(..., package.seeall)
local nodegen = require "tundra.nodegen"
local files = require "tundra.syntax.files"
local path = require "tundra.path"
local util = require "tundra.util"
local depgraph = require "tundra.depgraph"
local native = require "tundra... | mit |
Quenty/NevermoreEngine | src/remoting/src/Shared/GetRemoteEvent.lua | 1 | 2095 | --[=[
Provides getting named global [RemoteEvent] resources.
@class GetRemoteEvent
]=]
--[=[
Retrieves a global remote event from the store. On the server, it constructs a new one,
and on the client, it waits for it to exist.
:::tip
Consider using [PromiseGetRemoteEvent] for a non-yielding version
:::
```lua... | mit |
ffxiphoenix/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Cavernous_Maw.lua | 29 | 1242 | -----------------------------------
-- Area: Abyssea - Grauberg
-- NPC: Cavernous Maw
-- @pos -564.000, 30.300, -760.000 254
-- Teleports Players to North Gustaberg
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
ostinelli/gin | gin/db/sql/mysql/adapter_detached.lua | 1 | 2910 | -- dep
local dbi = require 'DBI'
-- gin
local Gin = require 'gin.core.gin'
local helpers = require 'gin.helpers.common'
-- perf
local assert = assert
local ipairs = ipairs
local pairs = pairs
local pcall = pcall
local setmetatable = setmetatable
local smatch = string.match
local tonumber = tonumber
local function tap... | mit |
Phrohdoh/OpenRA | mods/ra/maps/soviet-06a/soviet06a.lua | 4 | 6436 | --[[
Copyright 2007-2020 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 |
ffxiphoenix/darkstar | scripts/zones/Kazham/npcs/Lalapp.lua | 15 | 3856 | -----------------------------------
-- Area: Kazham
-- NPC: Lalapp
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
require("scripts/globals/pathfind");
local path = {
-63.243702, -11.000023, -97.916130,
... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/globals/weaponskills/decimation.lua | 30 | 1511 | -----------------------------------
-- Decimation
-- Axe weapon skill
-- Skill level: 240
-- In order to obtain Decimation, the quest Axe the Competition must be completed.
-- Delivers a three-hit attack. params.accuracy varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Flame Gorget, Light Gor... | gpl-3.0 |
noooway/love2d_arkanoid_tutorial | 3-06_GlueBonus/walls.lua | 8 | 1601 | local vector = require "vector"
local walls = {}
walls.side_walls_thickness = 34
walls.top_wall_thickness = 26
walls.right_border_x_pos = 576
walls.current_level_walls = {}
function walls.new_wall( position, width, height )
return( { position = position,
width = width,
height = height } )
end
function... | mit |
dail8859/ScintilluaPlusPlus | extra/npp.lua | 1 | 2241 | -- Notepad++ lexer theme for Scintillua.
local property = require('lexer').property
property['color.black'] = '#000000'
property['color.green'] = '#008000'
property['color.maroon'] = '#95004A'
property['color.brown'] = '#804000'
property['color.blue'] = '#0000FF'
property['color.yellow'] = '#FF8000'
property['color.g... | gpl-2.0 |
ffxiphoenix/darkstar | scripts/zones/FeiYin/npcs/Treasure_Chest.lua | 19 | 3069 | -----------------------------------
-- Area: Fei'Yin
-- NPC: Treasure Chest
-- @zone 204
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/trea... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/qm2.lua | 17 | 1773 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: qm2 (???)
-- Involved In Quest: 20 in Pirate Years
-- @pos 47.852 -7.808 403.391 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require(... | gpl-3.0 |
drcicero/docl | src/repr.lua | 1 | 1430 | --- Readable tostring
--[[
repr = (require "repr").repr
]]--@RUNHIDDEN
local M = {}
local function key_repr(value)
if type(value) == "string" then
return value:match("%l%w*") and
value or "[" .. M.repr(value) .. "]"
else
return tostring(value)
end
end
--- Generate a readable s... | mit |
AfuSensi/Mr.Green-MTA-Resources | resources/[gameplay]/gcshop/items/burn/burn_s.lua | 4 | 8707 | -----------------
-- Items stuff --
-----------------
local ID, IDextra, IDextra2 = 6, 7, 8
local g_PlayersBurn = {}
local g_PlayersBurnExtra = {}
local g_PlayersBurnTransfer = {}
function loadGCBurn ( player, bool, settings )
if bool then
g_PlayersBurn[player] = true
else
g_PlayersBurn[player] = nil
end
end
... | mit |
ffxiphoenix/darkstar | scripts/zones/PsoXja/TextIDs.lua | 9 | 1673 | -- 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 = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Caedarva_Mire/npcs/qm2.lua | 16 | 1175 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: ??? (Spawn Experimental Lamia(ZNM T3))
-- @pos -773 -11 322 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Caedarva_Mire/TextIDs");
------... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/globals/spells/bluemagic/temporal_shift.lua | 18 | 1436 | -----------------------------------------
-- Spell: Temporal Shift
-- Enemies within range are temporarily prevented from acting
-- Spell cost: 48 MP
-- Monster Type: Luminians
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 5
-- Stat Bonus: HP+10, MP+15
-- Level: 73
-- Casting Time: 0.5 seconds
-- R... | gpl-3.0 |
rezast/tabchichi | bot.lua | 1 | 34896 | redis = (loadfile "redis.lua")()
redis = redis.connect('127.0.0.1', 6379)
function dl_cb(arg, data)
end
function get_admin ()
if redis:get('botBOT-IDadminset') then
return true
else
print("\n\27[32m لازمه کارکرد صحیح ، فرامین و امورات مدیریتی ربات تبلیغ گر <<\n تعریف کاربری به عنوان مدیر ا... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Windurst_Waters/npcs/Ensasa.lua | 30 | 1873 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ensasa
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/Text... | gpl-3.0 |
Quenty/NevermoreEngine | src/settings-inputkeymap/src/Server/InputKeyMapSetting.lua | 1 | 1673 | --[=[
Registers the settings automatically so we can validate on the server.
@class InputKeyMapSetting
]=]
local require = require(script.Parent.loader).load(script)
local BaseObject = require("BaseObject")
local InputKeyMapSettingUtils = require("InputKeyMapSettingUtils")
local SettingsService = require("SettingsS... | mit |
noooway/love2d_arkanoid_tutorial | 3-13_Score/menu.lua | 8 | 2800 | local vector = require "vector"
local buttons = require "buttons"
local menu = {}
local menu_buttons_image = love.graphics.newImage( "img/800x600/buttons.png" )
local button_tile_width = 128
local button_tile_height = 64
local play_button_tile_x_pos = 0
local play_button_tile_y_pos = 0
local quit_button_tile_x_pos = ... | mit |
shahabsaf1/merbot.cl | plugins/moderation.lua | 29 | 12162 | do
local function check_member(extra, success, result)
local data = extra.data
for k,v in pairs(result.members) do
if v.id ~= our_id then
data[tostring(extra.msg.to.id)] = {
moderators = {[tostring(v.id)] = '@'..v.username},
settings = {
set_name = string.gsub(ex... | gpl-2.0 |
Lord-Mohammad/uzzy | plugins/plugins.lua | 325 | 6164 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
ffxiphoenix/darkstar | scripts/globals/weaponskills/trueflight.lua | 18 | 4616 | -----------------------------------
-- Skill Level: N/A
-- Description: Deals light elemental damage. Damage varies with TP. Gastraphetes: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Ranger) quest.
-- Does not work with Flashy Shot.
-- Does not work with Stealth Shot.
... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Gustav_Tunnel/mobs/Goblin_Mercenary.lua | 23 | 1026 | ----------------------------------
-- Area: Gustav Tunnel
-- MOB: Goblin Mercenary
-- Note: Place holder Wyvernpoacher Drachlox
-----------------------------------
require("scripts/zones/Gustav_Tunnel/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
functio... | gpl-3.0 |
vilarion/Illarion-Content | scheduled/factionLeader.lua | 3 | 1906 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero 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 wi... | agpl-3.0 |
moonlight/blues-brothers-rpg | data/scripts/AI.lua | 2 | 3206 | --
-- Our 'magnificent' AI implementation
--
-- Common states for an AI monster
AI_WAITING = 1
AI_WALKING = 2
AI_ATTACK = 3
AI_DEAD = 4
AI_HIT = 5
AI_READY = 6
CommonAI = {}
function CommonAI:event_init()
self.state = AI_READY
self.tick_time = 1
self.charge = 0
self.char... | gpl-2.0 |
suvjunmd/OpenRA | mods/cnc/maps/gdi05a/gdi05a.lua | 19 | 6681 | RepairThreshold = { Easy = 0.3, Normal = 0.6, Hard = 0.9 }
ActorRemovals =
{
Easy = { Actor167, Actor168, Actor190, Actor191, Actor193, Actor194, Actor196, Actor198, Actor200 },
Normal = { Actor167, Actor194, Actor196, Actor197 },
Hard = { },
}
GdiTanks = { "mtnk", "mtnk" }
GdiApc = { "apc" }
GdiInfantry = { "e1",... | gpl-3.0 |
elixboyBW/elixboySPM | 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 |
keshwans/vlc | 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 |
0x0mar/ettercap | src/lua/share/third-party/stdlib/src/xml.lua | 17 | 2787 | -- XML extensions to string module.
-- @class module
-- @name xml
require "base"
require "string_ext"
--- Write a table as XML.
-- The input format is assumed to be that output by luaexpat.
-- @param t table to print.
-- In each element, tag is its name, attr is the table of attributes,
-- and the sub-elements are h... | gpl-2.0 |
azekillDIABLO/Voxellar | mods/PLAYER/hud_hunger/hud/itemwheel.lua | 4 | 4796 | local hb = {}
local scale = tonumber(core.setting_get("hud_scaling")) or 1
local function update_wheel(player)
local name = player:get_player_name()
if not player or not name then
return
end
local i = player:get_wield_index()
local i1 = i - 1
local i3 = i + 1
-- it's a wheel
if i1 < 1 then
i1 = HUD_IW_MA... | lgpl-2.1 |
ffxiphoenix/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/qm7.lua | 57 | 2181 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: qm7 (??? - Ancient Papyrus Shreds)
-- Involved in Quest: In Defiant Challenge
-- @pos 105.275 -32 92.551 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
ffxiphoenix/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 |
ffxiphoenix/darkstar | scripts/zones/Sacrarium/npcs/qm3.lua | 17 | 1738 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm3 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 62.668 -3.111 127.288 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacra... | gpl-3.0 |
AIUbi/Easy-access | easylua_access.lua | 1 | 3585 | if CLIENT then return end
easylua_manager = {}
easylua_manager.access_manager = {}
easylua_manager.access_manager.access_list = {}
easylua_manager.access_manager.add = function(userinfo, caller)
if not userinfo._steam64 then return "[EASYLUA ERROR]: Need SteamID64" end
if #userinfo._steam64 ~= 17 then return "... | gpl-2.0 |
ffxiphoenix/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 |
ffxiphoenix/darkstar | scripts/globals/items/warm_egg.lua | 35 | 1186 | -----------------------------------------
-- ID: 4602
-- Item: warm_egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 18
-- Magic 18
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Cloister_of_Storms/bcnms/carbuncle_debacle.lua | 19 | 1480 | -----------------------------------
-- Area: Cloister of Storms
-- BCNM: Carbuncle Debacle
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Cloister_of_Storms/TextIDs");
require("scripts/globals/settings")... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Davoi/npcs/_45j.lua | 19 | 2049 | -----------------------------------
-- Area: Davoi
-- NPC: Screaming Pond
-- Used In Quest: Whence Blows the Wind
-- @pos -219 0.1 -101 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
Amnesy/petbuffs | PetBuffs/lib/AceAddon-3.0/AceAddon-3.0.lua | 17 | 26462 | --- **AceAddon-3.0** provides a template for creating addon objects.
-- It'll provide you with a set of callback functions that allow you to simplify the loading
-- process of your addon.\\
-- Callbacks provided are:\\
-- * **OnInitialize**, which is called directly after the addon is fully loaded.
-- * **OnEnable... | mit |
ffxiphoenix/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Adamantking_Effigy.lua | 12 | 3434 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Adamantking Effigy
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
-----... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/globals/items/greedie.lua | 18 | 1317 | -----------------------------------------
-- ID: 4500
-- Item: greedie
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 1
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Tavnazian_Safehold/Zone.lua | 19 | 3150 | -----------------------------------
--
-- Zone: Tavnazian_Safehold (26)
--
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/zones/Tavnazian... | gpl-3.0 |
usstwxy/luarocks | src/luarocks/pack.lua | 20 | 7450 |
--- Module implementing the LuaRocks "pack" command.
-- Creates a rock, packing sources or binaries.
--module("luarocks.pack", package.seeall)
local pack = {}
package.loaded["luarocks.pack"] = pack
local unpack = unpack or table.unpack
local path = require("luarocks.path")
local repos = require("luarocks.repos")
loc... | mit |
ffxiphoenix/darkstar | scripts/globals/spells/bluemagic/wild_oats.lua | 18 | 1960 | -----------------------------------------
-- Spell: Wild Oats
-- Additional effect: Vitality Down. Duration of effect varies on TP
-- Spell cost: 9 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 3
-- Stat Bonus: CHR+1, HP+10
-- Level: 4
-- Casting Time: 0.5 seconds
-- R... | gpl-3.0 |
elixboyBW/elixboySPM | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
RodneyMcKay/x_hero_siege | game/scripts/vscripts/libraries/playertables.lua | 1 | 13945 | PLAYERTABLES_VERSION = "0.90"
--[[
PlayerTables: Player-specific shared state/nettable Library by BMD
PlayerTables sets up a table that is shared between server (lua) and client (javascript) between specific (but changeable) clients.
It is very similar in concept to nettables, but is built on being player-specif... | gpl-2.0 |
ffxiphoenix/darkstar | scripts/zones/La_Vaule_[S]/mobs/Lobison.lua | 19 | 1540 | -----------------------------------
-- Area: La Vaule (S)
-- NPC: Lobison
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
-----------------------------------
-- ... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Waughroon_Shrine/bcnms/on_my_way.lua | 19 | 1883 | -----------------------------------
-- Area: Waughroon Shrine
-- Name: Mission Rank 7-2 (Bastok)
-- @pos -345 104 -260 144
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/global... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/Palborough_Mines/npcs/_3z8.lua | 17 | 1532 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Refiner Lever
-- Involved In Mission: Journey Abroad
-- @zone 143
-- @pos 180 -32 167
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/zones/AlTaieu/npcs/qm3.lua | 14 | 1611 | -----------------------------------
-- Area: Al'Taieu
-- NPC: ??? (Jailer of Prudence Spawn)
-- Allows players to spawn the Jailer of Prudence by trading the Third Virtue, Deed of Sensibility, and High-Quality Hpemde Organ to a ???.
-- @pos , 706 -1 22
-----------------------------------
package.loaded["scripts/zones... | gpl-3.0 |
AfuSensi/Mr.Green-MTA-Resources | resources/[gameplay]/chatbox_ads/ads_s.lua | 4 | 2828 | adMessages = { }
function loadResourceSettings()
intervalTime = tonumber(get("intervalTime"))*60000
prefix = tostring(get("prefix"))
end
addEventHandler("onResourceStart", resourceRoot, loadResourceSettings)
setTimer( loadResourceSettings, 30000, 0 )
addCommandHandler( "chatboxads", function(p) if hasObjectPermis... | mit |
3scale/apicast-xc | xc/storage_keys.lua | 1 | 5055 | -- This module defines the interface of XC with Redis.
-- Specifically, it defines the format of all the keys that contain cached
-- authorizations and reports, and also, the format of the keys used in the
-- pubsub mechanism.
-- If the flusher used changes the format of the storage keys that it needs to
-- work proper... | apache-2.0 |
DrayChou/telegram-bot | 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 |
PouriaDev/Signal-New | 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-3.0 |
atilaneves/reggae-lua | 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... | bsd-3-clause |
elixboyBW/elixboySPM | plugins/weather.lua | 274 | 1531 | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
location = string.gsub(location," ","+")
local url = BASE_URL
url = url..'?q='..location
url = url..'&units=metric'
url = url..'&appid=bd82977b86bf27fb59a04b61b6... | gpl-2.0 |
kuoruan/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/bmx6.lua | 78 | 1115 | #!/usr/bin/lua
local json = require "cjson"
local function interpret_suffix(rate)
local value = string.sub(rate, 1, -2)
local suffix = string.sub(rate, -1)
if suffix == "K" then return tonumber(value) * 10^3 end
if suffix == "M" then return tonumber(value) * 10^6 end
if suffix == "G" then return tonumber(va... | gpl-2.0 |
dail8859/ScintilluaPlusPlus | ext/scintillua/lexers/ruby.lua | 3 | 5294 | -- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Ruby LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'ruby'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
local line_com... | gpl-2.0 |
ffxiphoenix/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 |
ffxiphoenix/darkstar | scripts/zones/Port_Windurst/npcs/Paytah.lua | 38 | 1029 | -----------------------------------
-- Area: Port Windurst
-- NPC: Paytah
-- Type: Standard NPC
-- @zone: 240
-- @pos 77.550 -6 117.769
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
--------------------... | gpl-3.0 |
ffxiphoenix/darkstar | scripts/globals/items/rogue_rice_ball.lua | 21 | 1437 | -----------------------------------------
-- ID: 4604
-- Item: Rogue Rice Ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +12
-- Vit +3
-- hHP +2
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Def +50
-- Beast Killer (guesstimated ... | gpl-3.0 |
Chris7/Mudlet2 | src/old_mudlet-lua/lua/StringUtils.lua | 10 | 4592 | ----------------------------------------------------------------------------------
--- Mudlet String Utils
----------------------------------------------------------------------------------
--- Cut string to specified maximum length.
---
--- @release post Mudlet 1.1.1 (<b><u>TODO update before release</u></b>)
---
-... | gpl-2.0 |
ffxiphoenix/darkstar | scripts/globals/spells/doton_san.lua | 17 | 1615 | -----------------------------------------
-- Spell: Doton: San
-- Deals earth damage to an enemy and lowers its resistance against wind.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---... | gpl-3.0 |
Quenty/NevermoreEngine | src/characterutils/src/Shared/CharacterUtils.lua | 1 | 2848 | --[=[
General character utility code.
@class CharacterUtils
]=]
local Players = game:GetService("Players")
local CharacterUtils = {}
--[=[
Gets a player's humanoid, if it exists
@param player Player
@return Humanoid? -- Nil if not found
]=]
function CharacterUtils.getPlayerHumanoid(player)
local character = pl... | mit |
ffxiphoenix/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Goblin_Statue.lua | 12 | 3366 | -----------------------------------
-- Area: Dynamis Beaucedine
-- NPC: Goblin Statue
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
----------... | gpl-3.0 |
azekillDIABLO/Voxellar | mods/MAPGEN/mg_villages/terrain_blend.lua | 1 | 3263 |
-- this function needs to be fed house x, z dimensions and rotation
-- it will then calculate the minimum point (xbmin, avsurfy, zbmin) where the house should be spawned
-- and mark a mapchunk-sized 'house area' for terrain blending
-- re-use already created data structures by the perlin noise functions
local noise_o... | lgpl-2.1 |
lxl1140989/sdk-for-tb | feeds/luci/applications/luci-tinyproxy/luasrc/model/cbi/tinyproxy.lua | 80 | 7364 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2010 Jo-Philipp Wich <xm@subsignal.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
htt... | gpl-2.0 |
RK1K/RKScriptFolder | RK Max Flash.lua | 1 | 6113 | -- Developer: PvPSuite (http://forum.botoflegends.com/user/76516-pvpsuite/)
if FileExist(LIB_PATH.."MenuLibRK.lua") then
require 'MenuLibRK'
else
print("Downloading MenuConfig, please don't reload script!")
DownloadFile("https://raw.githubusercontent.com/RK1K/RKScriptFolder/master/MenuLibRK.lua?rand="..math.ran... | gpl-3.0 |
dail8859/ScintilluaPlusPlus | ext/scintillua/lexers/batch.lua | 5 | 2073 | -- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Batch LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'batch'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
local rem = ... | gpl-2.0 |
ffxiphoenix/darkstar | scripts/zones/Windurst_Waters/npcs/Clais.lua | 36 | 1715 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Clais
-- Involved In Quest: Hat in Hand
-- @zone = 238
-- @pos = -31 -3 11
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/ques... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.