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
lichtl/darkstar
scripts/globals/abilities/pets/searing_light.lua
34
1119
--------------------------------------------------- -- Searing Light --------------------------------------------------- require("/scripts/globals/settings"); require("/scripts/globals/status"); require("/scripts/globals/monstertpmoves"); require("/scripts/globals/magic"); --------------------------------------------...
gpl-3.0
RunAwayDSP/darkstar
scripts/globals/mobskills/decussate.lua
11
1079
--------------------------------------------- -- Decussate -- -- Description: Performs a cross attack on nearby targets. -- Type: Magical -- Utsusemi/Blink absorb: 2-3 shadows? -- Range: Less than or equal to 10.0 -- Notes: Only used by Gulool Ja Ja when below 35% health. -----------------------------------------...
gpl-3.0
Zariel/bollo2
lib/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua
6
5241
local AceGUI = LibStub("AceGUI-3.0") -------------------------- -- Check Box -- -------------------------- --[[ Events : OnValueChanged ]] do local Type = "CheckBox" local Version = 4 local function OnAcquire(self) self:SetValue(false) self.tristate = nil end local function OnRelease(self) self.fr...
bsd-3-clause
kwketh/otclient
modules/corelib/ui/uispinbox.lua
3
3540
-- @docclass UISpinBox = extends(UITextEdit) function UISpinBox.create() local spinbox = UISpinBox.internalCreate() spinbox:setFocusable(false) spinbox:setValidCharacters('0123456789') spinbox.displayButtons = true spinbox.minimum = 0 spinbox.maximum = 0 spinbox.value = 0 spinbox.step = 1 spinbox.fir...
mit
lichtl/darkstar
scripts/zones/Apollyon/npcs/Armoury_Crate.lua
21
4337
----------------------------------- -- Area: Apollyon -- NPC: Armoury Crate ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/zones/Apollyon/TextIDs");...
gpl-3.0
OctoEnigma/shiny-octo-system
gamemodes/darkrp/gamemode/modules/fadmin/fadmin/motd/sv_init.lua
8
3290
FAdmin.MOTD = {} local MOTDPage sql.Query([[CREATE TABLE IF NOT EXISTS FADMIN_MOTD( 'map' TEXT NOT NULL PRIMARY KEY, x INTEGER NOT NULL, y INTEGER NOT NULL, z INTEGER NOT NULL, pitch INTEGER NOT NULL, yaw INTEGER NOT NULL, roll INTEGER NOT NULL );]]) local MOTD = sql.Query("SELECT * FR...
mit
lichtl/darkstar
scripts/globals/mobskills/Metatron_Torment.lua
33
1055
--------------------------------------------- -- Metatron Torment -- -- Description: Lowers target's defense. Bravura/Abaddon Killer: Temporarily lowers damage taken from enemies. -- Type: Physical -- Range: Melee --------------------------------------------- require("scripts/globals/settings"); require("scripts/...
gpl-3.0
lichtl/darkstar
scripts/globals/items/party_egg.lua
18
1242
----------------------------------------- -- ID: 4595 -- Item: party_egg -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 25 -- Magic 25 -- Attack 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck...
gpl-3.0
OctoEnigma/shiny-octo-system
addons/atlaschat/lua/atlaschat/cl_panel.lua
1
16098
-- refractionservers.net, Chewgum - chewgumtj@gmail.com -- ------------------------------------------------------------------------------------------------------------------ -- ------------------------------------------------------------------------------------------------------------------ local panel = {} local p...
mit
Megaf/MegafXPlore2
mods/areas/chatcommands.lua
4
11131
minetest.register_chatcommand("protect", { params = "<AreaName>", description = "Protect your own area", privs = {[areas.config.self_protection_privilege]=true}, func = function(name, param) if param == "" then return false, "Invalid usage, see /help protect." end local pos1, pos2 = areas:getPos(name) i...
gpl-3.0
amerlyq/airy
nvim/init.lua
1
1430
-- vim:ts=2:sts=2:sw=2:et -- REF: https://github.com/nvim-lua/kickstart.nvim/blob/master/init.lua -- OFF: https://github.com/neovim/neovim/wiki/FAQ#why-lua-51-instead-of-lua-53 -- ONLY: /usr/share/luajit-2.1.0-beta3/?.lua -- plenary/profile package.path = './?.lua' package.cpath = './?.so' -- USAGE: vim.env.MYLUA -...
mit
OctoEnigma/shiny-octo-system
addons/orgrus/lua/orgs/server/sv_functions.lua
1
7988
local meta = FindMetaTable( "Player" ) function meta:loadOrg() db.Query("SELECT * FROM `orgs_players` WHERE `steamid` = '".. self:SteamID() .."'", function(r) if r then db.Query("SELECT `name` FROM `orgs_orgs` WHERE `id` = '".. r[1]["orgid"] .."'", function(r) if r then self:SetNWString("orgName", r[1][...
mit
lichtl/darkstar
scripts/globals/spells/swift_etude.lua
27
1611
----------------------------------------- -- Spell: Swift Etude -- Static AGI Boost, BRD 68 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagi...
gpl-3.0
RunAwayDSP/darkstar
scripts/globals/abilities/scavenge.lua
9
2351
----------------------------------- -- Ability: Scavenge -- Searches the ground around user for items. -- Obtained: Ranger Level 10 -- Recast Time: 3:00 -- Duration: Instant ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") ----------------------------------- fun...
gpl-3.0
lichtl/darkstar
scripts/zones/Kazham/npcs/Vanono.lua
14
1484
----------------------------------- -- Area: Kazham -- NPC: Vanono -- Type: Standard NPC -- @zone 250 -- @pos -23.140 -5 -23.101 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; ---------------------------------...
gpl-3.0
lichtl/darkstar
scripts/zones/Kazham/npcs/Tielleque.lua
27
1732
----------------------------------- -- Area: Kazham -- NPC: Tielleque -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- onT...
gpl-3.0
raingloom/yaoui
examples/anime/yaoui/dialogs/winapi/debug.lua
4
2365
--core/debug: strict mode and some debug tools. entirely optional module. --Written by Cosmin Apreutesei. Public Domain. local yui_path = (...):match('(.-)[^%.]+$') setfenv(1, require(yui_path .. 'namespace')) --disable stdout buffering so we can print-debug stuff io.stdout:setvbuf'no' io.stderr:setvbuf'no' --set s...
mit
RunAwayDSP/darkstar
scripts/zones/La_Theine_Plateau/npcs/qm3.lua
9
1664
----------------------------------- -- Area: La Theine Plateau -- NPC:??? (qm3) -- Involved in Quest: I Can Hear A Rainbow ----------------------------------- local ID = require("scripts/zones/La_Theine_Plateau/IDs"); require("scripts/globals/icanheararainbow"); require("scripts/globals/missions"); require("scripts/gl...
gpl-3.0
cedar-x/unilua_story
Assets/StreamingAssets/LuaRoot/test/bitwise.lua
10
3941
print("testing bitwise operations") assert(bit32.band() == bit32.bnot(0)) assert(bit32.btest() == true) assert(bit32.bor() == 0) assert(bit32.bxor() == 0) assert(bit32.band() == bit32.band(0xffffffff)) assert(bit32.band(1,2) == 0) -- out-of-range numbers assert(bit32.band(-1) == 0xffffffff) assert(bit32.band(2^33 -...
mit
lichtl/darkstar
scripts/zones/RuAun_Gardens/npcs/Treasure_Coffer.lua
14
3857
----------------------------------- -- Area: Ru'Aun Gardens -- NPC: Treasure Coffer -- @zone 130 -- @pos ----------------------------------- package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); requi...
gpl-3.0
lichtl/darkstar
scripts/zones/Meriphataud_Mountains/npcs/Daruru_WW.lua
14
3356
----------------------------------- -- Area: Meriphataud Mountains -- NPC: Daruru, W.W. -- Type: Border Conquest Guards -- @pos -120.393 -25.822 -592.604 119 ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
RunAwayDSP/darkstar
scripts/zones/Nyzul_Isle/instances/nashmeira's_plea.lua
9
1926
----------------------------------- -- -- TOAU-42: Path of Darkness -- ----------------------------------- local ID = require("scripts/zones/Nyzul_Isle/IDs") require("scripts/globals/instance") require("scripts/globals/keyitems"); ----------------------------------- function afterInstanceRegister(player) local ins...
gpl-3.0
RunAwayDSP/darkstar
scripts/globals/abilities/haste_samba.lua
12
1328
----------------------------------- -- Ability: Haste Samba -- Inflicts the next target you strike with Haste daze, increasing the attack speed of all those engaged in battle with it. -- Obtained: Dancer Level 45 -- TP Cost: 35% -- Recast Time: 1:00 -- Duration: 1:30 ----------------------------------- require("scripts...
gpl-3.0
RunAwayDSP/darkstar
scripts/zones/Caedarva_Mire/npcs/qm9.lua
9
1271
----------------------------------- -- Area: Caedarva Mire -- NPC: qm9 -- Involved in quest: The Wayward Automation -- !pos 129 1.396 -631 79 ----------------------------------- local ID = require("scripts/zones/Caedarva_Mire/IDs"); require("scripts/globals/quests"); function onTrade(player,npc,trade) end; function...
gpl-3.0
lichtl/darkstar
scripts/zones/Port_Bastok/npcs/Nokkhi_Jinjahl.lua
5
13099
----------------------------------- -- Area: Port Bastok -- NPC: Nokkhi Jinjahl -- Type: Travelling Merchant NPC / NPC Quiver Maker / Bastok 1st Place -- @zone 236 -- @pos 112.667 7.455 -46.174 -- ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ------------------------...
gpl-3.0
lichtl/darkstar
scripts/zones/Crawlers_Nest/npcs/qm11.lua
57
2120
----------------------------------- -- Area: Crawlers' Nest -- NPC: qm11 (??? - Exoray Mold Crumbs) -- Involved in Quest: In Defiant Challenge -- @pos 98.081 -38.75 -181.198 197 ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
scscgit/scsc_wildstar_addons
RaidCore/Encounters/RMT/miniboss/Korgh.lua
1
1746
---------------------------------------------------------------------------------------------------- -- Client Lua Script for RaidCore Addon on WildStar Game. -- -- Copyright (C) 2015 RaidCore ---------------------------------------------------------------------------------------------------- --------------------------...
mit
lichtl/darkstar
scripts/zones/Kazham/npcs/Nuh_Celodehki.lua
17
1177
----------------------------------- -- Area: Kazham -- NPC: Nuh Celodehki -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action ...
gpl-3.0
ld-test/loop
lua/loop/object/Wrapper.lua
12
1682
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
raingloom/yaoui
yaoui/UI/classic/classic.lua
11
1574
-- -- classic -- -- Copyright (c) 2014, rxi -- -- This module is free software; you can redistribute it and/or modify it under -- the terms of the MIT license. See LICENSE for details. -- local Object = {} Object.__index = Object function Object:new() end function Object:extend(name) local cls = {} for k, ...
mit
amerlyq/airy
nvim/pack/airy/start/notches/lua/notches/spec.lua
1
2394
--%GenBy: /home/amer/aura/just/flower/notches/luagen.py local M = {} M.highlights = { NotchAdd = { fg = '#5faf00', bold = true, ctermfg = 76 }, NotchAlt = { fg = '#dfaf00', bold = true, ctermfg = 178 }, NotchCom = { fg = '#958e68', bold = true, ctermfg = 101 }, NotchDev = { fg = '#0087ff', bold = true, ctermfg...
mit
scscgit/scsc_wildstar_addons
HacksByAramunn/Hacks/FourthContract.lua
2
1859
local Hack = { nId = 201612112, strName = "Fourth Contract", strDescription = "Allows four accepted contracts to be shown on the contract board", strXmlDocName = nil, tSave = nil, } function Hack:Initialize() self.addonContracts = Apollo.GetAddon("Contracts") if not self.addonContracts then return false ...
mit
adelatorrefoss/dotfiles
awesome/rc.lua
1
15775
-- IMPORTANT!!!! -- link from ~/.config/awesome/ -- Standard awesome library require("awful") require("awful.autofocus") require("awful.rules") -- Theme handling library require("beautiful") -- Notification library require("naughty") -- Load Debian menu entries require("debian.menu") -- {{{ Error handling -- Check i...
apache-2.0
Robolopes/RecycleRush
Team973/team-973-public/2012-testbed/pid.lua
4
3202
--[[ pid.lua - PID loops! Useful indexes of a PID table: p, i, and d: The constants of the loop min and max: Limit the output (nil represents no limit) target: The desired value of the dependent variable errFunc: Function used to calculate the error. Takes two arguments: actual and target....
apache-2.0
RunAwayDSP/darkstar
scripts/zones/Empyreal_Paradox/mobs/Promathia_2.lua
8
2050
----------------------------------- -- Area: Empyreal Paradox -- Mob: Promathia -- Note: Phase 2 ----------------------------------- local ID = require("scripts/zones/Empyreal_Paradox/IDs") require("scripts/globals/status") require("scripts/globals/titles") require("scripts/globals/magic") ----------------------------...
gpl-3.0
NiLuJe/koreader
frontend/ui/data/keyboardlayouts/he_keyboard.lua
4
5533
local en_popup = require("ui/data/keyboardlayouts/keypopup/en_popup") local he_popup = require("ui/data/keyboardlayouts/keypopup/he_popup") local pco = en_popup.pco local cop = en_popup.cop local cse = en_popup.cse local sec = en_popup.sec local quo = en_popup.quo --Hebrew Letters local aleph = he_popup.aleph local bei...
agpl-3.0
OctoEnigma/shiny-octo-system
addons/gmod-keypad-master/lua/entities/keypad/cl_maths.lua
7
1217
-- Avoiding the clutter function ENT:CalculateCursorPos() local ply = LocalPlayer() if not IsValid(ply) then return 0, 0 end local tr = util.TraceLine({ start = ply:EyePos(), endpos = ply:EyePos() + ply:GetAimVector() * 65, filter = ply }) if tr.Entity ~= self then return 0, 0 end local scale = s...
mit
RunAwayDSP/darkstar
scripts/globals/abilities/pets/attachments/pattern_reader.lua
11
2232
----------------------------------- -- Attachment: Pattern Reader ----------------------------------- require("scripts/globals/status") ----------------------------------- function onEquip(pet) pet:addListener("ENGAGE", "AUTO_PATTERN_READER_ENGAGE", function(pet, target) pet:setLocalVar("patternreadertick"...
gpl-3.0
lichtl/darkstar
scripts/globals/items/bowl_of_yayla_corbasi.lua
18
1470
----------------------------------------- -- ID: 5579 -- Item: bowl_of_yayla_corbasi -- Food Effect: 3Hrs, All Races ----------------------------------------- -- HP 20 -- Dexterity -1 -- Vitality 2 -- HP Recovered While Healing 3 -- MP Recovered While Healing 1 ----------------------------------------- require("script...
gpl-3.0
RunAwayDSP/darkstar
scripts/zones/Riverne-Site_A01/mobs/Heliodromos.lua
9
2080
----------------------------------- -- Area: Riverne - Site A01 -- Mob: Heliodromos ----------------------------------- local ID = require("scripts/zones/Riverne-Site_A01/IDs"); ----------------------------------- function onMobSpawn(mob) SetServerVariable("Heliodromos_Despawn", 0); end; function onMobRoam(mob) ...
gpl-3.0
RunAwayDSP/darkstar
scripts/globals/spells/bluemagic/wild_oats.lua
4
1797
----------------------------------------- -- 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 -- Recast Time...
gpl-3.0
RunAwayDSP/darkstar
scripts/globals/items/serving_of_snowy_rolanberry.lua
11
1094
----------------------------------------- -- ID: 4594 -- Item: serving_of_snowy_rolanberry -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic % 19 -- Magic Cap 60 -- Intelligence 2 -- Wind Res 5 ----------------------------------------- require("scripts/globals/status") require("script...
gpl-3.0
NiLuJe/koreader
spec/unit/readerview_spec.lua
4
5649
describe("Readerview module", function() local DocumentRegistry, Blitbuffer, ReaderUI, UIManager, Event, Screen setup(function() require("commonrequire") package.unloadAll() require("document/canvascontext"):init(require("device")) DocumentRegistry = require("document/documentre...
agpl-3.0
RunAwayDSP/darkstar
scripts/zones/The_Celestial_Nexus/mobs/Exoplates.lua
9
2545
----------------------------------- -- Area: The Celestial Nexus -- Mob: Exoplates -- Zilart Mission 16 BCNM Fight ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- function onMobInitialize(mo...
gpl-3.0
lichtl/darkstar
scripts/zones/Monarch_Linn/bcnms/savage.lua
17
1688
----------------------------------- -- Area: Monarch Linn -- Name: savage ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/missions"); -- After registering the BCNM via bcnmRegister(bcnmid) function onBcnmRegister(player,instance) end; -- Physically entering the BCNM vi...
gpl-3.0
lichtl/darkstar
scripts/zones/Jugner_Forest/npcs/qm2.lua
14
1304
----------------------------------- -- Area: Jugner Forest -- NPC: qm2 (???) -- Involved in Quest: Sin Hunting - RNG AF1 -- @pos -10.946,-1.000,313.810 104 ----------------------------------- package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil; ----------------------------------- require("scripts/globals/s...
gpl-3.0
telergybot/5252265
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
lichtl/darkstar
scripts/zones/Cloister_of_Gales/bcnms/trial_by_wind.lua
30
1859
----------------------------------- -- Area: Cloister of Gales -- BCNM: Trial by Wind -- @zone -361 1 -381 201 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ------------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/quests"...
gpl-3.0
RunAwayDSP/darkstar
scripts/zones/Western_Adoulin/npcs/Chanteillie.lua
9
2488
----------------------------------- -- Area: Western Adoulin -- NPC: Chanteillie -- Type: Standard NPC and Quest NPC -- Involved with Quests: 'Do Not Go Into the Light' -- 'Vegetable Vegetable Crisis' -- !pos 89 0 -75 256 ----------------------------------- require("scripts/globals/keyitems"...
gpl-3.0
ShahriyarB/Warcraft-Lua-Engine-2
LuaJIT/dynasm/dasm_x86.lua
59
58755
------------------------------------------------------------------------------ -- DynASM x86/x64 module. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local x64 = x64 -- Module i...
gpl-2.0
scscgit/scsc_wildstar_addons
CommodityStats/locale/deDE.lua
1
4352
--Localization.deDE.lua local L = Apollo.GetPackage("Gemini:Locale-1.0").tPackage:NewLocale("CommodityStats", "deDE") if not L then return end -- Translated from google. First review by SelfKiLlEr. Reviewers wanted! L["Locale"] = "deDE" L["Statistics"] = "Statistiken" L["Transactions"] = "Transaktionen" L["General Conf...
mit
lichtl/darkstar
scripts/zones/Windurst_Woods/npcs/Amimi.lua
25
1980
----------------------------------- -- Area: Windurst Woods -- NPC: Amimi -- Type: Chocobo Renter ----------------------------------- require("scripts/globals/chocobo"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- --...
gpl-3.0
qenter/vlc-android
vlc/share/lua/intf/http.lua
25
10617
--[==========================================================================[ http.lua: HTTP interface module for VLC --[==========================================================================[ Copyright (C) 2007-2009 the VideoLAN team $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> This progra...
gpl-2.0
RunAwayDSP/darkstar
scripts/globals/spells/wind_carol.lua
10
1545
----------------------------------------- -- Spell: Wind Carol -- Increases wind resistance for party members within the area of effect. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- ...
gpl-3.0
lichtl/darkstar
scripts/zones/Giddeus/npcs/Uu_Zhoumo.lua
14
2052
----------------------------------- -- Area: Giddeus -- NPC: Uu Zhoumo -- Involved in Mission 2-3 -- @pos -179 16 155 145 ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/mission...
gpl-3.0
lichtl/darkstar
scripts/globals/spells/sword_madrigal.lua
27
1566
----------------------------------------- -- Spell: Sword Madrigal -- Gives party members accuracy ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
CZ-NIC/turris-updater
src/lib/lua/dumper.lua
1
8048
--[[ DataDumper.lua Copyright (c) 2007 Olivetti-Engineering SA Note: This file is sublicensed, therefore we have two headers. ---------------------------------------------------------------------------- This file is part of the turris updater. Updater is free software: you can redistribute it and/or modify it under...
gpl-3.0
lichtl/darkstar
scripts/zones/Upper_Jeuno/npcs/Baudin.lua
26
4773
----------------------------------- -- Area: Upper Jeuno -- NPC: Baudin -- Starts and Finishes Quest: Crest of Davoi, Save My Sister -- Involved in Quests: Save the Clock Tower -- @zone 244 -- @pos -75 0 80 ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ------------------...
gpl-3.0
ShahriyarB/Warcraft-Lua-Engine-2
luasocket-master/samples/cddb.lua
46
1419
local socket = require("socket") local http = require("socket.http") if not arg or not arg[1] or not arg[2] then print("luasocket cddb.lua <category> <disc-id> [<server>]") os.exit(1) end local server = arg[3] or "http://freedb.freedb.org/~cddb/cddb.cgi" function parse(body) local lines = string.gfind(bo...
gpl-2.0
lichtl/darkstar
scripts/globals/spells/sandstorm.lua
32
1181
-------------------------------------- -- Spell: Sandstorm -- Changes the weather around target party member to "dusty." -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -...
gpl-3.0
lichtl/darkstar
scripts/globals/items/angler_stewpot.lua
18
1762
----------------------------------------- -- ID: 5611 -- Item: Angler's Stewpot -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% -- MP +10 -- HP Recoverd while healing 5 -- MP Recovered while healing 1 -- Accuracy +15% Cap 15 -- Ranged Accuracy 15% Cap 15 -----...
gpl-3.0
rpetit3/darkstar
scripts/globals/pets/wyvern.lua
6
6620
----------------------------------- -- PET: Wyvern ----------------------------------- require("scripts/globals/status"); WYVERN_OFFENSIVE = 1 WYVERN_DEFENSIVE = 2 WYVERN_MULTI = 3 local wyvernTypes = { [JOBS.WAR] = WYVERN_OFFENSIVE, [JOBS.MNK] = WYVERN_OFFENSIVE, [JOBS.WHM] = WYVERN_DEFENSIVE, [JOBS....
gpl-3.0
atkinson137/lootmasterplus
Libs/AceAddon-3.0/AceAddon-3.0.lua
66
25788
--- **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** wh...
mit
d4rkboy/....
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
mrbangi/yagop
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
rpetit3/darkstar
scripts/zones/Attohwa_Chasm/npcs/qm1.lua
13
1613
----------------------------------- -- Area: Attohwa Chasm -- NPC: ??? (qm1) -- @pos -402.574 3.999 -202.750 7 ----------------------------------- package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Attohwa_Chasm/TextIDs"); --------------------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Port_San_dOria/npcs/Comittie.lua
13
1146
----------------------------------- -- Area: Port San d'Oria -- NPC: Comittie -- Type: Standard NPC -- @zone: 232 -- @pos -6.570 -9.8 -147.952 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("s...
gpl-3.0
rpetit3/darkstar
scripts/globals/items/slice_of_salted_hare.lua
18
1177
----------------------------------------- -- ID: 5737 -- Item: slice_of_salted_hare -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 10 -- Strength 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --...
gpl-3.0
wez2020/ss
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
mrbangi/yagop
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
MinetestForFun/server-minetestforfun-creative
mods/pipeworks/common.lua
11
3692
---------------------- -- Vector functions -- ---------------------- function vector.cross(a, b) return { x = a.y * b.z - a.z * b.y, y = a.z * b.x - a.x * b.z, z = a.x * b.y - a.y * b.x } end function vector.dot(a, b) return a.x * b.x + a.y * b.y + a.z * b.z end ----------------------- -- Facedir functions ...
unlicense
nokizorque/ucd
[shaders]/shader_tex_names/c_tex_names.lua
1
3436
-- -- c_tex_names.lua -- --------------------------------------- -- Local variables for this file --------------------------------------- local myShader local bShowTextureUsage = false local uiTextureIndex = 1 local m_SelectedTextureName = "" local scx, scy = guiGetScreenSize () local usageInfoList = {} ------------...
mit
krkrteam/123
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
rpetit3/darkstar
scripts/zones/Al_Zahbi/npcs/Talruf.lua
13
1035
----------------------------------- -- Area: Al Zahbi -- NPC: Talruf -- Type: Standard NPC -- @zone: 48 -- @pos 100.878 -7 14.291 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; -----------------------------...
gpl-3.0
esguk811/DarkRP
gamemode/modules/dermaskin/cl_dermaskin.lua
5
16630
-- Skin for DarkRP gui's SKIN = {} SKIN.PrintName = "DarkRP" SKIN.Author = "FPtje Falco" SKIN.DermaVersion = 1 SKIN.GwenTexture = Material("darkrp/darkrpderma.png") SKIN.colTextEntryText = Color(255, 255, 255) SKIN.colTextEntryTextCursor = Color(255, 255, 255) ...
mit
TELEATASH/telefire
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
rpetit3/darkstar
scripts/zones/Abyssea-Empyreal_Paradox/Zone.lua
33
1376
----------------------------------- -- -- Zone: Abyssea - Empyreal_Paradox -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Empyreal_Paradox/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/quests"); require("scripts/zones/Ab...
gpl-3.0
horizonrz/bteam
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
vseledkin/april-ann
tools/trainable/compute-generalization-statistics.lua
3
4838
if #arg < 5 then print("Syntax error!") printf("\t%s FILENAME VAL_MEAN_COL VAL_VAR_COL TEST_MEAN_COL TEST_VAR_COL [W_REPS [EXP_REPS [EXP1_SIZE [EXP2_SIZE ...] ] ] ]\n", arg[0]) printf("\nThis script computes the generalization ability given a set of experiments\n") printf("using different hyperparameters.\n\n")...
gpl-3.0
rpetit3/darkstar
scripts/zones/Mhaura/npcs/HomePoint#1.lua
27
1254
----------------------------------- -- Area: Mhaura -- NPC: HomePoint#1 -- @pos -12.750 -15.791 87.286 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Mhaura/TextIDs"); require("scripts/globals/homepoint"); ---...
gpl-3.0
rpetit3/darkstar
scripts/globals/abilities/addendum_black.lua
20
1596
----------------------------------- -- Ability: Addendum: Black -- Allows access to additional Black Magic spells while using Dark Arts. -- Obtained: Scholar Level 30 -- Recast Time: Stratagem Charge -- Duration: 2 hours -- -- Level |Charges |Recharge Time per Charge -- ----- -------- --------------- -- 10 |1 ...
gpl-3.0
dejayc/CooL
Packages/FrameworkConfig.lua
1
2365
--[[ CooL( Corona Object-Oriented Lua ) https://github.com/dejayc/CooL Copyright 2011 Dejay Clayton All use of this file must comply with the Apache License, Version 2.0, under which this file is licensed: http://www.apache.org/licenses/LICENSE-2.0 --]] --[[ ---------------------------------...
apache-2.0
rpetit3/darkstar
scripts/globals/titles.lua
35
45755
----------------------------------- -- -- TITLES IDs -- ----------------------------------- FODDERCHIEF_FLAYER = 1; WARCHIEF_WRECKER = 2; DREAD_DRAGON_SLAYER = 3; OVERLORD_EXECUTIONER = 4; DARK_DRAGON_SLAYER ...
gpl-3.0
rpetit3/darkstar
scripts/zones/Southern_San_dOria/npcs/Authere.lua
13
2026
----------------------------------- -- Area: Southern San d'Oria -- NPC: Authere -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos 33 1 -31 230 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
matinbot/telerobot
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
sys4-fr/server-minetestforfun
mods/3d_armor_classes/blackmithril/init.lua
5
1625
if ARMOR_MATERIALS.blackmithril then -- Register helmets : minetest.register_tool(":3d_armor:helmet_blackmithril", { description = "Black Mithril Helmet (Warrior)", inventory_image = "3d_armor_inv_helmet_blackmithril.png", groups = {armor_head = 11, armor_heal = 0, armor_use = 40}, wear = 0, }) -- Register ...
unlicense
Endika/Algorithm-Implementations
Counting_Sort/Lua/Yonaba/countsort_test.lua
27
1206
-- Tests for countsort.lua local countsort = require 'countsort' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end ...
mit
rpetit3/darkstar
scripts/globals/spells/noctohelix.lua
26
1689
-------------------------------------- -- Spell: Noctohelix -- Deals dark damage that gradually reduces -- a target's HP. Damage dealt is greatly affected by the weather. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/ma...
gpl-3.0
Endika/Algorithm-Implementations
Golden_Ratio_Algorithms/Lua/Yonaba/lib/newtonraphson.lua
52
1091
-- Newton (Raphson) root finding algorithm implementation -- See : http://en.wikipedia.org/wiki/Newton%27s_method -- Fuzzy equality test local function fuzzyEqual(a, b, eps) local eps = eps or 1e-4 return (math.abs(a - b) < eps) end -- Evaluates the derivative of function f at x0 -- Uses Newton's centered slope a...
mit
peterbarker/ardupilot
libraries/AP_Scripting/tests/scripting_test.lua
27
2059
-- this is a script which is primarily intended to test the scripting bindings and be used with autotest -- however it may be useful to some as a demo of how the API's can be used, this example is much less -- heavily commented, and may require quite a bit more RAM to run in local loop_time = 500 -- number of ms betwe...
gpl-3.0
TakingInitiative/wesnoth
data/ai/formula/engine.lua
4
54765
local fcns = wesnoth.new_function_table() --[=[ class calculate_map_ownership_function : public function_expression { public: calculate_map_ownership_function(const args_list& args, const formula_ai& ai) : function_expression("calculate_map_ownership", args, 2, 5), ai_(ai) { } private: struct indexer { int...
gpl-2.0
rrthomas/luarocks
src/luarocks/upload/api.lua
14
8287
local api = {} local cfg = require("luarocks.cfg") local fs = require("luarocks.fs") local util = require("luarocks.util") local persist = require("luarocks.persist") local multipart = require("luarocks.upload.multipart") local Api = {} local function upload_config_file() local conf = cfg.which_config() if no...
mit
nokizorque/ucd
UCDmarket/housing.lua
1
1762
-- Housing prices to sell to bank -- Divide the number by 10, then divide the house price by the result -- Rate: 888 (88.8%) -- Fluctuation: 100 (10%) Housing = { rate = 90, fluc = 10, default = {rate = 90, fluc = 10}, old = {}, } function getHouseRate() return Housing.rate, Housing.fluc end function setHouseRate(...
mit
tullamods/Dominos_Progress
artifactBar.lua
1
1609
local AddonName, Addon = ... local Dominos = _G.Dominos local ArtifactBar = Dominos:CreateClass('Frame', Addon.ProgressBar) local GetEquippedArtifactInfo = _G.C_ArtifactUI.GetEquippedArtifactInfo local GetCostForPointAtRank = _G.C_ArtifactUI.GetCostForPointAtRank function ArtifactBar:Init() self:SetColor(Addon.Co...
mit
rpetit3/darkstar
scripts/globals/items/piece_of_raisin_bread.lua
18
1262
----------------------------------------- -- ID: 4546 -- Item: piece_of_raisin_bread -- Food Effect: 30Min, All Races ----------------------------------------- -- Health 20 -- Dexterity -1 -- Vitality 4 ----------------------------------------- require("scripts/globals/status"); --------------------------------------...
gpl-3.0
rpetit3/darkstar
scripts/zones/Metalworks/npcs/Mythily.lua
13
2188
----------------------------------- -- Area: Metalworks -- NPC: Mythily -- Type: Immigration NPC -- @pos 94 -20 -8 237 ----------------------------------- require("scripts/globals/conquest"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade)...
gpl-3.0
rpetit3/darkstar
scripts/zones/Selbina/npcs/Mendoline.lua
13
1147
----------------------------------- -- Area: Selbina -- NPC: Mendoline -- Guild Merchant NPC: Fishing Guild -- @pos -13.603 -7.287 10.916 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("sc...
gpl-3.0
dani-sj/mahan03
bot/seedbot.lua
1
8569
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
vlapsley/outback
mods/technic/technic/machines/register/cables.lua
1
8960
local S = technic.getter local cable_tier = {} function technic.is_tier_cable(name, tier) return cable_tier[name] == tier end function technic.get_cable_tier(name) return cable_tier[name] end local function check_connections(pos) -- Build a table of all machines local machines = {} for tier,list in pairs(tech...
lgpl-2.1
rpetit3/darkstar
scripts/zones/Northern_San_dOria/npcs/Gulmama.lua
12
5604
----------------------------------- -- Area: Northern San d'Oria -- NPC: Gulmama -- Starts and Finishes Quest: Trial by Ice -- Involved in Quest: Class Reunion -- @pos -186 0 107 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------...
gpl-3.0