repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
bnetcc/darkstar
scripts/zones/Al_Zahbi/mobs/Fleetfingered_Mobel_Ja.lua
24
1590
----------------------------------- -- Area: Besieged -- ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/utils"); require("scripts/zones/Al_Zahbi/TextIDs"); ----------------------------------- -- onMobInitialize Action --------------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Al_Zahbi/mobs/Zurmurwur_the_Ruthless.lua
24
1590
----------------------------------- -- Area: Besieged -- ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/utils"); require("scripts/zones/Al_Zahbi/TextIDs"); ----------------------------------- -- onMobInitialize Action --------------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Lightning.lua
5
2105
----------------------------------- -- Area: Chamber of Oracles -- NPC: Pedestal of Lightning -- Involved in Zilart Mission 7 -- !pos 199 -2 36 168 ------------------------------------- package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titl...
gpl-3.0
bnetcc/darkstar
scripts/globals/items/plate_of_witch_risotto.lua
3
1272
----------------------------------------- -- ID: 4330 -- Item: witch_risotto -- Food Effect: 4hours, All Races ----------------------------------------- -- Magic Points 35 -- Strength -1 -- Vitality 3 -- Mind 3 -- MP Recovered While Healing 2 -- Enmity -4 ----------------------------------------- require("scripts/globa...
gpl-3.0
bnetcc/darkstar
scripts/zones/West_Ronfaure/npcs/Phairet.lua
5
2269
----------------------------------- -- Area: West Ronfaure -- NPC: Phairet -- Involved in Quest: The Trader in the Forest -- !pos -57 -1 -501 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); requi...
gpl-3.0
avplayer/avbot
extension/luascript/libs/lua_libraries/json/decode/others.lua
9
1600
--[[ Licensed according to the included 'LICENSE' document Author: Thomas Harning Jr <harningt@gmail.com> ]] local lpeg = require("lpeg") local jsonutil = require("json.util") local merge = jsonutil.merge local util = require("json.decode.util") -- Container module for other JavaScript types (bool, null, undefined) ...
agpl-3.0
bnetcc/darkstar
scripts/zones/Rolanberry_Fields/npcs/Cavernous_Maw.lua
1
3267
----------------------------------- -- Area: Rolanberry Fields -- NPC: Cavernous Maw -- !pos -198 8 361 110 -- Teleports Players to Rolanberry Fields [S] ----------------------------------- package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil; ----------------------------------- require("scripts/globals/set...
gpl-3.0
farshadfaza/newpermag
libs/serpent.lua
31
8016
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-3.0
erosennin/koreader
frontend/apps/filemanager/filemanagerhistory.lua
1
2997
local InputContainer = require("ui/widget/container/inputcontainer") local CenterContainer = require("ui/widget/container/centercontainer") local ButtonDialog = require("ui/widget/buttondialog") local lfs = require("libs/libkoreader-lfs") local UIManager = require("ui/uimanager") local DocSettings = require("docsetting...
agpl-3.0
nsimplex/Tallbrood
scripts/tallbrood/tallbird_logic.lua
1
5713
--[[ Copyright (C) 2013 simplex 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 the hope that ...
gpl-2.0
notcake/vfs
lua/gauth/protocol/nodeadditionrequest.lua
1
1051
local self = {} GAuth.Protocol.Register ("NodeAddition", self) GAuth.Protocol.NodeAdditionRequest = GAuth.MakeConstructor (self, GAuth.Protocol.Session) function self:ctor (groupTree, childName, isGroupTree, callback) self.Callback = callback or GAuth.NullCallback self.GroupId = groupTree:GetFullName () self...
gpl-3.0
Lleafll/doom-shards
Libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua
24
5432
--[[----------------------------------------------------------------------------- ColorPicker Widget -------------------------------------------------------------------------------]] local Type, Version = "ColorPicker", 22 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(...
mit
bnetcc/darkstar
scripts/zones/Zeruhn_Mines/Zone.lua
5
2001
----------------------------------- -- -- Zone: Zeruhn_Mines (172) -- ----------------------------------- package.loaded["scripts/zones/Zeruhn_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/zone"); require("scripts/zones/Zeruhn_Mines/TextIDs"); ---...
gpl-3.0
mwoz123/koreader
spec/unit/readhistory_spec.lua
2
11724
describe("ReadHistory module", function() local DocSettings local DataStorage local joinPath local mkdir local realpath local reload local lfs local now = 61 local function file(name) return joinPath(DataStorage:getDataDir(), name) end local function test_data_dir()...
agpl-3.0
bnetcc/darkstar
scripts/zones/Abyssea-Tahrongi/mobs/Mictlantecuhtli.lua
1
1640
----------------------------------- -- Area: Abyssea - Tahrongi (45) -- Mob: Mictlantecuhtli ----------------------------------- package.loaded["scripts/zones/Abyssea-Tahrongi/TextIDs"] = nil; require("scripts/zones/Abyssea-Tahrongi/TextIDs"); require("scripts/globals/abyssea"); require("scripts/globals/status"); re...
gpl-3.0
mwoz123/koreader
frontend/ui/widget/radiobuttontable.lua
4
5504
local Blitbuffer = require("ffi/blitbuffer") local Device = require("device") local FocusManager = require("ui/widget/focusmanager") local Font = require("ui/font") local Geom = require("ui/geometry") local HorizontalGroup = require("ui/widget/horizontalgroup") local LineWidget = require("ui/widget/linewidget") local R...
agpl-3.0
swe-TeamRed/wesnoth
data/ai/micro_ais/cas/ca_forest_animals_tusklet_move.lua
3
1713
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local function get_tusklets(cfg) local tusklets = AH.get_units_with_moves { side = wesnoth.current.side, type = cfg.tusklet_type } return tusklets end local function get_tuskers(cfg) local tusk...
gpl-2.0
bnetcc/darkstar
scripts/globals/items/yilanbaligi.lua
3
1042
----------------------------------------- -- ID: 5458 -- Item: Yilanbaligi -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 -- Evasion 5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- function o...
gpl-3.0
bnetcc/darkstar
scripts/zones/Gusgen_Mines/Zone.lua
5
1135
----------------------------------- -- -- Zone: Gusgen_Mines (196) -- ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ---------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Gusgen_Mines/TextIDs"); -...
gpl-3.0
bnetcc/darkstar
scripts/globals/weaponskills/red_lotus_blade.lua
23
1318
----------------------------------- -- Red Lotus Blade -- Sword weapon skill -- Skill Level: 50 -- Deals fire elemental damage to enemy. Damage varies with TP. -- Aligned with the Flame Gorget & Breeze Gorget. -- Aligned with the Flame Belt & Breeze Belt. -- Element: Fire -- Modifiers: STR:40% ; INT:40% -- 100%TP 20...
gpl-3.0
bnetcc/darkstar
scripts/globals/mobskills/astral_flow_pet.lua
5
2855
--------------------------------------------- -- Astral Flow -- Will make existing pet use astral flow skill --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/msg"); ------------------...
gpl-3.0
awesomeWM/awesome
tests/examples/awful/placement/resize_to_mouse.lua
1
2429
--DOC_HIDE_ALL --DOC_GEN_IMAGE local awful = {placement = require("awful.placement")} local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1) screen._setup_grid(64, 48, {4, 4, 4, 4}, {workarea_sides=0}) for s in screen do require("awful.tag").add("1", {screen=s, selected=true...
gpl-2.0
bnetcc/darkstar
scripts/globals/mobskills/antimatter.lua
35
1177
--------------------------------------------------- -- Antimatter -- -- Description: Single-target ranged Light damage (~700-1500), ignores Utsusemi. -- Type: Magical -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globa...
gpl-3.0
Etiene/Algorithm-Implementations
Negamax/Lua/Yonaba/negamax_test.lua
26
1129
-- Tests for alpha_beta_pruning.lua local negamax = require 'negamax' 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 ...
mit
swe-TeamRed/wesnoth
data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua
3
6014
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local LS = wesnoth.require "lua/location_set.lua" local WMPF = wesnoth.require "ai/micro_ais/cas/ca_wolves_multipacks_functions.lua" local ca_wolves_mult...
gpl-2.0
swe-TeamRed/wesnoth
data/lua/wml/random_placement.lua
3
2963
local helper = wesnoth.require "lua/helper.lua" local utils = wesnoth.require "lua/wml-utils.lua" wesnoth.wml_actions.random_placement = function(cfg) local parsed = helper.shallow_parsed(cfg) -- TODO: In most cases this tag is used to place units, so maybe make include_borders=no the default for [filter_location]? ...
gpl-2.0
bhrt/nodeMCU
lua_modules/bh1750/bh1750.lua
89
1372
-- *************************************************************************** -- BH1750 module for ESP8266 with nodeMCU -- BH1750 compatible tested 2015-1-22 -- -- Written by xiaohu -- -- MIT license, http://opensource.org/licenses/MIT -- *************************************************************************** loca...
mit
arashvp1/arashvp2
plugins/msg-checks.lua
1
22240
--Begin msg_checks.lua @arashvp1 local TIME_CHECK = 2 local function pre_process(msg) local data = load_data(_config.moderation.data) local chat = msg.to.id local user = msg.from.id local is_channel = msg.to.type == "channel" local is_chat = msg.to.type == "chat" local auto_leave = 'auto_leave_bot' local hash = "gp_lan...
gpl-3.0
s4jj4d021/TgGuard
plugins/banhammer.lua
6
13221
local function pre_process(msg) local data = load_data(_config.moderation.data) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Che...
agpl-3.0
awesomeWM/awesome
tests/examples/shims/client.lua
1
9543
local gears_obj = require("gears.object") local grect = require("gears.geometry").rectangle local clients = {} local client, meta = awesome._shim_fake_class() rawset(client, "_autotags", true) -- Keep an history of the geometry for validation and images local function push_geometry(c) table.insert(c._old_geo, c...
gpl-2.0
bnetcc/darkstar
scripts/globals/items/conqueror.lua
3
4209
----------------------------------------- -- ID: 18991 -- Item: Conqueror ----------------------------------------- require("scripts/globals/msg"); require("scripts/globals/status"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_WEAPO...
gpl-3.0
bnetcc/darkstar
scripts/globals/items/deep-fried_shrimp_+1.lua
3
1425
----------------------------------------- -- ID: 6277 -- Item: deep-fried_shrimp -- Food Effect: 60Min, All Races ----------------------------------------- -- VIT +4 -- Fire resistance +21 -- Accuracy +21% (cap 75) -- Ranged Accuracy +21% (cap 75) -- Subtle Blow +9 ----------------------------------------- require("scr...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/bluemagic/blank_gaze.lua
4
1415
----------------------------------------- -- Spell: Blank Gaze -- Removes one beneficial magic effect from an enemy -- Spell cost: 25 MP -- Monster Type: Beasts -- Spell Type: Magical (Light) -- Blue Magic Points: 2 -- Stat Bonus: None -- Level: 38 -- Casting Time: 3 seconds -- Recast Time: 10 seconds -- Magic Bursts o...
gpl-3.0
bnetcc/darkstar
scripts/zones/South_Gustaberg/mobs/Holiday_Gift_Box.lua
5
4505
----------------------------------- -- Area: West Sarutabaruta -- MOB: Holiday Gift Box ----------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------- -- onMobInitialize ----------------------------------- function onMobInitialize(mob) m...
gpl-3.0
bnetcc/darkstar
scripts/zones/Meriphataud_Mountains/npcs/qm1.lua
5
1061
----------------------------------- -- Area: Meriphataud Mountains -- NPC: qm1 (???) -- Involved in Quest: The Holy Crest -- !pos 641 -15 7 119 ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Meriphataud...
gpl-3.0
Ivshti/vlc-2.2
share/lua/intf/modules/host.lua
48
12262
--[==========================================================================[ host.lua: VLC Lua interface command line host module --[==========================================================================[ Copyright (C) 2007-2012 the VideoLAN team $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> ...
gpl-2.0
awesomeWM/awesome
tests/examples/shims/dbus.lua
5
1230
local lgi = require("lgi") local Gio = lgi.Gio local dbus = awesome._shim_fake_class() -- Monkeypatch away the real dbus support Gio.bus_own_name = function() end --HACK it used to be an internal API, which made testing easy, but now it uses -- GDBus, so this shims a small subset of its API and use some internal API...
gpl-2.0
bnetcc/darkstar
scripts/globals/items/sleep_dagger.lua
5
1030
----------------------------------------- -- ID: 16497 -- Item: Sleep Dagger -- Additional Effect: Sleep ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onAdditionalEffect(player,...
gpl-3.0
bnetcc/darkstar
scripts/globals/abilities/pets/gust_breath.lua
29
1334
--------------------------------------------------- -- Gust Breath --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/globals/ability"); ------------------------------------------------...
gpl-3.0
nsimplex/Tallbrood
scripts/tallbrood/wicker/utils/table/tree/dfs.lua
2
3639
--[[ Copyright (C) 2013 simplex 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 the hope that ...
gpl-2.0
freeciv/freeciv
data/sandbox/script.lua
1
17482
-- Freeciv - Copyright (C) 2007 - The Freeciv Project -- 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, or (at your option) -- any later version. -- -- This program ...
gpl-2.0
bverhagen/system-config
awesome/rc-3.5.lua
1
20262
-- Standard awesome library local gears = require("gears") local awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") -- Widget and layout library local wibox = require("wibox") -- Theme handling library local beautiful = require("beautiful") -- Notification library local naughty = r...
mit
luc-tielen/lua-quickcheck
lqc/fsm/algorithm.lua
2
19050
--- Module describing the algorithm used by the FSM properties. -- @module lqc.fsm.algorithm -- @alias lib local Vector = require 'lqc.helpers.vector' local Var = require 'lqc.fsm.var' local Command = require 'lqc.fsm.command' local Action = require 'lqc.fsm.action' local random = require 'lqc.random' local deep_copy...
mit
mwoz123/koreader
spec/unit/switch_plugin_spec.lua
13
5658
describe("SwitchPlugin", function() require("commonrequire") local SwitchPlugin = require("ui/plugin/switch_plugin") local createTestPlugin = function(default_enable, start, stop) return SwitchPlugin:new({ name = "test_plugin", menu_item = "test_plugin_menu", men...
agpl-3.0
bnetcc/darkstar
scripts/globals/mobskills/thundris_shriek.lua
3
1355
--------------------------------------------- -- Thundris Shriek -- -- Description: Deals heavy lightning damage to targets in area of effect. Additional effect: Terror -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: Unknown -- Notes: Players will begin to be intimidated by the dvergr after this atta...
gpl-3.0
Wiladams/LLUI
testy/ljdrm.lua
1
4302
local ffi = require("ffi") local bit = require("bit") local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift local drm = require("drm") local libc = require("libc") local C = { -- constants DRM_MAX_MINOR = 16; -- Defaults, if nothing set in xf86config DRM_DEV_UID =0; DRM_DE...
mit
swe-TeamRed/wesnoth
data/ai/micro_ais/cas/ca_simple_attack.lua
3
1974
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local BC = wesnoth.require "ai/lua/battle_calcs.lua" local LS = wesnoth.require "lua/location_set.lua" local ca_simple_attack, best_attack = {} function ca_simple_attack:evaluation(cfg) local units = AH.get_units_with_att...
gpl-2.0
BenedictAllen/LPG
lgen/compile/init.lua
1
5010
local literalblock = require "lgen.compile.block" .literal local patternblock = require "lgen.compile.block" .pattern local complexblock = require "lgen.compile.block" .complex local literalcondition = require "lgen.compile.condition" .literal local patterncondition = require "lgen.compile.condition" .pattern local op...
mit
bnetcc/darkstar
scripts/zones/Cloister_of_Flames/bcnms/htb_trial_by_fire.lua
1
1531
----------------------------------- -- Area: Cloister of Flames -- BCNM: Trial by Fire -- @pos -721 0 -598 207 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Cloister_of_Flames/TextIDs"); require("scripts...
gpl-3.0
bnetcc/darkstar
scripts/zones/La_Theine_Plateau/npcs/Vicorpasse.lua
5
1885
----------------------------------- -- 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/keyitems")...
gpl-3.0
bnetcc/darkstar
scripts/zones/Abyssea-Grauberg/mobs/Raja.lua
1
1974
----------------------------------- -- Area: Abyssea - Grauberg (254) -- Mob: Raja ----------------------------------- package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil; require("scripts/zones/Abyssea-Grauberg/TextIDs"); require("scripts/globals/abyssea"); require("scripts/globals/status"); require("scr...
gpl-3.0
bnetcc/darkstar
scripts/zones/Kazham/npcs/Shey_Wayatih.lua
5
1082
----------------------------------- -- Area: Kazham -- NPC: Shey Wayatih -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Kazham/TextIDs"); ----------------------------------- function onTrade(play...
gpl-3.0
tiagosr/ld27-train
anim8/spec/anim8/animation_spec.lua
1
8255
require 'spec.love-mocks' local anim8 = require 'anim8' local newAnimation = anim8.newAnimation describe("anim8", function() describe("newAnimation", function() it("Throws an error if durations is not a positive number or a table", function() assert.error(function() newAnimation({}, 'foo') end) ...
mit
bnetcc/darkstar
scripts/globals/items/plate_of_crab_sushi_+1.lua
3
1110
----------------------------------------- -- ID: 5722 -- Item: plate_of_crab_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Vitality 2 -- Defense 15 -- Accuracy % 14 (cap 68) -- Resist Sleep +2 ----------------------------------------- require("scripts/globals/status"); ---------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Waughroon_Shrine/bcnms/shattering_stars.lua
5
2037
----------------------------------- -- Area: Waughroon Shrine -- Name: Shattering stars - Maat Fight -- !pos -345 104 -260 144 ----------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Waughroon_Shrine/TextIDs"); ----...
gpl-3.0
bnetcc/darkstar
scripts/globals/abilities/pets/attachments/pattern_reader.lua
4
2268
----------------------------------- -- Attachment: Pattern Reader ----------------------------------- require("scripts/globals/status") ----------------------------------- -- onUseAbility ----------------------------------- function onEquip(pet) pet:addListener("ENGAGE", "AUTO_PATTERN_READER_ENGAGE", function(pe...
gpl-3.0
bnetcc/darkstar
scripts/zones/West_Sarutabaruta/npcs/Twinkle_Tree.lua
5
2120
----------------------------------- -- Area: West Sarutabaruta -- NPC: Twinkle Tree -- Involved in Quest: To Catch a Falling Star -- Note: EventID for Twinkle Tree is unknown. Quest funtions but the full event is not played. -- !pos 156.003 -40.753 333.742 115 ----------------------------------- package.loaded["scrip...
gpl-3.0
bnetcc/darkstar
scripts/zones/Abyssea-Attohwa/npcs/Veridical_Conflux.lua
8
1413
----------------------------------- -- Area: Abyssea -- NPC: Veridical Conflux -- Aybssea Teleport NPC ----------------------------------- package.loaded["scripts/globals/conflux"] = nil; require("scripts/globals/keyitems"); require("scripts/globals/conflux"); ----------------------------------- -- onTrade Action --...
gpl-3.0
bnetcc/darkstar
scripts/zones/Windurst_Woods/npcs/Ponono.lua
5
1810
----------------------------------- -- Area: Windurst Woods -- NPC: Ponono -- Type: Clothcraft Guild Master -- !pos -38.243 -2.25 -120.954 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_Woods/Text...
gpl-3.0
samijon/samiiiiiiiiiiiiiiii
bot/seedbot.lua
2
10071
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
bnetcc/darkstar
scripts/commands/givegil.lua
22
1143
--------------------------------------------------------------------------------------------------- -- func: givegil <amount> <player> -- desc: Gives the specified amount of gil to GM or target player. --------------------------------------------------------------------------------------------------- cmdprops = { ...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/bluemagic/helldive.lua
35
1670
----------------------------------------- -- Spell: Helldive -- Damage varies with TP -- Spell cost: 16 MP -- Monster Type: Birds -- Spell Type: Physical (Blunt) -- Blue Magic Points: 2 -- Stat Bonus: CHR+1, HP+5 -- Level: 16 -- Casting Time: 0.5 seconds -- Recast Time: 11.25 seconds -- Skillchain Property: Transfixion...
gpl-3.0
OpenPrograms/Plan9k
plan9k-coreutil/dmesg.lua
1
4550
local event = require "event" local component = require "component" local keyboard = require "keyboard" local serialization = require "serialization" local args = {...} local color, isPal, evt local function normLine(data) local res = "" for c in data:gmatch(".") do if c == "\n" or c == "\r" then c = ...
mit
blastehh/freezetag
gamemodes/freezetag/gamemode/cl_postprocess.lua
1
1388
ColorModify = {} ColorModify[ "$pp_colour_addr" ] = -0.025 ColorModify[ "$pp_colour_addg" ] = 0.01 ColorModify[ "$pp_colour_addb" ] = 0.03 ColorModify[ "$pp_colour_brightness" ] = 0 ColorModify[ "$pp_colour_contrast" ] = 1.05 ColorModify[ "$pp_colour_colour" ] = 1 ColorModify[ "$pp_colour_mulr" ] = 0 Color...
gpl-3.0
bnetcc/darkstar
scripts/zones/Metalworks/npcs/Raibaht.lua
5
2885
----------------------------------- -- Area: Metalworks -- NPC: Raibaht -- Starts and Finishes Quest: Dark Legacy -- Involved in Quest: The Usual, Riding on the Clouds -- !pos -27 -10 -1 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------...
gpl-3.0
Zaratusa/gmod_addons
lua/weapons/weapon_mine_turtle/shared.lua
2
3577
--- Author informations --- SWEP.Author = "Zaratusa" SWEP.Contact = "http://steamcommunity.com/profiles/76561198032479768" --- Default GMod values --- SWEP.Base = "weapon_base" SWEP.Category = "Fun" SWEP.Purpose = "Place it somewhere and it will greet you with a nice HELLO!" SWEP.Spawnable = true SWEP.AdminSpawnable =...
gpl-3.0
nguillemot/LD48-Beneath-The-Surface
SDL2/premake/util/sdl_gen_config.lua
2
2632
-- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purp...
mit
Doublespin/Factorio-Energy-Replicators
fetch_data.lua
1
22765
require "util" require("config") -- to print in factorio log: error("Hi player") error(serpent.block(table_name)) -- Initialise local recipes = table.deepcopy(data.raw.recipe) local recipes_copy = table.deepcopy(data.raw.recipe) item = {} fluid = {} -- item and fluids are called replication recipes in my notes ---- Re...
mit
bnetcc/darkstar
scripts/zones/Kuftal_Tunnel/mobs/Moki.lua
1
1758
----------------------------------- -- Area: EDIT ME -- VWNM: ME TO ----------------------------------- require("scripts/globals/status"); require("scripts/globals/keyitems"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize(mob) mob:setMo...
gpl-3.0
sohrab96/sektor
plugins/lock_eng.lua
4
1305
antienglish = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if msg.to.type == 'chat' then if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_english'] the...
gpl-2.0
awesomeWM/awesome
lib/gears/geometry.lua
1
10203
--------------------------------------------------------------------------- -- -- Helper functions used to compute geometries. -- -- When this module refer to a geometry table, this assume a table with at least -- an *x*, *y*, *width* and *height* keys and numeric values. -- -- @author Julien Danjou &lt;julien@danjou.i...
gpl-2.0
mwoz123/koreader
frontend/ui/message/messagequeue.lua
11
2268
local ffi = require("ffi") local Event = require("ui/event") local logger = require("logger") local _ = require("ffi/zeromq_h") local czmq = ffi.load("libs/libczmq.so.1") local MessageQueue = {} function MessageQueue:new(o) o = o or {} setmetatable(o, self) self.__index = self if o.init then o:init()...
agpl-3.0
Etiene/Algorithm-Implementations
Linear_Search/Lua/Yonaba/linear_search_test.lua
26
2059
-- Tests for linear_search.lua local search = require 'linear_search' 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 ...
mit
gamebytes/pioneer
data/sub_models/antennas/antennas.lua
1
2687
define_model('mini_ant', { info = { lod_pixels = {5, 10, 20, 0}, bounding_radius = 5, }, static = function(lod) texture('metal.png') ring(3*lod, v(0,0,0), v(0,.15,0), v(1,1,0), .02) ring(3*lod, v(0,0,0), v(0,-.15,0), v(-1,1,0), .02) cylinder(3*lod,...
gpl-3.0
motherfscker/minetest_game
mods/default/init.lua
15
1623
-- Minetest 0.4 mod: default -- See README.txt for licensing and other information. -- The API documentation in here was moved into game_api.txt -- Definitions made by this mod that other mods can use too default = {} default.LIGHT_MAX = 14 -- GUI related stuff default.gui_bg = "bgcolor[#080808BB;true]" default.gui...
lgpl-2.1
bnetcc/darkstar
scripts/globals/mobskills/vw_raksha_stance_custom.lua
1
1117
--------------------------------------------------- -- Raksha Stance -- Naraka --------------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/status"); require("scripts/globals/msg"); --------------------------------------------------- function onMobSkillCheck(t...
gpl-3.0
Mudlet/Mudlet
src/mudlet-lua/tests/TableUtils_spec.lua
2
22615
describe("Tests TableUtils.lua functions", function() describe("Tests the functionality of spairs", function() it("should sort by basic sorted keys by default", function() local tbl = { Tom = 40, Mary = 50, Joe = 24 } local expected = "Joe has 24 thingies\nMary has 50 thingies\nTom has 40 thingies\n"...
gpl-2.0
bnetcc/darkstar
scripts/commands/hideApirl.lua
3
1398
--------------------------------------------------------------------------------------------------- -- func: hide -- desc: Hides the GM from other players. --------------------------------------------------------------------------------------------------- cmdprops = { permission = 1, parameters = "s" }; funct...
gpl-3.0
lcf258/openwrtcn
applications/luci-app-qos_gargoyle/luasrc/controller/qos_gargoyle.lua
9
1033
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: qos.lua 9...
apache-2.0
bnetcc/darkstar
scripts/globals/abilities/pets/zantetsuken.lua
5
1404
--------------------------------------------- -- Zantetsuken --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); --------------------------------...
gpl-3.0
bnetcc/darkstar
scripts/zones/Lower_Delkfutts_Tower/mobs/Akvan.lua
1
3539
----------------------------------- -- Area: Lower Delkfutt's Tower -- VWNM: Akvan ----------------------------------- package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Lower_Delkfutts_Tower/TextIDs"); require("scripts/globals/keyitems"); req...
gpl-3.0
sylvanaar/prat-3-0
modules/Sounds.lua
1
11616
--------------------------------------------------------------------------------- -- -- Prat - A framework for World of Warcraft chat mods -- -- Copyright (C) 2006-2018 Prat Development Team -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Licen...
gpl-3.0
akhti/torch7
Tensor.lua
57
16339
-- additional methods for Storage local Storage = {} -- additional methods for Tensor local Tensor = {} -- types local types = {'Byte', 'Char', 'Short', 'Int', 'Long', 'Float', 'Double'} -- Lua 5.2 compatibility local log10 = math.log10 or function(x) return math.log(x, 10) end -- tostring() functions for Tensor an...
bsd-3-clause
bnetcc/darkstar
scripts/zones/Garlaige_Citadel/Zone.lua
5
3398
----------------------------------- -- -- Zone: Garlaige_Citadel (200) -- ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Garlaige_Citadel/TextIDs"); require("scripts/zones/Garlaige_Citadel/MobIDs"); require("...
gpl-3.0
bnetcc/darkstar
scripts/zones/King_Ranperres_Tomb/Zone.lua
1
1719
----------------------------------- -- -- Zone: King_Ranperres_Tomb (190) -- ----------------------------------- package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil; ----------------------------------- require("scripts/zones/King_Ranperres_Tomb/TextIDs"); require("scripts/zones/King_Ranperres_Tomb/MobIDs"...
gpl-3.0
bnetcc/darkstar
scripts/zones/RuLude_Gardens/npcs/Muhoho.lua
5
1052
----------------------------------- -- Area: Ru'Lud Gardens -- NPC: Muhoho -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/zones/RuLude_Gardens/TextIDs"); require("scripts/globals/quests"); -----...
gpl-3.0
timmerk/cardpeek
dot_cardpeek_dir/scripts/e-passport.lua
16
19873
-- -- This file is part of Cardpeek, the smartcard reader utility. -- -- Copyright 2009-2013 by 'L1L1' -- -- Cardpeek 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 -- (a...
gpl-3.0
bnetcc/darkstar
scripts/globals/items/tidal_talisman.lua
17
2281
----------------------------------------- -- ID: 11290 -- Item: tidal talisman -- ----------------------------------------- function onItemCheck(target) local result = 56; local zone = target:getZoneID(); if (zone == 238 or zone == 239 or zone == 240 or zone == 241 or zone == 242 or -- Windurst zo...
gpl-3.0
bnetcc/darkstar
scripts/globals/spells/bluemagic/whirl_of_rage.lua
1
1380
----------------------------------------- -- ----------------------------------------- require("scripts/globals/bluemagic"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; function onSp...
gpl-3.0
bnetcc/darkstar
scripts/globals/mobskills/cryo_jet.lua
33
1279
--------------------------------------------------- -- Cryo_Jet -- Description: -- Type: Magical -- additional effect : Paralyze --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -------------------...
gpl-3.0
bnetcc/darkstar
scripts/globals/weaponskills/cross_reaper.lua
25
1801
----------------------------------- -- Cross Reaper -- Scythe weapon skill -- Skill level: 225 -- Delivers a two-hit attack. Damage varies with TP. -- Modifiers: STR:30% ; MND:30% -- 100%TP 200%TP 300%TP -- 2.0 2.25 2.5 ----------------------------------- require("scripts/globals/status"); require("s...
gpl-3.0
bnetcc/darkstar
scripts/globals/weaponskills/dulling_arrow.lua
10
1377
----------------------------------- -- Dulling Arrow -- Archery weapon skill -- Skill level: 80 -- Lowers enemy's INT. Chance of params.critical varies with TP. -- Aligned with the Flame Gorget & Light Gorget. -- Aligned with the Flame Belt & Light Belt. -- Element: None -- Modifiers: STR:16% ; AGI:25% -- 100%TP 200...
gpl-3.0
seeker24/happy
bot/utils.lua
473
24167
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
Atebite/NutScript
gamemode/core/libs/sh_language.lua
6
1649
nut.lang = nut.lang or {} nut.lang.stored = nut.lang.stored or {} nut.lang.names = nut.lang.names or {} function nut.lang.loadFromDir(directory) for k, v in ipairs(file.Find(directory.."/sh_*.lua", "LUA")) do local niceName = v:sub(4, -5):lower() nut.util.include(directory.."/"..v, "shared") if (LANGUAGE) the...
mit
bnetcc/darkstar
scripts/globals/abilities/fighters_roll.lua
3
2585
----------------------------------- -- Ability: Fighter's Roll -- Improves "Double Attack" rate for party members within area of effect -- Optimal Job: Warrior -- Lucky Number: 5 -- Unlucky Number: 9 -- Level: 49 -- -- Die Roll |No WAR |With WAR -- -------- -------- ----------- -- 1 |2% |8% -- 2 ...
gpl-3.0
bnetcc/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/Machionage.lua
5
1315
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Machionage -- @zone 80 -- !pos -255 -3 109 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); re...
gpl-3.0
bhrt/nodeMCU
lua_modules/redis/redis.lua
86
2621
------------------------------------------------------------------------------ -- Redis client module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- local redis = dofile("redis.lua").connect(host, port) -- redis:publish("chan1", foo") -- redis:subscribe("...
mit
bnetcc/darkstar
scripts/zones/Northern_San_dOria/npcs/Nouveil.lua
5
1875
----------------------------------- -- Area: Northern San d'Oria -- NPC: Nouveil -- Type: General -- @zone 231 -- !pos 123 0 106 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs")...
gpl-3.0
bnetcc/darkstar
scripts/zones/Crawlers_Nest/mobs/Mellonia.lua
1
4068
----------------------------------- -- Area: EDIT ME -- VWNM: Mellonia ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Crawlers_Nest/TextIDs"); require("scripts/globals/keyitems"); require("scripts/globals/quests...
gpl-3.0
bnetcc/darkstar
scripts/globals/abilities/parsimony.lua
4
1139
----------------------------------- -- Ability: Parsimony -- Reduces the MP cost of your next black magic spell by 50%. -- Obtained: Scholar Level 10 -- Recast Time: Stratagem Charge -- Duration: 1 black magic spell or 60 seconds, whichever occurs first -- -- Level |Charges |Recharge Time per Charge -- ----- ------...
gpl-3.0