content
stringlengths
5
1.05M
s = Instance.new("Sound", game.Workspace) s.Volume = 1 s.SoundId = "http://www.roblox.com/asset/?id=410806544" for _,v in pairs(game.Players:GetChildren()) do v.Chatted:connect(function(msg) if string.match(msg,"here come dat boi") then s:Play() if v.Character.Head:FindFirstChild("Dat Boi") then print("Already Exists Gui") else gui = Instance.new("BillboardGui", v.Character.Head) gui.Name = "Dat Boi" gui.Size = UDim2.new(3,0,3,0) gui.SizeOffset = Vector2.new(0,1) image = Instance.new("ImageLabel", gui) image.Size = UDim2.new(1,0,1,0) image.Image = "http://www.roblox.com/asset/?id=408957433" image.BackgroundTransparency = 1 end end end) end
-- VARIABLES =================================================================== -- Amount used in place of passing arguments to a function timer = 0.0 audio = nil -- FUNCTIONS =================================================================== function Constructor() audio = owner:GetComponent("AudioEmitter") audio:SetAndPlayAudioClip("OnwardsToNext") end function OnUpdate(dt) timer = timer + dt if(ControllerDown("Shoot")) then SceneLoad("Level_Changi") end if (timer > 15.8) then SceneLoad("Level_Changi") end end
local random random = love.math.random Vector.left = Vector(-1, 0) Vector.right = Vector(1, 0) Vector.up = Vector(0, -1) Vector.down = Vector(0, 1) randomChoice = function(t) local keys do local _accum_0 = { } local _len_0 = 1 for key, _ in pairs(t) do _accum_0[_len_0] = key _len_0 = _len_0 + 1 end keys = _accum_0 end local index = keys[random(1, #keys)] return t[index] end copyGrid = function(t) local n = { } for y = 1, #t do n[y] = { } for x = 1, #t[y] do n[y][x] = t[y][x] end end return n end fadeIn = function(fn) if fn == nil then fn = function() end end print("fadeIn") fadeColor = { 0, 0, 0, 1 } return flux.to(fadeColor, 0.5, { [4] = 0 }):oncomplete(fn) end fadeOut = function(fn) if fn == nil then fn = function() end end fadeColor = { 0, 0, 0, 0 } return flux.to(fadeColor, 0.5, { [4] = 1 }):oncomplete(fn) end nextDungeon = function() depth = depth + 1 player.disableMovement = true camera:setFollowLerp(1) return fadeOut(function() colors = randomChoice(colorSchemes) sprites:refreshColors() dungeon:destruct() dungeon = Dungeon(#dungeon.rooms + random(2, 4)) return fadeIn(function() camera:setFollowLerp(0.2) player.disableMovement = false end) end) end
local tbTable = GameMain:GetMod("MagicHelper") local tbMagic = tbTable:GetMagic("ZT_JZM_X") function tbMagic:Init() end function tbMagic:EnableCheck(npc) return true end function tbMagic:TargetCheck(key, t) return true end function tbMagic:MagicEnter(IDs, IsThing) end function tbMagic:MagicStep(dt, duration) self:SetProgress(duration / self.magic.Param1) if duration >= self.magic.Param1 then return 1 end return 0 end function tbMagic:MagicLeave(success) if success then if self.bind then self.bind.LuaHelper:TriggerStory("ZT_xzm") end end end function tbMagic:OnGetSaveData() end function tbMagic:OnLoadData(tbData, IDs, IsThing) self.targetId = IDs[0] end
local Enemy = require('mob.enemy') local Maph = require('maph') local DarterDart = require('mob.darter_dart') local MobDeath = require('mob.particle.mob_death') local Item = require('mob.item') local Pack = require('pack') local atan2, pi, floor, max, cos, sin, random = math.atan2, math.pi, math.floor, math.max, math.cos, math.sin, love.math.random local Darter = {} Darter.__index = Darter setmetatable(Darter, {__index = Enemy}) function Darter.new(assets) local self = setmetatable(Enemy.new(), Darter) self.sprite = assets.sprites.darter self.hurt_knockback = 200 self.hp = 100 self.dart_speed = 150 self.shoot_wait = 3 self.shoot_timer = 0 self.shoot_dist = 128 return self end function Darter:kill(game, attacker) Enemy.kill(self, game, attacker) game.world:addMob(MobDeath.new(game.assets.sprites.darter_death, self.x, self.y, self.angle, self.xspd, self.yspd)) -- drop loot local item = Item.new(Pack.Slot.new(game.assets.items.arrow, random(2))) item.x = self.x item.y = self.y game.world:addMob(item) if random(3) == 1 then local item = Item.new(Pack.Slot.new(game.assets.items.bomb, 1)) item.x = self.x item.y = self.y game.world:addMob(item) end end function Darter:tick(dt, game) Enemy.tick(self, dt, game) if self.target then local target_dist = Maph.distance(self.x, self.y, self.target.x, self.target.y) -- chase target local ACCEL = 600 local MAX_SPD = 50 local FRICTION = 300 local in_x = 0 local in_y = 0 if target_dist > self.shoot_dist / 2 then if self.can_see_target then -- walk toward target in_x, in_y = Maph.normalized(self.target.x - self.x, self.target.y - self.y) else -- follow target path local dir = self.target.path:findDir(self.x, self.y) if dir then in_x = cos(dir) in_y = -sin(dir) end end end if in_x == 0 and in_y == 0 then self.xspd = Maph.moveToward(self.xspd, 0, FRICTION * dt) self.yspd = Maph.moveToward(self.yspd, 0, FRICTION * dt) else self.xspd = Maph.moveToward(self.xspd, MAX_SPD * in_x, ACCEL * dt) self.yspd = Maph.moveToward(self.yspd, MAX_SPD * in_y, ACCEL * dt) end if self.can_see_target then self.angle = Maph.angle(self.target.x - self.x, self.target.y - self.y) -- shoot target if target_dist < self.shoot_dist then self.shoot_timer = max(self.shoot_timer - dt, 0) if self.can_see_target and self.shoot_timer <= 0 then self.shoot_timer = self.shoot_wait local dartdirx, dartdiry = sin(self.angle), -cos(self.angle) local dart = DarterDart.new(game.assets.sprites.darter_dart) dart.x = self.x dart.y = self.y dart.xspd = dartdirx * self.dart_speed dart.yspd = dartdiry * self.dart_speed game.world:addMob(dart) end end else self.angle = Maph.angle(in_x, in_y) end end self.xspd, self.yspd = self:move(dt, game, self.xspd, self.yspd) end return Darter
-- -- Copyright 2010-2020 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bx#license-bsd-2-clause -- local function crtNone() buildoptions { "-nostdlib", "-nodefaultlibs", "-nostartfiles", "-Wa,--noexecstack", "-ffreestanding", } linkoptions { "-nostdlib", "-nodefaultlibs", "-nostartfiles", "-Wa,--noexecstack", "-ffreestanding", } configuration { "linux-*" } buildoptions { "-mpreferred-stack-boundary=4", "-mstackrealign", } linkoptions { "-mpreferred-stack-boundary=4", "-mstackrealign", } configuration {} end function toolchain(_buildDir, _libDir) newoption { trigger = "gcc", value = "GCC", description = "Choose GCC flavor", allowed = { { "linux-gcc", "Linux (GCC compiler)" }, { "linux-clang", "Linux (Clang compiler)" }, { "linux-arm-gcc", "Linux (ARM, GCC compiler)" }, { "linux-arm-clang", "Linux (ARM, Clang compiler)" }, { "cygwin-gcc", "Cygwin (GCC compiler)" }, { "cygwin-clang", "Cygwin (CLANG compiler)" }, }, } newoption { trigger = "noexceptions", description = "Disable exceptions.", } newoption { trigger = "nortti", description = "Disable runtime type information.", } newoption { trigger = "runtimestatic", description = "Enable static runtime.", } newoption { trigger = "nocrt", description = "Disable linking with standard runtime library.", } -- Avoid error when invoking genie --help. if (_ACTION == nil) then return false end location (path.join(_buildDir, "projects", _ACTION)) -------------------------------------------------------------------- if _ACTION == "clean" then os.rmdir(_buildDir) os.mkdir(_buildDir) os.exit(1) end -------------------------------------------------------------------- -------------------- ALL CONFIGURATIONS ---------------------------- local optionNoExceptions = false if _OPTIONS["noexceptions"] then print("noexceptions") optionNoExceptions = true end local optionNoRTTI = false if _OPTIONS["nortti"] then print("nortti") optionNoRTTI = true end local optionRuntimeStatic = false if _OPTIONS["runtimestatic"] then print("runtimestatic") optionRuntimeStatic = true end local optionNoCrt = false if _OPTIONS["nocrt"] then print("nocrt") optionNoCrt = true end -------------------------------------------------------------------- if optionNoCrt then crtNone(); end -------------------------------------------------------------------- flags { "NoPCH", "NativeWChar", "NoEditAndContinue", "NoFramePointer", "ExtraWarnings", "FloatFast", } defines { "__STDC_LIMIT_MACROS", "__STDC_FORMAT_MACROS", "__STDC_CONSTANT_MACROS", } configuration { "Debug" } flags { "Symbols" } defines { "_DEBUG", "DEBUG" } configuration { "Release" } flags { "NoBufferSecurityCheck", "OptimizeSpeed" } defines { "NDEBUG" } -- ACTION if _ACTION == "gmake" or _ACTION == "ninja" then if nil == _OPTIONS["gcc"] then print("GCC flavor must be specified!") os.exit(1) end if "linux-gcc" == _OPTIONS["gcc"] then premake.gcc.cc = "gcc" premake.gcc.cxx = "g++" premake.gcc.ar = "ar" location (path.join(_buildDir, "projects", _ACTION .. "-linux-gcc")) elseif "linux-clang" == _OPTIONS["gcc"] then premake.gcc.cc = "clang" premake.gcc.cxx = "clang++" premake.gcc.ar = "ar" location (path.join(_buildDir, "projects", _ACTION .. "-linux-clang")) elseif "linux-arm-gcc" == _OPTIONS["gcc"] then premake.gcc.cc = "gcc" premake.gcc.cxx = "g++" premake.gcc.ar = "ar" location (path.join(_buildDir, "projects", _ACTION .. "-linux-arm-gcc")) elseif "linux-arm-clang" == _OPTIONS["gcc"] then premake.gcc.cc = "clang" premake.gcc.cxx = "clang++" premake.gcc.ar = "ar" location (path.join(_buildDir, "projects", _ACTION .. "-linux-arm-clang")) elseif "cygwin-gcc" == _OPTIONS["gcc"] then premake.gcc.cc = "gcc" premake.gcc.cxx = "g++" premake.gcc.ar = "ar" location (path.join(_buildDir, "projects", _ACTION .. "-cygwin-gcc")) elseif "cygwin-clang" == _OPTIONS["gcc"] then premake.gcc.cc = "clang" premake.gcc.cxx = "clang++" premake.gcc.ar = "ar" location (path.join(_buildDir, "projects", _ACTION .. "-cygwin-clang")) end elseif _ACTION == "vs2012" or _ACTION == "vs2013" or _ACTION == "vs2015" or _ACTION == "vs2017" or _ACTION == "vs2019" then local action = premake.action.current() action.vstudio.windowsTargetPlatformVersion = windowsPlatform action.vstudio.windowsTargetPlatformMinVersion = windowsPlatform end -------------------------------------------------------------------- if optionNoExceptions then flags { "NoExceptions", } defines { "_HAS_EXCEPTIONS=0", } end if optionRuntimeStatic then flags { "StaticRuntime", } end if optionNoRTTI then flags { "NoRTTI", } end configuration { "x32", "vs*" } defines { "_WIN32" } flags { "EnableSSE2" } configuration { "x64", "vs*" } defines { "_WIN64" } configuration { "x32", "*-gcc* or *-clang*" } buildoptions { "-Wshadow" } configuration { "x64", "*-gcc* or *-clang*" } buildoptions { "-Wshadow" } -------------------------------------------------------------------- -------------------- VS CONFIGURATIONS ----------------------------- configuration { "vs*", "Debug" } flags { "FullSymbols" } configuration { "vs*", "Release" } configuration { "vs*" } defines { "_MBCS", "_SCL_SECURE=0", "_SECURE_SCL=0", "_SCL_SECURE_NO_WARNINGS", "_CRT_SECURE_NO_WARNINGS", "_CRT_SECURE_NO_DEPRECATE", "WIN32_LEAN_AND_MEAN", } buildoptions { "/wd4201", -- warning C4201: nonstandard extension used: nameless struct/union "/wd4324", -- warning C4324: '': structure was padded due to alignment specifier "/Ob2", -- The Inline Function Expansion } linkoptions { "/ignore:4221", -- LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library } -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------- LINUX CONFIGURATIONS --------------------------- configuration { "linux-*", "Debug" } configuration { "linux-*", "Release" } configuration { "linux-*" } links { "rt", "dl" } buildoptions { "-msse2", -- "-Wdouble-promotion", -- "-Wduplicated-branches", -- "-Wduplicated-cond", -- "-Wjump-misses-init", -- "-Wnull-dereference", "-Wunused-value", "-Wundef", "-Wlogical-op", -- "-Wuseless-cast", } linkoptions { "-Wl,--gc-sections", "-Wl,--as-needed", } configuration { "linux-arm-*", "Debug" } configuration { "linux-arm-*", "Release" } configuration { "linux-arm-*" } buildoptions { "-Wunused-value", "-Wundef", } linkoptions { "-Wl,--gc-sections", } -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------- CYGWIN CONFIGURATION -------------------------- configuration { "cygwin-*", "Debug" } configuration { "cygwin-*", "Release" } configuration { "cygwin-*" } buildoptions { "-Wunused-value", "-fdata-sections", "-ffunction-sections", "-Wunused-value", "-Wundef", } linkoptions { "-Wl,--gc-sections", } -------------------------------------------------------------------- configuration { "x32", "vs*" } targetdir (path.join(_buildDir, "win32_" .. _ACTION, "bin")) objdir (path.join(_buildDir, "win32_" .. _ACTION, "obj")) libdirs { path.join(_libDir, "lib/win32_" .. _ACTION) } configuration { "x64", "vs*" } targetdir (path.join(_buildDir, "win64_" .. _ACTION, "bin")) objdir (path.join(_buildDir, "win64_" .. _ACTION, "obj")) libdirs { path.join(_libDir, "lib/win64_" .. _ACTION)} configuration { "linux-gcc*", "x32" } targetdir (path.join(_buildDir, "linux32_gcc/bin")) objdir (path.join(_buildDir, "linux32_gcc/obj")) libdirs { path.join(_libDir, "lib/linux32_gcc") } configuration { "linux-gcc*", "x64" } targetdir (path.join(_buildDir, "linux64_gcc/bin")) objdir (path.join(_buildDir, "linux64_gcc/obj")) libdirs { path.join(_libDir, "lib/linux64_gcc") } configuration { "linux-clang*", "x32" } targetdir (path.join(_buildDir, "linux32_clang/bin")) objdir (path.join(_buildDir, "linux32_clang/obj")) libdirs { path.join(_libDir, "lib/linux32_clang") } configuration { "linux-clang*", "x64" } targetdir (path.join(_buildDir, "linux64_clang/bin")) objdir (path.join(_buildDir, "linux64_clang/obj")) libdirs { path.join(_libDir, "lib/linux64_clang") } configuration { "linux-arm-gcc", "x32" } targetdir (path.join(_buildDir, "linux32_arm_gcc/bin")) objdir (path.join(_buildDir, "linux32_arm_gcc/obj")) libdirs { path.join(_libDir, "lib/linux32_arm_gcc") } configuration { "linux-arm-gcc", "x64" } targetdir (path.join(_buildDir, "linux64_arm_gcc/bin")) objdir (path.join(_buildDir, "linux64_arm_gcc/obj")) libdirs { path.join(_libDir, "lib/linux64_arm_gcc") } configuration { "linux-arm-clang", "x32" } targetdir (path.join(_buildDir, "linux32_arm_clang/bin")) objdir (path.join(_buildDir, "linux32_arm_clang/obj")) libdirs { path.join(_libDir, "lib/linux32_arm_clang") } configuration { "linux-arm-clang", "x64" } targetdir (path.join(_buildDir, "linux64_arm_clang/bin")) objdir (path.join(_buildDir, "linux64_arm_clang/obj")) libdirs { path.join(_libDir, "lib/linux64_arm_clang") } configuration { "cygwin-gcc*", "x32" } targetdir (path.join(_buildDir, "cygwin32_gcc/bin")) objdir (path.join(_buildDir, "cygwin32_gcc/obj")) libdirs { path.join(_libDir, "lib/cygwin32_gcc") } configuration { "cygwin-gcc*", "x64" } targetdir (path.join(_buildDir, "cygwin64_gcc/bin")) objdir (path.join(_buildDir, "cygwin64_gcc/obj")) libdirs { path.join(_libDir, "lib/cygwin64_gcc") } configuration { "cygwin-clang*", "x32" } targetdir (path.join(_buildDir, "cygwin32_clang/bin")) objdir (path.join(_buildDir, "cygwin32_clang/obj")) libdirs { path.join(_libDir, "lib/cygwin32_clang") } configuration { "cygwin-clang*", "x64" } targetdir (path.join(_buildDir, "cygwin64_clang/bin")) objdir (path.join(_buildDir, "cygwin64_clang/obj")) libdirs { path.join(_libDir, "lib/cygwin64_clang") } configuration {} -- reset configuration return true end function postbuild() configuration { "linux-*", "Release" } postbuildcommands { } configuration { "vs*", "Release" } postbuildcommands { } configuration { "cygwin*", "Release" } postbuildcommands { } configuration {} -- reset configuration end
local SetWeatherPreset = {} SetWeatherPreset.__index = SetWeatherPreset local ReplicatedStorage = game:GetService("ReplicatedStorage") local Singletons = ReplicatedStorage:WaitForChild("Singletons") local Weather = require(Singletons:WaitForChild("Weather")) local Services = ReplicatedStorage:WaitForChild("Services") local TagService = require(Services:WaitForChild("TagService")) function SetWeatherPreset.new(element) local self = { _Element = element; _WeatherPreset = nil; } setmetatable(self, SetWeatherPreset) self:_Initialize() return self end function SetWeatherPreset:_Initialize() local preset = self._Element:WaitForChild("Preset") local apply = self._Element:WaitForChild("Apply") apply.MouseButton1Click:Connect(function() Weather:SetPreset(preset.Text) end) end TagService.HookAddedSignal("SetWeatherPreset", function(element) SetWeatherPreset.new(element) end) return SetWeatherPreset
Locales['pl'] = { ['used_bread'] = 'zjadłeś/aś ~y~1x~s~ ~b~chleb~s~', ['used_water'] = 'wypiłeś/aś ~y~1x~s~ ~b~woda~s~', }
-- Copyright (C) by Jianhao Dai (Toruneko) local ERR = require "resty.crypto.error" local ffi = require "ffi" local ffi_gc = ffi.gc local ffi_null = ffi.null local C = ffi.C local type = type local ipairs = ipairs local _M = { _VERSION = '0.0.1' } ffi.cdef [[ typedef struct x509_st X509; typedef struct x509_store_st X509_STORE; X509 *X509_new(void); void X509_free(X509 *x509); X509_STORE *X509_STORE_new(void); void X509_STORE_free(X509_STORE *v); int X509_STORE_add_cert(X509_STORE *ctx, X509 *x); ]] local function X509_free(x509) ffi_gc(x509, C.X509_free) end local function X509_new() local x509 = C.X509_new() X509_free(x509) return x509 end function _M.new() return X509_new() end function _M.free(x509) X509_free(x509) end function _M.STORE_new(cert) if not cert then return nil, "no cert" end local ctx = C.X509_STORE_new() if ctx == ffi_null then return nil, ERR.get_error() end ffi_gc(ctx, C.X509_STORE_free) if type(cert) ~= "table" then cert = { cert } end for _, x509 in ipairs(cert) do if C.X509_STORE_add_cert(ctx, x509) == 0 then return nil, ERR.get_error() end end return ctx end return _M
SILE.registerCommand("unichar", function(_, content) local cp = content[1] if type(cp) ~= "string" then SU.error("Bad argument to \\unicode") end local hlist = SILE.typesetter.state.nodes local char = SU.utf8charfromcodepoint(cp) if #hlist > 1 and hlist[#hlist].is_unshaped then hlist[#hlist].text = hlist[#hlist].text .. char else SILE.typesetter:typeset(char) end end) return { documentation = [[\begin{document} \script[src=packages/unichar] SILE is Unicode compatible, and expects its input files to be in the UTF-8 encoding. (The actual range of Unicode characters supported will depend on the supported ranges of the fonts that SILE is using to typeset.) Some Unicode characters are hard to locate on a standard keyboard, and so are difficult to enter into SILE documents. The \code{unichar} package helps with this problem by providing a command to enter Unicode codepoints. After loading \code{unichar}, the \code{\\unichar} command becomes available: \begin{verbatim} \line \\unichar\{U+263A\} \% produces \font[family=Symbola]{\unichar{U+263A}} \line \end{verbatim} If the argument to \code{\\unichar} begins \code{U+}, \code{u+}, \code{0x} or \code{0X}, then it is assumed to be a hexadecimal value. Otherwise it is assumed to be a decimal codepoint. \end{document}]] }
local Multiline = {} function Multiline.wrap (font, text, limit) local lines = {{ width = 0 }} local advance = 0 local lastSpaceAdvance = 0 local function append (word, space) local wordAdvance = font:getAdvance(word) local spaceAdvance = font:getAdvance(space) local words = lines[#lines] if advance + wordAdvance > limit then words.width = (words.width or 0) - lastSpaceAdvance advance = wordAdvance + spaceAdvance lines[#lines + 1] = { width = advance, word, space } else advance = advance + wordAdvance + spaceAdvance words.width = advance words[#words + 1] = word words[#words + 1] = space end lastSpaceAdvance = spaceAdvance end local function appendFrag (frag, isFirst) if isFirst then append(frag, '') else local wordAdvance = font:getAdvance(frag) lines[#lines + 1] = { width = wordAdvance, frag } advance = wordAdvance end end local leadSpace = text:match '^ +' if leadSpace then append('', leadSpace) end for word, space in text:gmatch '([^ ]+)( *)' do if word:match '\n' then local isFirst = true for frag in (word .. '\n'):gmatch '([^\n]*)\n' do appendFrag(frag, isFirst) isFirst = false end append('', space) else append(word, space) end end return lines end return Multiline
navpoints_raw = { [1] = {["comment"] = "UNZ*C*274.00/100.00 13-37-25.5100N 143-01-52.1100E", ["callsignStr"] = "ACRON", ["latitude"] = 13.6237527777778, ["longitude"] = 143.031141666667 }, [2] = {["comment"] = "UAM*T* /0.50 PMY*LG*063.87 13-35-32.0100N 144-57-18.2600E", ["callsignStr"] = "ACUYU", ["latitude"] = 13.592225, ["longitude"] = 144.955072222222 }, [3] = {["comment"] = "AJA*R*060.51 UNZ*C* /15.57 13-34-20.9000N 144-58-15.0400E", ["callsignStr"] = "ADAYI", ["latitude"] = 13.5724722222222, ["longitude"] = 144.970844444444 }, [4] = {["comment"] = "UNZ*C*244.75/1.99 GUM*LD*246.95/7.28 13-26-29.0100N 144-42-07.2100E", ["callsignStr"] = "ADEDE", ["latitude"] = 13.4413916666667, ["longitude"] = 144.702002777778 }, [5] = {["comment"] = "UAM*T*240.00/17.00 13-27-26.9600N 144-41-23.4900E", ["callsignStr"] = "ADTIN", ["latitude"] = 13.4574888888889, ["longitude"] = 144.689858333333 }, [6] = {["comment"] = "13-29-04.8000N 144-47-47.6800E", ["callsignStr"] = "ALEYE", ["latitude"] = 13.4846666666667, ["longitude"] = 144.796577777778 }, [7] = {["comment"] = "12-46-01.6600N 143-33-38.5300E", ["callsignStr"] = "ALMEH", ["latitude"] = 12.7671277777778, ["longitude"] = 143.560702777778 }, [8] = {["comment"] = "UNZ*C*035.00/148.40 15-26-00.5100N 146-16-26.4700E", ["callsignStr"] = "ANEVY", ["latitude"] = 15.433475, ["longitude"] = 146.274019444444 }, [9] = {["comment"] = "UNZ*C*048.46 UAM*T*242.61/6.71 UAM*LG*243.87 13-32-35.0000N 144-50-34.5100E", ["callsignStr"] = "ANIKA", ["latitude"] = 13.5430555555556, ["longitude"] = 144.842919444444 }, [10] = {["comment"] = "UAM*T*320.00/17.00 13-48-55.4400N 144-46-02.2900E", ["callsignStr"] = "ARKEE", ["latitude"] = 13.8154, ["longitude"] = 144.767302777778 }, [11] = {["comment"] = "UNZ*C*169.00/40.00 12-47-35.4000N 144-50-24.1400E", ["callsignStr"] = "ASADE", ["latitude"] = 12.7931666666667, ["longitude"] = 144.840038888889 }, [12] = {["comment"] = "UNZ*C*068.00/35.00 13-39-15.5100N 145-17-46.6300E", ["callsignStr"] = "BAGBE", ["latitude"] = 13.6543083333333, ["longitude"] = 145.296286111111 }, [13] = {["comment"] = "UNZ*C*052.55/8.00 13-31-55.9300N 144-50-41.2900E", ["callsignStr"] = "BANNI", ["latitude"] = 13.5322027777778, ["longitude"] = 144.844802777778 }, [14] = {["comment"] = "UAM*T*076.00/0.50 13-35-34.6500N 144-57-17.8200E", ["callsignStr"] = "BAVAC", ["latitude"] = 13.5929583333333, ["longitude"] = 144.95495 }, [15] = {["comment"] = "13-27-45.7000N 144-44-54.7500E", ["callsignStr"] = "BOJEL", ["latitude"] = 13.4626944444444, ["longitude"] = 144.748541666667 }, [16] = {["comment"] = "13-27-19.8500N 144-43-58.2700E", ["callsignStr"] = "BOLFY", ["latitude"] = 13.4555138888889, ["longitude"] = 144.732852777778 }, [17] = {["comment"] = "13-36-55.8800N 144-35-02.4400E", ["callsignStr"] = "BRTNE", ["latitude"] = 13.6155222222222, ["longitude"] = 144.584011111111 }, [18] = {["comment"] = "13-14-24.0500N 144-39-56.7300E", ["callsignStr"] = "BURLE", ["latitude"] = 13.2400138888889, ["longitude"] = 144.665758333333 }, [19] = {["comment"] = "13-43-26.8300N 144-55-15.3100E", ["callsignStr"] = "CADUK", ["latitude"] = 13.7241194444444, ["longitude"] = 144.920919444444 }, [20] = {["comment"] = "13-28-54.3300N 144-47-41.4900E", ["callsignStr"] = "CATEN", ["latitude"] = 13.4817583333333, ["longitude"] = 144.794858333333 }, [21] = {["comment"] = "UNZ*C*054.00/12.90 13-34-30.8500N 144-54-58.7700E", ["callsignStr"] = "CCOOK", ["latitude"] = 13.5752361111111, ["longitude"] = 144.916325 }, [22] = {["comment"] = "AWD*LD*242.96/7.12 13-26-22.5800N 144-42-09.7800E", ["callsignStr"] = "CEGMU", ["latitude"] = 13.4396055555556, ["longitude"] = 144.702716666667 }, [23] = {["comment"] = "UNZ*C*332.00/9.00 13-35-23.8400N 144-39-56.8400E", ["callsignStr"] = "CETAS", ["latitude"] = 13.5899555555556, ["longitude"] = 144.665788888889 }, [24] = {["comment"] = "13-28-51.9700N 144-54-36.2400E", ["callsignStr"] = "CFCRN", ["latitude"] = 13.4811027777778, ["longitude"] = 144.910066666667 }, [25] = {["comment"] = "13-25-01.9200N 144-46-12.9600E", ["callsignStr"] = "CFCTG", ["latitude"] = 13.4172, ["longitude"] = 144.770266666667 }, [26] = {["comment"] = "13-37-15.4700N 144-53-03.1600E", ["callsignStr"] = "CFCWC", ["latitude"] = 13.6209638888889, ["longitude"] = 144.884211111111 }, [27] = {["comment"] = "13-26-28.8900N 144-55-44.4600E", ["callsignStr"] = "CFCWN", ["latitude"] = 13.4413583333333, ["longitude"] = 144.929016666667 }, [28] = {["comment"] = "13-28-38.2300N 144-54-22.9300E", ["callsignStr"] = "CFDBR", ["latitude"] = 13.4772861111111, ["longitude"] = 144.906369444444 }, [29] = {["comment"] = "13-24-50.4200N 144-46-04.3800E", ["callsignStr"] = "CFDJT", ["latitude"] = 13.4140055555556, ["longitude"] = 144.767883333333 }, [30] = {["comment"] = "13-25-41.8400N 144-55-47.0200E", ["callsignStr"] = "CFDNN", ["latitude"] = 13.4282888888889, ["longitude"] = 144.929727777778 }, [31] = {["comment"] = "13-37-15.9700N 144-52-43.1800E", ["callsignStr"] = "CFGFN", ["latitude"] = 13.6211027777778, ["longitude"] = 144.878661111111 }, [32] = {["comment"] = "13-31-35.8000N 144-53-18.1100E", ["callsignStr"] = "CHOLO", ["latitude"] = 13.5266111111111, ["longitude"] = 144.888363888889 }, [33] = {["comment"] = "13-34-20.7500N 144-59-35.9100E", ["callsignStr"] = "CIBOL", ["latitude"] = 13.5724305555556, ["longitude"] = 144.993308333333 }, [34] = {["comment"] = "13-32-17.2600N 144-55-05.6900E", ["callsignStr"] = "CIMON", ["latitude"] = 13.5381277777778, ["longitude"] = 144.918247222222 }, [35] = {["comment"] = "UAM*T*240.00/6.60 13-32-21.5900N 144-50-48.7600E", ["callsignStr"] = "COLMA", ["latitude"] = 13.5393305555556, ["longitude"] = 144.846877777778 }, [36] = {["comment"] = "14-39-33.0300N 144-08-02.8100E", ["callsignStr"] = "CORUL", ["latitude"] = 14.659175, ["longitude"] = 144.134113888889 }, [37] = {["comment"] = "UNZ*C*054.25/19.70 13-38-15.3800N 145-00-49.2700E", ["callsignStr"] = "CREET", ["latitude"] = 13.6376055555556, ["longitude"] = 145.013686111111 }, [38] = {["comment"] = "UNZ*C*241.83/1.50 13-26-36.5100N 144-42-37.0700E", ["callsignStr"] = "CUDID", ["latitude"] = 13.443475, ["longitude"] = 144.710297222222 }, [39] = {["comment"] = "13-23-23.6700N 144-35-39.4300E", ["callsignStr"] = "DALPE", ["latitude"] = 13.3899083333333, ["longitude"] = 144.594286111111 }, [40] = {["comment"] = "13-34-45.2000N 145-02-55.4800E", ["callsignStr"] = "DELAC", ["latitude"] = 13.5792222222222, ["longitude"] = 145.048744444444 }, [41] = {["comment"] = "UNZ*C*055.50/30.00 13-43-26.4000N 145-09-59.5800E", ["callsignStr"] = "DWAFF", ["latitude"] = 13.724, ["longitude"] = 145.16655 }, [42] = {["comment"] = "13-51-32.2200N 145-08-22.3200E", ["callsignStr"] = "EDIAZ", ["latitude"] = 13.85895, ["longitude"] = 145.139533333333 }, [43] = {["comment"] = "UNZ*C*054.25/14.80 13-35-31.5700N 144-56-38.0800E", ["callsignStr"] = "ENWHY", ["latitude"] = 13.5921027777778, ["longitude"] = 144.943911111111 }, [44] = {["comment"] = "UNZ*C*020.00/46.00 GRO*R*267.09 14-10-05.9500N 145-01-44.1000E", ["callsignStr"] = "ERTTS", ["latitude"] = 14.1683194444444, ["longitude"] = 145.028916666667 }, [45] = {["comment"] = "13-25-54.3900N 144-55-41.0100E", ["callsignStr"] = "ETOME", ["latitude"] = 13.431775, ["longitude"] = 144.928058333333 }, [46] = {["comment"] = "UAM*T*051.00/5.00 13-38-29.6900N 145-00-53.7500E", ["callsignStr"] = "EVEBE", ["latitude"] = 13.6415805555556, ["longitude"] = 145.014930555556 }, [47] = {["comment"] = "UAM*T*063.41/17.00 13-42-34.1800N 145-12-40.4900E", ["callsignStr"] = "FABED", ["latitude"] = 13.7094944444444, ["longitude"] = 145.211247222222 }, [48] = {["comment"] = "UAM*T*051.00/45.00 14-02-37.6100N 145-33-46.0000E", ["callsignStr"] = "FABHA", ["latitude"] = 14.0437805555556, ["longitude"] = 145.562777777778 }, [49] = {["comment"] = "13-25-26.0200N 145-04-04.8400E", ["callsignStr"] = "FAPAM", ["latitude"] = 13.4238944444444, ["longitude"] = 145.068011111111 }, [50] = {["comment"] = "UAM*T*240.00/2.50 13-34-17.6500N 144-54-31.7100E", ["callsignStr"] = "FAXEL", ["latitude"] = 13.5715694444444, ["longitude"] = 144.908808333333 }, [51] = {["comment"] = "UNZ*C*052.54/13.00 13-34-50.5900N 144-54-52.3000E", ["callsignStr"] = "FAYZR", ["latitude"] = 13.5807194444444, ["longitude"] = 144.914527777778 }, [52] = {["comment"] = "13-22-06.6200N 144-47-22.5300E", ["callsignStr"] = "FEGUT", ["latitude"] = 13.3685055555556, ["longitude"] = 144.789591666667 }, [53] = {["comment"] = "UNZ*C*062.23/15.58 13-34-04.1800N 144-58-24.1900E", ["callsignStr"] = "FIBEE", ["latitude"] = 13.5678277777778, ["longitude"] = 144.973386111111 }, [54] = {["comment"] = "UNZ*C*169.00/9.00 13-18-20.7000N 144-45-26.5300E", ["callsignStr"] = "FIGOR", ["latitude"] = 13.30575, ["longitude"] = 144.757369444444 }, [55] = {["comment"] = "13-26-22.5200N 144-42-09.7800E", ["callsignStr"] = "FISON", ["latitude"] = 13.4395888888889, ["longitude"] = 144.702716666667 }, [56] = {["comment"] = "UNZ*C*241.83/7.00 13-24-10.3400N 144-37-33.1300E", ["callsignStr"] = "FLAKE", ["latitude"] = 13.4028722222222, ["longitude"] = 144.625869444444 }, [57] = {["comment"] = "13-33-10.9400N 145-16-40.7800E", ["callsignStr"] = "FOKAI", ["latitude"] = 13.5530388888889, ["longitude"] = 145.277994444444 }, [58] = {["comment"] = "UNZ*C*239.00/19.00 13-18-00.7100N 144-26-57.3700E", ["callsignStr"] = "FOLAP", ["latitude"] = 13.3001972222222, ["longitude"] = 144.449269444444 }, [59] = {["comment"] = "UAM*T*246.00/7.00 13-32-50.2800N 144-50-07.9200E", ["callsignStr"] = "FOMOD", ["latitude"] = 13.5473, ["longitude"] = 144.835533333333 }, [60] = {["comment"] = "UAM*T*051.00/17.00 13-45-44.5300N 145-10-44.7100E", ["callsignStr"] = "FOVEM", ["latitude"] = 13.7623694444444, ["longitude"] = 145.179086111111 }, [61] = {["comment"] = "13-39-31.6200N 144-57-52.4300E", ["callsignStr"] = "GAVDE", ["latitude"] = 13.6587833333333, ["longitude"] = 144.964563888889 }, [62] = {["comment"] = "UNZ*C*127.00/35.00 13-05-07.4800N 145-11-52.1100E", ["callsignStr"] = "GUMGE", ["latitude"] = 13.0854111111111, ["longitude"] = 145.197808333333 }, [63] = {["comment"] = "UNZ*C*052.55/27.00 13-42-59.0800N 145-06-35.6300E", ["callsignStr"] = "HAAMR", ["latitude"] = 13.7164111111111, ["longitude"] = 145.109897222222 }, [64] = {["comment"] = "13-43-38.3500N 144-55-24.1500E", ["callsignStr"] = "HAGIX", ["latitude"] = 13.7273194444444, ["longitude"] = 144.923375 }, [65] = {["comment"] = "UNZ*C*343.00/7.00 13-34-03.1600N 144-42-09.3500E", ["callsignStr"] = "HAMAL", ["latitude"] = 13.5675444444444, ["longitude"] = 144.702597222222 }, [66] = {["comment"] = "GUM*LD*242.95/7.34 13-26-27.4200N 144-42-03.7400E", ["callsignStr"] = "HARLO", ["latitude"] = 13.44095, ["longitude"] = 144.701038888889 }, [67] = {["comment"] = "13-26-08.1400N 144-55-54.3500E", ["callsignStr"] = "HASAK", ["latitude"] = 13.4355944444444, ["longitude"] = 144.931763888889 }, [68] = {["comment"] = "UAM*T*062.09/4.61 UNZ*C*056.47/19.48 YIG*LG*063.89 13-37-29.8200N 145-01-03.2800E", ["callsignStr"] = "HASRA", ["latitude"] = 13.62495, ["longitude"] = 145.017577777778 }, [69] = {["comment"] = "UNZ*C*259.00/19.00 13-24-16.5500N 144-24-44.6800E", ["callsignStr"] = "HESNA", ["latitude"] = 13.4045972222222, ["longitude"] = 144.412411111111 }, [70] = {["comment"] = "14-47-29.6000N 144-48-37.2200E", ["callsignStr"] = "HEXOR", ["latitude"] = 14.7915555555556, ["longitude"] = 144.810338888889 }, [71] = {["comment"] = "UAM*T*243.37/17.00 13-28-20.9300N 144-40-56.1400E", ["callsignStr"] = "HILRI", ["latitude"] = 13.4724805555556, ["longitude"] = 144.682261111111 }, [72] = {["comment"] = "UNZ*C*055.50/19.70 13-37-53.6700N 145-01-03.7100E", ["callsignStr"] = "HIPRI", ["latitude"] = 13.631575, ["longitude"] = 145.017697222222 }, [73] = {["comment"] = "SN*R*065.76 GSN*LD/6.90 15-10-05.2100N 145-51-11.4000E", ["callsignStr"] = "HOGOS", ["latitude"] = 15.1681138888889, ["longitude"] = 145.853166666667 }, [74] = {["comment"] = "UNZ*C*068.00/100.00 14-01-18.7000N 146-20-39.6000E", ["callsignStr"] = "HOPPY", ["latitude"] = 14.0218611111111, ["longitude"] = 146.344333333333 }, [75] = {["comment"] = "13-27-08.4500N 144-43-50.1100E", ["callsignStr"] = "HUKES", ["latitude"] = 13.4523472222222, ["longitude"] = 144.730586111111 }, [76] = {["comment"] = "UAM*T*246.00/17.00 13-29-04.0900N 144-40-37.0700E", ["callsignStr"] = "HURUG", ["latitude"] = 13.4844694444444, ["longitude"] = 144.676963888889 }, [77] = {["comment"] = "13-22-18.1300N 144-47-31.1500E", ["callsignStr"] = "ICAKE", ["latitude"] = 13.3717027777778, ["longitude"] = 144.791986111111 }, [78] = {["comment"] = "GUM*LD*SW CRS/12.12 13-24-21.2700N 144-37-28.5600E", ["callsignStr"] = "IKOVY", ["latitude"] = 13.4059083333333, ["longitude"] = 144.6246 }, [79] = {["comment"] = "14-28-19.4200N 143-50-30.6100E", ["callsignStr"] = "IMEDE", ["latitude"] = 14.4720611111111, ["longitude"] = 143.841836111111 }, [80] = {["comment"] = "UAM*T* /0.50 YIG*LG*063.89 13-35-48.1800N 144-57-10.9200E", ["callsignStr"] = "INIME", ["latitude"] = 13.5967166666667, ["longitude"] = 144.953033333333 }, [81] = {["comment"] = "13-41-47.7400N 145-10-52.4700E", ["callsignStr"] = "ISLAA", ["latitude"] = 13.6965944444444, ["longitude"] = 145.181241666667 }, [82] = {["comment"] = "UAM*T*246.00/2.50 13-34-31.9400N 144-54-24.9000E", ["callsignStr"] = "ITUME", ["latitude"] = 13.5755388888889, ["longitude"] = 144.906916666667 }, [83] = {["comment"] = "13-28-24.4700N 145-02-59.8000E", ["callsignStr"] = "JADKA", ["latitude"] = 13.4734638888889, ["longitude"] = 145.049944444444 }, [84] = {["comment"] = "UNZ*C*054.00/8.00 13-31-45.8800N 144-50-48.4500E", ["callsignStr"] = "JALOB", ["latitude"] = 13.5294111111111, ["longitude"] = 144.846791666667 }, [85] = {["comment"] = "14-45-54.2200N 144-27-04.3000E", ["callsignStr"] = "JARIN", ["latitude"] = 14.7650611111111, ["longitude"] = 144.451194444444 }, [86] = {["comment"] = "13-33-27.3200N 144-56-43.6600E", ["callsignStr"] = "JEVER", ["latitude"] = 13.5575888888889, ["longitude"] = 144.945461111111 }, [87] = {["comment"] = "UAM*T*051.00/0.50 13-35-46.5200N 144-57-12.2900E", ["callsignStr"] = "JIPRO", ["latitude"] = 13.5962555555556, ["longitude"] = 144.953413888889 }, [88] = {["comment"] = "UNZ*C*290.30/9.00 13-30-42.0600N 144-35-27.0800E", ["callsignStr"] = "JITNO", ["latitude"] = 13.5116833333333, ["longitude"] = 144.590855555556 }, [89] = {["comment"] = "13-31-26.0200N 144-53-13.2400E", ["callsignStr"] = "JOMAX", ["latitude"] = 13.5238944444444, ["longitude"] = 144.887011111111 }, [90] = {["comment"] = "UNZ*C*045.91/8.12 UAM*T*245.09/6.99 AND*LS*243.89 13-32-44.3600N 144-50-11.2100E", ["callsignStr"] = "JORUN", ["latitude"] = 13.5456555555556, ["longitude"] = 144.836447222222 }, [91] = {["comment"] = "UNZ*C*127.00/180.00 11-32-50.6400N 147-06-28.5100E", ["callsignStr"] = "JUNIE", ["latitude"] = 11.5474, ["longitude"] = 147.107919444444 }, [92] = {["comment"] = "UNZ*C*062.23/9.57 13-31-27.0100N 144-52-50.7700E", ["callsignStr"] = "JUVNI", ["latitude"] = 13.5241694444444, ["longitude"] = 144.880769444444 }, [93] = {["comment"] = "13-37-29.6200N 145-01-02.7200E", ["callsignStr"] = "JWILL", ["latitude"] = 13.6248944444444, ["longitude"] = 145.017422222222 }, [94] = {["comment"] = "UNZ*C*169.00/100.00 11-48-03.3900N 144-59-56.7800E", ["callsignStr"] = "KAPOK", ["latitude"] = 11.8009416666667, ["longitude"] = 144.999105555556 }, [95] = {["comment"] = "UAM*T* /2.50 AND*LS*243.89 13-34-34.9800N 144-54-23.6800E", ["callsignStr"] = "KATNE", ["latitude"] = 13.5763833333333, ["longitude"] = 144.906577777778 }, [96] = {["comment"] = "UNZ*C*035.00/87.00 14-36-57.3700N 145-37-59.6000E", ["callsignStr"] = "KATQO", ["latitude"] = 14.6159361111111, ["longitude"] = 145.633222222222 }, [97] = {["comment"] = "GSN*LD*245.80*SW CRS/7.34 15-04-40.8800N 145-37-33.7800E", ["callsignStr"] = "KORDY", ["latitude"] = 15.0780222222222, ["longitude"] = 145.62605 }, [98] = {["comment"] = "13-30-50.0300N 144-59-26.1000E", ["callsignStr"] = "LAMYN", ["latitude"] = 13.5138972222222, ["longitude"] = 144.990583333333 }, [99] = {["comment"] = "UAM*T*244.38/17.00 13-28-37.4100N 144-40-48.5800E", ["callsignStr"] = "LOGLE", ["latitude"] = 13.4770583333333, ["longitude"] = 144.680161111111 }, [100] = {["comment"] = "13-41-30.1400N 145-10-56.8100E", ["callsignStr"] = "LUAAP", ["latitude"] = 13.6917055555556, ["longitude"] = 145.182447222222 }, [101] = {["comment"] = "UNZ*C*020.00/87.00 14-48-14.9400N 145-17-38.3000E", ["callsignStr"] = "LULJY", ["latitude"] = 14.80415, ["longitude"] = 145.293972222222 }, [102] = {["comment"] = "13-31-06.6200N 144-59-02.5300E", ["callsignStr"] = "MADRY", ["latitude"] = 13.5185055555556, ["longitude"] = 144.984036111111 }, [103] = {["comment"] = "UNZ*C*054.25/30.00 13-43-59.4900N 145-09-37.5300E", ["callsignStr"] = "MDBUG", ["latitude"] = 13.7331916666667, ["longitude"] = 145.160425 }, [104] = {["comment"] = "AWD*LD*242.96/14.12 13-23-23.7900N 144-35-39.3700E", ["callsignStr"] = "MEMKE", ["latitude"] = 13.3899416666667, ["longitude"] = 144.594269444444 }, [105] = {["comment"] = "13-33-27.1300N 144-56-45.7400E", ["callsignStr"] = "MIWZO", ["latitude"] = 13.5575361111111, ["longitude"] = 144.946038888889 }, [106] = {["comment"] = "GUM*LD*242.95/5.78 13-27-07.3400N 144-43-30.9400E", ["callsignStr"] = "MOBKE", ["latitude"] = 13.4520388888889, ["longitude"] = 144.725261111111 }, [107] = {["comment"] = "UNZ*C* /9.57 AJA*R*060.51 13-31-34.2300N 144-52-47.0700E", ["callsignStr"] = "MOGOE", ["latitude"] = 13.526175, ["longitude"] = 144.879741666667 }, [108] = {["comment"] = "UNZ*C*061.83/1.30 13-27-50.9300N 144-45-11.8000E", ["callsignStr"] = "MOMRE", ["latitude"] = 13.4641472222222, ["longitude"] = 144.753277777778 }, [109] = {["comment"] = "UNZ*C*063.00/40.00 13-44-07.2100N 145-21-06.0000E", ["callsignStr"] = "NARKS", ["latitude"] = 13.7353361111111, ["longitude"] = 145.351666666667 }, [110] = {["comment"] = "13-39-42.8700N 145-17-28.1400E", ["callsignStr"] = "NERIC", ["latitude"] = 13.6619083333333, ["longitude"] = 145.29115 }, [111] = {["comment"] = "UNZ*C*062.23/5.11 AJA*R*060.51 13-29-30.3300N 144-48-43.4600E", ["callsignStr"] = "NOVKE", ["latitude"] = 13.4917583333333, ["longitude"] = 144.812072222222 }, [112] = {["comment"] = "UNZ*C*243.34/9.00 GUM*LD*242.95/14.29 13-23-29.9600N 144-35-36.4300E", ["callsignStr"] = "OBALE", ["latitude"] = 13.3916555555556, ["longitude"] = 144.593452777778 }, [113] = {["comment"] = "13-43-53.1200N 144-55-43.7500E", ["callsignStr"] = "OBSAE", ["latitude"] = 13.7314222222222, ["longitude"] = 144.928819444444 }, [114] = {["comment"] = "UAM*T*076.00/5.00 13-36-30.9900N 145-01-49.0100E", ["callsignStr"] = "OKIBE", ["latitude"] = 13.6086083333333, ["longitude"] = 145.030280555556 }, [115] = {["comment"] = "SN*R*065.76 GSN*LD*W CRS/12.80 15-12-19.4700N 145-56-50.3600E", ["callsignStr"] = "OPIHY", ["latitude"] = 15.2054083333333, ["longitude"] = 145.947322222222 }, [116] = {["comment"] = "13-54-33.2900N 146-01-17.4300E", ["callsignStr"] = "OPING", ["latitude"] = 13.9092472222222, ["longitude"] = 146.021508333333 }, [117] = {["comment"] = "UNZ*C*127.00/100.00 12-23-51.4800N 146-03-24.5600E", ["callsignStr"] = "OPLAR", ["latitude"] = 12.3976333333333, ["longitude"] = 146.056822222222 }, [118] = {["comment"] = "13-41-29.9600N 145-10-55.3600E", ["callsignStr"] = "OSKKR", ["latitude"] = 13.6916555555556, ["longitude"] = 145.182044444444 }, [119] = {["comment"] = "13-37-24.1400N 145-01-34.2600E", ["callsignStr"] = "OWEND", ["latitude"] = 13.6233722222222, ["longitude"] = 145.026183333333 }, [120] = {["comment"] = "UAM*T*064.38/17.00 13-42-18.3400N 145-12-47.7200E", ["callsignStr"] = "PANNS", ["latitude"] = 13.7050944444444, ["longitude"] = 145.213255555556 }, [121] = {["comment"] = "13-32-04.0000N 144-54-19.8600E", ["callsignStr"] = "PAVYI", ["latitude"] = 13.5344444444444, ["longitude"] = 144.905516666667 }, [122] = {["comment"] = "UAM*T*051.00/11.90 13-42-39.7700N 145-06-33.4800E", ["callsignStr"] = "PEGIY", ["latitude"] = 13.7110472222222, ["longitude"] = 145.1093 }, [123] = {["comment"] = "13-32-30.9600N 144-55-18.9000E", ["callsignStr"] = "PIKAY", ["latitude"] = 13.5419333333333, ["longitude"] = 144.921916666667 }, [124] = {["comment"] = "SN*R*065.76 GSN*LD*W CRS/1.90 15-08-11.3200N 145-46-24.2400E", ["callsignStr"] = "PIRTY", ["latitude"] = 15.1364777777778, ["longitude"] = 145.7734 }, [125] = {["comment"] = "GSN*LD*245.80*SW CRS/17.39 15-00-51.5100N 145-27-56.7000E", ["callsignStr"] = "PONOI", ["latitude"] = 15.0143083333333, ["longitude"] = 145.46575 }, [126] = {["comment"] = "UNZ*C*274.00/40.00 13-31-25.0500N 144-03-09.8300E", ["callsignStr"] = "PULEE", ["latitude"] = 13.523625, ["longitude"] = 144.052730555556 }, [127] = {["comment"] = "13-28-03.0800N 144-33-26.0500E", ["callsignStr"] = "RASPE", ["latitude"] = 13.4675222222222, ["longitude"] = 144.557236111111 }, [128] = {["comment"] = "13-39-37.1200N 144-57-47.7800E", ["callsignStr"] = "REMDE", ["latitude"] = 13.6603111111111, ["longitude"] = 144.963272222222 }, [129] = {["comment"] = "13-41-35.8100N 145-10-25.1900E", ["callsignStr"] = "ROUDY", ["latitude"] = 13.6932805555556, ["longitude"] = 145.173663888889 }, [130] = {["comment"] = "GRO*R*101.02 UNZ*C*035.00/53.00 14-09-44.9600N 145-16-49.6800E", ["callsignStr"] = "SANDO", ["latitude"] = 14.1624888888889, ["longitude"] = 145.280466666667 }, [131] = {["comment"] = "SN*R*065.76 GSN*LD*W CRS/0.46 15-07-38.3900N 145-45-01.2400E", ["callsignStr"] = "SEQKO", ["latitude"] = 15.1273305555556, ["longitude"] = 145.750344444444 }, [132] = {["comment"] = "SN*R*245.79 GSN*LD/4.98 15-05-34.4500N 145-39-48.9700E", ["callsignStr"] = "SHAKA", ["latitude"] = 15.0929027777778, ["longitude"] = 145.663602777778 }, [133] = {["comment"] = "15-08-33.7000N 145-47-16.4700E", ["callsignStr"] = "SHODA", ["latitude"] = 15.1426944444444, ["longitude"] = 145.787908333333 }, [134] = {["comment"] = "13-29-47.6800N 145-01-46.0900E", ["callsignStr"] = "SIDPE", ["latitude"] = 13.4965777777778, ["longitude"] = 145.029469444444 }, [135] = {["comment"] = "13-31-22.0600N 144-53-04.7900E", ["callsignStr"] = "SLEPT", ["latitude"] = 13.5227944444444, ["longitude"] = 144.884663888889 }, [136] = {["comment"] = "UNZ*C*035.00/180.00 15-51-12.3800N 146-36-20.8200E", ["callsignStr"] = "SNAPP", ["latitude"] = 15.8534388888889, ["longitude"] = 146.605783333333 }, [137] = {["comment"] = "13-18-53.1200N 144-43-19.3200E", ["callsignStr"] = "SNOYL", ["latitude"] = 13.3147555555556, ["longitude"] = 144.722033333333 }, [138] = {["comment"] = "UNZ*C*068.00/180.00 14-28-04.6400N 147-38-19.7100E", ["callsignStr"] = "STINE", ["latitude"] = 14.4679555555556, ["longitude"] = 147.638808333333 }, [139] = {["comment"] = "UAM*T* /2.50 UAM*LG*243.87 13-34-18.7600N 144-54-31.1200E", ["callsignStr"] = "SULUE", ["latitude"] = 13.5718777777778, ["longitude"] = 144.908644444444 }, [140] = {["comment"] = "UNZ*C*055.50/26.00 13-41-17.2300N 145-06-31.4300E", ["callsignStr"] = "TIMAE", ["latitude"] = 13.6881194444444, ["longitude"] = 145.108730555556 }, [141] = {["comment"] = "UNZ*C*234.00/2.00 13-26-09.0000N 144-42-17.8200E", ["callsignStr"] = "TOCOG", ["latitude"] = 13.4358333333333, ["longitude"] = 144.70495 }, [142] = {["comment"] = "13-27-34.2300N 144-44-46.2200E", ["callsignStr"] = "TYPOS", ["latitude"] = 13.4595083333333, ["longitude"] = 144.746172222222 }, [143] = {["comment"] = "UNZ*C*232.58/2.00 13-26-06.5400N 144-42-19.5600E", ["callsignStr"] = "VEAGA", ["latitude"] = 13.43515, ["longitude"] = 144.705433333333 }, [144] = {["comment"] = "13-34-32.2300N 144-59-44.6600E", ["callsignStr"] = "WABOX", ["latitude"] = 13.5756194444444, ["longitude"] = 144.995738888889 }, [145] = {["comment"] = "UNZ*C*034.99 SN*R*065.76 GSN*LD/26.19 15-17-23.6100N 146-09-39.8100E", ["callsignStr"] = "WAKRI", ["latitude"] = 15.2898916666667, ["longitude"] = 146.161058333333 }, [146] = {["comment"] = "UNZ*C*054.00/25.00 13-41-17.9600N 145-05-17.2700E", ["callsignStr"] = "WAMAB", ["latitude"] = 13.6883222222222, ["longitude"] = 145.088130555556 }, [147] = {["comment"] = "UAM*T*076.00/17.00 13-39-00.8000N 145-13-52.3700E", ["callsignStr"] = "WELKU", ["latitude"] = 13.6502222222222, ["longitude"] = 145.231213888889 }, [148] = {["comment"] = "12-36-34.4100N 145-47-34.8100E", ["callsignStr"] = "WENOV", ["latitude"] = 12.6095583333333, ["longitude"] = 145.793002777778 }, [149] = {["comment"] = "UAM*T*065.69/4.68 UNZ*C*057.35 PMY*LG*063.87 13-37-15.4100N 145-01-14.4500E", ["callsignStr"] = "WESOK", ["latitude"] = 13.6209472222222, ["longitude"] = 145.020680555556 }, [150] = {["comment"] = "UNZ*C*055.50/14.80 13-35-15.2700N 144-56-48.9300E", ["callsignStr"] = "WEVUS", ["latitude"] = 13.587575, ["longitude"] = 144.946925 }, [151] = {["comment"] = "SN*R*245.79 UNZ*C*020.00/97.97 GSN*LD*245.80/23.71 14-58-27.0000N 145-21-54.3100E", ["callsignStr"] = "WILLE", ["latitude"] = 14.9741666666667, ["longitude"] = 145.365086111111 }, [152] = {["comment"] = "UNZ*C*332.00/40.00 14-03-22.2700N 144-25-57.5100E", ["callsignStr"] = "WUVEN", ["latitude"] = 14.0561861111111, ["longitude"] = 144.432641666667 }, [153] = {["comment"] = "SN*R*245.79 GSN*LD/13.98 15-02-09.1900N 145-31-12.4000E", ["callsignStr"] = "YAMMA", ["latitude"] = 15.0358861111111, ["longitude"] = 145.520111111111 }, [154] = {["comment"] = "UNZ*C*274.00/9.00 13-28-12.9300N 144-34-48.7600E", ["callsignStr"] = "YASSU", ["latitude"] = 13.4702583333333, ["longitude"] = 144.580211111111 }, [155] = {["comment"] = "UNZ*C*061.83/2.50 13-28-22.8200N 144-46-18.1200E", ["callsignStr"] = "ZADEK", ["latitude"] = 13.4730055555556, ["longitude"] = 144.7717 }, [156] = {["comment"] = "AWD*LD*242.96/5.40 13-27-06.4700N 144-43-45.6900E", ["callsignStr"] = "ZAXUS", ["latitude"] = 13.4517972222222, ["longitude"] = 144.729358333333 }, [157] = {["comment"] = "UNZ*C*169.00/7.00 13-20-19.0500N 144-45-08.3400E", ["callsignStr"] = "ZEEKE", ["latitude"] = 13.338625, ["longitude"] = 144.752316666667 }, [158] = {["comment"] = "12-56-12.6300N 145-59-37.8700E", ["callsignStr"] = "ZEGAR", ["latitude"] = 12.9368416666667, ["longitude"] = 145.993852777778 }, [159] = {["comment"] = "SN*R*065.76 GSN*LD/2.90 15-08-34.1100N 145-47-21.6600E", ["callsignStr"] = "ZEKUR", ["latitude"] = 15.1428083333333, ["longitude"] = 145.78935 }, [160] = {["comment"] = "UNZ*C*054.25/26.00 13-41-45.8800N 145-06-12.3700E", ["callsignStr"] = "ZUKIE", ["latitude"] = 13.6960777777778, ["longitude"] = 145.103436111111 }, [161] = {["comment"] = "15-03-40.0300N 145-24-18.4000E", ["callsignStr"] = "CENOR", ["latitude"] = 15.0611194444444, ["longitude"] = 145.405111111111 }, [162] = {["comment"] = "14-10-07.7800N 145-18-08.0200E", ["callsignStr"] = "CEPOS", ["latitude"] = 14.1688277777778, ["longitude"] = 145.302227777778 }, [163] = {["comment"] = "TKK*RD*034.00/5.00 07-31-13.1200N 151-53-24.5300E", ["callsignStr"] = "CHENG", ["latitude"] = 7.52031111111111, ["longitude"] = 151.890147222222 }, [164] = {["comment"] = "14-52-49.3900N 145-26-28.5000E", ["callsignStr"] = "COVHI", ["latitude"] = 14.8803861111111, ["longitude"] = 145.44125 }, [165] = {["comment"] = "UNZ*C*020.00/35.00 13-59-51.6200N 144-57-29.0200E", ["callsignStr"] = "CULPS", ["latitude"] = 13.9976722222222, ["longitude"] = 144.958061111111 }, [166] = {["comment"] = "14-57-45.1400N 145-25-29.3900E", ["callsignStr"] = "DAMQY", ["latitude"] = 14.9625388888889, ["longitude"] = 145.424830555556 }, [167] = {["comment"] = "15-00-57.8500N 145-42-32.8600E", ["callsignStr"] = "DUCFI", ["latitude"] = 15.0160694444444, ["longitude"] = 145.709127777778 }, [168] = {["comment"] = "14-58-55.1100N 145-31-40.2000E", ["callsignStr"] = "ELOXE", ["latitude"] = 14.981975, ["longitude"] = 145.527833333333 }, [169] = {["comment"] = "14-13-45.3300N 145-03-15.2300E", ["callsignStr"] = "EPCAX", ["latitude"] = 14.2292583333333, ["longitude"] = 145.054230555556 }, [170] = {["comment"] = "15-09-21.1300N 145-49-20.8100E", ["callsignStr"] = "FIHVY", ["latitude"] = 15.1558694444444, ["longitude"] = 145.822447222222 }, [171] = {["comment"] = "14-48-10.2000N 145-50-26.7700E", ["callsignStr"] = "GAFWY", ["latitude"] = 14.8028333333333, ["longitude"] = 145.840769444444 }, [172] = {["comment"] = "UNZ*C*035.00/100.00 SN*R*168.04 14-47-21.1100N 145-46-06.6800E", ["callsignStr"] = "HIRCH", ["latitude"] = 14.7891972222222, ["longitude"] = 145.768522222222 }, [173] = {["comment"] = "GSN*LD*245.80/2.88 15-06-22.5100N 145-41-49.9200E", ["callsignStr"] = "JIDSU", ["latitude"] = 15.1062527777778, ["longitude"] = 145.6972 }, [174] = {["comment"] = "14-11-20.6300N 145-03-17.9500E", ["callsignStr"] = "JIRGI", ["latitude"] = 14.1890638888889, ["longitude"] = 145.054986111111 }, [175] = {["comment"] = "UNZ*C*035.00/23.00 13-45-42.9400N 144-58-13.2500E", ["callsignStr"] = "KAQTU", ["latitude"] = 13.7619277777778, ["longitude"] = 144.970347222222 }, [176] = {["comment"] = "UNZ*C*020.00/59.00 14-22-11.8700N 145-06-46.0400E", ["callsignStr"] = "MONIE", ["latitude"] = 14.3699638888889, ["longitude"] = 145.112788888889 }, [177] = {["comment"] = "14-10-50.4700N 145-09-27.8600E", ["callsignStr"] = "ONSUW", ["latitude"] = 14.1806861111111, ["longitude"] = 145.157738888889 }, [178] = {["comment"] = "14-10-17.2300N 145-20-03.6300E", ["callsignStr"] = "OPBUL", ["latitude"] = 14.1714527777778, ["longitude"] = 145.334341666667 }, [179] = {["comment"] = "14-00-06.0200N 145-28-32.9600E", ["callsignStr"] = "REWJU", ["latitude"] = 14.0016722222222, ["longitude"] = 145.475822222222 }, [180] = {["comment"] = "15-02-10.8400N 145-49-02.3400E", ["callsignStr"] = "SADVE", ["latitude"] = 15.0363444444444, ["longitude"] = 145.817316666667 }, [181] = {["comment"] = "14-10-04.6300N 145-26-44.8600E", ["callsignStr"] = "TOXPA", ["latitude"] = 14.1679527777778, ["longitude"] = 145.445794444444 }, [182] = {["comment"] = "15-15-06.9200N 146-00-44.0800E", ["callsignStr"] = "UKUGY", ["latitude"] = 15.2519222222222, ["longitude"] = 146.012244444444 }, [183] = {["comment"] = "14-58-14.2800N 146-02-22.1800E", ["callsignStr"] = "YEYNU", ["latitude"] = 14.9706333333333, ["longitude"] = 146.039494444444 }, [184] = {["comment"] = "15-08-05.6600N 145-46-10.1800E", ["callsignStr"] = "ZILUK", ["latitude"] = 15.1349055555556, ["longitude"] = 145.769494444444 }, [185] = {["comment"] = "14-18-41.6900N 145-01-36.8400E", ["callsignStr"] = "ZOVIK", ["latitude"] = 14.3115805555556, ["longitude"] = 145.0269 }, } local function is_json_body(content_type) return content_type and find(lower(content_type), "application/json", nil, true) end -- Print anything - including nested tables local function table_print (tt, indent, done) local result = "\n" done = done or {} indent = indent or 0 if type(tt) == "table" then for key, value in pairs (tt) do result = result .. string.rep (" ", indent) -- indent it if type (value) == "table" and not done [value] then done [value] = true result = result .. string.format("[%s] => table\n", tostring (key)); result = result .. string.rep (" ", indent+4) -- indent it result = result .. "(\n"; result = result .. table_print (value, indent + 7, done) result = result .. string.rep (" ", indent+4) -- indent it result = result .. ")\n"; else result = result .. string.format("[%s] => %s\n",tostring (key), tostring(value)) end end else if (tt) then result = result .. tt .. "\n" end end return result end function __genOrderedIndex( t ) local orderedIndex = {} for key in pairs(t) do table.insert( orderedIndex, key ) end table.sort( orderedIndex ) return orderedIndex end function orderedNext(t, state) -- Equivalent of the next function, but returns the keys in the alphabetic -- order. We use a temporary ordered key table that is stored in the -- table being iterated. local key = nil --print("orderedNext: state = "..tostring(state) ) if state == nil then -- the first time, generate the index t.__orderedIndex = __genOrderedIndex( t ) key = t.__orderedIndex[1] else -- fetch the next value for i = 1,#t.__orderedIndex do if t.__orderedIndex[i] == state then key = t.__orderedIndex[i+1] end end end if key then return key, t[key] end -- no more value to return, cleanup t.__orderedIndex = nil return end function orderedPairs(t) -- Equivalent of the pairs() function on tables. Allows to iterate -- in order return orderedNext, t, nil end -- Print anything - including nested tables local function table_out (tt, indent, done) local result = "\n" done = done or {} indent = indent or 0 if type(tt) == "table" then local counter = 1 for key, value in orderedPairs (tt) do result = result .. string.rep (" ", indent) -- indent it if type (value) == "table" and not done [value] then done [value] = true if type(key) == "string" then result = result .. string.format("[\"%s\"] =\n", tostring (key)); else result = result .. string.format("[%s] =\n", tostring (key)); end result = result .. string.rep (" ", indent) -- indent it result = result .. "{"; result = result .. table_out (value, indent + 4, done) result = result .. string.rep (" ", indent) -- indent it result = result .. "}," .. " -- end of " .. tostring (key) .. "\n"; else if type(value) == 'string' then result = result .. string.format("[\"%s\"] = \"%s\",\n",tostring (key), tostring(value)) else result = result .. string.format("[\"%s\"] = %s,\n",tostring (key), tostring(value)) end end counter = counter + 1 end else if (tt) then result = result .. tt .. "\n" end end return result end ----------------------------- local function modifyTable(tt,baseId) local id = baseId for key, value in orderedPairs (tt) do value.id=id value["properties"]= { ["vnav"] = 1, ["scale"] = 0, ["vangle"] = 0, ["angle"] = 0, ["steer"] = 2, } id = id+1 local vec3 = coord.LLtoLO(value.latitude, value.longitude) value["x"] = vec3.x; value["y"] = vec3.z; value["latitude"] = nil; value["longitude"] = nil; end end modifyTable(navpoints_raw,1000) -- env.info ( table_out( navpoints_raw, 4) ) -- mist.debug.writeData(mist.utils.serialize,navpoints_raw, "c:\\Users\\dwmin\\Saved Games\\DCS.openbeta\\Missions\\fix_marianas_result.lua") for key, value in orderedPairs(navpoints_raw) do local res = '[' .. tostring(key) .. '] = \n {' res = res .. table_out( value, 4 ) res = res .. '\n}, -- end of ' .. tostring(key) .. '\n' env.info (res) end -- exfile = io.open("c:\\Users\\dwmin\\Saved Games\\DCS.openbeta\\Missions\\fixes_marianas_result.lua", "w") -- io.output(exfile) -- local navpts = table_out(navpoints_raw, 4) -- io.write( navpts ) -- io.close() --[[ load with: assert(loadfile("c:\\Users\\dwmin\\Saved Games\\DCS.openbeta\\Missions\\fixex_marianas.lua"))() ]]
CcsListViewItem = class("CcsListViewItem") CcsListViewItem.ctor = function (slot0) ClassUtil.extends(slot0, CcsScrollViewItem) slot0._itemScale = 1 createSetterGetter(slot0, "data", nil, false, false, false, false, handler(slot0, slot0.updateView)) createSetterGetter(slot0, "itemIndex", nil, false, false, false, false, handler(slot0, slot0.onItemIndexChanged)) end CcsListViewItem.onItemIndexChanged = function (slot0) return end CcsListViewItem.onCreateAndAddChild = function (slot0) return end CcsListViewItem.onPushDownChanged = function (slot0, slot1, slot2, slot3) if slot1 then slot4 = 1 if slot1 == slot0 then slot4 = slot0._itemScale end if slot2 then TweenLite.to(slot1, 0.1, { scale = 0.98 * slot4 }) else TweenLite.to(slot1, 0.1, { scale = 1 * slot4 }) end end end CcsListViewItem.updateView = function (slot0) return end CcsListViewItem.destroy = function (slot0) slot0._data = nil slot0._itemIndex = nil CcsScrollViewItem.destroy(slot0) end return
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Dialogue HUD -- --==========================================================================-- class "gui.huddialogue" ( "gui.hudframe" ) local huddialogue = gui.huddialogue function huddialogue:huddialogue( parent ) local name = "HUD Dialogue" gui.hudframe.hudframe( self, parent, name, "" ) self.width = 320 -- - 31 self.height = 86 local box = gui.box( self, name .. " Box" ) box:setWidth( self.width ) box:setHeight( self.height ) box:setPadding( 18 ) local header = gui.text( box, "h1" ) header:setDisplay( "block" ) header:setMarginBottom( 8 ) header:setFont( self:getScheme( "fontBold" ) ) local dialogue = gui.text( box, "p" ) dialogue:setDisplay( "block" ) self:invalidateLayout() self:activate() end function huddialogue:invalidateLayout() local x = love.graphics.getWidth() / 2 x = x + 3 * game.tileSize local y = love.graphics.getHeight() / 2 y = y - self:getHeight() / 2 y = y - 2 * game.tileSize self:setPos( x, y ) gui.frame.invalidateLayout( self ) end
-- spawn.lua -- Implements spawn teleportion and the /spawn [world] and /setspawn commands. -- Teleports the specified player to the spawn of the world they're in. local function SendPlayerToWorldSpawn(a_Player) -- Get the spawn's coordinates... local World = a_Player:GetWorld() local SpawnX = World:GetSpawnX() local SpawnY = World:GetSpawnY() local SpawnZ = World:GetSpawnZ() -- Teleport to spawn using ChunkStay. local PlayerUUID = a_Player:GetUUID() World:ChunkStay( {{SpawnX / 16, SpawnZ / 16}}, nil, -- OnChunkAvailable function() -- OnAllChunksAvailable World:DoWithPlayerByUUID(PlayerUUID, function(a_CBPlayer) a_CBPlayer:TeleportToCoords(SpawnX, SpawnY, SpawnZ) end ) end ) end function HandleSpawnCommand(Split, Player) local NumParams = #Split if (NumParams == 1) then SendMessage(Player, cChatColor.LightGray .. "Took you to this world's spawn.") SendPlayerToWorldSpawn(Player) return true elseif (NumParams ~= 2) then SendMessage(Player, cChatColor.LightGray .. "Usage: " .. Split[1] .. " [world]") return true end local World = cRoot:Get():GetWorld(Split[2]) if (Player:GetWorld():GetName() == Split[2]) then SendMessage(Player, cChatColor.LightGray .. "Took you to this world's spawn.") SendPlayerToWorldSpawn(Player) return true elseif(World == nil) then SendMessage(Player, cChatColor.LightGray .. "Couldn't find that world.") return true elseif(Player:MoveToWorld(World, true, Vector3d(World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ())) == false) then SendMessage(Player, cChatColor.LightGray .. "Couldn't take you to that world.") return true end SendMessage(Player, cChatColor.LightGray .. "Took you to that world's spawn.") return true end function HandleSetSpawnCommand(Split, Player) local World = Player:GetWorld() local PlayerX = Player:GetPosX() local PlayerY = Player:GetPosY() local PlayerZ = Player:GetPosZ() if (World:SetSpawn(PlayerX, PlayerY, PlayerZ)) then SendMessage(Player, cChatColor.LightGray .. "Changed the spawn position.") return true else SendMessage(Player, cChatColor.LightGray .. "Couldn't change the spawn position.") return false end end
local utils = require("utils") local configs = require("configs") local pluginLoader = require("plugin_loader") local modHandler = require("mods") local toolUtils = require("tool_utils") local toolHandler = {} toolHandler.tools = {} toolHandler.currentTool = nil toolHandler.currentToolName = nil function toolHandler.selectTool(name) local handler = toolHandler.tools[name] if handler and toolHandler.currentTool ~= handler then if toolHandler.currentTool and toolHandler.currentTool.unselect then toolHandler.currentTool.unselect(name) end toolHandler.currentTool = handler toolHandler.currentToolName = name toolUtils.sendToolEvent(handler) end return handler ~= nil end function toolHandler.loadTool(filename) local pathNoExt = utils.stripExtension(filename) local filenameNoExt = utils.filename(pathNoExt, "/") local handler = utils.rerequire(pathNoExt) local name = handler.name or filenameNoExt if configs.debug.logPluginLoading then print("! Loaded tool '" .. name .. "'") end toolHandler.tools[name] = handler if not toolHandler.currentTool then toolHandler.selectTool(name) end return name end function toolHandler.unloadTools() toolHandler.currentTool = nil toolHandler.currentToolName = nil toolHandler.tools = {} end local function getHandler(name) name = name or toolHandler.currentToolName return toolHandler.tools[name] end function toolHandler.getMaterials(name, layer) local handler = getHandler(name) if handler and handler.getMaterials then return handler.getMaterials(layer) end return {} end function toolHandler.setMaterial(material, name) local handler = getHandler(name) if handler then local oldMaterial = toolHandler.getMaterial(name) if handler.setMaterial then return handler.setMaterial(material, oldMaterial) end end return false end function toolHandler.getMaterial(name) local handler = getHandler(name) if handler then if handler.getMaterial then return handler.getMaterial() else return handler.material end end return false end function toolHandler.getLayers(name) local handler = getHandler(name) if handler then if handler.getLayers then return handler.getLayers() else return handler.validLayers end end return {} end function toolHandler.setLayer(layer, name) local handler = getHandler(name) if handler then local oldLayer = toolHandler.getLayer(name) if handler.setLayer then return handler.setLayer(layer, oldLayer) elseif handler.layer then handler.layer = layer toolUtils.sendLayerEvent(toolHandler.currentTool, layer) end end return false end function toolHandler.getLayer(name) local handler = getHandler(name) if handler then if handler.getLayer then return handler.getLayer() else return handler.layer end end return false end function toolHandler.loadInternalTools(path) path = path or "tools" pluginLoader.loadPlugins(path, nil, toolHandler.loadTool) end function toolHandler.loadExternalTools() local filenames = modHandler.findPlugins("tools") pluginLoader.loadPlugins(filenames, nil, toolHandler.loadTool) end return toolHandler
function degToRad( d ) return d * 0.01745329251 end function love.load() g = love.graphics rodLen, gravity, velocity, acceleration = 260, 3, 0, 0 halfWid, damp = g.getWidth() / 2, .989 posX, posY, angle = halfWid TWO_PI, angle = math.pi * 2, degToRad( 90 ) end function love.update( dt ) acceleration = -gravity / rodLen * math.sin( angle ) angle = angle + velocity; if angle > TWO_PI then angle = 0 end velocity = velocity + acceleration velocity = velocity * damp posX = halfWid + math.sin( angle ) * rodLen posY = math.cos( angle ) * rodLen end function love.draw() g.setColor( 250, 0, 250 ) g.circle( "fill", halfWid, 0, 8 ) g.line( halfWid, 4, posX, posY ) g.setColor( 250, 100, 20 ) g.circle( "fill", posX, posY, 20 ) end
-- -- Created by IntelliJ IDEA. -- User: Kunkka Huang -- Date: 17/1/19 -- Time: 上午10:10 -- To change this template use File | Settings | File Templates. -- return { confirm = "确定", cancel = "取消", multi_language = "不同语言使用不同字体文件(英文:Klee.fnt,中文:Arial)。", zoom_button = "普通按钮", zoom_button_desc = "缩放按钮的大小由第一个child决定不能更改,child可以是任意类型node。(变更child大小后需要F1刷新一下,自动刷新暂未实现)", sprite_button = "图片按钮", sprite_button_desc = "图片按钮使用3张图片代表3个状态Normal, Selected(点击临时状态不能保持), Disabled;有2种选中模式,切换:切换状态时切换图片;叠加:切换状态时Normal图片不变,叠加Selected或者Disabled图片。", toggle_button = "Toggle按钮", toggle_button_desc = "Toggle按钮使用Tag控制child切换显示,所有tag等于SelectedTag的child为visible状态,大小跟普通按钮一样由第一个child决定。", check_box = "CheckBox", check_box_desc = "CheckBox继承于SpriteButton,点击会自动切换Selected状态(可以保持)。", some_text = "When a country Taxes our products coming in at, say, 50%, and we Tax the same product coming into our country at ZERO, not fair or smart. We\ will soon be starting RECIPROCAL TAXES so that we will charge the same thing as they charge us. $800 Billion Trade Deficit-have no choice!", }
class 'Casino' function Casino:__init() self.actions = { [3] = true, [4] = true, [5] = true, [6] = true, [11] = true, [12] = true, [13] = true, [14] = true, [17] = true, [18] = true, [105] = true, [137] = true, [138] = true, [139] = true, [16] = true } self.coinflipimage = Image.Create( AssetLocation.Resource, "CoinFlipICO" ) Network:Subscribe( "TextBox", self, self.TextBox ) Events:Subscribe( "OpenCasinoMenu", self, self.OpenCasinoMenu ) Events:Subscribe( "CasinoMenuClosed", self, self.WindowClosed ) Events:Subscribe( "LocalPlayerMoneyChange", self, self.LocalPlayerMoneyChange ) self.size = Vector2( 736, 472 ) self:CreateWindow() end function Casino:TextBox( args ) self.coinflip.messages:SetVisible( true ) self.coinflip.messages:SetText( args.text ) if args.color then self.coinflip.messages:SetTextColor( args.color ) local sound = ClientSound.Create(AssetLocation.Game, { bank_id = 20, sound_id = 20, position = LocalPlayer:GetPosition(), angle = Angle() }) sound:SetParameter(0,1) else self.coinflip.messages:SetTextColor( Color.White ) end end function Casino:UpdateMoneyString( money ) if money == nil then money = LocalPlayer:GetMoney() end if LocalPlayer:GetValue( "Lang" ) then if LocalPlayer:GetValue( "Lang" ) == "РУС" then self.coinflip.balance_txt:SetText( "Баланс: $" .. formatNumber( money ) ) else self.coinflip.balance_txt:SetText( "Money: $" .. formatNumber( money ) ) end end end function Casino:LocalPlayerMoneyChange( args ) self:UpdateMoneyString( args.new_money ) end function Casino:OpenCasinoMenu() if Game:GetState() ~= GUIState.Game then return end if self.window:GetVisible() then self:WindowClosed() else self.window:SetVisible( true ) Mouse:SetVisible( true ) if LocalPlayer:GetValue( "SystemFonts" ) then self.coinflip.balance_txt:SetFont( AssetLocation.SystemFont, "Impact" ) self.coinflip.stavka_txt:SetFont( AssetLocation.SystemFont, "Impact" ) self.coinflip.messages:SetFont( AssetLocation.SystemFont, "Impact" ) end if not self.LocalPlayerInputEvent then self.LocalPlayerInputEvent = Events:Subscribe( "LocalPlayerInput", self, self.LocalPlayerInput ) end end end function Casino:CreateWindow() self.window = Window.Create() self.window:SetSize( self.size ) self.window:SetPositionRel( Vector2( 0.75, 0.5 ) - self.window:GetSizeRel()/2 ) self.window:SetTitle( "▧ Казино" ) self.window:SetVisible( false ) self.window:Subscribe( "WindowClosed", self, self.CasinoMenuClosed ) local topAreaBackground = Rectangle.Create( self.window ) topAreaBackground:SetPadding( Vector2.One * 2 , Vector2.One * 2 ) topAreaBackground:SetDock( GwenPosition.Top ) topAreaBackground:SetColor( Color( 160, 160, 160 ) ) topAreaBackground:SetMargin( Vector2.Zero, Vector2( 0, 10 ) ) local topArea = Rectangle.Create( topAreaBackground ) topArea:SetPadding (Vector2( 6, 6 ), Vector2( 6, 6 ) ) topArea:SetDock( GwenPosition.Top ) topArea:SetColor( Color.FromHSV( 25, 0.95, 0.85 ) ) local largeName = Label.Create( topArea ) largeName:SetMargin( Vector2(), Vector2( 0, -6 ) ) largeName:SetDock( GwenPosition.Top ) largeName:SetAlignment( GwenPosition.CenterH ) largeName:SetTextSize( 42 ) largeName:SetText( "Казино" ) largeName:SizeToContents() topArea:SizeToChildren() topAreaBackground:SizeToChildren() self.coinflip = {} -- Conflip self.coinflip.scroll_control = ScrollControl.Create( self.window ) self.coinflip.scroll_control:SetScrollable( false, true ) self.coinflip.scroll_control:SetDock( GwenPosition.Fill ) self.coinflip.scroll_control:SetVisible( false ) self.coinflip.balance_txt = Label.Create( self.coinflip.scroll_control ) self.coinflip.balance_txt:SetTextColor( Color( 251, 184, 41 ) ) self.coinflip.balance_txt:SetDock( GwenPosition.Top ) self.coinflip.balance_txt:SetText( "Баланс: $" .. LocalPlayer:GetMoney() ) self.coinflip.balance_txt:SetTextSize( 20 ) self.coinflip.balance_txt:SizeToContents() self.coinflip.stavka_txt = Label.Create( self.coinflip.scroll_control ) self.coinflip.stavka_txt:SetDock( GwenPosition.Top ) self.coinflip.stavka_txt:SetMargin( Vector2( 0, 15 ), Vector2.Zero ) self.coinflip.stavka_txt:SetText( "Ваша ставка:" ) self.coinflip.stavka_txt:SetTextSize( 15 ) self.coinflip.stavka_txt:SizeToContents() self.coinflip.stavka = TextBoxNumeric.Create( self.coinflip.scroll_control ) self.coinflip.stavka:SetDock( GwenPosition.Top ) self.coinflip.stavka:SetMargin( Vector2( 10, 6 ), Vector2( 10, 0 ) ) self.coinflip.stavka:SetTextSize( 30 ) self.coinflip.stavka:SetSize( Vector2( 0, 40 ) ) self.coinflip.stavka:Subscribe( "TextChanged", self, self.UpdateStavkaButton ) self.coinflip.stavka:Subscribe( "Focus", self, self.Focus ) self.coinflip.stavka:Subscribe( "Blur", self, self.Blur ) self.coinflip.stavka_ok_btn = Button.Create( self.coinflip.scroll_control ) self.coinflip.stavka_ok_btn:SetDock( GwenPosition.Top ) self.coinflip.stavka_ok_btn:SetMargin( Vector2( 50, 15 ), Vector2( 50, 0 ) ) self.coinflip.stavka_ok_btn:SetText( "$ СДЕЛАТЬ СТАВКУ $" ) self.coinflip.stavka_ok_btn:SetTextSize( 18 ) self.coinflip.stavka_ok_btn:SetSize( Vector2( 0, 40 ) ) self.coinflip.stavka_ok_btn:Subscribe( "Press", self, self.StartCoinflip ) self.coinflip.messages = Label.Create( self.coinflip.scroll_control ) self.coinflip.messages:SetDock( GwenPosition.Top ) self.coinflip.messages:SetAlignment( GwenPosition.CenterH ) self.coinflip.messages:SetMargin( Vector2( 0, 10 ), Vector2.Zero ) self.coinflip.messages:SetText( "" ) self.coinflip.messages:SetTextSize( 20 ) self.coinflip.messages:SizeToContents() self.coinflip.bottomlabel = Label.Create( self.coinflip.scroll_control ) self.coinflip.bottomlabel:SetDock( GwenPosition.Bottom ) self.coinflip.bottomlabel:SetSize( Vector2( 0, 25 ) ) self.coinflipmenu = true self.coinflip.stavka:DeleteText( 0, self.coinflip.stavka:GetTextLength() ) self.coinflip.scroll_control:SetVisible( true ) end function Casino:UpdateStavkaButton() if self.coinflip.stavka_ok_btn then if self.coinflip.stavka:GetValue() <= 0 or self.coinflip.stavka:GetValue() > 1000 or LocalPlayer:GetMoney() < self.coinflip.stavka:GetValue() or string.find( self.coinflip.stavka:GetValue(), "%." ) then self.coinflip.stavka_ok_btn:SetEnabled( false ) else self.coinflip.stavka_ok_btn:SetEnabled( true ) end end end function Casino:StartCoinflip( args ) if self.coinflip.stavka then Network:Send( "Coinflip", { stavka = self.coinflip.stavka:GetValue(), money = LocalPlayer:GetMoney() } ) self:UpdateMoneyString( args.new_money ) self:UpdateStavkaButton() end end function Casino:LocalPlayerInput( args ) if args.input == Action.GuiPause then if self.window:GetVisible() == true then self:WindowClosed() end end if self.focused then return false else if self.actions[args.input] then return false end end end function Casino:Focus() self.focused = true end function Casino:Blur() self.focused = nil end function Casino:WindowClosed() self.window:SetVisible( false ) Mouse:SetVisible( false ) if self.LocalPlayerInputEvent then Events:Unsubscribe( self.LocalPlayerInputEvent ) self.LocalPlayerInputEvent = nil end end function Casino:CasinoMenuClosed() self:WindowClosed() ClientEffect.Create(AssetLocation.Game, { effect_id = 383, position = Camera:GetPosition(), angle = Angle() }) end casino = Casino()
local Autosaver = Class(function(self, inst) self.inst = inst self.timeout = TUNING.AUTOSAVE_INTERVAL self.inst:StartUpdatingComponent(self) end) function Autosaver:DoSave() local enabled = true if PLATFORM == "PS4" then enabled = GetPlayer().profile:GetAutosaveEnabled() end if enabled then GetPlayer().HUD.controls.saving:StartSave() self.inst:DoTaskInTime(1, function() SaveGameIndex:SaveCurrent() end ) self.inst:DoTaskInTime(3, function() GetPlayer().HUD.controls.saving:EndSave() end) end self.timeout = TUNING.AUTOSAVE_INTERVAL end function Autosaver:OnUpdate(dt) if self.timeout > 0 then self.timeout = self.timeout - dt end if self.timeout <= 0 and GetClock():GetTimeInEra() > 10 then if self.inst.LightWatcher:IsInLight() and self.inst.components.health:GetPercent() > .1 then local danger = FindEntity(self.inst, 30, function(target) return target:HasTag("monster") or target.components.combat and target.components.combat.target == self.inst end) if not danger then self:DoSave() else self.timeout = self.timeout + math.random(20, 40) end end end end return Autosaver
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. 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 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --]] view_info = { id = "procs", name = "Processes", description = "This is the typical top/htop process list, showing usage of resources like CPU, memory, disk and network on a by process basis.", tips = {"This is a perfect view to start a drill down session. Click enter or double click on a process to dive into it and explore its behavior."}, tags = {"Default", "wsysdig"}, view_type = "table", filter = "evt.type!=switch", applies_to = {"", "container.id", "fd.name", "fd.containername", "fd.sport", "fd.sproto", "evt.type", "fd.directory", "fd.containerdirectory", "fd.type", "k8s.pod.id", "k8s.rc.id", "k8s.rs.id", "k8s.svc.id", "k8s.ns.id", "marathon.app.id", "marathon.group.name", "mesos.task.id", "mesos.framework.name"}, is_root = true, drilldown_target = "threads", use_defaults = true, columns = { { name = "NA", field = "thread.tid", is_key = true }, { name = "NA", field = "proc.pid", is_groupby_key = true }, { name = "PID", description = "Process PID.", field = "proc.pid", colsize = 7, }, { tags = {"containers"}, name = "VPID", field = "proc.vpid", description = "PID that the process has inside the container.", colsize = 8, }, { name = "CPU", field = "thread.cpu", description = "Amount of CPU used by the proccess.", aggregation = "AVG", groupby_aggregation = "SUM", colsize = 8, is_sorting = true }, { name = "USER", field = "user.name", colsize = 12 }, { name = "TH", field = "proc.nthreads", description = "Number of threads that the process contains.", aggregation = "MAX", groupby_aggregation = "MAX", colsize = 5 }, { name = "VIRT", field = "thread.vmsize.b", description = "Total virtual memory for the process.", aggregation = "MAX", groupby_aggregation = "MAX", colsize = 9 }, { name = "RES", field = "thread.vmrss.b", description = "Resident non-swapped memory for the process.", aggregation = "MAX", groupby_aggregation = "MAX", colsize = 9 }, { name = "FILE", field = "evt.buflen.file", description = "Total (input+output) file I/O bandwidth generated by the process, in bytes per second.", aggregation = "TIME_AVG", groupby_aggregation = "SUM", colsize = 8 }, { name = "NET", field = "evt.buflen.net", description = "Total (input+output) network I/O bandwidth generated by the process, in bytes per second.", aggregation = "TIME_AVG", groupby_aggregation = "SUM", colsize = 8 }, { tags = {"containers"}, name = "CONTAINER", field = "container.name", colsize = 20 }, { name = "Command", description = "The full command line of the process.", field = "proc.exeline", aggregation = "MAX", colsize = 0 } }, actions = { { hotkey = "9", command = "kill -9 %proc.pid", description = "kill -9", ask_confirmation = true, wait_finish = false }, { hotkey = "c", command = "gcore %proc.pid", description = "generate core", }, { hotkey = "g", command = "gdb -p %proc.pid", description = "gdb attach", wait_finish = false }, { hotkey = "k", command = "kill %proc.pid", description = "kill", ask_confirmation = true, wait_finish = false }, { hotkey = "l", command = "ltrace -p %proc.pid", description = "ltrace", }, { hotkey = "s", command = "gdb -p %proc.pid --batch --quiet -ex \"thread apply all bt full\" -ex \"quit\"", description = "print stack", }, { hotkey = "f", command = "lsof -p %proc.pid", description = "one-time lsof", }, { hotkey = "[", command = "renice $(expr $(ps -h -p %proc.pid -o nice) + 1) -p %proc.pid", description = "increment nice by 1", wait_finish = false, }, { hotkey = "]", command = "renice $(expr $(ps -h -p %proc.pid -o nice) - 1) -p %proc.pid", description = "decrement nice by 1", wait_finish = false, }, }, }
local _G = require "_G" local error = _G.error local getmetatable = _G.getmetatable local rawget = _G.rawget local ExHandlerKey = {"Exception Handler Key"} local function callhandler(self, ...) local handler = self[ExHandlerKey] or error((...)) return handler(self, ...) end return { keys = { excatch = ExHandlerKey, timeout = {"Invocation Timeout Key"}, security = {"Security Requirement Key"}, ssl = {"SSL Options Key"}, }, assertresults = function (self, operation, success, ...) if not success then return callhandler(self, ..., operation) end return ... end, }
local const = require 'proto.define' local json = require 'json' local config = { ["Lua.runtime.version"] = { scope = "resource", type = "string", default = "Lua 5.4", enum = { "Lua 5.1", "Lua 5.2", "Lua 5.3", "Lua 5.4", "LuaJIT" }, markdownDescription = "%config.runtime.version%" }, ["Lua.runtime.path"] = { scope = "resource", type = "array", items = { type = 'string', }, markdownDescription = "%config.runtime.path%", default = { "?.lua", "?/init.lua", } }, ["Lua.runtime.special"] = { scope = 'resource', type = 'object', markdownDescription = '%config.runtime.special%', patternProperties= { ['.*'] = { type = "string", scope = "resource", default = "require", enum = { '_G', 'rawset', 'rawget', 'setmetatable', 'require', 'dofile', 'loadfile', 'pcall', 'xpcall', } } } }, ["Lua.runtime.unicodeName"] = { scope = 'resource', type = 'boolean', default = false, markdownDescription = "%config.runtime.unicodeName%" }, ["Lua.runtime.nonstandardSymbol"] = { scope = 'resource', type = 'array', items = { type = 'string', enum = { '//', '/**/', '`', '+=', '-=', '*=', '/=', '||', '&&', '!', '!=', 'continue', } }, markdownDescription = "%config.runtime.nonstandardSymbol%" }, ["Lua.runtime.plugin"] = { scope = "resource", type = "string", default = "", markdownDescription = "%config.runtime.plugin%" }, ["Lua.runtime.fileEncoding"] = { scope = 'resource', type = 'string', default = 'utf8', enum = { "utf8", "ansi", }, markdownDescription = '%config.runtime.fileEncoding%', }, ['Lua.runtime.builtin'] = { scope = 'resource', type = 'object', properties = {}, markdownDescription = '%config.runtime.builtin%', }, ["Lua.diagnostics.enable"] = { scope = 'resource', type = 'boolean', default = true, markdownDescription = "%config.diagnostics.enable%" }, ["Lua.diagnostics.disable"] = { scope = "resource", type = "array", items = { type = 'string', }, markdownDescription = "%config.diagnostics.disable%" }, ["Lua.diagnostics.globals"] = { scope = "resource", type = "array", items = { type = 'string', }, markdownDescription = "%config.diagnostics.globals%" }, ["Lua.diagnostics.severity"] = { scope = "resource", type = 'object', markdownDescription = "%config.diagnostics.severity%", title = "severity", properties = {} }, ["Lua.diagnostics.neededFileStatus"] = { scope = "resource", type = 'object', markdownDescription = "%config.diagnostics.neededFileStatus%", title = "neededFileStatus", properties = {} }, ["Lua.diagnostics.workspaceDelay"] = { scope = "resource", type = "integer", default = 0, markdownDescription = "%config.diagnostics.workspaceDelay%", }, ["Lua.diagnostics.workspaceRate"] = { scope = "resource", type = "integer", default = 100, markdownDescription = "%config.diagnostics.workspaceRate%", }, ["Lua.diagnostics.libraryFiles"] = { scope = "resource", type = "string", default = "Opened", enum = { "Enable", "Opened", "Disable", }, markdownEnumDescriptions = { "%config.diagnostics.files.Enable%", "%config.diagnostics.files.Opened%", "%config.diagnostics.files.Disable%", }, markdownDescription = "%config.diagnostics.libraryFiles%", }, ["Lua.diagnostics.ignoredFiles"] = { scope = "resource", type = "string", default = "Opened", enum = { "Enable", "Opened", "Disable", }, markdownEnumDescriptions = { "%config.diagnostics.files.Enable%", "%config.diagnostics.files.Opened%", "%config.diagnostics.files.Disable%", }, markdownDescription = "%config.diagnostics.ignoredFiles%", }, ["Lua.workspace.ignoreDir"] = { scope = "resource", type = "array", items = { type = 'string', }, markdownDescription = "%config.workspace.ignoreDir%", default = { ".vscode", }, }, ["Lua.workspace.ignoreSubmodules"] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.workspace.ignoreSubmodules%" }, ["Lua.workspace.useGitIgnore"] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.workspace.useGitIgnore%" }, ["Lua.workspace.maxPreload"] = { scope = "resource", type = "integer", default = 1000, markdownDescription = "%config.workspace.maxPreload%" }, ["Lua.workspace.preloadFileSize"] = { scope = "resource", type = "integer", default = 100, markdownDescription = "%config.workspace.preloadFileSize%" }, ["Lua.workspace.library"] = { scope = 'resource', type = "array", items = { type = "string" }, markdownDescription = "%config.workspace.library%" }, ['Lua.workspace.checkThirdParty'] = { scope = 'resource', type = 'boolean', default = true, markdownDescription = "%config.workspace.checkThirdParty%" }, ["Lua.workspace.userThirdParty"] = { scope = 'resource', type = "array", items = { type = "string" }, markdownDescription = "%config.workspace.userThirdParty%" }, ["Lua.completion.enable"] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.completion.enable%" }, ["Lua.completion.callSnippet"] = { scope = "resource", type = "string", default = "Disable", enum = { "Disable", "Both", "Replace", }, markdownEnumDescriptions = { "%config.completion.callSnippet.Disable%", "%config.completion.callSnippet.Both%", "%config.completion.callSnippet.Replace%", }, markdownDescription = "%config.completion.callSnippet%" }, ["Lua.completion.keywordSnippet"] = { scope = "resource", type = "string", default = "Replace", enum = { "Disable", "Both", "Replace", }, markdownEnumDescriptions = { "%config.completion.keywordSnippet.Disable%", "%config.completion.keywordSnippet.Both%", "%config.completion.keywordSnippet.Replace%", }, markdownDescription = "%config.completion.keywordSnippet%" }, ['Lua.completion.displayContext'] = { scope = "resource", type = "integer", default = 6, markdownDescription = "%config.completion.displayContext%", }, ['Lua.completion.workspaceWord'] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.completion.workspaceWord%" }, ['Lua.completion.showWord'] = { scope = "resource", type = "string", default = 'Fallback', enum = { "Enable", "Fallback", "Disable", }, markdownEnumDescriptions = { "%config.completion.showWord.Enable%", "%config.completion.showWord.Fallback%", "%config.completion.showWord.Disable%", }, markdownDescription = "%config.completion.showWord%" }, ['Lua.completion.autoRequire'] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.completion.autoRequire%" }, ['Lua.completion.showParams'] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.completion.showParams%" }, ['Lua.completion.requireSeparator'] = { scope = "resource", type = "string", default = '.', markdownDescription = "%config.completion.requireSeparator%" }, ["Lua.color.mode"] = { scope = "resource", type = "string", default = "Semantic", enum = { "Grammar", "Semantic", }, markdownEnumDescriptions = { "%config.color.mode.Grammar%", "%config.color.mode.Semantic%", }, markdownDescription = "%config.color.mode%" }, ["Lua.signatureHelp.enable"] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.signatureHelp.enable%" }, ['Lua.hover.enable'] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.hover.enable%" }, ['Lua.hover.viewString'] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.hover.viewString%" }, ['Lua.hover.viewStringMax'] = { scope = "resource", type = "integer", default = 1000, markdownDescription = "%config.hover.viewStringMax%" }, ['Lua.hover.viewNumber'] = { scope = "resource", type = "boolean", default = true, markdownDescription = "%config.hover.viewNumber%" }, ['Lua.hover.previewFields'] = { scope = "resource", type = "integer", default = 20, markdownDescription = "%config.hover.previewFields%" }, ['Lua.hover.enumsLimit'] = { scope = "resource", type = "integer", default = 5, markdownDescription = "%config.hover.enumsLimit%" }, --["Lua.plugin.enable"] = { -- scope = "resource", -- type = "boolean", -- default = false, -- markdownDescription = "%config.plugin.enable%" --}, --["Lua.plugin.path"] = { -- scope = "resource", -- type = "string", -- default = ".vscode/lua-plugin/*.lua", -- markdownDescription = "%config.plugin.path%" --}, --["Lua.develop.enable"] = { -- scope = "resource", -- type = "boolean", -- default = false, -- markdownDescription = "%config.develop.enable%" --}, --["Lua.develop.debuggerPort"] = { -- scope = "resource", -- type = "integer", -- default = 11412, -- markdownDescription = "%config.develop.debuggerPort%" --}, --["Lua.develop.debuggerWait"] = { -- scope = "resource", -- type = "boolean", -- default = false, -- markdownDescription = "%config.develop.debuggerWait%" --}, --['Lua.intelliSense.searchDepth'] = { -- scope = "resource", -- type = "integer", -- default = 0, -- markdownDescription = "%config.intelliSense.searchDepth%" --}, ['Lua.window.statusBar'] = { scope = "resource", type = 'boolean', default = true, markdownDescription = '%config.window.statusBar%', }, ['Lua.window.progressBar'] = { scope = "resource", type = 'boolean', default = true, markdownDescription = '%config.window.progressBar%', }, ['Lua.telemetry.enable'] = { scope = "resource", type = {"boolean", "null"}, default = json.null, markdownDescription = "%config.telemetry.enable%" }, ['Lua.hint.enable'] = { scope = 'resource', type = 'boolean', default = false, markdownDescription = '%config.hint.enable%', }, ['Lua.hint.paramType'] = { scope = 'resource', type = 'boolean', default = true, markdownDescription = '%config.hint.paramType%', }, ['Lua.hint.setType'] = { scope = 'resource', type = 'boolean', default = false, markdownDescription = '%config.hint.setType%', }, ['Lua.hint.paramName'] = { scope = 'resource', type = 'string', default = 'All', enum = { "All", "Literal", "Disable", }, markdownEnumDescriptions = { "%config.hint.paramName.All%", "%config.hint.paramName.Literal%", "%config.hint.paramName.Disable%", }, markdownDescription = '%config.hint.paramName%', }, ['Lua.misc.parameters'] = { scope = 'resource', type = "array", items = { type = 'string', }, markdownDescription = '%config.misc.parameters%', }, } local DiagSeverity = config["Lua.diagnostics.severity"].properties for name, level in pairs(const.DiagnosticDefaultSeverity) do DiagSeverity[name] = { scope = 'resource', type = 'string', default = level, description = '%config.diagnostics.' .. name .. '%', enum = { 'Error', 'Warning', 'Information', 'Hint', } } end local DiagNeededFileStatus = config["Lua.diagnostics.neededFileStatus"].properties for name, level in pairs(const.DiagnosticDefaultNeededFileStatus) do DiagNeededFileStatus[name] = { scope = 'resource', type = 'string', default = level, description = '%config.diagnostics.' .. name .. '%', enum = { 'Any', 'Opened', 'None', } } end local builtin = config["Lua.runtime.builtin"].properties for name, status in pairs(const.BuiltIn) do builtin[name] = { scope = 'resource', type = 'string', default = status, description = '%config.runtime.builtin.' .. name .. '%', enum = { 'default', 'enable', 'disable', } } end return config
-- -- gmake2_perfile_flags.lua -- Tests compiler and linker flags for Makefiles. -- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project -- local suite = test.declare("gmake2_perfile_flags") local p = premake local gmake2 = p.modules.gmake2 local project = p.project -- -- Setup -- local wks function suite.setup() wks = test.createWorkspace() end local function prepare() local prj = p.workspace.getproject(wks, 1) gmake2.cpp.outputPerFileConfigurationSection(prj) end -- -- Test per file settings. -- function suite.perfile_buildOptions() files { 'a.cpp', 'b.cpp', 'c.cpp' } filter { 'files:a.cpp' } buildoptions { '-msse', '-msse2', '-mfpmath=sse,387', '-msse3', '-mssse3', '-msse4.1', '-mpclmul' } filter { 'files:b.cpp' } buildoptions { '-msse', '-msse2', '-mfpmath=sse,387' } filter { 'files:c.cpp' } buildoptions { '-msse', '-msse2', '-mfpmath=sse,387', '-msse3', '-mssse3', '-msse4.1', '-maes' } prepare() test.capture [[ # Per File Configurations # ############################################# PERFILE_FLAGS_0 = $(ALL_CXXFLAGS) -msse -msse2 -mfpmath=sse,387 -msse3 -mssse3 -msse4.1 -mpclmul PERFILE_FLAGS_1 = $(ALL_CXXFLAGS) -msse -msse2 -mfpmath=sse,387 PERFILE_FLAGS_2 = $(ALL_CXXFLAGS) -msse -msse2 -mfpmath=sse,387 -msse3 -mssse3 -msse4.1 -maes ]] end function suite.perfile_mixedbuildOptions() files { 'a.c', 'b.cpp', 'c.c' } filter { 'files:a.c' } buildoptions { '-msse', '-msse2', '-mfpmath=sse,387', '-msse3', '-mssse3', '-msse4.1', '-mpclmul' } filter { 'files:b.cpp' } buildoptions { '-msse', '-msse2', '-mfpmath=sse,387' } filter { 'files:c.c' } buildoptions { '-msse', '-msse2', '-mfpmath=sse,387', '-msse3', '-mssse3', '-msse4.1', '-maes' } prepare() test.capture [[ # Per File Configurations # ############################################# PERFILE_FLAGS_0 = $(ALL_CFLAGS) -msse -msse2 -mfpmath=sse,387 -msse3 -mssse3 -msse4.1 -mpclmul PERFILE_FLAGS_1 = $(ALL_CXXFLAGS) -msse -msse2 -mfpmath=sse,387 PERFILE_FLAGS_2 = $(ALL_CFLAGS) -msse -msse2 -mfpmath=sse,387 -msse3 -mssse3 -msse4.1 -maes ]] end
local RoomMove = class('RoomMove') local libcenter = require "libcenter" function RoomMove:initialize() DEBUG("=============RoomMove Init=================") self._players = {} end function RoomMove:broadcast(msg, filter_uid) for k, v in pairs(self._players) do if filter_uid and filter_uid ~= k then libcenter.send2client(k, msg) end end end -- for i, v in pairs(room.players) do -- if i ~= uid then -- --优化方法,记录game和node,然后发送 -- local msg = {cmd="movegame.add", uid=uid, x=x, y=y} -- libcenter.send2client(i, msg) -- end -- end return RoomMove
require('stdlib.handle.player') ---@class Unit local Unit = {} Unit.__index = Unit local allUnits = {} unit = {} unit.metatable = Unit unit.MAX_COLLISION = 200 -- Maximum collision size for a unit (in gameplay constants) ---Used to wrap a wc3 unit userdata value to a Unit table. Eg.: unit.wrap(GetTriggerUnit()) ---@param whichUnit unit ---@return Unit function unit.wrap(whichUnit) if whichUnit then local handleId = GetHandleId(whichUnit) if allUnits[handleId] then return allUnits[handleId] else local table = {} allUnits[handleId] = table setmetatable(table, Unit) table.handle = whichUnit return table end end end ---@param whichPlayer Player ---@param typeId string ---@param x number ---@param y number ---@param facingDeg number ---@return Unit function unit.create(whichPlayer, typeId, x, y, facingDeg) return unit.wrap(CreateUnit(whichPlayer.handle, FourCC(typeId), x, y, facingDeg)) end local function toRawCode(int) local res = '' for i = 1, 4 do res = string.char(math.floor(int % 256)) .. res int = int / 256 end return res end local function forEach(grp) return function() local u = FirstOfGroup(grp) assert(not u or GetUnitTypeId(u) ~= 0, "Invalid unit when populating table. Did you remove a unit from the game in the filter function?") GroupRemoveUnit(grp, u) return u end end -- Warning: removing a unit that was enumerated into the group from the game in the filter func will break the iterator. ---@return table<Unit,boolean> local function EnumGroup(filter, enumFunc, ...) local result = {} local grp = CreateGroup() enumFunc(grp, ...) if filter then for u in forEach(grp) do u = unit.wrap(u) if filter(u) then result[u] = true end end else for u in forEach(grp) do result[unit.wrap(u)] = true end end DestroyGroup(grp) return result end ---@param whichPlayer Player ---@param filter fun(u:Unit):boolean ---@return fun():Unit,boolean function unit.enumOfPlayer(whichPlayer, filter) return EnumGroup(filter, GroupEnumUnitsOfPlayer, whichPlayer.handle, nil) end ---@param filter fun(u:Unit):boolean ---@param whichRect Rect function unit.enumInRect(whichRect, filter) return EnumGroup(filter, GroupEnumUnitsInRect, whichRect.handle, nil) end ---@param whichRect Rect ---@param filter fun(u:Unit):boolean function unit.enumInRectCounted(whichRect, filter, countLimit) return EnumGroup(filter, GroupEnumUnitsInRectCounted, whichRect.handle, nil, countLimit) end ---@param filter fun(u:Unit):boolean function unit.enumInRange(x, y, radius, filter) return EnumGroup(filter, GroupEnumUnitsInRange, x, y, nil) end ---@param filter fun(u:Unit):boolean function unit.enumInRangeCounted(x, y, radius, filter, countLimit) return EnumGroup(filter, GroupEnumUnitsInRangeCounted, x, y, nil, countLimit) end ---Returns a list with ---@param filter fun(u:Unit):boolean function unit.enumInCollisionRange(x, y, radius, filter) if filter then return unit.enumInRange(x, y, radius+unit.MAX_COLLISION, function(u) return u:inRangeXY(x, y, radius) and filter(u) end) else return unit.enumInRange(x, y, radius+unit.MAX_COLLISION, function(u) return u:inRangeXY(x, y, radius) end) end end ---@param whichPlayer Player ---@param filter fun(u:Unit):boolean function unit.enumSelected(whichPlayer, filter) return EnumGroup(filter, GroupEnumUnitsSelected, whichPlayer.handle, nil) end -- -------------------------- function Unit:getTypeId() return toRawCode(GetUnitTypeId(self.handle)) end function Unit:kill() KillUnit(self.handle) end function Unit:remove() RemoveUnit(self.handle) -- self.handle = nil end function Unit:show(boolShow) ShowUnit(self.handle, boolShow) end --SetUnitState function Unit:setX(x) SetUnitX(self.handle, x) end function Unit:setY(y) SetUnitY(self.handle, y) end function Unit:setPosition(x, y) SetUnitPosition(self.handle, x, y) end function Unit:getX() return GetUnitX(self.handle) end function Unit:getY() return GetUnitY(self.handle) end function Unit:setPosition(x, y) SetUnitPosition(self.handle, x, y) end -- SetUnitPositionLoc function Unit:setFacing(facingAngleDeg) SetUnitFacing(self.handle, facingAngleDeg) end -- SetUnitFacingTimed -- SetUnitMoveSpeed -- SetUnitFlyHeight -- SetUnitTurnSpeed -- SetUnitPropWindow -- SetUnitAcquireRange -- SetUnitCreepGuard function Unit:addAbility(strAbilCode) UnitAddAbility(self.handle, FourCC(strAbilCode)) end function Unit:removeAbility(strAbilCode) UnitRemoveAbility(self.handle, FourCC(strAbilCode)) end function Unit:getAbilityLevel(strAbilCode) return GetUnitAbilityLevel(self.handle, FourCC(strAbilCode)) end function Unit:getOwner() return player.wrap(GetOwningPlayer(self.handle)) end function Unit:getCollisionSize() return BlzGetUnitCollisionSize(self.handle) end function Unit:inRangeOf(otherUnit, distance) return IsUnitInRange(self.handle, otherUnit.handle, distance) end function Unit:inRangeXY(x, y, distance) return IsUnitInRangeXY(self.handle, x, y, distance) end function Unit:issuePointOrder(strOrder, x, y) return IssuePointOrder(self.handle, strOrder, x, y) end function Unit:setScale(scale) SetUnitScale(self.handle, scale, scale, scale) end function Unit:setVertexColor(intRed, intGreen, intBlue, intAlpha) SetUnitVertexColor(self.handle, intRed, intGreen, intBlue, intAlpha) end function Unit:setColor(playerColor) SetUnitColor(self.handle, playerColor.handle) end function Unit:setTimeScale(scale) SetUnitTimeScale(self.handle, scale) end function Unit:addAnimationProperties(properties, boolAdd) AddUnitAnimationProperties(self.handle, properties, boolAdd) end function Unit:isHero() return IsUnitType(self.handle, UNIT_TYPE_HERO) end function Unit:isStructure() return IsUnitType(self.handle, UNIT_TYPE_STRUCTURE) end function Unit:getProperName() return GetHeroProperName(self.handle) end function Unit:setProperName(name) BlzSetHeroProperName(self.handle, name) end function Unit:getName() return GetUnitName(self.handle) end function Unit:setName(name) BlzSetUnitName(self.handle, name) end
--[[ MIT License Copyright (c) 2019 SotADB.info Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] function ShroudOnStart() infosotadbLTitem = nil infosotadbLTWinner = {} infosotadbLTCount = {} infosotadbLToutput = "" infosotadbLTX = 0 infosotadbLTY = 0 end function ShroudOnConsoleInput(type, src, msg) if type == 'Loot' then if string.match(msg, 'Roll results for .+ %(') then infosotadbLTitem = string.match(msg, 'Roll results for (.+) %(') end if string.match(msg, ': .+ WON') then local temp = string.format('%s: %s', string.match(msg, ': (.+) WON'), infosotadbLTitem) local i for i=0, #infosotadbLTWinner, 1 do if infosotadbLTWinner[i] == temp then infosotadbLTCount[i] = infosotadbLTCount[i] + 1 return end end infosotadbLTWinner[#infosotadbLTWinner+1] = temp infosotadbLTCount[#infosotadbLTWinner] = 1 end end end function ShroudOnUpdate() if ShroudIsCharacterSheetActive() then infosotadbLTX, infosotadbLTY = ShroudGetCharacterSheetPosition() infosotadbLTX = infosotadbLTX - 860 -- BUG infosotadbLToutput = "Loot Rolls\n" for i, k in ipairs(infosotadbLTWinner) do infosotadbLToutput = string.format("%s%s: %d\n", infosotadbLToutput, k, infosotadbLTCount[i]) end end end function ShroudOnGUI() if ShroudIsCharacterSheetActive() then ShroudGUILabel(infosotadbLTX+265, infosotadbLTY, 300, 600, infosotadbLToutput) end end
-- This script template has each of the script entry point functions. -- They are described in detail in VR-Forces Configuration Guide. -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Global Variables. Global variables get saved when a scenario gets checkpointed. -- They get re-initialized when a checkpointed scenario is loaded. -- Task Parameters Available in Script -- taskParameters.naval_mine Type: String (resource name) -- taskParameters.mine_depth Type: Real Unit: meters -- taskParameters.arm_time Type: Integer Unit: seconds - Amount of time after reaching final depth to arm the mine mySubtaskId = -1 myState = 0 myCanDrop = false myMovementSystem = nil -- Called when the task first starts. Never called again. function init() -- Set the tick period for this script. vrf:setTickPeriod(-1) myMovementSystem = this:getSystem("movement") if not myMovementSystem then vrf:endTask(false) end end -- Called to get the location to drop the mine from function sonobuoyDropLocation() dropLocation = this:getLocation3D() dropLocation:setAlt(0) return dropLocation end -- Called to drop a mine. If no mines left to drop after the mine is dropped task is complete function deploySonobuoy(location) vrf:startSubtask("Deploy_Sonobuoy", {sonarType = taskParameters.sonarType, sonarDepth = taskParameters.sonarDepth}) myLastDropPoint = this:getLocation3D() end function distance2D(point1, point2) point1:setAlt(0) point2:setAlt(0) return point1:distanceToLocation3D(point2) end function sonobuoyResourceName() local resources = this:getResourceNames() for i, r in ipairs(resources) do if (string.find(r, "|sonobuoy")) then return r end end return nil end -- Called each tick while this task is active. function tick() local bufferZone = 20 -- endTask() causes the current task to end once the current tick is complete. tick() will not be called again. -- Wrap it in an appropriate test for completion of the task. if (mySubtaskId == -1) then mySubtaskId = vrf:startSubtask("move-along", {route=taskParameters.route}) myState = 1 elseif (vrf:isSubtaskRunning(mySubtaskId)) then -- Don't start dropping until we are near the drop point start' if (this:getResourceAmounts(sonobuoyResourceName()) == 0) then printWarn("Out of sonobuoy resources. Stopping task") vrf:endTask(false) elseif (not myCanDrop) then local nextRouteVertex = myMovementSystem:getAttribute( "next-route-point-index") if (nextRouteVertex > 0) then myCanDrop = true deploySonobuoy(sonobuoyDropLocation()) end else local distance = distance2D(myLastDropPoint, this:getLocation3D()) if (distance > taskParameters.sonobuoySpacing) then deploySonobuoy(sonobuoyDropLocation()) end end elseif (vrf:isSubtaskComplete(mySubtaskId)) then vrf:endTask(true) end end -- Called when this task is being suspended, likely by a reaction activating. function suspend() -- By default, halt all subtasks and other entity tasks started by this task when suspending. vrf:stopAllSubtasks() vrf:stopAllTasks() end -- Called when this task is being resumed after being suspended. function resume() -- By default, simply call init() to start the task over. init() end -- Called immediately before a scenario checkpoint is saved when -- this task is active. -- It is typically not necessary to add code to this function. function saveState() end -- Called immediately after a scenario checkpoint is loaded in which -- this task is active. -- It is typically not necessary to add code to this function. function loadState() end -- Called when this task is ending, for any reason. -- It is typically not necessary to add code to this function. function shutdown() end -- Called whenever the entity receives a text report message while -- this task is active. -- message is the message text string. -- sender is the SimObject which sent the message. function receiveTextMessage(message, sender) end
local colors = { cterm = { red = 196, green = 46, yellow = 226, blue = 45, magenta = 5, cyan = 45, white = 255, }, gui = { red = '#E080A0', green = '#80E080', yellow = '#F0F090', blue = '#50B0F0', magenta = '#8080E0', cyan = '#222222', white = '#F0F0F0', bg = '#3B4252', } } return colors
local Tier1ArmorVendorID = 43479 local Tier1ArmorLoop = { [1] = {16866,16868,16865,16863,16867}, -- Warrior -- [2] = {16854,16856,16853,16860,16855}, -- Paladin -- [3] = {16846,16848,16845,16852,16847}, -- Hunter -- [4] = {16821,16823,16820,16826,16822}, -- Rogue -- [5] = {16813,16816,16815,16812,16814}, -- Priest -- [7] = {16842,16844,16841,16839,16843}, -- Shaman -- [8] = {16795,16797,16798,16801,16796}, -- Mage -- [9] = {16808,16807,16809,16805,16810}, -- Warlock -- [11] = {16834,16836,16833,16831,16835}, -- Druid -- } local function Tier1ArmorVendor_OnGossip(event, player, object) player:GossipMenuAddItem(10, "R\195\188stung Kaufen", 0, 1) player:GossipSendMenu(99, object) end local function Tier1ArmorVendor_OnSelect(event, player, object, sender, intid, code, menuid) VendorRemoveAllItems(Tier1ArmorVendorID) local Class = player:GetClass() if (intid == 1) then if (Class and Tier1ArmorLoop[Class]) then for _, T1ArmorPerClass in ipairs (Tier1ArmorLoop[Class]) do AddVendorItem(Tier1ArmorVendorID, T1ArmorPerClass, 0, 0, 0) end player:SendListInventory(object) end end end RegisterCreatureGossipEvent(Tier1ArmorVendorID, 1, Tier1ArmorVendor_OnGossip) RegisterCreatureGossipEvent(Tier1ArmorVendorID, 2, Tier1ArmorVendor_OnSelect) ----------------------------------- --------[[Made by PassCody]]------- --[[Made for KappaLounge Repack]]-- -----------------------------------
name = "Dev Tools" version = "0.8.0-alpha" description = [[Version: ]] .. version .. "\n\n" .. [[An extendable mod, that simplifies the most common tasks for both developers and testers ]] .. [[as an alternative to debugkeys.]] .. "\n\n" .. [[v]] .. version .. [[:]] .. "\n" .. [[- Added support for args in the toggle checkbox option]] .. "\n" .. [[- Migrated to the new mod SDK]] .. "\n" .. [[- Renamed and restructured some classes]] author = "Depressed DST Modders" api_version = 10 forumthread = "" -- We need to load our mod with a higher priority than other, so we use a non-default value (0). The -- "2220506640" part is the workshop ID of this mod, so other mods had enough "space for manoeuvre". priority = 1.02220506640 icon = "modicon.tex" icon_atlas = "modicon.xml" all_clients_require_mod = false client_only_mod = true dont_starve_compatible = false dst_compatible = true reign_of_giants_compatible = false shipwrecked_compatible = false folder_name = folder_name or "dst-mod-dev-tools" if not folder_name:find("workshop-") then name = name .. " (dev)" end -- -- Configuration -- local function AddConfig(name, label, hover, options, default) return { label = label, name = name, options = options, default = default, hover = hover or "" } end local function AddBooleanConfig(name, label, hover, default) default = default == nil and true or default return AddConfig(name, label, hover, { { description = "Enabled", data = true }, { description = "Disabled", data = false }, }, default) end local function AddKeyListConfig(name, label, hover, default) if default == nil then default = false end -- helpers local function AddDisabled(t) t[#t + 1] = { description = "Disabled", data = false } end local function AddKey(t, key) t[#t + 1] = { description = key, data = "KEY_" .. key:gsub(" ", ""):upper() } end local function AddKeysByName(t, names) for i = 1, #names do AddKey(t, names[i]) end end local function AddAlphabetKeys(t) local string = "" for i = 1, 26 do AddKey(t, string.char(64 + i)) end end local function AddTypewriterNumberKeys(t) for i = 1, 10 do AddKey(t, "" .. (i % 10)) end end local function AddTypewriterModifierKeys(t) AddKeysByName(t, { "Alt", "Ctrl", "Shift" }) end local function AddTypewriterKeys(t) AddAlphabetKeys(t) AddKeysByName(t, { "Slash", "Backslash", "Period", "Semicolon", "Left Bracket", "Right Bracket", }) AddKeysByName(t, { "Space", "Tab", "Backspace", "Enter" }) AddTypewriterModifierKeys(t) AddKeysByName(t, { "Tilde" }) AddTypewriterNumberKeys(t) AddKeysByName(t, { "Minus", "Equals" }) end local function AddFunctionKeys(t) for i = 1, 12 do AddKey(t, "F" .. i) end end local function AddArrowKeys(t) AddKeysByName(t, { "Up", "Down", "Left", "Right" }) end local function AddNavigationKeys(t) AddKeysByName(t, { "Insert", "Delete", "Home", "End", "Page Up", "Page Down" }) end -- key list local list = {} AddDisabled(list) AddArrowKeys(list) AddFunctionKeys(list) AddTypewriterKeys(list) AddNavigationKeys(list) AddKeysByName(list, { "Escape", "Pause", "Print" }) return AddConfig(name, label, hover, list, default) end local function AddNumbersConfig(name, label, hover, first, last, default) local list = {} for i = first, last do list[i - first + 1] = { description = i, data = i } end return AddConfig(name, label, hover, list, default) end local function AddSection(title) return AddConfig("", title, nil, { { description = "", data = 0 } }, 0) end configuration_options = { -- -- Keybinds -- AddSection("Keybinds"), AddKeyListConfig( "key_toggle_tools", "Toggle tools key", "Key used for toggling the tools", "KEY_RIGHTBRACKET" ), AddKeyListConfig( "key_switch_data", "Switch data key", "Key used for switching data sidebar", "KEY_X" ), AddKeyListConfig( "key_select", "Select key", "Key used for selecting between menu and data sidebar", "KEY_TAB" ), AddKeyListConfig( "key_movement_prediction", "Movement prediction key", "Key used for toggling the movement prediction" ), AddKeyListConfig( "key_pause", "Pause key", "Key used for pausing the game", "KEY_P" ), AddKeyListConfig( "key_god_mode", "God mode key", "Key used for toggling god mode", "KEY_G" ), AddKeyListConfig( "key_teleport", "Teleport key", "Key used for (fake) teleporting on mouse position", "KEY_T" ), AddKeyListConfig( "key_select_entity", "Select entity key", "Key used for selecting an entity under mouse", "KEY_Z" ), AddKeyListConfig( "key_time_scale_increase", "Increase time scale key", [[Key used to speed up the time scale.]] .. "\n" .. [[Hold down the Shift key to scale up to the maximum]], "KEY_PAGEUP" ), AddKeyListConfig( "key_time_scale_decrease", "Decrease time scale key", [[Key used to slow down the time scale.]] .. "\n" .. [[Hold down the Shift key to scale down to the minimum]], "KEY_PAGEDOWN" ), AddKeyListConfig( "key_time_scale_default", "Default time scale key", "Key used to restore the default time scale", "KEY_HOME" ), AddConfig( "reset_combination", "Reset combination", [[Key combination used for reloading all mods.]] .. "\n" .. [[Will restart the game/server to the latest savepoint]], { { description = "Disabled", hover = "Reset will be completely disabled", data = false }, { description = "Ctrl + R", data = "ctrl_r" }, { description = "Alt + R", data = "alt_r", }, { description = "Shift + R", data = "shift_r" }, }, "ctrl_r" ), -- -- General -- AddSection("General"), AddBooleanConfig( "default_god_mode", "Default god mode", "When enabled, enables god mode by default.\nCan be changed inside in-game menu" ), AddBooleanConfig( "default_free_crafting", "Default free crafting mode", "When enabled, enables crafting mode by default.\nCan be changed inside in-game menu" ), AddSection("Labels"), AddConfig( "default_labels_font", "Default labels font", "Which labels font should be used by default?\nCan be changed inside in-game menu", { { description = "Belisa... (50)", hover = "Belisa Plumilla Manual (50)", data = "UIFONT", }, { description = "Belisa... (100)", hover = "Belisa Plumilla Manual (100)", data = "TITLEFONT", }, { description = "Belisa... (Button)", hover = "Belisa Plumilla Manual (Button)", data = "BUTTONFONT", }, { description = "Belisa... (Talking)", hover = "Belisa Plumilla Manual (Talking)", data = "TALKINGFONT", }, { description = "Bellefair", hover = "Bellefair", data = "CHATFONT", }, { description = "Bellefair Outline", hover = "Bellefair Outline", data = "CHATFONT_OUTLINE", }, { description = "Hammerhead", hover = "Hammerhead", data = "HEADERFONT", }, { description = "Henny Penny", hover = "Henny Penny (Wormwood)", data = "TALKINGFONT_WORMWOOD", }, { description = "Mountains of...", hover = "Mountains of Christmas (Hermit)", data = "TALKINGFONT_HERMIT", }, { description = "Open Sans", hover = "Open Sans", data = "DIALOGFONT", }, { description = "PT Mono", hover = "PT Mono", data = "CODEFONT", }, { description = "Spirequal Light", hover = "Spirequal Light", data = "NEWFONT", }, { description = "Spirequal... S", hover = "Spirequal Light (Small)", data = "NEWFONT_SMALL", }, { description = "Spirequal... O", hover = "Spirequal Light Outline", data = "NEWFONT_OUTLINE", }, { description = "Spirequal... O/S", hover = "Spirequal Light Outline (Small)", data = "NEWFONT_OUTLINE_SMALL", }, { description = "Stint Ultra...", hover = "Stint Ultra Condensed", data = "BODYTEXTFONT", }, { description = "Stint Ultra... S", hover = "Stint Ultra Condensed (Small)", data = "SMALLNUMBERFONT", }, }, "BODYTEXTFONT" ), AddNumbersConfig( "default_labels_font_size", "Default labels font size", "Which labels font size should be used by default?\nCan be changed inside in-game menu", 6, 32, 18 ), AddBooleanConfig( "default_selected_labels", "Default selected labels", "When enabled, show selected labels by default.\nCan be changed inside in-game menu" ), AddBooleanConfig( "default_username_labels", "Default username labels", "When enabled, shows username labels by default.\nCan be changed inside in-game menu" ), AddConfig( "default_username_labels_mode", "Default username labels mode", "Which username labels mode should be used by default?\nCan be changed inside in-game menu", { { description = "Default", hover = "Default: white username labels", data = "default", }, { description = "Coloured", hover = "Coloured: coloured username labels", data = "coloured", }, }, "default" ), -- -- Player Vision -- AddSection("Player vision"), AddBooleanConfig( "default_forced_hud_visibility", "Default forced HUD visibility", [[When enabled, forces HUD visibility when "playerhuddirty" event occurs.]] .. "\n" .. [[Can be changed inside in-game menu]] ), AddBooleanConfig( "default_forced_unfading", "Default forced unfading", [[When enabled, forces unfading when "playerfadedirty" event occurs.]] .. "\n" .. [[Can be changed inside in-game menu]] ), -- -- Other -- AddSection("Other"), AddBooleanConfig( "default_mod_warning", "Disable mod warning", "When enabled, disables the mod warning when starting the game" ), AddBooleanConfig( "hide_changelog", "Hide changelog", [[When enabled, hides the changelog in the mod description.]] .. "\n" .. [[Mods should be reloaded to take effect]] ), AddBooleanConfig( "debug", "Debug", "When enabled, displays debug data in the console.\nUsed mainly for development", false ), }
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ##### ### ###### ------------------------------ -------------------------------- -------------------------------- ----------------------- An Object Request Broker in Lua ------------------------ -------------------------------------------------------------------------------- -- Project: OiL - ORB in Lua -- -- Release: 0.4 -- -- Title : Server-side LuDO Protocol -- -- Authors: Renato Maia <maia@inf.puc-rio.br> -- -------------------------------------------------------------------------------- -- listener:Facet -- configs:table default([configs:table]) -- channel:object, [except:table] getchannel(configs:table) -- request:object, [except:table], [requests:table] = getrequest(channel:object, [probe:boolean]) -- -- channels:Receptacle -- channel:object retieve(configs:table) -- configs:table default([configs:table]) -- -- codec:Receptacle -- encoder:object encoder() -- decoder:object decoder(stream:string) -------------------------------------------------------------------------------- local select = select local unpack = unpack local oo = require "oil.oo" local Exception = require "oil.Exception" --[[VERBOSE]] local verbose = require "oil.verbose" module("oil.ludo.Listener", oo.class) oo.class(_M, Messenger) context = false -------------------------------------------------------------------------------- function getchannel(self, configs, probe) return self.context.channels:retrieve(configs, probe) end -------------------------------------------------------------------------------- function disposechannels(self, configs) --[[VERBOSE]] verbose:listen("closing all channels with configs ",configs) local channels = self.context.channels return channels:dispose(configs) end -------------------------------------------------------------------------------- function disposechannel(self, channel) --[[VERBOSE]] verbose:listen "close channel" return channel:close() end -------------------------------------------------------------------------------- local Request = oo.class() function Request:__init(requestid, objectkey, operation, ...) --[[VERBOSE]] verbose:listen("got request for request ",requestid," to object ",objectkey,":",operation) self = oo.rawnew(self, {...}) self.requestid = requestid self.object_key = objectkey self.operation = operation self.paramcount = select("#", ...) return self end function Request:params() return unpack(self, 1, self.paramcount) end function getrequest(self, channel, probe) local result, except = false if not probe or channel:probe() then result, except = channel:receive() if result then local decoder = self.context.codec:decoder(result:gsub("%z", "\n")) result = Request(decoder:get()) channel[result.requestid] = result else if except == "closed" then channel:close() end except = Exception{ reason = except, message = "channel closed", channel = channel, } end end return result, except end -------------------------------------------------------------------------------- function sendreply(self, channel, request, ...) --[[VERBOSE]] verbose:listen("got reply for request ",request.requestid," to object ",request.object_key,":",request.operation) local encoder = self.context.codec:encoder() encoder:put(request.requestid, ...) channel[request.requestid] = nil local result, except = channel:send(encoder:__tostring():gsub("\n", "\0").."\n") if not result then if except == "closed" then channel:close() end except = Exception{ reason = except, message = "channel closed", channel = channel, } end return result, except end -------------------------------------------------------------------------------- function default(self, configs) return self.context.channels:default(configs) end
pfUI:RegisterModule("gui", function () local default_border = tonumber(pfUI_config.appearance.border.default) pfUI.gui = CreateFrame("Frame",nil,UIParent) pfUI.gui:RegisterEvent("PLAYER_ENTERING_WORLD") pfUI.gui:SetFrameStrata("DIALOG") pfUI.gui:SetWidth(500) pfUI.gui:SetHeight(500) pfUI.gui:Hide() pfUI.utils:CreateBackdrop(pfUI.gui, nil, nil, true) pfUI.gui:SetPoint("CENTER",0,0) pfUI.gui:SetMovable(true) pfUI.gui:EnableMouse(true) pfUI.gui:SetScript("OnMouseDown",function() pfUI.gui:StartMoving() end) pfUI.gui:SetScript("OnMouseUp",function() pfUI.gui:StopMovingOrSizing() end) function pfUI.gui:SaveScale(frame, scale) frame:SetScale(scale) if not pfUI_config.position[frame:GetName()] then pfUI_config.position[frame:GetName()] = {} end pfUI_config.position[frame:GetName()]["scale"] = scale frame.drag.text:SetText("Scale: " .. scale) frame.drag.text:SetAlpha(1) frame.drag:SetScript("OnUpdate", function() this.text:SetAlpha(this.text:GetAlpha() -0.05) if this.text:GetAlpha() < 0.1 then this.text:SetText(strsub(this:GetParent():GetName(),3)) this.text:SetAlpha(1) this:SetScript("OnUpdate", function() return end) end end) end pfUI.gui.reloadDialog = CreateFrame("Frame","pfReloadDiag",UIParent) pfUI.gui.reloadDialog:SetFrameStrata("TOOLTIP") pfUI.gui.reloadDialog:SetWidth(300) pfUI.gui.reloadDialog:SetHeight(100) pfUI.gui.reloadDialog:Hide() tinsert(UISpecialFrames, "pfReloadDiag") pfUI.utils:CreateBackdrop(pfUI.gui.reloadDialog) pfUI.gui.reloadDialog:SetPoint("CENTER",0,0) pfUI.gui.reloadDialog.text = pfUI.gui.reloadDialog:CreateFontString("Status", "LOW", "GameFontNormal") pfUI.gui.reloadDialog.text:SetFontObject(GameFontWhite) pfUI.gui.reloadDialog.text:SetPoint("TOP", 0, -15) pfUI.gui.reloadDialog.text:SetText("Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?") pfUI.gui.reloadDialog.yes = CreateFrame("Button", "pfReloadYes", pfUI.gui.reloadDialog, "UIPanelButtonTemplate") pfUI.utils:CreateBackdrop(pfUI.gui.reloadDialog.yes, nil, true) pfUI.gui.reloadDialog.yes:SetWidth(100) pfUI.gui.reloadDialog.yes:SetHeight(20) pfUI.gui.reloadDialog.yes:SetPoint("BOTTOMLEFT", 20,15) pfUI.gui.reloadDialog.yes:SetText("Yes") pfUI.gui.reloadDialog.yes:SetScript("OnClick", function() pfUI.gui.settingChanged = nil ReloadUI() end) pfUI.gui.reloadDialog.no = CreateFrame("Button", "pfReloadNo", pfUI.gui.reloadDialog, "UIPanelButtonTemplate") pfUI.gui.reloadDialog.no:SetWidth(100) pfUI.gui.reloadDialog.no:SetHeight(20) pfUI.gui.reloadDialog.no:SetPoint("BOTTOMRIGHT", -20,15) pfUI.gui.reloadDialog.no:SetText("No") pfUI.gui.reloadDialog.no:SetScript("OnClick", function() pfUI.gui.reloadDialog:Hide() end) function pfUI.gui.UnlockFrames() if not pfUI.gitter then pfUI.gitter = CreateFrame("Button", nil, UIParent) pfUI.gitter:SetAllPoints(WorldFrame) pfUI.gitter:SetFrameStrata("BACKGROUND") pfUI.gitter:SetScript("OnClick", function() pfUI.gui.UnlockFrames() end) local size = 1 local width = GetScreenWidth() local ratio = width / GetScreenHeight() local height = GetScreenHeight() * ratio local wStep = width / 128 local hStep = height / 128 for i = 0, 128 do local tx = pfUI.gitter:CreateTexture(nil, 'BACKGROUND') if i == 128 / 2 then tx:SetTexture(.1, .5, .4) else tx:SetTexture(0, 0, 0) end tx:SetPoint("TOPLEFT", pfUI.gitter, "TOPLEFT", i*wStep - (size/2), 0) tx:SetPoint('BOTTOMRIGHT', pfUI.gitter, 'BOTTOMLEFT', i*wStep + (size/2), 0) end local height = GetScreenHeight() for i = 0, 128 do local tx = pfUI.gitter:CreateTexture(nil, 'BACKGROUND') tx:SetTexture(.1, .5, .4) tx:SetPoint("TOPLEFT", pfUI.gitter, "TOPLEFT", 0, -(height/2) + (size/2)) tx:SetPoint('BOTTOMRIGHT', pfUI.gitter, 'TOPRIGHT', 0, -(height/2 + size/2)) end for i = 1, floor((height/2)/hStep) do local tx = pfUI.gitter:CreateTexture(nil, 'BACKGROUND') tx:SetTexture(0, 0, 0) tx:SetPoint("TOPLEFT", pfUI.gitter, "TOPLEFT", 0, -(height/2+i*hStep) + (size/2)) tx:SetPoint('BOTTOMRIGHT', pfUI.gitter, 'TOPRIGHT', 0, -(height/2+i*hStep + size/2)) tx = pfUI.gitter:CreateTexture(nil, 'BACKGROUND') tx:SetTexture(0, 0, 0) tx:SetPoint("TOPLEFT", pfUI.gitter, "TOPLEFT", 0, -(height/2-i*hStep) + (size/2)) tx:SetPoint('BOTTOMRIGHT', pfUI.gitter, 'TOPRIGHT', 0, -(height/2-i*hStep + size/2)) end pfUI.gitter:Hide() end pfUI.info:ShowInfoBox("|cff33ffccUnlock Mode|r\n" .. "This mode allows you to move frames by dragging them using the mouse cursor. " .. "Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), " .. "hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu.", 15, pfUI.gitter) if pfUI.gitter:IsShown() then pfUI.gitter:Hide() pfUI.gui:Show() else pfUI.gitter:Show() pfUI.gui:Hide() end for _,frame in pairs(pfUI.movables) do local frame = getglobal(frame) if frame then if not frame:IsShown() then frame.hideLater = true end if not frame.drag then frame.drag = CreateFrame("Frame", nil, frame) frame.drag:SetAllPoints(frame) frame.drag:SetFrameStrata("DIALOG") pfUI.utils:CreateBackdrop(frame.drag, nil, nil, true) frame.drag.backdrop:SetBackdropBorderColor(.2, 1, .8) frame.drag:EnableMouseWheel(1) frame.drag.text = frame.drag:CreateFontString("Status", "LOW", "GameFontNormal") frame.drag.text:SetFont("Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_default .. ".ttf", pfUI_config.global.font_size, "OUTLINE") frame.drag.text:ClearAllPoints() frame.drag.text:SetAllPoints(frame.drag) frame.drag.text:SetPoint("CENTER", 0, 0) frame.drag.text:SetFontObject(GameFontWhite) frame.drag.text:SetText(strsub(frame:GetName(),3)) frame.drag:SetAlpha(1) frame.drag:SetScript("OnMouseWheel", function() local scale = round(frame:GetScale() + arg1/10, 1) if IsShiftKeyDown() and strsub(frame:GetName(),0,6) == "pfRaid" then for i=1,40 do local frame = getglobal("pfRaid" .. i) pfUI.gui:SaveScale(frame, scale) end elseif IsShiftKeyDown() and strsub(frame:GetName(),0,7) == "pfGroup" then for i=1,4 do local frame = getglobal("pfGroup" .. i) pfUI.gui:SaveScale(frame, scale) end else pfUI.gui:SaveScale(frame, scale) end -- repaint hackfix for panels pfUI.panel.left:SetScale(pfUI.chat.left:GetScale()) pfUI.panel.right:SetScale(pfUI.chat.right:GetScale()) end) end frame.drag:SetScript("OnMouseDown",function() if IsShiftKeyDown() then if strsub(frame:GetName(),0,6) == "pfRaid" then for i=1,40 do local cframe = getglobal("pfRaid" .. i) cframe:StartMoving() cframe:StopMovingOrSizing() cframe.drag.backdrop:SetBackdropBorderColor(1,1,1,1) end end if strsub(frame:GetName(),0,7) == "pfGroup" then for i=1,4 do local cframe = getglobal("pfGroup" .. i) cframe:StartMoving() cframe:StopMovingOrSizing() cframe.drag.backdrop:SetBackdropBorderColor(1,1,1,1) end end _, _, _, xpos, ypos = frame:GetPoint() frame.oldPos = { xpos, ypos } else frame.oldPos = nil end frame.drag.backdrop:SetBackdropBorderColor(1,1,1,1) frame:StartMoving() end) frame.drag:SetScript("OnMouseUp",function() frame:StopMovingOrSizing() _, _, _, xpos, ypos = frame:GetPoint() frame.drag.backdrop:SetBackdropBorderColor(.2,1,.8,1) if frame.oldPos then local diffxpos = frame.oldPos[1] - xpos local diffypos = frame.oldPos[2] - ypos if strsub(frame:GetName(),0,6) == "pfRaid" then for i=1,40 do local cframe = getglobal("pfRaid" .. i) cframe.drag.backdrop:SetBackdropBorderColor(.2,1,.8,1) if cframe:GetName() ~= frame:GetName() then local _, _, _, xpos, ypos = cframe:GetPoint() cframe:SetPoint("TOPLEFT", xpos - diffxpos, ypos - diffypos) local _, _, _, xpos, ypos = cframe:GetPoint() if not pfUI_config.position[cframe:GetName()] then pfUI_config.position[cframe:GetName()] = {} end pfUI_config.position[cframe:GetName()]["xpos"] = xpos pfUI_config.position[cframe:GetName()]["ypos"] = ypos end end elseif strsub(frame:GetName(),0,7) == "pfGroup" then for i=1,4 do local cframe = getglobal("pfGroup" .. i) cframe.drag.backdrop:SetBackdropBorderColor(.2,1,.8,1) if cframe:GetName() ~= frame:GetName() then local _, _, _, xpos, ypos = cframe:GetPoint() cframe:SetPoint("TOPLEFT", xpos - diffxpos, ypos - diffypos) local _, _, _, xpos, ypos = cframe:GetPoint() if not pfUI_config.position[cframe:GetName()] then pfUI_config.position[cframe:GetName()] = {} end pfUI_config.position[cframe:GetName()]["xpos"] = xpos pfUI_config.position[cframe:GetName()]["ypos"] = ypos end end end end if not pfUI_config.position[frame:GetName()] then pfUI_config.position[frame:GetName()] = {} end pfUI_config.position[frame:GetName()]["xpos"] = xpos pfUI_config.position[frame:GetName()]["ypos"] = ypos end) if pfUI.gitter:IsShown() then frame:SetMovable(true) frame.drag:EnableMouse(true) frame.drag:Show() frame:Show() else frame:SetMovable(false) frame.drag:EnableMouse(false) frame.drag:Hide() if frame.hideLater == true then frame:Hide() end end end end end function pfUI.gui:SwitchTab(frame) local elements = { pfUI.gui.global, pfUI.gui.appearance, pfUI.gui.modules, pfUI.gui.uf, pfUI.gui.bar, pfUI.gui.panel, pfUI.gui.tooltip, pfUI.gui.castbar, pfUI.gui.thirdparty, pfUI.gui.chat, pfUI.gui.nameplates, } for _, hide in pairs(elements) do hide:Hide() pfUI.utils:CreateBackdrop(hide.switch, nil, true) end pfUI.gui.scroll:SetScrollChild(frame) pfUI.gui.scroll:UpdateScrollState() pfUI.gui.scroll:SetVerticalScroll(0) pfUI.utils:CreateBackdrop(frame.switch, nil, true) frame.switch:SetBackdropBorderColor(.2,1,.8) frame:Show() end function pfUI.gui:CreateConfigTab(text, bottom, func) -- automatically place buttons if not bottom then if not pfUI.gui.tabTop then pfUI.gui.tabTop = 0 else pfUI.gui.tabTop = pfUI.gui.tabTop + 1 end else if not pfUI.gui.tabBottom then pfUI.gui.tabBottom = 0 else pfUI.gui.tabBottom = pfUI.gui.tabBottom + 1 end end local frame = CreateFrame("Frame", nil, pfUI.gui) frame:SetWidth(pfUI.gui:GetWidth() - 3*default_border - 100) frame:SetHeight(100) frame.switch = CreateFrame("Button", nil, pfUI.gui) frame.switch:ClearAllPoints() frame.switch:SetWidth(100) frame.switch:SetHeight(22) if bottom then frame.switch:SetPoint("BOTTOMLEFT", default_border, pfUI.gui.tabBottom * (22 + default_border) + default_border) else frame.switch:SetPoint("TOPLEFT", default_border, -pfUI.gui.tabTop* (22 + default_border) -default_border) end pfUI.utils:CreateBackdrop(frame.switch, nil, true) frame.switch.text = frame.switch:CreateFontString("Status", "LOW", "GameFontNormal") frame.switch.text:SetFont("Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_default .. ".ttf", pfUI_config.global.font_size, "OUTLINE") frame.switch.text:SetAllPoints(frame.switch) frame.switch.text:SetPoint("CENTER", 0, 0) frame.switch.text:SetFontObject(GameFontWhite) frame.switch.text:SetText(text) -- replace by user defined function if not func then frame.switch:SetScript("OnClick", function() pfUI.gui:SwitchTab(frame) end) else frame.switch:SetScript("OnClick", func) end -- do not show title on bottom buttons if not bottom and not func then frame.title = frame:CreateFontString("Status", "LOW", "GameFontNormal") frame.title:SetFont("Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_default .. ".ttf", pfUI_config.global.font_size + 2, "OUTLINE") frame.title:SetPoint("TOP", 0, -10) frame.title:SetTextColor(.2,1,.8) frame.title:SetText(text) end return frame end function pfUI.gui:CreateConfig(parent, caption, category, config, widget, values) -- parent object placement if parent.objectCount == nil then parent.objectCount = 1 else parent.objectCount = parent.objectCount + 1 end -- basic frame local frame = CreateFrame("Frame", nil, parent) frame:SetWidth(350) frame:SetHeight(25) frame:SetBackdrop(pfUI.backdrop_underline) frame:SetBackdropBorderColor(1,1,1,.25) frame:SetPoint("TOPLEFT", 25, parent.objectCount * -25) -- caption frame.caption = frame:CreateFontString("Status", "LOW", "GameFontNormal") frame.caption:SetFont("Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_default .. ".ttf", pfUI_config.global.font_size + 2, "OUTLINE") frame.caption:SetAllPoints(frame) frame.caption:SetFontObject(GameFontWhite) frame.caption:SetJustifyH("LEFT") frame.caption:SetText(caption) frame.configCategory = category frame.configEntry = config frame.category = category frame.config = config if widget == "warning" then pfUI.utils:CreateBackdrop(frame, nil, true) frame:SetBackdropBorderColor(1,.5,.5) frame:SetHeight(50) frame:SetPoint("TOPLEFT", 25, parent.objectCount * -35) parent.objectCount = parent.objectCount + 2 frame.caption:SetJustifyH("CENTER") frame.caption:SetJustifyV("CENTER") end -- use text widget (default) if not widget or widget == "text" then -- input field frame.input = CreateFrame("EditBox", nil, frame) frame.input:SetTextColor(.2,1,.8,1) frame.input:SetJustifyH("RIGHT") frame.input:SetWidth(100) frame.input:SetHeight(20) frame.input:SetPoint("TOPRIGHT" , 0, 0) frame.input:SetFontObject(GameFontNormal) frame.input:SetAutoFocus(false) frame.input:SetText(category[config]) frame.input:SetScript("OnEscapePressed", function(self) this:ClearFocus() end) frame.input:SetScript("OnTextChanged", function(self) this:GetParent().category[this:GetParent().config] = this:GetText() end) frame.input:SetScript("OnEditFocusGained", function(self) pfUI.gui.settingChanged = true end) end -- use checkbox widget if widget == "checkbox" then -- input field frame.input = CreateFrame("CheckButton", nil, frame, "UICheckButtonTemplate") frame.input:SetNormalTexture("") frame.input:SetPushedTexture("") frame.input:SetHighlightTexture("") pfUI.utils:CreateBackdrop(frame.input, nil, true) frame.input:SetWidth(14) frame.input:SetHeight(14) frame.input:SetPoint("TOPRIGHT" , 0, -4) frame.input:SetScript("OnClick", function () if this:GetChecked() then this:GetParent().category[this:GetParent().config] = "1" else this:GetParent().category[this:GetParent().config] = "0" end pfUI.gui.settingChanged = true end) if category[config] == "1" then frame.input:SetChecked() end end -- use dropdown widget if widget == "dropdown" and values then if not pfUI.gui.ddc then pfUI.gui.ddc = 1 else pfUI.gui.ddc = pfUI.gui.ddc + 1 end frame.input = CreateFrame("Frame", "pfUIDropDownMenu" .. pfUI.gui.ddc, frame, "UIDropDownMenuTemplate") frame.input:ClearAllPoints() frame.input:SetPoint("TOPRIGHT" , 20, 3) frame.input:Show() frame.input.point = "TOPRIGHT" frame.input.relativePoint = "BOTTOMRIGHT" local function createValues() local info = {} for i, k in pairs(values) do info.text = k info.checked = false info.func = function() UIDropDownMenu_SetSelectedID(frame.input, this:GetID(), 0) if category[config] ~= this:GetText() then pfUI.gui.settingChanged = true category[config] = this:GetText() end end UIDropDownMenu_AddButton(info) if category[config] == k then frame.input.current = i end end end UIDropDownMenu_Initialize(frame.input, createValues) UIDropDownMenu_SetWidth(120, frame.input) UIDropDownMenu_SetButtonWidth(125, frame.input) UIDropDownMenu_JustifyText("RIGHT", frame.input) UIDropDownMenu_SetSelectedID(frame.input, frame.input.current) for i,v in ipairs({frame.input:GetRegions()}) do if v.SetTexture then v:Hide() end if v.SetTextColor then v:SetTextColor(.2,1,.8) end if v.SetBackdrop then pfUI.utils:CreateBackdrop(v) end end end return frame end -- [[ config section ]] -- pfUI.gui.deco = CreateFrame("Frame", nil, pfUI.gui) pfUI.gui.deco:ClearAllPoints() pfUI.gui.deco:SetPoint("TOPLEFT", pfUI.gui, "TOPLEFT", 4*default_border + 100,-2*default_border) pfUI.gui.deco:SetPoint("BOTTOMRIGHT", pfUI.gui, "BOTTOMRIGHT", -2*default_border,2*default_border) pfUI.utils:CreateBackdrop(pfUI.gui.deco, nil, nil, true) pfUI.gui.deco.up = CreateFrame("Frame", nil, pfUI.gui.deco) pfUI.gui.deco.up:SetPoint("TOPLEFT", pfUI.gui.deco, "TOPLEFT", 0,0) pfUI.gui.deco.up:SetPoint("TOPRIGHT", pfUI.gui.deco, "TOPRIGHT", 0,0) pfUI.gui.deco.up:SetHeight(16) pfUI.gui.deco.up:SetAlpha(0) pfUI.gui.deco.up.visible = 0 pfUI.gui.deco.up.texture = pfUI.gui.deco.up:CreateTexture() pfUI.gui.deco.up.texture:SetAllPoints() pfUI.gui.deco.up.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\gradient_up") pfUI.gui.deco.up.texture:SetVertexColor(.2,1,.8) pfUI.gui.deco.up:SetScript("OnUpdate", function() pfUI.gui.scroll:UpdateScrollState() if pfUI.gui.deco.up.visible == 0 and pfUI.gui.deco.up:GetAlpha() > 0 then pfUI.gui.deco.up:SetAlpha(pfUI.gui.deco.up:GetAlpha() - 0.01) elseif pfUI.gui.deco.up.visible == 0 and pfUI.gui.deco.up:GetAlpha() <= 0 then pfUI.gui.deco.up:Hide() end end) pfUI.gui.deco.down = CreateFrame("Frame", nil, pfUI.gui.deco) pfUI.gui.deco.down:SetPoint("BOTTOMLEFT", pfUI.gui.deco, "BOTTOMLEFT", 0,0) pfUI.gui.deco.down:SetPoint("BOTTOMRIGHT", pfUI.gui.deco, "BOTTOMRIGHT", 0,0) pfUI.gui.deco.down:SetHeight(16) pfUI.gui.deco.down:SetAlpha(0) pfUI.gui.deco.down.visible = 0 pfUI.gui.deco.down.texture = pfUI.gui.deco.down:CreateTexture() pfUI.gui.deco.down.texture:SetAllPoints() pfUI.gui.deco.down.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\gradient_down") pfUI.gui.deco.down.texture:SetVertexColor(.2,1,.8) pfUI.gui.deco.down:SetScript("OnUpdate", function() pfUI.gui.scroll:UpdateScrollState() if pfUI.gui.deco.down.visible == 0 and pfUI.gui.deco.down:GetAlpha() > 0 then pfUI.gui.deco.down:SetAlpha(pfUI.gui.deco.down:GetAlpha() - 0.01) elseif pfUI.gui.deco.down.visible == 0 and pfUI.gui.deco.down:GetAlpha() <= 0 then pfUI.gui.deco.down:Hide() end end) pfUI.gui.scroll = CreateFrame("ScrollFrame", nil, pfUI.gui) pfUI.gui.scroll:ClearAllPoints() pfUI.gui.scroll:SetPoint("TOPLEFT", pfUI.gui, "TOPLEFT", 2*default_border + 100,-10) pfUI.gui.scroll:SetPoint("BOTTOMRIGHT", pfUI.gui, "BOTTOMRIGHT", -default_border,10) pfUI.gui.scroll:EnableMouseWheel(1) function pfUI.gui.scroll:UpdateScrollState() local current = ceil(pfUI.gui.scroll:GetVerticalScroll()) local max = ceil(pfUI.gui.scroll:GetVerticalScrollRange() + 10) pfUI.gui.deco.up:Show() pfUI.gui.deco.down:Show() if max > 20 then if current < max then pfUI.gui.deco.down.visible = 1 pfUI.gui.deco.down:Show() pfUI.gui.deco.down:SetAlpha(.2) end if current > 5 then pfUI.gui.deco.up.visible = 1 pfUI.gui.deco.up:Show() pfUI.gui.deco.up:SetAlpha(.2) end if current > max - 5 then pfUI.gui.deco.down.visible = 0 end if current < 5 then pfUI.gui.deco.up.visible = 0 end else pfUI.gui.deco.up.visible = 0 pfUI.gui.deco.down.visible = 0 end end pfUI.gui.scroll:SetScript("OnMouseWheel", function() local current = pfUI.gui.scroll:GetVerticalScroll() local new = current + arg1*-10 local max = pfUI.gui.scroll:GetVerticalScrollRange() + 10 if max > 31 then if new < 0 then pfUI.gui.scroll:SetVerticalScroll(0) pfUI.gui.deco.up:SetAlpha(.3) elseif new > max then pfUI.gui.scroll:SetVerticalScroll(max) pfUI.gui.deco.down:SetAlpha(.3) else pfUI.gui.scroll:SetVerticalScroll(new) end end pfUI.gui.scroll:UpdateScrollState() end) -- global pfUI.gui.global = pfUI.gui:CreateConfigTab("Global Settings") local values = { "arial", "homespun", "diediedie" } pfUI.gui:CreateConfig(pfUI.gui.global, "Fontsize", pfUI_config.global, "font_size") pfUI.gui:CreateConfig(pfUI.gui.global, "Default Font", pfUI_config.global, "font_default", "dropdown", values) pfUI.gui:CreateConfig(pfUI.gui.global, "Square Font", pfUI_config.global, "font_square", "dropdown", values) pfUI.gui:CreateConfig(pfUI.gui.global, "Combat Font", pfUI_config.global, "font_combat", "dropdown", values) -- appearance pfUI.gui.appearance = pfUI.gui:CreateConfigTab("Appearance") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Background Color", pfUI_config.appearance.border, "background") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Border Color", pfUI_config.appearance.border, "color") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Default Bordersize", pfUI_config.appearance.border, "default") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Actionbar Bordersize", pfUI_config.appearance.border, "actionbars") pfUI.gui:CreateConfig(pfUI.gui.appearance, "UnitFrame Bordersize", pfUI_config.appearance.border, "unitframes") pfUI.gui:CreateConfig(pfUI.gui.appearance, "GroupFrame Bordersize", pfUI_config.appearance.border, "groupframes") pfUI.gui:CreateConfig(pfUI.gui.appearance, "RaidFrame Bordersize", pfUI_config.appearance.border, "raidframes") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Panel Bordersize", pfUI_config.appearance.border, "panels") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Chat Bordersize", pfUI_config.appearance.border, "chat") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Bags Bordersize", pfUI_config.appearance.border, "bags") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown color (Minutes)", pfUI_config.appearance.cd, "mincolor") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown color (Hours)", pfUI_config.appearance.cd, "hourcolor") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown color (Days)", pfUI_config.appearance.cd, "daycolor") pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown text threshold", pfUI_config.appearance.cd, "threshold") -- modules pfUI.gui.modules = pfUI.gui:CreateConfigTab("Modules") pfUI.gui:CreateConfig(pfUI.gui.modules, "|cffff5555Warning:\n|cffffaaaa Disabling modules is highly experimental.\nDo not disable modules if you don't know how to fix errors.|r", nil, nil, "warning") for i,m in pairs(pfUI.modules) do -- create disabled entry if not existing and display pfUI:UpdateConfig("disabled", nil, m, "0") pfUI.gui:CreateConfig(pfUI.gui.modules, "Disable " .. m, pfUI_config.disabled, m, "checkbox") end -- unitframes pfUI.gui.uf = pfUI.gui:CreateConfigTab("UnitFrames") pfUI.gui:CreateConfig(pfUI.gui.uf, "Disable pfUI-UnitFrames", pfUI_config.unitframes, "disable", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Animation speed", pfUI_config.unitframes, "animation_speed") pfUI.gui:CreateConfig(pfUI.gui.uf, "Show portrait", pfUI_config.unitframes, "portrait", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Buff size", pfUI_config.unitframes, "buff_size") pfUI.gui:CreateConfig(pfUI.gui.uf, "Debuff size", pfUI_config.unitframes, "debuff_size") pfUI.gui:CreateConfig(pfUI.gui.uf, "Layout", pfUI_config.unitframes, "layout", "dropdown", { "default", "tukui" }) pfUI.gui:CreateConfig(pfUI.gui.uf, "Player width", pfUI_config.unitframes.player, "width") pfUI.gui:CreateConfig(pfUI.gui.uf, "Player height", pfUI_config.unitframes.player, "height") pfUI.gui:CreateConfig(pfUI.gui.uf, "Player powerbar height", pfUI_config.unitframes.player, "pheight") pfUI.gui:CreateConfig(pfUI.gui.uf, "Player powerbar spacing", pfUI_config.unitframes.player, "pspace") pfUI.gui:CreateConfig(pfUI.gui.uf, "Show PvP Icon", pfUI_config.unitframes.player, "showPVP", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Align PvP Icon to Minimap", pfUI_config.unitframes.player, "showPVPMinimap", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Target width", pfUI_config.unitframes.target, "width") pfUI.gui:CreateConfig(pfUI.gui.uf, "Target height", pfUI_config.unitframes.target, "height") pfUI.gui:CreateConfig(pfUI.gui.uf, "Target powerbar height", pfUI_config.unitframes.target, "pheight") pfUI.gui:CreateConfig(pfUI.gui.uf, "Target powerbar spacing", pfUI_config.unitframes.target, "pspace") pfUI.gui:CreateConfig(pfUI.gui.uf, "TargetTarget powerbar spacing", pfUI_config.unitframes.ttarget, "pspace") pfUI.gui:CreateConfig(pfUI.gui.uf, "Pet powerbar spacing", pfUI_config.unitframes.pet, "pspace") pfUI.gui:CreateConfig(pfUI.gui.uf, "Group powerbar spacing", pfUI_config.unitframes.group, "pspace") pfUI.gui:CreateConfig(pfUI.gui.uf, "Hide group while in raid", pfUI_config.unitframes.group, "hide_in_raid", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Raid powerbar spacing", pfUI_config.unitframes.raid, "pspace") pfUI.gui:CreateConfig(pfUI.gui.uf, "Invert Raid-healthbar", pfUI_config.unitframes.raid, "invert_healthbar", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Show missing HP on raidframes", pfUI_config.unitframes.raid, "show_missing", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Click-cast on Raidframe", pfUI_config.unitframes.raid, "clickcast") pfUI.gui:CreateConfig(pfUI.gui.uf, "Click-cast on Raidframe (Shift)", pfUI_config.unitframes.raid, "clickcast_shift") pfUI.gui:CreateConfig(pfUI.gui.uf, "Click-cast on Raidframe (Alt)", pfUI_config.unitframes.raid, "clickcast_alt") pfUI.gui:CreateConfig(pfUI.gui.uf, "Click-cast on Raidframe (Ctrl)", pfUI_config.unitframes.raid, "clickcast_ctrl") pfUI.gui:CreateConfig(pfUI.gui.uf, "Show Buffs on Raidframes", pfUI_config.unitframes.raid, "buffs_buffs", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Show Hots on Raidframes", pfUI_config.unitframes.raid, "buffs_hots", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Show Procs on Raidframes", pfUI_config.unitframes.raid, "buffs_procs", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Only display Hots of my class", pfUI_config.unitframes.raid, "buffs_classonly", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Show Debuff indicators on Raidframes", pfUI_config.unitframes.raid, "debuffs_enable", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.uf, "Only display Debuffs for my class", pfUI_config.unitframes.raid, "debuffs_class", "checkbox") -- actionbar pfUI.gui.bar = pfUI.gui:CreateConfigTab("ActionBar") pfUI.gui:CreateConfig(pfUI.gui.bar, "Icon Size", pfUI_config.bars, "icon_size") pfUI.gui:CreateConfig(pfUI.gui.bar, "Show actionbar backgrounds", pfUI_config.bars, "background", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.bar, "Seconds to wait until hide bars", pfUI_config.bars, "hide_time") pfUI.gui:CreateConfig(pfUI.gui.bar, "Autohide bottom actionbar", pfUI_config.bars, "hide_bottom", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.bar, "Autohide bottomleft actionbar", pfUI_config.bars, "hide_bottomleft", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.bar, "Autohide bottomright actionbar", pfUI_config.bars, "hide_bottomright", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.bar, "Autohide vertical actionbar", pfUI_config.bars, "hide_vertical", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.bar, "Autohide shapeshift actionbar", pfUI_config.bars, "hide_shapeshift", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.bar, "Autohide pet actionbar", pfUI_config.bars, "hide_pet", "checkbox") -- panels pfUI.gui.panel = pfUI.gui:CreateConfigTab("Panel") local values = { "time", "fps", "exp", "gold", "friends", "guild", "durability", "zone" } pfUI.gui:CreateConfig(pfUI.gui.panel, "Left Panel: Left", pfUI_config.panel.left, "left", "dropdown", values ) pfUI.gui:CreateConfig(pfUI.gui.panel, "Left Panel: Center", pfUI_config.panel.left, "center", "dropdown", values) pfUI.gui:CreateConfig(pfUI.gui.panel, "Left Panel: Right", pfUI_config.panel.left, "right", "dropdown", values) pfUI.gui:CreateConfig(pfUI.gui.panel, "Right Panel: Left", pfUI_config.panel.right, "left", "dropdown", values) pfUI.gui:CreateConfig(pfUI.gui.panel, "Right Panel: Center", pfUI_config.panel.right, "center", "dropdown", values) pfUI.gui:CreateConfig(pfUI.gui.panel, "Right Panel: Right", pfUI_config.panel.right, "right", "dropdown", values) pfUI.gui:CreateConfig(pfUI.gui.panel, "Other Panel: Minimap", pfUI_config.panel.other, "minimap", "dropdown", values) pfUI.gui:CreateConfig(pfUI.gui.panel, "Always show XP and Reputation Bar", pfUI_config.panel.xp, "showalways", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.panel, "Show Menubar", pfUI_config.panel.micro, "enable", "checkbox") -- tooltip pfUI.gui.tooltip = pfUI.gui:CreateConfigTab("Tooltip") pfUI.gui:CreateConfig(pfUI.gui.tooltip, "Tooltip Position:", pfUI_config.tooltip, "position", "dropdown", { "bottom", "chat", "cursor" }) -- castbar pfUI.gui.castbar = pfUI.gui:CreateConfigTab("Castbar") pfUI.gui:CreateConfig(pfUI.gui.castbar, "Hide blizzards castbar:", pfUI_config.castbar.player, "hide_blizz", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.castbar, "Hide pfUI player castbar:", pfUI_config.castbar.player, "hide_pfui", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.castbar, "Hide pfUI target castbar:", pfUI_config.castbar.target, "hide_pfui", "checkbox") -- chat pfUI.gui.chat = pfUI.gui:CreateConfigTab("Chat") pfUI.gui:CreateConfig(pfUI.gui.chat, "Chat inputbox width:", pfUI_config.chat.text, "input_width") pfUI.gui:CreateConfig(pfUI.gui.chat, "Chat inputbox height:", pfUI_config.chat.text, "input_height") pfUI.gui:CreateConfig(pfUI.gui.chat, "Timestamp in chat:", pfUI_config.chat.text, "time", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.chat, "Timestamp format:", pfUI_config.chat.text, "timeformat") pfUI.gui:CreateConfig(pfUI.gui.chat, "Timestamp brackets:", pfUI_config.chat.text, "timebracket") pfUI.gui:CreateConfig(pfUI.gui.chat, "Timestamp color:", pfUI_config.chat.text, "timecolor") pfUI.gui:CreateConfig(pfUI.gui.chat, "Left chat height:", pfUI_config.chat.left, "height") pfUI.gui:CreateConfig(pfUI.gui.chat, "Right chat height:", pfUI_config.chat.right, "height") pfUI.gui:CreateConfig(pfUI.gui.chat, "Use custom background:", pfUI_config.chat.global, "custombg", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.chat, "Background color:", pfUI_config.chat.global, "bgcolor") pfUI.gui:CreateConfig(pfUI.gui.chat, "Background transparency:", pfUI_config.chat.global, "bgtransp") -- nameplates pfUI.gui.nameplates = pfUI.gui:CreateConfigTab("Nameplates") pfUI.gui:CreateConfig(pfUI.gui.nameplates, "Show castbars:", pfUI_config.nameplates, "showcastbar", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.nameplates, "Show debuffs:", pfUI_config.nameplates, "showdebuffs", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.nameplates, "Enable Clickthrough:", pfUI_config.nameplates, "clickthrough", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.nameplates, "Raidicon size:", pfUI_config.nameplates, "raidiconsize") -- thirdparty pfUI.gui.thirdparty = pfUI.gui:CreateConfigTab("Thirdparty") pfUI.gui:CreateConfig(pfUI.gui.thirdparty, "DPSMate:", pfUI_config.thirdparty.dpsmate, "enable", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.thirdparty, "WIM:", pfUI_config.thirdparty.wim, "enable", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.thirdparty, "HealComm:", pfUI_config.thirdparty.healcomm, "enable", "checkbox") pfUI.gui:CreateConfig(pfUI.gui.thirdparty, "CleanUp:", pfUI_config.thirdparty.cleanup, "enable", "checkbox") -- [[ bottom section ]] -- -- Hide GUI pfUI.gui.hideGUI = pfUI.gui:CreateConfigTab("Close", "bottom", function() if pfUI.gui.settingChanged then pfUI.gui.reloadDialog:Show() end if pfUI.gitter and pfUI.gitter:IsShown() then pfUI.gui:UnlockFrames() end pfUI.gui:Hide() end) -- Unlock Frames pfUI.gui.unlockFrames = pfUI.gui:CreateConfigTab("Unlock", "bottom", function() pfUI.gui.UnlockFrames() end) -- Reset Frames pfUI.gui.resetFrames = pfUI.gui:CreateConfigTab("Reset Positions", "bottom", function() pfUI_config["position"] = {} pfUI.gui.reloadDialog:Show() end) -- Reset Chat pfUI.gui.resetChat = pfUI.gui:CreateConfigTab("Reset Chat", "bottom", function() pfUI_init["chat"] = nil pfUI.gui.reloadDialog:Show() end) -- Reset Player Cache pfUI.gui.resetCache = pfUI.gui:CreateConfigTab("Reset Player Cache", "bottom", function() pfUI_playerDB = {} pfUI.gui.reloadDialog:Show() end) -- Reset All pfUI.gui.resetAll = pfUI.gui:CreateConfigTab("Reset All", "bottom", function() pfUI_init = {} pfUI_config = {} pfUI:LoadConfig() pfUI.gui.reloadDialog:Show() end) -- Switch to default View: global pfUI.gui:SwitchTab(pfUI.gui.global) end)
if FORMAT:match 'markdown' then function Image(elem) -- Make sure extension is .png elem.src = elem.src:gsub("%.pdf", ".png") -- Prepend figure directory elem.src = "figs/" .. elem.src return elem end end -- Filter images with this function if the target format is HTML if FORMAT:match 'html' then function Image(elem) elem.attributes.style = 'cursor:pointer' elem.attributes.onclick = 'onClickImage(this)' return elem end end
modifier_bane_fiends_grip_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_bane_fiends_grip_lua:IsHidden() return false end function modifier_bane_fiends_grip_lua:IsDebuff() return true end function modifier_bane_fiends_grip_lua:IsStunDebuff() return true end function modifier_bane_fiends_grip_lua:IsPurgable() return true end -------------------------------------------------------------------------------- -- Initializations function modifier_bane_fiends_grip_lua:OnCreated( kv ) -- references self.damage = self:GetAbility():GetSpecialValueFor( "fiend_grip_damage" ) -- special value self.mana = self:GetAbility():GetSpecialValueFor( "fiend_grip_mana_drain" ) -- special value self.interval = self:GetAbility():GetSpecialValueFor( "fiend_grip_tick_interval" ) -- special value -- Start interval if IsServer() then -- precache damage self.damageTable = { victim = self:GetParent(), attacker = self:GetCaster(), damage = self.damage * self.interval, damage_type = DAMAGE_TYPE_MAGICAL, ability = self, --Optional. } -- start interval self:OnIntervalThink() self:StartIntervalThink( self.interval ) -- play effects self:PlayEffects() end end function modifier_bane_fiends_grip_lua:OnRefresh( kv ) -- references self.damage = self:GetAbility():GetSpecialValueFor( "fiend_grip_damage" ) -- special value self.mana = self:GetAbility():GetSpecialValueFor( "fiend_grip_mana_drain" ) -- special value if IsServer() then self.damageTable.damage = self.damage * self.interval end end function modifier_bane_fiends_grip_lua:OnDestroy( kv ) if IsServer() then self:GetAbility():StopSpell() -- stop effects -- self:StopEffects() end end -------------------------------------------------------------------------------- -- Modifier Effects function modifier_bane_fiends_grip_lua:DeclareFunctions() local funcs = { MODIFIER_PROPERTY_OVERRIDE_ANIMATION, } return funcs end function modifier_bane_fiends_grip_lua:GetOverrideAnimation() return ACT_DOTA_FLAIL end -------------------------------------------------------------------------------- -- Status Effects function modifier_bane_fiends_grip_lua:CheckState() local state = { [MODIFIER_STATE_STUNNED] = true, } return state end -------------------------------------------------------------------------------- -- Interval Effects function modifier_bane_fiends_grip_lua:OnIntervalThink() if IsServer() then -- damage if not self:GetParent():IsMagicImmune() then ApplyDamage(self.damageTable) end -- mana drain local mana_loss = self:GetParent():GetMaxMana() * (self.mana/100) * self.interval if self:GetParent():GetMana() < mana_loss then mana_loss = self:GetParent():GetMana() end self:GetParent():ReduceMana( mana_loss ) self:GetCaster():GiveMana( mana_loss ) end end -------------------------------------------------------------------------------- -- Graphics & Animations -- function modifier_bane_fiends_grip_lua:GetEffectName() -- return "particles/units/heroes/hero_bane/bane_fiends_grip.vpcf" -- end -- function modifier_bane_fiends_grip_lua:GetEffectAttachType() -- return PATTACH_ABSORIGIN_FOLLOW -- end function modifier_bane_fiends_grip_lua:PlayEffects() -- Get Resources local particle_cast = "particles/units/heroes/hero_bane/bane_fiends_grip.vpcf" -- Create Particle -- local effect_cast = ParticleManager:CreateParticle( particle_cast, PATTACH_ABSORIGIN_FOLLOW, self:GetParent() ) local effect_cast = assert(loadfile("lua_abilities/rubick_spell_steal_lua/rubick_spell_steal_lua_arcana"))(self, particle_cast, PATTACH_ABSORIGIN_FOLLOW, self:GetParent() ) -- buff particle self:AddParticle( effect_cast, false, false, -1, false, false ) end
data:extend({ ---- AAI burner control -- Gate electrical power behind AAI? { type = "bool-setting", name = "aivech-ssx-gate-electricity", setting_type = "startup", default_value = false, order = "a-aai" }, -- Use AAI intermediates { type = "bool-setting", name = "aivech-ssx-aai-recipes", setting_type = "startup", default_value = false, order = "a-aai" }, -- Offshore pump requires electricity --[[ { type = "bool-setting", name = "aivech-ssx-offshore-pump", setting_type = "startup", default_value = false, order = "a-aai" },]]-- ---- Space Exploration settings -- Low density structure options --[[{ type = "string-setting", name = "aivech-ssx-low-density-structure", setting_type = "startup", default_value = "replace", allowed_values = {"ignore","replace","revert"}, order = "b-space-ex" },]]-- -- Use vanilla landfill recipe { type = "bool-setting", name = "aivech-ssx-cheaper-landfill", setting_type = "startup", default_value = false, order = "b-space-ex" }, -- Use vanilla modules recipes { type = "bool-setting", name = "aivech-ssx-modules", setting_type = "startup", default_value = false, order = "b-space-ex" }, { type = "bool-setting", name = "aivech-ssx-expensive-nuke", setting_type = "startup", default_value = false, order = "b-space-ex" }, { type = "bool-setting", name = "aivech-ssx-equipment-research", setting_type="startup", default_value=false, order = "b-space-ex" }, { type = "bool-setting", name = "aivech-ssx-safe-rockets", setting_type = "runtime-global", default_value = false, order = "b-space-ex" } })
function handler.get() local foo = {} .. {} end function handler.post() return 999 end
--- Creates a label with a scrolling text element. It is highly recommended you use a monospace font for this label. --@classmod Chyron --@author Delra --@copyright 2019 --@author Damian Monogue --@copyright 2020 local Chyron = { name = "ChyronClass", text = "", displayWidth = 28, updateTime = 200, font = "Zekton", fontSize = "18", autoWidth = false, delimiter = "|", pos = 1, enabled = true, alignment = "center", } --- Creates a new Chyron label -- @tparam table cons table of constraints which configures the EMCO. -- <table class="tg"> -- <thead> -- <tr> -- <th>option name</th> -- <th>description</th> -- <th>default</th> -- </tr> -- </thead> -- <tbody> -- <tr> -- <td class="tg-odd">text</td> -- <td class="tg-odd">The text to scroll on the label</td> -- <td class="tg-odd">""</td> -- </tr> -- <tr> -- <td class="tg-even">updateTime</td> -- <td class="tg-even">Milliseconds between movements (one letter shift)</td> -- <td class="tg-even">200</td> -- </tr> -- <tr> -- <td class="tg-odd">displayWidth</td> -- <td class="tg-odd">How many chars wide to display the text</td> -- <td class="tg-odd">28</td> -- </tr> -- <tr> -- <td class="tg-even">delimiter</td> -- <td class="tg-even">This character will be inserted with a space either side to mark the stop/start of the message</td> -- <td class="tg-even">"|"</td> -- </tr> -- <tr> -- <td class="tg-odd">enabled</td> -- <td class="tg-odd">Should the chyron scroll?</td> -- <td class="tg-odd">true</td> -- </tr> -- <tr> -- <td class="tg-even">font</td> -- <td class="tg-even">What font to use for the Chyron? Available in Geyser.Label but we define a default.</td> -- <td class="tg-even">"Bitstream Vera Sans Mono"</td> -- </tr> -- <tr> -- <td class="tg-odd">fontSize</td> -- <td class="tg-odd">What font size to use for the Chyron? Available in Geyser.Label but we define a default.</td> -- <td class="tg-odd">9</td> -- </tr> -- <tr> -- <td class="tg-even">autoWidth</td> -- <td class="tg-even">Should the Chyron resize to just fit the text?</td> -- <td class="tg-even">true</td> -- </tr> -- <tr> -- <td class="tg-odd">alignment</td> -- <td class="tg-odd">What alignment(left/right/center) to use for the Chyron text? Available in Geyser.Label but we define a default.</td> -- <td class="tg-odd">"center"</td> -- </tr> -- </tbody> -- </table> -- @tparam GeyserObject container The container to use as the parent for the Chyron function Chyron:new(cons, container) cons = cons or {} cons.type = cons.type or "Chyron" local me = self.parent:new(cons, container) setmetatable(me, self) self.__index = self me.pos = 0 me:setDisplayWidth(self.displayWidth) me:setMessage(me.text) if me.enabled then me:start() else me:stop() end return me end --- Sets the numver of characters of the text to display at once --@tparam number displayWidth number of characters to show at once function Chyron:setDisplayWidth(displayWidth) displayWidth = displayWidth or self.displayWidth self.displayWidth = displayWidth if self.autoWidth then local width = calcFontSize(self.fontSize, self.font) self:resize(width * (displayWidth + 2), self.height) end if not self.enabled then self.pos = self.pos -1 self:doScroll() end end --- Override setFontSize to call setDisplayWidth in order to resize if necessary --@local function Chyron:setFontSize(fontSize) Geyser.Label.setFontSize(self, fontSize) self:setDisplayWidth() end --- Override setFont to call setDisplayWidth in order to resize if necessary --@local function Chyron:setFont(font) Geyser.Label.setFont(self, font) self:setDisplayWidth() end --- Returns the proper section of text --@local --@param text the text to extract a section of --@param start the character to start at --@param the length of the text you want to extract function Chyron:scrollText(start, length) local t = self.textTable local s = '' local e = start+length for i=start-1, e-2 do local n = (i % #t) + 1 s = s..t[n] end return s end --- scroll the text --@local function Chyron:doScroll() self.pos = self.pos + 1 local displayString = self:scrollText(self.pos, self.displayWidth) self:echo('&lt;'.. displayString ..'&gt;') self.message = self.text end --- Sets the Chyron from the first position, without changing enabled status function Chyron:reset() self.pos = 0 if not self.enabled then self:doScroll() end end --- Stops the Chyron with its current display function Chyron:pause() self.enabled = false if self.timer then killTimer(self.timer) end end --- Start the Chyron back up from wherever it currently is function Chyron:start() self.enabled = true if self.timer then killTimer(self.timer) end self.timer = tempTimer(self.updateTime / 1000, function() self:doScroll() end, true) end --- Change the update time for the Chyron --@tparam number updateTime new updateTime in milliseconds function Chyron:setUpdateTime(updateTime) self.updateTime = updateTime or self.updateTime if self.timer then killTimer(self.timer) end if self.enabled then self:start() end end --- Enable autoWidth adjustment function Chyron:enableAutoWidth() self.autoWidth = true self:setDisplayWidth() end --- Disable autoWidth adjustment function Chyron:disableAutoWidth() self.autoWidth = false end --- Stop the Chyron, and reset it to the original position function Chyron:stop() if self.timer then killTimer(self.timer) end self.enabled = false self.pos = 0 self:doScroll() end --- Change the text being scrolled on the Chyron --@tparam string message the text you want to have scroll on the Chyron function Chyron:setMessage(message) self.text = message self.pos = 0 message = string.format("%s %s ", message, self.delimiter) local t = {} for i=1, #message do t[i] = message:sub(i, i) end self.textTable = t if not self.enabled then self:doScroll() end end --- Change the delimiter used to show the beginning and end of the message --@tparam string delimiter the new delimiter to use. I recommend using one character. function Chyron:setDelimiter(delimiter) self.delimiter = delimiter end Chyron.parent = Geyser.Label setmetatable(Chyron, Geyser.Label) return Chyron
object_tangible_component_cybernetic_cybernetic_module_acid_resistance_two_core = object_tangible_component_cybernetic_shared_cybernetic_module_acid_resistance_two_core:new { } ObjectTemplates:addTemplate(object_tangible_component_cybernetic_cybernetic_module_acid_resistance_two_core, "object/tangible/component/cybernetic/cybernetic_module_acid_resistance_two_core.iff")
require('dialogue') local introText = "You see a beautiful woman. " local positiveText = "She smiles brightly at you!" local neutralText = "She ignores you." local negativeText = "She sneers at you." local endText = "You walk away, and wonder what could have been..." local maxFeeling = 3 local minFeeling = -3 local introChoices= { TextNode:new{text="Give her a flower", next="giveFlowerFunc"}, TextNode:new{text="Give her a frog", next="giveFrogFunc"}, TextNode:new{text="Walk away", next="finished"} } local data = { default={ start="intro", intro=ChoiceNode:new{text="getIntroText", choices=introChoices}, giveFlowerFunc=FunctionNode:new{func="giveFlower", next="intro"}, giveFrogFunc=FunctionNode:new{func="giveFrog", next="intro"}, getIntroText=function(d) local feelingText = "" local feeling = d.context.feeling or 0 print("Feeling: " .. tostring(feeling)) if feeling > 2 then feelingText = positiveText elseif feeling > -1 then feelingText = neutralText else feelingText = negativeText end return introText .. feelingText end, giveFlower_func=function(d) d.context.feeling = d.context.feeling or 0 d.context.feeling = math.min(d.context.feeling + 1, maxFeeling) return "intro" end, giveFrog_func=function(d) d.context.feeling = d.context.feeling or 0 d.context.feeling = math.max(d.context.feeling - 1, minFeeling) return "intro" end, finished=TextNode:new{text=endText} } } return data
--- Scene management for Lua game development. -- -- You can use use scenes to seperate the different states of your game: for example, a menu scene and a game scene. -- This module is fully implemented in Ubiquitousse and is mostly a "recommended way" of organising an Ubiquitousse-based game. -- However, you don't have to use this if you don't want to. ubiquitousse.scene handles all the differents Ubiquitousse-states and -- make them scene-independent, for example by creating a scene-specific TimerRegistry (TimedFunctions that are keept accross -- states are generally a bad idea). Theses scene-specific states should be created and available in the table returned by -- ubiquitousse.scene.new. -- -- The expected code-organisation is: -- -- * each scene is in a file, identified by its module name (scenes will be loaded using require("modulename")) -- * each scene file create a new scene table using ubiquitousse.scene.new and returns it at the end of the file -- -- Order of callbacks: -- -- * all scene change callbacks are called after setting scene.current to the new scene but before changing scene.stack -- * all scene exit/suspend callbacks are called before scene enter/resume callbacks -- -- No mendatory dependency. -- Optional dependencies: -- -- * ubiquitousse.timer (to provide each scene a timer registry). -- * ubiquitousse.signal (to bind to update and draw signal in signal.event). -- @module scene -- @usage -- TODO local loaded, signal = pcall(require, (...):match("^(.-)scene").."signal") if not loaded then signal = nil end local loaded, timer = pcall(require, (...):match("^(.-)scene").."timer") if not loaded then timer = nil end --- Scene object. -- @type Scene local _ = { --- The scene name. -- @ftype string name = name or "unamed", --- Scene-specific `timer.TimerRegistry`, if uqt.time is available. -- @ftype TimerRegistry -- @ftype nil if uqt.time unavailable timer = timer and timer.new(), --- Scene-specific `signal.SignalRegistry`, if uqt.signal is available. -- @ftype SignalRegistry -- @ftype nil if uqt.signal unavailable signal = signal and signal.new(), --- Called when entering a scene. -- @param ... additional arguments passed to `scene:switch` or `scene:push` -- @callback enter = function(self, ...) end, --- Called when exiting a scene, and not expecting to come back (scene may be unloaded). -- @callback exit = function(self) end, --- Called when suspending a scene, and expecting to come back (scene won't be unloaded). -- @callback suspend = function(self) end, --- Called when resuming a suspended scene (after calling suspend). -- @callback resume = function(self) end, --- Called on each update on the current scene. -- @tparam number dt the delta time -- @param ... additional arguments passed to `scene:update` -- @callback update = function(self, dt, ...) end, --- Called on each draw on the current scene. -- @param ... additional arguments passed to `scene:draw` -- @callback draw = function(self, ...) end } --- Module. -- @section module local scene scene = { --- The current `Scene` object. -- @ftype Scene current = nil, --- Shortcut for scene.current.timer, the current scene `timer.TimerRegistry`. -- @ftype TimerRegistry -- @ftype nil if uqt.time unavailable timer = nil, --- Shortcut for scene.current.signal, the current scene `timer.SignalRegistry`. -- @ftype SignalRegistry -- @ftype nil if uqt.signal unavailable signal = nil, --- The scene stack: list of scene, from the farest one to the nearest. -- @ftype {Scene,...} stack = {}, --- A prefix for scene modules names. -- Will search in the "scene" directory by default (`prefix="scene."`). Redefine it to fit your own ridiculous filesystem. -- @ftype string prefix = "scene.", --- Creates and returns a new Scene object. -- @tparam[opt="unamed"] string name the new scene name -- @treturn Scene new = function(name) return { name = name or "unamed", timer = timer and timer.new(), signal = signal and signal.new(), enter = function(self, ...) end, exit = function(self) end, suspend = function(self) end, resume = function(self) end, update = function(self, dt, ...) end, draw = function(self, ...) end } end, --- Switch to a new scene. -- The new scene will be required() and the current scene will be replaced by the new one, -- then the previous scene exit function will be called, then the enter callback is called on the new scence. -- Then the stack is changed to replace the old scene with the new one. -- @tparam string/table scenePath the new scene module name, or the scene table directly -- @param ... arguments to pass to the scene's enter function switch = function(scenePath, ...) local previous = scene.current scene.current = type(scenePath) == "string" and require(scene.prefix..scenePath) or scenePath scene.timer = scene.current.timer scene.signal = scene.current.signal scene.current.name = scene.current.name or tostring(scenePath) if previous then previous:exit() if timer then previous.timer:clear() end end scene.current:enter(...) scene.stack[math.max(#scene.stack, 1)] = scene.current end, --- Push a new scene to the scene stack. -- Similar to ubiquitousse.scene.switch, except suspend is called on the current scene instead of exit, -- and the current scene is not replaced: when the new scene call ubiquitousse.scene.pop, the old scene -- will be reused. -- @tparam string/table scenePath the new scene module name, or the scene table directly -- @param ... arguments to pass to the scene's enter function push = function(scenePath, ...) local previous = scene.current scene.current = type(scenePath) == "string" and require(scene.prefix..scenePath) or scenePath scene.timer = scene.current.timer scene.signal = scene.current.signal scene.current.name = scene.current.name or tostring(scenePath) if previous then previous:suspend() end scene.current:enter(...) table.insert(scene.stack, scene.current) end, --- Pop the current scene from the scene stack. -- The previous scene will be set as the current scene, then the current scene exit function will be called, -- then the previous scene resume function will be called, and then the current scene will be removed from the stack. pop = function() local previous = scene.current scene.current = scene.stack[#scene.stack-1] scene.timer = scene.current and scene.current.timer or nil scene.signal = scene.current and scene.current.signal or nil if previous then previous:exit() if timer then previous.timer:clear() end end if scene.current then scene.current:resume() end table.remove(scene.stack) end, --- Pop all scenes. popAll = function() while scene.current do scene.pop() end end, --- Update the current scene. -- Should be called at every game update. If ubiquitousse.signal is available, will be bound to the "update" signal in signal.event. -- @tparam number dt the delta-time -- @param ... arguments to pass to the scene's update function after dt update = function(dt, ...) if scene.current then if timer then scene.current.timer:update(dt) end scene.current:update(dt, ...) end end, --- Draw the current scene. -- Should be called every time the game is draw. If ubiquitousse.signal is available, will be bound to the "draw" signal in signal.event. -- @param ... arguments to pass to the scene's draw function draw = function(...) if scene.current then scene.current:draw(...) end end } -- Bind signals if signal then signal.event:bind("update", scene.update) signal.event:bind("draw", scene.draw) end return scene
-- File : sd_entries.lua -- Who : Jose Amores -- What : SD subdissector in charge of parsing Entries within at EntriesArray -- local p_sd_ents = Proto("sd_entries","sd_entry") local f_e_type = ProtoField.uint8("sd.e.type","Type",base.HEX) local f_e_o1_i = ProtoField.uint8("sd.e.opt1_i","Index 1st options",base.HEX) local f_e_o2_i = ProtoField.uint8("sd.e.opt2_i","Index 2nd options",base.HEX) local f_e_o1_n = ProtoField.uint8("sd.e.opt1_n","# opt 1",base.HEX,nil,0xf0) local f_e_o2_n = ProtoField.uint8("sd.e.opt2_n","# opt 2",base.HEX,nil,0x0f) local f_e_srv_id = ProtoField.uint16("sd.e.srv_id","Service ID",base.HEX) local f_e_inst_id = ProtoField.uint16("sd.e.inst_id","Instance ID",base.HEX) local f_e_v_major = ProtoField.uint8("sd.e.v_major","MajorVersion",base.HEX) local f_e_ttl = ProtoField.uint24("sd.e.ttl","TTL",base.DEC) local f_e_v_minor = ProtoField.uint32("sd.e.v_minor","MinorVersion",base.HEX) local f_e_reserved = ProtoField.uint8("sd.e.reserved","Reserved",base.HEX) local f_e_init_req = ProtoField.bool("sd.e.init_req","Initial Data Requested Flag") local f_e_reserved2 = ProtoField.uint8("sd.e.reserved2","Reserved2",base.HEX,nil,0x07) local f_e_cnt = ProtoField.uint8("sd.e.cnt","Counter",base.DEC,nil,0x0f) local f_e_egrp_id = ProtoField.uint8("sd.e.egrp_id","EventGroup_ID",base.HEX) local e_types = { [0] = "FIND SERVICE", -- 0x00 [1] = "OFFER SERVICE", -- 0x01 [6] = "SUBSCRIBE", -- 0x06 [7] = "SUBSCRIBE ACK" -- 0x07 } local e_negative_types = { [1] = "STOP OFFER SERVICE", -- 0x01 [6] = "STOP SUBSCRIBE", -- 0x06 [7] = "SUBSCRIBE NACK" -- 0x07 } p_sd_ents.fields = {f_e_type,f_e_o1_i,f_e_o2_i,f_e_o1_n,f_e_o2_n,f_e_srv_id,f_e_inst_id,f_e_v_major,f_e_ttl,f_e_v_minor,f_e_reserved,f_e_init_req,f_e_reserved2,f_e_cnt,f_e_egrp_id} function p_sd_ents.dissector(buf,pinfo,root) local offset = 0 -- length of EntriesArray local e_len = buf(offset,4):uint() offset = offset + 4 -- parse entries (NOTE : some extra variables to easen understanding) local e_len_parsed = 0 local info_col = "" while e_len_parsed < e_len do local i_parse, e_type_u8, ttl = parse_entries(root,buf(offset,(e_len - e_len_parsed))) e_len_parsed = e_len_parsed + i_parse if (ttl ~= 0) then info_col = info_col .. e_types[e_type_u8] .. ", " else info_col = info_col .. e_negative_types[e_type_u8] .. ", " end offset = offset + i_parse end if (info_col ~= "") then -- Replace info column pinfo.cols.info = info_col:sub(0, -3) end end function is_entry_service(type_u8) -- TODO : remove this magic numbers if ((type_u8 == 0x00) or (type_u8 == 0x01)) then return(true) else return(false) end end function parse_entries(subtree,buf) local offset = 0 local e_subtree = subtree:add(p_sd_ents) --Type local type_tree = e_subtree:add(f_e_type,buf(offset,1)) local type_u8 = buf(offset,1):uint() if e_types[type_u8] ~= nil then type_tree:append_text(" ("..e_types[type_u8]..")") -- also update "root" with entry type e_subtree:append_text(" : "..e_types[type_u8]) else type_tree:append_text(" (type unknown)") end offset = offset + 1 -- Index 1st options e_subtree:add(f_e_o1_i,buf(offset,1)) offset = offset + 1 -- Index 2nd options e_subtree:add(f_e_o2_i,buf(offset,1)) offset = offset + 1 -- Num of opt 1 (NOTE : no increase in offset position, 4bit field) e_subtree:add(f_e_o1_n,buf(offset,1)) -- Num of opt 2 e_subtree:add(f_e_o2_n,buf(offset,1)) offset = offset + 1 -- ServiceID e_subtree:add(f_e_srv_id,buf(offset,2)) offset = offset + 2 -- InstanceID e_subtree:add(f_e_inst_id,buf(offset,2)) offset = offset + 2 -- Major version e_subtree:add(f_e_v_major,buf(offset,1)) offset = offset + 1 -- TTL e_subtree:add(f_e_ttl,buf(offset,3)) local ttl = buf(offset,3):uint() offset = offset + 3 -- SERVICE / EVENTGROUP entries if is_entry_service(type_u8) then -- SERVICE -- Minor Version e_subtree:add(f_e_v_minor,buf(offset,4)) offset = offset + 4 else -- EVENTGROUP -- Reserved e_subtree:add(f_e_reserved,buf(offset,1)) offset = offset +1 --Initial Data Requested Flag && Reserved2 && Counter e_subtree:add(f_e_init_req,buf(offset,1):bitfield(0,1)) e_subtree:add(f_e_reserved2,buf(offset,1)) e_subtree:add(f_e_cnt,buf(offset,1)) offset = offset + 1 -- EventGroup ID e_subtree:add(f_e_egrp_id,buf(offset,2)) offset = offset + 2 end return offset, type_u8, ttl end
-- Treesitter configuration -- Parsers must be installed manually via :TSInstall require "nvim-treesitter.configs".setup { ensure_installed = "all", -- requires 'JoosepAlviste/nvim-ts-context-commentstring' context_commentstring = { enable = true }, highlight = { enable = true }, indent = { enable = true }, -- requires 'p00f/nvim-ts-rainbow' rainbow = { enable = true, extended_mode = true, max_file_lines = nil } }
local _, namespace = ... local PoolManager = {} namespace.PoolManager = PoolManager local function ResetterFunc(pool, frame) frame:Hide() frame:SetParent(nil) frame:ClearAllPoints() if frame._data then frame._data = nil end end local framePool = CreateFramePool("Statusbar", UIParent, "SmallCastingBarFrameTemplate", ResetterFunc) local framesCreated = 0 local framesActive = 0 function PoolManager:AcquireFrame() if framesCreated >= 256 then return end -- should never happen local frame, isNew = framePool:Acquire() framesActive = framesActive + 1 if isNew then framesCreated = framesCreated + 1 self:InitializeNewFrame(frame) end return frame, isNew, framesCreated end function PoolManager:ReleaseFrame(frame) if frame then framePool:Release(frame) framesActive = framesActive - 1 end end function PoolManager:InitializeNewFrame(frame) frame:Hide() -- New frames are always shown, hide it while we're updating it -- Some of the points set by SmallCastingBarFrameTemplate doesn't -- work well when user modify castbar size, so set our own points instead frame.Border:ClearAllPoints() frame.Icon:ClearAllPoints() frame.Text:ClearAllPoints() frame.Icon:SetPoint("LEFT", frame, -15, 0) -- Clear any scripts inherited from frame template frame:UnregisterAllEvents() frame:SetScript("OnLoad", nil) frame:SetScript("OnEvent", nil) frame:SetScript("OnUpdate", nil) frame:SetScript("OnShow", nil) frame.Timer = frame:CreateFontString(nil, "OVERLAY") frame.Timer:SetTextColor(1, 1, 1) frame.Timer:SetFontObject("SystemFont_Shadow_Small") frame.Timer:SetPoint("RIGHT", frame, -6, 0) end function PoolManager:GetFramePool() return framePool end --[[function PoolManager:DebugInfo() print(format("Created %d frames in total.", framesCreated)) print(format("Currently active frames: %d.", framesActive)) end]]
hu = game.Players.LocalPlayer.Character.Humanoid local l = Instance.new("Humanoid") l.Parent = game.Players.LocalPlayer.Character l.Name = "Humanoid" wait(0.1) hu.Parent = game.Players.LocalPlayer game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character game.Players.LocalPlayer.Character.Animate.Disabled = true wait(0.1) game.Players.LocalPlayer.Character.Animate.Disabled = false while wait(3) do game.Players.LocalPlayer.Character.Humanoid.Parent = game.Pl
object_tangible_smuggler_illegal_core_booster = object_tangible_smuggler_shared_illegal_core_booster:new { } ObjectTemplates:addTemplate(object_tangible_smuggler_illegal_core_booster, "object/tangible/smuggler/illegal_core_booster.iff")
TURT_KEY_SPACE = 32 TURT_KEY_APOSTROPHE = 39 TURT_KEY_COMMA = 44 TURT_KEY_MINUS = 45 TURT_KEY_PERIOD = 46 TURT_KEY_SLASH = 47 TURT_KEY_0 = 48 TURT_KEY_1 = 49 TURT_KEY_2 = 50 TURT_KEY_3 = 51 TURT_KEY_4 = 52 TURT_KEY_5 = 53 TURT_KEY_6 = 54 TURT_KEY_7 = 55 TURT_KEY_8 = 56 TURT_KEY_9 = 57 TURT_KEY_SEMICOLON = 59 TURT_KEY_EQUAL = 61 TURT_KEY_A = 65 TURT_KEY_B = 66 TURT_KEY_C = 67 TURT_KEY_D = 68 TURT_KEY_E = 69 TURT_KEY_F = 70 TURT_KEY_G = 71 TURT_KEY_H = 72 TURT_KEY_I = 73 TURT_KEY_J = 74 TURT_KEY_K = 75 TURT_KEY_L = 76 TURT_KEY_M = 77 TURT_KEY_N = 78 TURT_KEY_O = 79 TURT_KEY_P = 80 TURT_KEY_Q = 81 TURT_KEY_R = 82 TURT_KEY_S = 83 TURT_KEY_T = 84 TURT_KEY_U = 85 TURT_KEY_V = 86 TURT_KEY_W = 87 TURT_KEY_X = 88 TURT_KEY_Y = 89 TURT_KEY_Z = 90 TURT_KEY_LEFT_BRACKET = 91 TURT_KEY_BACKSLASH = 92 TURT_KEY_RIGHT_BRACKET = 93 TURT_KEY_GRAVE_ACCENT = 96 TURT_KEY_WORLD_1 = 161 TURT_KEY_WORLD_2 = 162 -- Function keys -- TURT_KEY_ESCAPE = 256 TURT_KEY_ENTER = 257 TURT_KEY_TAB = 258 TURT_KEY_BACKSPACE = 259 TURT_KEY_INSERT = 260 TURT_KEY_DELETE = 261 TURT_KEY_RIGHT = 262 TURT_KEY_LEFT = 263 TURT_KEY_DOWN = 264 TURT_KEY_UP = 265 TURT_KEY_PAGE_UP = 266 TURT_KEY_PAGE_DOWN = 267 TURT_KEY_HOME = 268 TURT_KEY_END = 269 TURT_KEY_CAPS_LOCK = 280 TURT_KEY_SCROLL_LOCK = 281 TURT_KEY_NUM_LOCK = 282 TURT_KEY_PRINT_SCREEN = 283 TURT_KEY_PAUSE = 284 TURT_KEY_F1 = 290 TURT_KEY_F2 = 291 TURT_KEY_F3 = 292 TURT_KEY_F4 = 293 TURT_KEY_F5 = 294 TURT_KEY_F6 = 295 TURT_KEY_F7 = 296 TURT_KEY_F8 = 297 TURT_KEY_F9 = 298 TURT_KEY_F10 = 299 TURT_KEY_F11 = 300 TURT_KEY_F12 = 301 TURT_KEY_F13 = 302 TURT_KEY_F14 = 303 TURT_KEY_F15 = 304 TURT_KEY_F16 = 305 TURT_KEY_F17 = 306 TURT_KEY_F18 = 307 TURT_KEY_F19 = 308 TURT_KEY_F20 = 309 TURT_KEY_F21 = 310 TURT_KEY_F22 = 311 TURT_KEY_F23 = 312 TURT_KEY_F24 = 313 TURT_KEY_F25 = 314 TURT_KEY_KP_0 = 320 TURT_KEY_KP_1 = 321 TURT_KEY_KP_2 = 322 TURT_KEY_KP_3 = 323 TURT_KEY_KP_4 = 324 TURT_KEY_KP_5 = 325 TURT_KEY_KP_6 = 326 TURT_KEY_KP_7 = 327 TURT_KEY_KP_8 = 328 TURT_KEY_KP_9 = 329 TURT_KEY_KP_DECIMAL = 330 TURT_KEY_KP_DIVIDE = 331 TURT_KEY_KP_MULTIPLY = 332 TURT_KEY_KP_SUBTRACT = 333 TURT_KEY_KP_ADD = 334 TURT_KEY_KP_ENTER = 335 TURT_KEY_KP_EQUAL = 336 TURT_KEY_LEFT_SHIFT = 340 TURT_KEY_LEFT_CONTROL = 341 TURT_KEY_LEFT_ALT = 342 TURT_KEY_LEFT_SUPER = 343 TURT_KEY_RIGHT_SHIFT = 344 TURT_KEY_RIGHT_CONTROL = 345 TURT_KEY_RIGHT_ALT = 346 TURT_KEY_RIGHT_SUPER = 347 TURT_KEY_MENU = 348
function sub(a, b) return a - b; end function add(c, d) return c + d end print("hello") print(add(1, 2))
-- module: scratchpad - quick place to jot down info -- I use this for short-term todos and reminders, mostly. -- local m = {} local ufile = require('utils.file') local uapp = require('utils.app') local lastApp = nil local chooser = nil local menu = nil local visible = false -- COMMANDS local commands = { { ['text'] = 'Append...', ['subText'] = 'Append to Scratchpad', ['command'] = 'append', }, { ['text'] = 'Edit', ['subText'] = 'Edit Scratchpad', ['command'] = 'edit', }, } -------------------- -- refocus on the app that was focused before the chooser was invoked local function refocus() if lastApp ~= nil then lastApp:activate() lastApp = nil end end -- This resets the choices to the command table, and has the desired side -- effect of resetting the highlighted choice as well. local function resetChoices() chooser:rows(#commands) -- add commands local choices = {} for _, command in ipairs(commands) do choices[#choices+1] = command end chooser:choices(choices) end -- remove a specific line from the scratchpad file local function removeLine(line) -- write out the scratchpad file to a temp file, line by line, skipping the -- line we want to remove, then move the temp file to overwrite the -- scratchpad file. this makes things slightly more atomic, to try to avoid -- data corruption. local tmpfile = ufile.toPath(hsm.cfg.paths.tmp, 'scratchpad.md') local f = io.open(tmpfile, 'w+') for oldline in io.lines(m.cfg.file) do if oldline ~= line then f:write(oldline..'\n') end end f:close() ufile.move(tmpfile, m.cfg.file, true, function(output) end, function(err) uapp.notify('Error updating Scratchpad file', err) end ) end -- callback when a chooser choice is made, which in this case will only be one -- of the commands. local function choiceCallback(choice) refocus() visible = false if choice.command == 'append' then -- append the query string to the scratchpad file ufile.append(m.cfg.file, chooser:query()) elseif choice.command == 'edit' then -- open the scratchpad file in an editor m.edit() end -- set the chooser back to the default state resetChoices() chooser:query('') end -- callback when the menubar icon is clicked. local function menuClickCallback(mods) local list = {} if mods.shift or mods.ctrl then -- edit the scratchpad m.edit() else -- show the contents of the scratchpad as a menu if ufile.exists(m.cfg.file) then for line in io.lines(m.cfg.file) do -- if a line is clicked, open the scratchpad for editing -- if a line is ctrl-clicked, remove that line from the scratchpad file local function menuItemClickCallback(itemmods) if itemmods.ctrl then removeLine(line) else hs.pasteboard.setContents(line) end end list[#list+1] = {title=tostring(line), fn=menuItemClickCallback} end end end return list end -- open the scratchpad file in the default .md editor function m.edit() if not ufile.exists(m.cfg.file) then ufile.create(m.cfg.file) end local task = hs.task.new('/usr/bin/open', nil, {'-t', m.cfg.file}) task:start() end -- toggle chooser visibility function m.toggle() if chooser ~= nil then if visible then m.hide() else m.show() end end end -- show the chooser function m.show() if chooser ~= nil then lastApp = hs.application.frontmostApplication() chooser:show() visible = true end end -- hide the chooser function m.hide() if chooser ~= nil then -- hide calls choiceCallback chooser:hide() end end function m.start() menu = hs.menubar.newWithPriority(m.cfg.menupriority) menu:setTitle('[?]') menu:setMenu(menuClickCallback) chooser = hs.chooser.new(choiceCallback) chooser:width(m.cfg.width) -- disable built-in search chooser:queryChangedCallback(function() end) resetChoices() end function m.stop() if chooser then chooser:delete() end if menu then menu:delete() end chooser = nil menu = nil lastApp = nil end return m
-- Disable temple perk spawns _perk_spawn_many = perk_spawn_many function perk_spawn_many(x, y, dont_remove_others_, ignore_these_) if (dont_remove_others_ and ModIsEnabled("nightmare")) then EntityLoad("mods/ALIEN/items/nightmare_item.xml", x+30, y) else EntityLoad("mods/ALIEN/items/level_up_item.xml", x+30, y) end end
-- function! plugins#neomake#makeprg() abort -- if empty(&makeprg) -- return -- endif -- local ft = &filetype -- local makeprg = map(split(&makeprg, ' '), {key, val -> substitute(val, '^%$', '%t', 'g') }) -- local executable = l:makeprg[0] -- local args = l:makeprg[1:] -- local name = plugins#convert_name(l:executable) -- let b:neomake_{l:ft}_enabled_makers = [l:name] -- let b:neomake_{l:ft}_{l:name}_maker = { -- \ 'exe': l:executable, -- \ 'args': l:args, -- \ 'errorformat': !empty(&l:errorformat) ? &l:errorformat : &errorformat, -- \} -- endfunction -- augroup NeomakeConfig -- autocmd! -- autocmd OptionSet makeprg call plugins#neomake#makeprg() -- augroup end
local printer = peripheral.find "printer3d" local args = {...} if #args < 1 then error("Usage: print3d FILE [count]\n") end if args[1] == "reset" then printer.reset() end local count = 1 if #args > 1 then count = assert(tonumber(args[2]), tostring(args[2]) .. " is not a valid count") end local file = fs.open(args[1], "r") if not file then error("Failed opening file\n") return 1 end local rawdata = file.readAll() file.close() local data, reason = loadstring("return " .. rawdata) if not data then error("Failed loading model: " .. reason .. "\n") return 2 end data = data() io.write("Configuring...\n") printer.reset() if data.label then printer.setLabel(data.label) end if data.tooltip then printer.setTooltip(data.tooltip) end if data.lightLevel and printer.setLightLevel then -- as of OC 1.5.7 printer.setLightLevel(data.lightLevel) end if data.emitRedstone then printer.setRedstoneEmitter(data.emitRedstone) end if data.buttonMode then printer.setButtonMode(data.buttonMode) end if data.collidable and printer.setCollidable then printer.setCollidable(not not data.collidable[1], not not data.collidable[2]) end for i, shape in ipairs(data.shapes or {}) do local result, reason = printer.addShape(shape[1], shape[2], shape[3], shape[4], shape[5], shape[6], shape.texture, shape.state, shape.tint) if not result then io.write("Failed adding shape: " .. tostring(reason) .. "\n") end end io.write("Label: '" .. (printer.getLabel() or "not set") .. "'\n") io.write("Tooltip: '" .. (printer.getTooltip() or "not set") .. "'\n") if printer.getLightLevel then -- as of OC 1.5.7 io.write("Light level: " .. printer.getLightLevel() .. "\n") end io.write("Redstone level: " .. select(2, printer.isRedstoneEmitter()) .. "\n") io.write("Button mode: " .. tostring(printer.isButtonMode()) .. "\n") if printer.isCollidable then -- as of OC 1.5.something io.write("Collidable: " .. tostring(select(1, printer.isCollidable())) .. "/" .. tostring(select(2, printer.isCollidable())) .. "\n") end io.write("Shapes: " .. printer.getShapeCount() .. " inactive, " .. select(2, printer.getShapeCount()) .. " active\n") local result, reason = printer.commit(count) if result then io.write("Job successfully committed!\n") print('Printed!') os.sleep(3) else error("Failed committing job: " .. tostring(reason) .. "\n") end
function onNewChannelEvent(serverConnectionHandlerID, channelID, channelParentID) --print("on new channel event START: " .. serverConnectionHandlerID, channelID, channelParentID) --print (ccname(serverConnectionHandlerID, channelID)) --print (cctopic(serverConnectionHandlerID, channelID)) --print(ccdesc(serverConnectionHandlerID, channelID)) --print(cphonetic(serverConnectionHandlerID, channelID)) local ccname = ts3.getChannelVariableAsString(serverConnectionHandlerID, channelID, 0) local cctopic = ts3.getChannelVariableAsString(serverConnectionHandlerID, channelID, 1) --local ccdesc = ts3.getChannelVariableAsString(serverConnectionHandlerID, channelID, 2) local cphonetic = ts3.getChannelVariableAsString(serverConnectionHandlerID, channelID, 30) local data = read_word() --local bb = ts3.urlsToBB("Kanał o nazwie [url=channelid://".. channelID .. "]" .. ccname .. ") --local channel_info = "Kanał o nazwie " .. ccname .. "(id:" .. channelID .. ")" local channel_info = "try test [url=channelid://" .. channelID .. "]" .. ccname .. "[/url]" for m,v in ipairs(data) do --print("execute for " .. v .. "and channel ID" .. channelID) if string.find(ccname, v) then msg_p(serverConnectionHandlerID,ts3chanelbadname .. channel_info,ts3.getClientID(serverConnectionHandlerID)) end if string.find(cctopic, v) then msg_p(serverConnectionHandlerID,ts3chanelbadtopic .. channel_info,ts3.getClientID(serverConnectionHandlerID)) end if string.find(ccdesc(serverConnectionHandlerID, channelID), v) then print("found bad desc in " .. channelID) msg_p(serverConnectionHandlerID,ts3chanelbaddesc .. channel_info,ts3.getClientID(serverConnectionHandlerID)) end if string.find(cphonetic, v) then msg_p(serverConnectionHandlerID,ts3chanelbadphonetic .. channel_info,ts3.getClientID(serverConnectionHandlerID)) end end end
local toll = 0; local FB = 0; local RFB = 0; local Funny = true; function B2S(b) return GAMESTATE:GetCurrentSong():GetTimingData():GetElapsedTimeFromBeat(b) end; local ratemod = string.match(GAMESTATE:GetSongOptionsString(), "%d.%d"); if ratemod then ratemod = tonumber(ratemod); else ratemod = 1.0 end local SP3 =1 local SP2 =1 local SP1 =1 local SPGo = 1 local Frame = 0; local t = Def.ActorFrame{ Def.ActorFrame{ OnCommand=cmd(playcommand,"Ne"); NeCommand=function(self) if math.mod(math.abs(GAMESTATE:GetSongBeat()),1)< 0.5 and not Funny then Funny = true self:diffuse(color((math.random(1,10)/10)..","..(math.random(1,10)/10)..","..(math.random(1,10)/10)..","..1)) elseif math.mod(GAMESTATE:GetSongBeat(),1)>= 0.5 then Funny = false end self:sleep(1/30) self:queuecommand("Ne") end; Def.ActorFrame{ InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y); LoadActor("count 1x5.png")..{ InitCommand=cmd(diffusealpha,0); OnCommand=function(self) FB = GAMESTATE:GetCurrentSong():GetFirstBeat(); if math.mod(FB,4) <= 2 then RFB = math.floor(FB/4)*4 else RFB = math.ceil(FB/4)*4 end SP3 =math.abs(B2S(RFB-4) - B2S(RFB-3.25))/ratemod; SP2 =math.abs(B2S(RFB-3) - B2S(RFB-2.25))/ratemod; SP1 =math.abs(B2S(RFB-2) - B2S(RFB-1.25))/ratemod; SPGo = math.abs(B2S(RFB-1) - B2S(RFB-0.25))/ratemod; self:animate(0); self:playcommand("TTO") end; TTOCommand=function(self) if GAMESTATE:GetSongBeat() >= RFB-8 and GAMESTATE:GetSongBeat() <= RFB-4 and toll == 0 then toll = 1 elseif GAMESTATE:GetSongBeat() >= RFB-4 and GAMESTATE:GetSongBeat() <= RFB-3 and toll == 1 then self:diffusealpha(1) self:rotationz(-10) self:zoom(2) self:linear(SP3) self:rotationz(0) self:zoom(1) Frame = 0 toll = 2 elseif GAMESTATE:GetSongBeat() >= RFB-3 and GAMESTATE:GetSongBeat() <= RFB-2 and toll == 2 then self:rotationz(15) self:zoom(2) self:linear(SP2) self:rotationz(0) self:zoom(1) Frame = 1 toll = 3 elseif GAMESTATE:GetSongBeat() >= RFB-2 and GAMESTATE:GetSongBeat() <= RFB-1 and toll == 3 then self:rotationz(-20) self:zoom(2) self:linear(SP1) self:rotationz(0) self:zoom(1) Frame = 2 toll = 4 elseif GAMESTATE:GetSongBeat() >= RFB-1 and GAMESTATE:GetSongBeat() <= RFB and toll == 4 then self:rotationz(25) self:zoom(2) self:linear(SPGo) self:rotationz(0) self:zoom(1) Frame = 3 toll = 5 elseif GAMESTATE:GetSongBeat() >= RFB and toll == 5 then self:linear(SPGo) self:diffusealpha(0) elseif GAMESTATE:GetSongBeat() >= RFB+4 then self:linear(SPGo) self:diffusealpha(0) end self:sleep(1/30) self:setstate(Frame) if GAMESTATE:GetSongBeat() < RFB+10 then self:queuecommand("TTO") end end; }; }; }; }; return t;
-- A sample class demonstrating the proper use of Motors -- and RobotDrive in ToastLua -- Initiate a motor and its type Motor.pwm(0) -- New Talon on PWM Port #0 Motor.pwm(1, "Jaguar") -- New Jaguar on PWM Port #0 Motor.can(2) -- New Talon SRX on CAN ID #2 Motor.can(3, "Jaguar") -- New CAN Jaguar on CAN ID #3 Motor.set(0, 0.5) -- Set PWM Motor #0 to 50% Throttle Motor.setCAN(3, 0.5) -- Set CAN Motor #0 to 50% Throttle local motor1 = Motor.pwm(5) -- Store a table containing motor details local motor2 = Motor.pwm(6) local drive1 = Motor.drive(motor1, motor2) -- Create a new RobotDrive instance local drive2 = Motor.drive(0, 1, 2, 3) -- Or create it with PWM Talons with ports drive1.tank(0.5, 0.5) -- Tank Drive forward at 50% Speed drive2.polar(0.5, 45, 0) -- Mecanum polar drive at 50% speed, 45 degree heading and 0 rotation drive2.cartesian(0.5, 0.5, 0.1) -- Mecanum cartesian with x and y at 50% and rotation at 10% -- Sample drive with Xbox Controller local drive = Motor.drive(0, 1) -- Talons on PWM #0 and #1 State.teleop(function() local xbox = Controller.xbox(0) drive.tank(xbox.leftY, xbox.rightY) end) -- or -- local drive = Motor.drive(0, 1, 2, 3) -- Talons on PWM #0, #1, #2 and #3 State.teleop(function() local xbox = Controller.xbox(0) drive.polar(xbox.leftStickMagnitude, xbox.leftStickHeading, xbox.rightX) end)
-- Autogenerated by Luapress v3.0 -- For available configuation options, see: fizzadar.com/luapress -- Or see the default config at: -- github.com/Fizzadar/Luapress/blob/develop/luapress/default_config.lua local config = { url = '/tests/sticky/build', sticky_page = 'sticky' } return config
local CacheLoader = torch.class("dp.CacheLoader") function CacheLoader:__init() self.cacheDir = paths.concat(dp.DATA_DIR,"datacache") assert(paths.dir(self.cacheDir) or paths.mkdir(self.cacheDir),"<CacheLoader> failed to make datacache [".. self.cacheDir .."]") end function CacheLoader:load(dsName, dsConf, cacheOnMiss) cacheOnMiss = cacheOnMiss or 0 local ds local cacheName = CacheLoader:genCacheName(dsName, dsConf) local cacheFilePath = paths.concat(self.cacheDir, cacheName) if paths.filep(cacheFilePath) then print("<CacheLoader> loading "..dsName.." from disk cache at ["..cacheFilePath.."]") return torch.load(cacheFilePath) else print("<CacheLoader> missed "..dsName.." in disk cache") ds = dp[dsName](dsConf) if ds and cacheOnMiss > 0 then print("<CacheLoader> saving "..dsName.." to disk cache") torch.save(cacheFilePath, ds) end end return ds end function CacheLoader:genCacheName(dsName, dsConf) local cacheName = dsName .. "_prep" tablex.map(function(x) cacheName = cacheName .. tostring(x) end, dsConf.input_preprocess) cacheName = cacheName .."_fract".. tostring(dsConf.fracture_data) cacheName = cacheName .."_valid".. tostring(dsConf.valid_ratio) cacheName = cacheName .. ".ds" return cacheName end
require("prototypes.item.concrete-logistics") require("prototypes.recipe.concrete-logistics") require("prototypes.technology.color-concrete") require("prototypes.entity.concrete-logistics") require("prototypes.style.icon") require("prototypes.style.table") require("prototypes.style.flow") require("prototypes.style.label") require("prototypes.style.button")
if SERVER then AddCSLuaFile( "shared.lua" ) end if CLIENT then SWEP.PrintName = "NV Range Scanner" SWEP.Slot = 1 SWEP.Slotpos = 1 SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 55 SWEP.IconLetter = "Q" end SWEP.Base = "ts_base" SWEP.HoldType = "slam" SWEP.UseHands = true SWEP.ViewModel = "models/weapons/c_slam.mdl" SWEP.WorldModel = "models/weapons/w_grenade.mdl" SWEP.Primary.Deny = Sound( "HL1/fvox/buzz.wav" ) SWEP.Primary.Sound = Sound( "NPC_CombineGunship.PatrolPing" ) SWEP.Primary.Deploy = Sound( "buttons/button19.wav" ) SWEP.Primary.Blip = Sound( "buttons.snd15" ) SWEP.Primary.Holster = Sound( "buttons/combine_button3.wav" ) SWEP.Primary.Delay = 1.800 SWEP.Primary.ClipSize = 1 SWEP.Primary.Automatic = false SWEP.Primary.BatteryUse = 35 function SWEP:Deploy() if SERVER then self.Owner:AddInt( "Battery", -5 ) end self.Weapon:EmitSound( self.Primary.Deploy, 100, math.random( 90, 110 ) ) self.Weapon:SendWeaponAnim( ACT_SLAM_DETONATOR_DRAW ) self.Weapon:SetNextPrimaryFire( CurTime() + 0.5 ) self.Weapon:DrawShadow( false ) return true end function SWEP:Holster() if CLIENT then self.Owner:EmitSound( self.Primary.Holster, 50, math.random( 100, 120 ) ) end return true end function SWEP:PrimaryAttack() if ( SERVER and self.Owner:GetInt( "Battery" ) < self.Primary.BatteryUse ) or ( CLIENT and GAMEMODE:GetInt( "Battery" ) < self.Primary.BatteryUse ) then self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay ) if SERVER then self.Owner:EmitSound( self.Primary.Deny, 40 ) end return end self.Weapon:SendWeaponAnim( ACT_SLAM_DETONATOR_DETONATE ) self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay ) if SERVER then self.Owner:EmitSound( self.Primary.Blip, 100, math.random( 90, 110 ) ) self.Owner:EmitSound( self.Primary.Sound, 100, math.random( 90, 110 ) ) self.Owner:AddInt( "Battery", -1 * self.Primary.BatteryUse ) net.Start( "Scanner" ) net.Send( self.Owner ) end end function SWEP:Think() end function SWEP:Reload() end function SWEP:OnRemove() end
local pluginPath = ... local plugin = remodel.readModelFile(pluginPath)[1] local marker = Instance.new('Folder') marker.Name = 'DEV_BUILD' marker.Parent = plugin remodel.writeModelFile(plugin, pluginPath)
--[[ MIT License Copyright (c) 2020 Ryan Ward Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] local multi, thread = require("multi").init() GLOBAL = multi.integration.GLOBAL THREAD = multi.integration.THREAD function multi:newSystemThreadedQueue(name) local c = {} c.Name = name local fRef = {"func",nil} function c:init() local q = {} q.chan = love.thread.getChannel(self.Name) function q:push(dat) if type(dat) == "function" then fRef[2] = THREAD.dump(dat) self.chan:push(fRef) return else self.chan:push(dat) end end function q:pop() local dat = self.chan:pop() if type(dat)=="table" and dat[1]=="func" then return THREAD.loadDump(dat[2]) else return dat end end function q:peek() local dat = self.chan:peek() if type(dat)=="table" and dat[1]=="func" then return THREAD.loadDump(dat[2]) else return dat end end return q end THREAD.package(name,c) return c end function multi:newSystemThreadedTable(name) local c = {} c.name = name function c:init() return THREAD.createTable(self.name) end THREAD.package(name,c) return c end local jqc = 1 function multi:newSystemThreadedJobQueue(n) local c = {} c.cores = n or THREAD.getCores() c.registerQueue = {} c.funcs = THREAD.createStaticTable("__JobQueue_"..jqc.."_table") c.queue = love.thread.getChannel("__JobQueue_"..jqc.."_queue") c.queueReturn = love.thread.getChannel("__JobQueue_"..jqc.."_queueReturn") c.queueAll = love.thread.getChannel("__JobQueue_"..jqc.."_queueAll") c.id = 0 c.OnJobCompleted = multi:newConnection() local allfunc = 0 function c:doToAll(func) local f = THREAD.dump(func) for i = 1, self.cores do self.queueAll:push({allfunc,f}) end allfunc = allfunc + 1 end function c:registerFunction(name,func) if self.funcs[name] then error("A function by the name "..name.." has already been registered!") end self.funcs[name] = func end function c:pushJob(name,...) self.id = self.id + 1 self.queue:push{name,self.id,...} return self.id end local nFunc = 0 function c:newFunction(name,func,holup) -- This registers with the queue if type(name)=="function" then holup = func func = name name = "JQ_Function_"..nFunc end nFunc = nFunc + 1 c:registerFunction(name,func) return thread:newFunction(function(...) local id = c:pushJob(name,...) local link local rets link = c.OnJobCompleted(function(jid,...) if id==jid then rets = {...} link:Remove() end end) return thread.hold(function() if rets then return unpack(rets) end end) end,holup),name end multi:newThread("jobManager",function() while true do thread.yield() local dat = c.queueReturn:pop() if dat then c.OnJobCompleted:Fire(unpack(dat)) end end end) for i=1,c.cores do multi:newSystemThread("JobQueue_"..jqc.."_worker_"..i,function(jqc) local multi, thread = require("multi"):init() require("love.timer") local function atomic(channel) return channel:pop() end local clock = os.clock local funcs = THREAD.createStaticTable("__JobQueue_"..jqc.."_table") local queue = love.thread.getChannel("__JobQueue_"..jqc.."_queue") local queueReturn = love.thread.getChannel("__JobQueue_"..jqc.."_queueReturn") local lastProc = clock() local queueAll = love.thread.getChannel("__JobQueue_"..jqc.."_queueAll") local registry = {} setmetatable(_G,{__index = funcs}) multi:newThread("startUp",function() while true do thread.yield() local all = queueAll:peek() if all and not registry[all[1]] then lastProc = os.clock() THREAD.loadDump(queueAll:pop()[2])() end end end) multi:newThread("runner",function() thread.sleep(.1) while true do thread.yield() local all = queueAll:peek() if all and not registry[all[1]] then lastProc = os.clock() THREAD.loadDump(queueAll:pop()[2])() end local dat = queue:performAtomic(atomic) if dat then lastProc = os.clock() local name = table.remove(dat,1) local id = table.remove(dat,1) local tab = {funcs[name](unpack(dat))} table.insert(tab,1,id) queueReturn:push(tab) end end end):OnError(function(...) error(...) end) multi:newThread("Idler",function() while true do thread.yield() if clock()-lastProc> 2 then THREAD.sleep(.05) else THREAD.sleep(.001) end end end) multi:mainloop() end,jqc) end jqc = jqc + 1 return c end
require 'cutorch'; require 'cunn'; require 'cudnn' require 'image' require 'nn' require 'nnx' require 'optim' require 'hdf5' require 'util.lua' require 'DataLoader.lua' require 'model.lua' -- Default user options options = { imgColorPath = 'demo/test-heightmap.color.png', imgDepthPath = 'demo/test-heightmap.depth.png', modelPath = 'parallel-jaw-grasping-snapshot-20001.t7', resultsPath = 'demo/results.h5', outputScale = 1/8, imgHeight = 320, imgWidth = 320 } -- Parse user options from command line (i.e. imgColorPath=<image.png> imgDepthPath=<image.png> modelPath=<model.t7> th infer.lua) for k,v in pairs(options) do options[k] = tonumber(os.getenv(k)) or os.getenv(k) or options[k] end -- Set RNG seed math.randomseed(os.time()) -- Load trained model and set to testing (evaluation) mode print('Loading model: '..options.modelPath) local model = torch.load(options.modelPath) model:add(cudnn.SpatialSoftMax()) model = model:cuda() model:evaluate() -- Define dataset average constants (r,g,b) local mean = {0.485,0.456,0.406} local std = {0.229,0.224,0.225} -- Initialize empty tensors for input and output local input = {torch.Tensor(1, 3, options.imgHeight, options.imgWidth),torch.Tensor(1, 3, options.imgHeight, options.imgWidth)} local results = torch.Tensor(1,3,options.imgHeight*options.outputScale,options.imgWidth*options.outputScale):float() -- Load and pre-process color image (24-bit RGB PNG) print('Pre-processing color image: '..options.imgColorPath) local colorImg = image.load(options.imgColorPath) for c=1,3 do colorImg[c]:add(-mean[c]) colorImg[c]:div(std[c]) end -- Load and pre-process depth image (16-bit PNG depth in deci-millimeters) print('Pre-processing depth image: '..options.imgDepthPath) local depth = image.load(options.imgDepthPath) depth = depth*65536/10000 depth = depth:clamp(0.0,1.2) -- Depth range of Intel RealSense SR300 local depthImg = depth:cat(depth,1):cat(depth,1) for c=1,3 do depthImg[c]:add(-mean[c]) depthImg[c]:div(std[c]) end -- Copy images into input tensors and convert them to CUDA input[1]:copy(colorImg:reshape(1, 3, options.imgHeight, options.imgWidth)) input[2]:copy(depthImg:reshape(1, 3, options.imgHeight, options.imgWidth)) input[1] = input[1]:cuda() input[2] = input[2]:cuda() -- Compute forward pass print('Computing forward pass...') local output = model:forward(input) -- Save output test results print('Saving results to: '..options.resultsPath) results = output:float() local resultsFile = hdf5.open(options.resultsPath, 'w') resultsFile:write('results', results:float()) resultsFile:close() print('Done.')
local self = CustomStatSystem local isClient = Ext.IsClient() --region Stat/Category Getting ---@param displayName string ---@return SheetCustomStatData function CustomStatSystem:GetStatByName(displayName) for uuid,stats in pairs(self.Stats) do for id,stat in pairs(stats) do if stat.DisplayName == displayName or stat:GetDisplayName() == displayName then return stat end end end for uuid,stat in pairs(self.UnregisteredStats) do if stat.DisplayName == displayName then return stat end end return nil end ---@param id string The stat id (not the UUID created by the game). ---@param mod string|nil Optional mod UUID to filter for. ---@return SheetCustomStatData function CustomStatSystem:GetStatByID(id, mod) if not self.Loaded then return nil end if not StringHelpers.IsNullOrWhitespace(mod) then local stats = self.Stats[mod] if stats and stats[id] then return stats[id] end end for uuid,stats in pairs(self.Stats) do local stat = stats[id] if stat then return stat end end local stat = self.UnregisteredStats[id] if stat then return stat end --fprint(LOGLEVEL.WARNING, "[CustomStatSystem:GetStatByID] Failed to find stat for id(%s) and mod(%s)", id, mod or "") return nil end ---@param uuid string Unique UUID for the stat. ---@return SheetCustomStatData function CustomStatSystem:GetStatByUUID(uuid) for mod,stats in pairs(self.Stats) do for id,stat in pairs(stats) do if stat.UUID == uuid then return stat end end end return nil end ---Get an iterator of all stats. ---@param inSheetOnly boolean|nil Only get stats in the character sheet, ---@param sortStats boolean|nil ---@param includeUnregisteredStats boolean|nil ---@return fun():SheetCustomStatData function CustomStatSystem:GetAllStats(inSheetOnly, sortStats, includeUnregisteredStats) local allStats = {} local findAll = true if inSheetOnly == true and isClient then local ui = Ext.GetUIByType(Data.UIType.characterSheet) if ui then local this = ui:GetRoot() if not this then return end findAll = false local arr = this.stats_mc.customStats_mc.stats_array for i=0,#arr-1 do local stat_mc = arr[i] if stat_mc and stat_mc.statID then local stat = self:GetStatByDouble(stat_mc.statID) if stat then allStats[#allStats+1] = stat end end end end end if findAll then for uuid,stats in pairs(self.Stats) do for id,stat in pairs(stats) do allStats[#allStats+1] = stat end end if includeUnregisteredStats then for uuid,stat in pairs(self.UnregisteredStats) do allStats[#allStats+1] = stat end end end if sortStats == true then -- table.sort(allStats, function(a,b) -- return a:GetDisplayName() < b:GetDisplayName() -- end) table.sort(allStats, CustomStatSystem.SortStats) end local i = 0 local count = #allStats return function () i = i + 1 if i <= count then return allStats[i] end end end ---@param id string ---@param mod string ---@return SheetCustomStatCategoryData function CustomStatSystem:GetCategoryById(id, mod) if mod then local categories = self.Categories[mod] if categories and categories[id] then return categories[id] end end for uuid,categories in pairs(self.Categories) do if categories[id] then return categories[id] end end return nil end ---@param groupId integer ---@return SheetCustomStatCategoryData function CustomStatSystem:GetCategoryByGroupId(groupId) for uuid,categories in pairs(self.Categories) do for id,category in pairs(categories) do if category.GroupId == groupId then return category end end end return nil end ---Gets the Group ID for a stat that will be used in the characterSheet. ---@param id string The category ID. ---@param mod string Optional mod UUID. ---@return integer function CustomStatSystem:GetCategoryGroupId(id, mod) if not id then return self.MISC_CATEGORY end if mod then local categories = self.Categories[mod] if categories and categories[id] then return categories[id].GroupId or self.MISC_CATEGORY end end for uuid,categories in pairs(self.Categories) do if categories[id] then return categories[id].GroupId or self.MISC_CATEGORY end end return self.MISC_CATEGORY end ---@return boolean function CustomStatSystem:HasCategories() for uuid,categories in pairs(self.Categories) do for id,category in pairs(categories) do return true end end return false end ---@param a SheetCustomStatCategoryData ---@param b SheetCustomStatCategoryData local function SortCategories(a,b) local name1 = a:GetDisplayName() local name2 = b:GetDisplayName() local sortVal1 = a.Index local sortVal2 = b.Index local trySortByValue = false if a.SortName then name1 = a.SortName end if a.SortValue then sortVal1 = a.SortValue trySortByValue = true end if b.SortName then name2 = b.SortName end if b.SortValue then sortVal2 = b.SortValue trySortByValue = true end if trySortByValue and sortVal1 ~= sortVal2 then return sortVal1 < sortVal2 end return name1 < name2 end ---Get an iterator of sorted categories. ---@param skipSort boolean|nil ---@return fun():SheetCustomStatCategoryData function CustomStatSystem:GetAllCategories(skipSort) local allCategories = {} local index = 0 --To avoid duplicate categories by the same id, we set a dictionary first for uuid,categories in pairs(self.Categories) do for id,category in pairs(categories) do category.Index = index index = index + 1 allCategories[id] = category end end ---@type SheetCustomStatCategoryData[] local categories = {} for id,v in pairs(allCategories) do categories[#categories+1] = v end if skipSort ~= true then table.sort(categories, SortCategories) end local i = 0 local count = #categories return function () i = i + 1 if i <= count then return categories[i] end end end ---Gets the total number of registered stats for a category. ---@param categoryId string ---@param visibleOnly boolean|nil ---@return integer function CustomStatSystem:GetTotalStatsInCategory(categoryId, visibleOnly) local total = 0 local isUnsortedCategory = StringHelpers.IsNullOrWhitespace(categoryId) for mod,stats in pairs(self.Stats) do for id,stat in pairs(stats) do local isRegistered = not self:GMStatsEnabled() or not StringHelpers.IsNullOrWhitespace(stat.UUID) local statIsVisible = isRegistered and self:GetStatVisibility(nil, stat.Double, stat) == true if (not visibleOnly or (visibleOnly == true and statIsVisible)) and ((isUnsortedCategory and StringHelpers.IsNullOrWhitespace(stat.Category)) or stat.Category == categoryId) then total = total + 1 end end end if isUnsortedCategory then for uuid,stat in pairs(self.UnregisteredStats) do total = total + 1 end end return total end ---@param double number ---@return SheetCustomStatData function CustomStatSystem:GetStatByDouble(double) for mod,stats in pairs(CustomStatSystem.Stats) do for id,stat in pairs(stats) do if stat.Double == double then return stat end end end for uuid,stat in pairs(CustomStatSystem.UnregisteredStats) do if stat.Double == double then return stat end end return nil end --endregion --region Value Getters ---@private ---@param character EsvCharacter|EclCharacter ---@param stat SheetCustomStatData ---@return integer function CustomStatSystem:GetStatValueForCharacter(character, stat, ...) if type(stat) == "string" then local mod = table.unpack({...}) or "" stat = self:GetStatByID(stat, mod) end if not self:GMStatsEnabled() then return SheetManager.Save.GetEntryValue(character, stat) else return character:GetCustomStat(stat.UUID) or 0 end end ---@param id string|integer The category ID or GroupId. ---@param mod string|nil Optional mod UUID to filter for. function CustomStatSystem:GetStatValueForCategory(character, id, mod) if not character then if Ext.IsServer() then character = Ext.GetCharacter(CharacterGetHostCharacter()) else character = SheetManager.UI.CharacterSheet.GetCharacter() end end local statValue = 0 ---@type SheetCustomStatCategoryData local category = nil if Ext.IsClient() and type(id) == "number" then category = self:GetCategoryByGroupId(id) else category = self:GetCategoryById(id, mod) end if not category then return 0 end for uuid,stats in pairs(self.Stats) do for statId,stat in pairs(stats) do if stat.Category == category.ID then statValue = statValue + self:GetStatValueForCharacter(character, stat) end end end return statValue end --endregion ---@private ---@vararg function[] function CustomStatSystem:GetListenerIterator(...) local tables = {...} local totalCount = #tables if totalCount == 0 then return end local listeners = {} for _,v in pairs(tables) do local t = type(v) if t == "table" then for _,v2 in pairs(v) do listeners[#listeners+1] = v2 end elseif t == "function" then listeners[#listeners+1] = v end end local i = 0 return function () i = i + 1 if i <= totalCount then return listeners[i] end end end if isClient then ---@private function CustomStatSystem:GetStatVisibility(ui, doubleHandle, stat, character) if GameHelpers.Client.IsGameMaster(ui) == true then return true end character = character or SheetManager.UI.CharacterSheet.GetCharacter() stat = stat or (doubleHandle and self:GetStatByDouble(doubleHandle)) if stat then local isVisible = true if stat.Visible ~= nil then isVisible = stat.Visible end for listener in self:GetListenerIterator(self.Listeners.GetStatVisibility[stat.ID], self.Listeners.GetStatVisibility.All) do local b,result = xpcall(listener, debug.traceback, stat.ID, stat, character, isVisible) if b then if type(result) == "boolean" then isVisible = result end else --fprint(LOGLEVEL.ERROR, "[CharacterExpansionLib:CustomStatSystem:GetStatVisibility] Error calling GetStatVisibility listener for stat (%s):\n%s", stat.ID, result) end end return isVisible end return true end end
if (SERVER) then AddCSLuaFile() end if (CLIENT) then SWEP.PrintName = "KSwep Backpack" SWEP.Author = "vurtual" SWEP.Slot = 0 SWEP.SlotPos = 99 end SWEP.Spawnable = false SWEP.Category="KSwep Equipment" SWEP.AdminSpawnable = false SWEP.ViewModel = nil SWEP.WorldModel = "models/weapons/w_suitcase_passenger.mdl" SWEP.Flashlight=false SWEP.Primary.Delay=0.5 SWEP.Primary.DefaultClip=-1 SWEP.Primary.ClipSize=-1 SWEP.Primary.Ammo="none" SWEP.Secondary.Ammo="none" SWEP.Secondary.ClipSize=-1 SWEP.Secondary.DefaultAmmo=-1 function SWEP:Initialize() self:SetColor(Color(0,0,0,0)) self:SetHoldType("normal") end function SWEP:PrimaryAttack() if (SERVER) then if (self.Type=="GunCase") then self:PlaceGunCase() end end end function SWEP:PositionBox(box,tr) local fixpos=tr.HitPos-(tr.HitNormal*512) fixpos=box:NearestPoint(fixpos) fixpos=box:GetPos()-fixpos fixpos=tr.HitPos+fixpos box:SetPos(fixpos) end function SWEP:PlaceGunCase() local tr=self.Owner:GetEyeTrace() if (not tr.Hit) then return end if (tr.StartPos:Distance(tr.HitPos)>128) then return end local box=ents.Create("sent_vurt_supplybox") box:SetPos(tr.HitPos+Vector(0,0,1)) box:Spawn() box:SetModel(self.BoxModel) box:PhysicsInit(SOLID_VPHYSICS) self:PositionBox(box,tr) box:SetNWBool("GiveAmmo",self.GiveAmmo) box:SetNWBool("GiveSuppressors",self.GiveSuppressors) box:SetNWBool("GiveOptics",self.GiveOptics) box:SetNWBool("GiveLights",self.GiveLights) box:SetNWBool("GiveArmor",self.GiveArmor) box:SetNWBool("GunRack",self.GunRack) box:SetNWBool("Suitcase",true) box.GunList=self.GunList self:Remove() end function SWEP:PlaceMedicBag() local tr=self.Owner:GetEyeTrace() if (not tr.Hit) then return end if (tr.StartPos:Distance(tr.HitPos)>128) then return end local box=ents.Create("sent_vurt_medbag") box:SetPos(tr.HitPos+Vector(0,0,1)) box:Spawn() self:PositionBox(box,tr) self:Remove() end function SWEP:Deploy() self.Owner:DrawViewModel(false) end function SWEP:CustomAmmoDisplay() return {} end SWEP.DrawCrosshair = false function SWEP:SecondaryAttack() end
object_tangible_collection_rock_glowing_10 = object_tangible_collection_shared_rock_glowing_10:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rock_glowing_10, "object/tangible/collection/rock_glowing_10.iff")
----------------------------------------- -- ID: 4183 -- Konron Hassen -- A fountain-type firework appears on the ground ----------------------------------------- function onItemCheck(target) return 0 end function onItemUse(target) end
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2013 -- ============================================================= -- Behavior - Physics: My Force -- ============================================================= -- Short and Sweet License: -- 1. You may use anything you find in the SSKCorona library and sampler to make apps and games for free or $$. -- 2. You may not sell or distribute SSKCorona or the sampler as your own work. -- 3. If you intend to use the art or external code assets, you must read and follow the licenses found in the -- various associated readMe.txt files near those assets. -- -- Credit?: Mentioning SSKCorona and/or Roaming Gamer, LLC. in your credits is not required, but it would be nice. Thanks! -- -- ============================================================= -- -- ============================================================= --local debugLevel = 1 -- Comment out to get global debugLevel from main.cs local dp = ssk.debugPrinter.newPrinter( debugLevel ) local dprint = dp.print public = {} public._behaviorName = "physics_myForce" function public:onAttach( obj, params ) dprint(0,"Attached Behavior: " .. self._behaviorName) behaviorInstance = {} behaviorInstance._behaviorName = self._behaviorName behaviorInstance.moveObj = obj obj.myForce = {x = (params.forceX or 0), y = (params.forceY or 0) } obj.myForce_enabled = enabled or true -- Other behaviors and code may add (transient) forces which are used and removed -- every frame by this behavior. obj.myExtForces = { } -- Other behaviors and code may add constant forces which are used and removed -- every frame by this behavior. obj.myConstantExtForces = { } obj.myForce_addForce = function( self, forceX, forceY ) obj.myExtForces[#obj.myExtForces+1] = {x = forceX or 0, y = forceY or 0} end -- forceIndex - Required index for storing force value. obj.myForce_addConstantForce = function( self, forceIndex, forceX, forceY ) obj.myConstantExtForces[forceIndex] = {x = forceX or 0, y = forceY or 0} end obj.myForce_removeConstantForce = function( self, forceIndex ) obj.myConstantExtForces[forceIndex] = nil end -- Pass a nil for forceX and/or forceY to retain prior value obj.myForce_set = function( self, forceX, forceY) obj.myForce.x = forceX or obj.myForce.x obj.myForce.y = forceY or obj.myForce.y end obj.myForce_get = function( self ) -- return a copy, not the original table return { x = obj.myForce.x, y = obj.myForce.y } end obj.myForce_getX = function( self ) return obj.myForce.x end obj.myForce_getY = function( self ) return obj.myForce.y end obj.disable_myForce = function( self ) self.myForce_enabled = false end obj.enable_myForce = function( self ) self.myForce_enabled = true end obj.myForce_isEnabled = function( self ) return self.myForce_enabled end local function updateForce( event ) if(not obj:myForce_isEnabled()) then return false end local x,y = obj.myForce.x,obj.myForce.y for k,v in ipairs(obj.myExtForces) do x,y = x+v.x, y+v.y end obj.myExtForces = {} obj:applyForce(x,y,obj.x,obj.y) return false end Runtime:addEventListener( "enterFrame", updateForce ) function behaviorInstance:onDetach( obj ) dprint(0,"Detached Behavior: " .. self._behaviorName) Runtime:removeEventListener( "enterFrame", updateForce ) end return behaviorInstance end ssk.behaviors:registerBehavior( "physics_myForce", public ) return public
-- Script based collision detection without physics for Defold -- Eventually want to port to a native extension for performance local M = {} -- point within an unrotated rectangle assuming that the rectangle's x,y is its centroid function M.point_within_rectangle_centroid(point_x, point_y, rectangle_x, rectangle_y, rectangle_width, rectangle_height) local width_half = rectangle_width / 2 local height_half = rectangle_height / 2 if point_x >= (rectangle_x - width_half) and point_x <= (rectangle_x + width_half) then if point_y >= (rectangle_y - height_half) and point_y <= (rectangle_y + height_half) then return true end end return false end return M
vim.g.tokyonight_style = "night" vim.g.tokyonight_dark_sidebar = true vim.g.tokyonight_dark_float = true vim.g.vscode_style = "dark" -- Enable transparent background. vim.g.vscode_transparent = 1 -- Enable italic comment vim.g.vscode_italic_comment = 1 -- vim.cmd("colorscheme vscode") vim.cmd("colorscheme tokyonight") -- vim.cmd("colorscheme rvcs")
function Inner( k ) print( debug.traceback() ) print "Program continues..." end function Middle( x, y ) Inner( x+y ) end function Outer( a, b, c ) Middle( a*b, c ) end Outer( 2, 3, 5 )
local DefaultAccess = { isAdmin = true } bgNPC.cvar = bgNPC.cvar or {} bgNPC.cvar.bgn_enable = 1 bgNPC.cvar.bgn_debug = 0 bgNPC.cvar.bgn_max_npc = 35 bgNPC.cvar.bgn_spawn_radius = 3000 bgNPC.cvar.bgn_disable_logic_radius = 500 bgNPC.cvar.bgn_spawn_radius_visibility = 2500 bgNPC.cvar.bgn_spawn_radius_raytracing = 2000 bgNPC.cvar.bgn_spawn_block_radius = 600 bgNPC.cvar.bgn_spawn_period = 1 bgNPC.cvar.bgn_tool_point_editor_autoparent = 1 bgNPC.cvar.bgn_tool_point_editor_autoalignment = 1 bgNPC.cvar.bgn_point_z_limit = 100 bgNPC.cvar.bgn_enable_wanted_mode = 1 bgNPC.cvar.bgn_wanted_time = 30 bgNPC.cvar.bgn_wanted_level = 1 bgNPC.cvar.bgn_wanted_hud_text = 1 bgNPC.cvar.bgn_wanted_hud_stars = 1 bgNPC.cvar.bgn_arrest_mode = 1 bgNPC.cvar.bgn_arrest_time = 5 bgNPC.cvar.bgn_arrest_time_limit = 20 bgNPC.cvar.bgn_ignore_another_npc = 0 bgNPC.cvar.bgn_shot_sound_mode = 0 bgNPC.cvar.bgn_disable_citizens_weapons = 0 bgNPC.cvar.bgn_disable_halo = 0 bgNPC.cvar.bgn_enable_dv_support = 1 bgNPC.cvar.bgn_enable_police_system_support = 1 bgNPC.cvar.bgn_disable_dialogues = 0 bgNPC.cvar.bgn_tool_draw_distance = 1000 bgNPC.cvar.bgn_movement_checking_parts = 5 bgNPC.cvar.bgn_tool_point_editor_show_parents = 1 bgNPC.cvar.bgn_actors_teleporter = 0 bgNPC.cvar.bgn_actors_max_teleports = 3 bgNPC.cvar.bgn_tool_seat_offset_pos_x = 0 bgNPC.cvar.bgn_tool_seat_offset_pos_y = 0 bgNPC.cvar.bgn_tool_seat_offset_pos_z = 0 bgNPC.cvar.bgn_tool_seat_offset_angle_x = 0 bgNPC.cvar.bgn_tool_seat_offset_angle_y = 0 bgNPC.cvar.bgn_tool_seat_offset_angle_z = 0 bgNPC.cvar.bgn_cl_draw_npc_path = 0 bgNPC.cvar.bgn_cl_field_view_optimization = 1 bgNPC.cvar.bgn_cl_field_view_optimization_range = 500 bgNPC.cvar.bgn_cl_ambient_sound = 1 bgNPC.cvar.bgn_module_replics_enable = 1 bgNPC.cvar.bgn_module_replics_language = 'english' function bgNPC:IsActiveNPCType(npc_type) return GetConVar('bgn_npc_type_' .. npc_type):GetBool() end function bgNPC:GetFullness(npc_type) local data = bgNPC.cfg.npcs_template[npc_type] if data == nil then return 0 end if data.fullness ~= nil then local max = math.Round( (data.fullness / 100) * GetConVar('bgn_max_npc'):GetInt() ) if max >= 0 then return max end elseif data.limit ~= nil then return math.Round(data.limit) end return 0 end function bgNPC:GetLimitActors(npc_type) return GetConVar('bgn_npc_type_max_' .. npc_type):GetInt() end CreateConVar('bgn_installed', 1, { FCVAR_ARCHIVE, FCVAR_NOTIFY, FCVAR_REPLICATED, FCVAR_SERVER_CAN_EXECUTE }, '') scvar.Register('bgn_enable', bgNPC.cvar.bgn_enable, FCVAR_ARCHIVE, 'Toggles the modification activity. 1 - enabled, 0 - disabled.') .Access(DefaultAccess) scvar.Register('bgn_debug', bgNPC.cvar.bgn_debug, FCVAR_ARCHIVE, 'Turns on debug mode and prints additional information to the console.') .Access(DefaultAccess) scvar.Register('bgn_enable_wanted_mode', bgNPC.cvar.bgn_enable_wanted_mode, FCVAR_ARCHIVE, 'Enables or disables wanted mode.') .Access(DefaultAccess) scvar.Register('bgn_wanted_time', bgNPC.cvar.bgn_wanted_time, FCVAR_ARCHIVE, 'The time you need to go through to remove the wanted level.') .Access(DefaultAccess) scvar.Register('bgn_wanted_level', bgNPC.cvar.bgn_wanted_level, FCVAR_ARCHIVE, 'Enables or disables the boost wanted level mode.') .Access(DefaultAccess) scvar.Register('bgn_wanted_hud_text', bgNPC.cvar.bgn_wanted_hud_text, FCVAR_ARCHIVE, 'Enables or disables the text about wanted time.') .Access(DefaultAccess) scvar.Register('bgn_wanted_hud_stars', bgNPC.cvar.bgn_wanted_hud_stars, FCVAR_ARCHIVE, 'Enables or disables drawing of stars in wanted mode.') .Access(DefaultAccess) scvar.Register('bgn_max_npc', bgNPC.cvar.bgn_max_npc, FCVAR_ARCHIVE, 'The maximum number of background NPCs on the map.') .Access(DefaultAccess) scvar.Register('bgn_spawn_radius', bgNPC.cvar.bgn_spawn_radius, FCVAR_ARCHIVE, 'NPC spawn radius relative to the player.') .Access(DefaultAccess) scvar.Register('bgn_disable_logic_radius', bgNPC.cvar.bgn_disable_logic_radius, FCVAR_ARCHIVE, 'Determines at what distance the NPC will disable logic for optimization purposes') .Access(DefaultAccess) scvar.Register('bgn_spawn_radius_visibility', bgNPC.cvar.bgn_spawn_radius_visibility, FCVAR_ARCHIVE, 'Triggers an NPC visibility check within this radius to avoid spawning entities in front of the player.') .Access(DefaultAccess) scvar.Register('bgn_spawn_radius_raytracing', bgNPC.cvar.bgn_spawn_radius_raytracing, FCVAR_ARCHIVE, 'Checks the spawn points of NPCs using ray tracing in a given radius. This parameter must not be more than - bgn_spawn_radius_visibility. 0 - Disable checker') .Access(DefaultAccess) scvar.Register('bgn_spawn_block_radius', bgNPC.cvar.bgn_spawn_block_radius, FCVAR_ARCHIVE, 'Prohibits spawning NPCs within a given radius. Must not be more than the parameter - bgn_spawn_radius_ray_tracing. 0 - Disable checker') .Access(DefaultAccess) scvar.Register('bgn_spawn_period', bgNPC.cvar.bgn_spawn_period, FCVAR_ARCHIVE, 'The period between the spawn of the NPC. Changes require a server restart.') .Access(DefaultAccess) -- scvar.Register('bgn_ptp_distance_limit', bgNPC.cvar.bgn_ptp_distance_limit, -- FCVAR_ARCHIVE, 'You can change the point-to-point limit for the instrument if you have a navigation mesh on your map.') scvar.Register('bgn_point_z_limit', bgNPC.cvar.bgn_point_z_limit, FCVAR_ARCHIVE, 'Height limit between points. Used to correctly define child points.') .Access(DefaultAccess) scvar.Register('bgn_arrest_mode', bgNPC.cvar.bgn_arrest_mode, FCVAR_ARCHIVE, 'Includes a player arrest module. Attention! It won\'t do anything in the sandbox. By default, there is only a DarkRP compatible hook. If you activate this module in an unsupported gamemode, then after the arrest the NPCs will exclude you from the list of targets.') .Access(DefaultAccess) scvar.Register('bgn_arrest_time', bgNPC.cvar.bgn_arrest_time, FCVAR_ARCHIVE, 'Sets the time allotted for your detention.') .Access(DefaultAccess) scvar.Register('bgn_arrest_time_limit', bgNPC.cvar.bgn_arrest_time_limit, FCVAR_ARCHIVE, 'Sets how long the police will ignore you during your arrest. If you refuse to obey after the lapse of time, they will start shooting at you.') .Access(DefaultAccess) scvar.Register('bgn_ignore_another_npc', bgNPC.cvar.bgn_ignore_another_npc, FCVAR_ARCHIVE, 'If this parameter is active, then NPCs will ignore any other spawned NPCs.') .Access(DefaultAccess) scvar.Register('bgn_shot_sound_mode', bgNPC.cvar.bgn_shot_sound_mode, FCVAR_ARCHIVE, 'If enabled, then NPCs will react to the sound of a shot as if someone was shooting at an ally. (Warning: this function is experimental and not recommended for use)') .Access(DefaultAccess) scvar.Register('bgn_disable_citizens_weapons', bgNPC.cvar.bgn_disable_citizens_weapons, FCVAR_ARCHIVE, 'Prohibits citizens from having weapons.') .Access(DefaultAccess) scvar.Register('bgn_disable_halo', bgNPC.cvar.bgn_disable_halo, FCVAR_ARCHIVE, 'Disable NPC highlighting stroke.') .Access(DefaultAccess) scvar.Register('bgn_enable_dv_support', bgNPC.cvar.bgn_enable_dv_support, FCVAR_ARCHIVE, 'Includes compatibility with the "DV" addon and forces NPCs to use vehicles.') .Access(DefaultAccess) scvar.Register('bgn_enable_police_system_support', bgNPC.cvar.bgn_enable_police_system_support, FCVAR_ARCHIVE, 'Enables compatibility with the "Police System" addon and overrides the default arrest method.' ).Access(DefaultAccess) scvar.Register('bgn_disable_dialogues', bgNPC.cvar.bgn_disable_dialogues, FCVAR_ARCHIVE, 'Activate this if you want to disable dialogues between NPCs.') .Access(DefaultAccess) scvar.Register('bgn_movement_checking_parts', bgNPC.cvar.bgn_movement_checking_parts, FCVAR_ARCHIVE, 'The number of NPCs whose movement can be checked at one time. The higher the number, the less frames you get, but NPCs will stop less often, waiting for the command to move to the next point. Recommended for weak PCs - 1, for medium - 5, for powerful - 10.') .Access(DefaultAccess) scvar.Register('bgn_actors_teleporter', bgNPC.cvar.bgn_actors_teleporter, FCVAR_ARCHIVE, 'Instead of removing the NPC after losing it from the players field of view, it will teleport to the nearest point. This will create the effect of a more populated city. Disable this option if you notice dropped frames.') .Access(DefaultAccess) scvar.Register('bgn_actors_max_teleports', bgNPC.cvar.bgn_actors_max_teleports, FCVAR_ARCHIVE, 'How many NPCs can be teleported in one second. The larger the number, the more calculations will be performed. The teleport is calculated for each actor individually, without waiting for the teleport of another actor from his group.') .Access(DefaultAccess) scvar.Register('bgn_module_replics_language', bgNPC.cvar.bgn_module_replics_language, FCVAR_ARCHIVE, 'Sets the language of the NPC replicas. The default is - en.') .Access(DefaultAccess) scvar.Register('bgn_module_replics_enable', bgNPC.cvar.bgn_module_replics_enable, FCVAR_ARCHIVE, 'Enables or disables NPC text replics.') .Access(DefaultAccess) for npcType, v in pairs(bgNPC.cfg.npcs_template) do local enabled = 0 if v.enabled then enabled = 1 end scvar.Register('bgn_npc_type_' .. npcType, enabled, FCVAR_ARCHIVE) .Access(DefaultAccess) end for npcType, v in pairs(bgNPC.cfg.npcs_template) do scvar.Register('bgn_npc_type_max_' .. npcType, bgNPC:GetFullness(npcType), FCVAR_ARCHIVE).Access(DefaultAccess) end for npcType, v in pairs(bgNPC.cfg.npcs_template) do local max_vehicle = v.max_vehicle or 0 scvar.Register('bgn_npc_vehicle_max_' .. npcType, max_vehicle, FCVAR_ARCHIVE) .Access(DefaultAccess) end
return {recents={}, window={[1]=2048,[2]=1057,[3]=0,[4]=95,["n"]=4}, window_mode="maximized", previous_find={}, previous_replace={}}
--[==[ JSON encoding and decoding API. Written by Cosmin Apreutesei. Public Domain. json.decode(s[, null_val]) -> t decode JSON json.encode(t) -> s encode JSON json.null value to encode json `null` json.asarray(t) -> t mark t to be encoded as a json array json.pack(...) -> t like pack() but nils become null json.unpack(t) -> ... like unpack() but nulls become nil ]==] local cjson = require'cjson'.new() local prettycjson = require'prettycjson' local json = {} cjson.encode_sparse_array(false, 0, 0) --encode all sparse arrays. cjson.encode_empty_table_as_object(false) --encode empty tables as arrays. json.null = cjson.null function json.asarray(t) return setmetatable(t or {}, cjson.array_mt) end function json.pack(...) local t = json_array{...} for i=1,select('#',...) do if t[i] == nil then t[i] = null end end return t end function json.unpack(t) local dt = {} for i=1,#t do if t[i] == null then dt[i] = nil else dt[i] = t[i] end end return unpack(dt, 1, #t) end local function repl_nulls_t(t, null_val) if null_val == nil and t[1] ~= nil then --array local n = #t for i=1,n do if t[i] == null then --sparse t[i] = nil t.n = n elseif type(t[i]) == 'table' then repl_nulls_t(t[i], nil) end end else for k,v in pairs(t) do if v == null then t[k] = null_val elseif type(v) == 'table' then repl_nulls_t(v, null_val) end end end return t end local function repl_nulls(v, null_val) if null_val == null then return v end if type(v) == 'table' then return repl_nulls_t(v) else return repl(v, null, null_val) end end function json.decode(v, null_val) if type(v) ~= 'string' then return v end return repl_nulls(cjson.decode(v), null_val) end function json.encode(v, indent) if indent and indent ~= '' then return prettycjson(v, nil, indent) else return cjson.encode(v) end end return json
return function() local result = {} if not game.active_mods['Vehicle Wagon'] then return nil end return { categories = { trains = { groups = { trains = { items = { ["vehicle-wagon"] = { order = 500 } } } } } } } end
#! /usr/bin/env luajit -- Copyright (c) 2013 Stephen Irons -- License included at end of file local fluid = require('fluidsynth') local chords = require('chords') local serpent = require('serpent') local soundfont = '/usr/share/sounds/sf2/FluidR3_GM.sf2' local audio_driver = 'pulseaudio' local function schedule_callback(s, time) local ev = fluid.new_event() fluid.event_set_source(ev, -1) -- print(ev, s.sched_client_id) fluid.event_set_dest(ev, s.sched_client_id) fluid.event_timer(ev, nil) local result = fluid.sequencer_send_at(s.sequencer, ev, time, 1) end local function schedule_noteon(time, channel, note, velocity) local ev = fluid.new_event() fluid.event_set_source(ev, -1) fluid.event_set_dest(ev, s.synth_client_id) fluid.event_noteon(ev, channel-1, note, velocity) local result = fluid.sequencer_send_at(s.sequencer, ev, time, 1) end local function schedule_bar(s) local sequence = s.selected_sequence local current_bar = s.current_bar local bar = sequence[current_bar] local beats = sequence[current_bar].beats or sequence.time_signature[1] or 4 local tempo = bar.tempo or sequence.tempo or 60 local beat_duration = 60/tempo * 1000 for _, chord in ipairs(bar) do local chord_sum = 0 for _, tone in ipairs(chord.tones) do chord_sum = chord_sum + tone end print(chord_sum, s.last_chord_sum) print(serpent.block(chord.tones)) if s.last_chord_sum ~= nil then local diff = chord_sum - s.last_chord_sum if diff > 12 then chord.tones[#chord.tones] = chord.tones[#chord.tones] - 12 chord_sum = chord_sum - 12 elseif diff < -12 then chord.tones[1] = chord.tones[1] + 12 chord_sum = chord_sum + 12 end end print(chord_sum, s.last_chord_sum) print(serpent.block(chord.tones)) s.last_chord_sum = chord_sum for _, tone in ipairs(chord.tones) do local t = s.now + chord[1] * beat_duration local channel = 1 local velocity = 127 schedule_noteon(t, channel, tone, velocity) end end local chords = tostring(current_bar) for _, chord in ipairs(bar) do chords = chords .. ' ' .. chord[2] end print(chords) for b = 1, beats do local t = s.now + b * beat_duration local channel = 10 local note = 75 local velocity = 127 schedule_noteon(t, channel, note, velocity) end s.current_bar = s.current_bar + 1 if s.current_bar > #sequence then s.repeat_count = s.repeat_count + 1 s.current_bar = 1 print(s.repeat_count, s.nrepeats) if not s.nrepeats and s.repeat_count > s.nrepeats then s.stop_now = true end end if s.stop_now == false then schedule_callback(s, s.now + beats * beat_duration) s.now = s.now + beats * beat_duration end end local callback = function(time, ev, seq, data) --print('**', a, b, c, d) s = global_sequencer schedule_bar(s) end ffi=require('ffi') local function new_synth(audio_driver, soundfont) local s = {} print(ffi.cast('void *', 0)) print(s) -- print(ffi.cast('void *', s)) s.audio_driver = audio_driver or 'pulseaudio' s.soundfont = soundfont or '/usr/share/sounds/sf2/FluidR3_GM.sf2' s.settings = fluid.new_settings() fluid.settings_setstr(s.settings, 'audio.driver', s.audio_driver) s.synth = fluid.new_synth(s.settings) s.audiodriver = fluid.new_audio_driver(s.settings, s.synth) s.sequencer = fluid.new_sequencer2(0) s.synth_client_id = fluid.sequencer_register_fluidsynth(s.sequencer, s.synth) s.sched_client_id = fluid.sequencer_register_client(s.sequencer, 'me', callback, nil) s.sfid = fluid.synth_sfload(s.synth, s.soundfont, true) return s end local function set_sequence(s, sequence) s.selected_sequence = sequence global_sequencer = s for _, bar in ipairs(sequence) do for _, c in ipairs(bar) do c.tones = chords.make_chord(c[2]) --print(serpent.block(c)) end end end local function start(s, repeats) s.nrepeats = repeats or 3 s.repeat_count = 1 s.current_bar = 1 s.stop_now = false s.now = fluid.sequencer_get_tick(s.sequencer) schedule_bar(s) end local function stop(s) s.stop_now = true end local M = {} M.new_synth = new_synth M.set_sequence = set_sequence M.start = start M.stop = stop return M -- Copyright (C) 2013 Stephen Irons -- -- Permission is hereby granted, free of charge, to any person -- obtaining a copy of this software and associated documentation -- files (the "Software"), to deal in the Software without -- restriction, including without limitation the rights to use, -- copy, modify, merge, publish, distribute, sublicense, and/or sell -- copies of the Software, and to permit persons to whom the -- Software is furnished to do so, subject to the following -- conditions: -- -- The above copyright notice and this permission notice shall be -- included in all copies or substantial portions of the Software. -- -- The software is provided "as is", without warranty of any kind, -- express or implied, including but not limited to the warranties -- of merchantability, fitness for a particular purpose and -- noninfringement. In no event shall the authors or copyright -- holder be liable for any claim, damages or other liability, -- whether in an action of contract, tort or otherwise, arising -- from, out of or in connection with the software or the use or -- other dealings in the software.
local thismod = minetest.get_current_modname() local modpath = minetest.get_modpath(thismod) local tm = thismod..":" dofile(modpath .. "/nodes.lua") dofile(modpath .. "/lib.lua")
-- Install the packer if not yet local execute = vim.api.nvim_command local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/opt/packer.nvim" if vim.fn.empty(vim.fn.glob(install_path)) > 0 then execute("!git clone https://github.com/wbthomason/packer.nvim " .. install_path) execute "packadd packer.nvim" end vim.cmd [[packadd packer.nvim]] vim.cmd("autocmd BufWritePost plugins.lua PackerCompile") return require("packer").startup( function() -- Packer can manage itself as an optional plugin use {"wbthomason/packer.nvim", opt = true} -- lsp use "neovim/nvim-lspconfig" use "tjdevries/nlua.nvim" use "nvim-lua/lsp-status.nvim" use "hrsh7th/cmp-nvim-lsp" use "hrsh7th/cmp-nvim-lua" use "hrsh7th/cmp-buffer" use "hrsh7th/cmp-path" use "hrsh7th/nvim-cmp" use "onsails/lspkind-nvim" use "f3fora/cmp-spell" use "b0o/schemastore.nvim" -- https://github.com/b0o/SchemaStore.nvim -- formatter use "mhartington/formatter.nvim" -- https://github.com/mhartington/formatter.nvim -- snippets use "L3MON4D3/LuaSnip" use "saadparwaiz1/cmp_luasnip" use "mattn/emmet-vim" -- https://github.com/mattn/emmet-vim -- theme use "folke/tokyonight.nvim" -- line use { "hoob3rt/lualine.nvim", requires = {"kyazdani42/nvim-web-devicons", opt = true} } use "rcarriga/nvim-notify" -- treesitter use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"} use "nvim-treesitter/playground" use { "lewis6991/spellsitter.nvim", config = function() require("spellsitter").setup() end } -- file manager -- fuzzy finder use { "nvim-telescope/telescope.nvim", requires = {{"nvim-lua/plenary.nvim"}} } use "tpope/vim-vinegar" -- https://github.com/tpope/vim-vinegar use "cljoly/telescope-repo.nvim" -- https://github.com/cljoly/telescope-repo.nvim use { "AckslD/nvim-neoclip.lua", requires = {"tami5/sqlite.lua", module = "sqlite"}, config = function() require("neoclip").setup() end } -- https://github.com/ThePrimeagen/harpoon use { "ThePrimeagen/harpoon", requires = {{"nvim-lua/plenary.nvim"}} } use "tpope/vim-repeat" -- https://github.com/tpope/vim-repeat use "ggandor/lightspeed.nvim" -- https://github.com/ggandor/lightspeed.nvim -- markdown preview use {"iamcco/markdown-preview.nvim", run = "cd app && yarn install"} -- https://github.com/iamcco/markdown-preview.nvim -- comments -- https://github.com/numToStr/Comment.nvim use { "numToStr/Comment.nvim", config = function() require("Comment").setup() end } -- pears use "steelsojka/pears.nvim" require("pears").setup() -- wiki use "vimwiki/vimwiki" -- https://github.com/vimwiki/vimwiki -- surround use "tpope/vim-surround" -- https://github.com/tpope/vim-surround -- colors use "norcalli/nvim-colorizer.lua" -- https://github.com/norcalli/nvim-colorizer.lua -- multi edition -- https://github.com/brooth/far.vim use "brooth/far.vim" -- buffers -- https://github.com/ojroques/nvim-bufdel use "ojroques/nvim-bufdel" -- dashboard use { "goolord/alpha-nvim", -- https://github.com/goolord/alpha-nvim requires = {"kyazdani42/nvim-web-devicons"} } -- wich key use { "folke/which-key.nvim", config = function() require("which-key").setup {} end } -- test use "vim-test/vim-test" -- https://github.com/vim-test/vim-test -- use { -- https://github.com/rcarriga/vim-ultest -- "rcarriga/vim-ultest", -- requires = {"vim-test/vim-test"}, -- run = ":UpdateRemotePlugins" -- } -- debug use "mfussenegger/nvim-dap" use "nvim-telescope/telescope-dap.nvim" -- use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} } -- term use "akinsho/nvim-toggleterm.lua" -- vcs use "tpope/vim-fugitive" -- https://github.com/tpope/vim-fugitive use { "lewis6991/gitsigns.nvim", requires = { "nvim-lua/plenary.nvim" } } use "rhysd/git-messenger.vim" -- https://github.com/rhysd/git-messenger.vim use {"sindrets/diffview.nvim", requires = "nvim-lua/plenary.nvim"} -- https://github.com/sindrets/diffview.nvim -- others use "edluffy/specs.nvim" -- https://github.com/edluffy/specs.nvim use "nacro90/numb.nvim" -- https://github.com/nacro90/numb.nvim use "godlygeek/tabular" -- use "simrat39/rust-tools.nvim" use { "folke/zen-mode.nvim", -- https://github.com/folke/zen-mode.nvim config = function() require("zen-mode").setup {} end } -- dependencies use( { "vuki656/package-info.nvim", requires = "MunifTanjim/nui.nvim" } ) end )
-- SAPI for CivetWeb -- Wrapper for the native "mg" interface SAPI = {} SAPI.Request = {} SAPI.Request.getpostdata = function(n) local s = "" s = mg.read(n) return s end SAPI.Request.servervariable = function(varname) local s if varname == "REQUEST_METHOD" then s = mg.request_info.request_method elseif varname == "QUERY_STRING" then s = mg.request_info.query_string elseif varname == "SERVER_PORT" then s = mg.request_info.server_port elseif varname == "SERVER_NAME" then s = mg.auth_domain elseif varname == "PATH_INFO" then s = mg.request_info.path_info elseif varname == "AUTH_TYPE" then s = mg.request_info.query_string elseif varname == "REMOTE_ADDR" then s = mg.request_info.remote_addr elseif varname == "SERVER_SOFTWARE" then s = "CivetWeb/" .. mg.version elseif varname == "SERVER_PROTOCOL" then s = "HTTP/1.1" else print(varname) end return s or "" end SAPI._CurrentResponse = {contenttype = "text/plain", header={}, written=false, status=200} SAPI.Response = {} SAPI.Response.contenttype = function(header) SAPI._CurrentResponse.contenttype = header print("Content: " .. header) end SAPI.Response.errorlog = function(message) print("Error: " .. tostring(message)) end SAPI.Response.header = function(header, value) local t = SAPI._CurrentResponse.header t[#t] = string.format("%s: %s", header, value) end SAPI.Response.redirect = function(uri) print("Redirect: " .. uri) end SAPI.Response.write = function(...) if not SAPI._CurrentResponse.written then if arg[1]:sub(4) ~= "HTTP" then mg.write("HTTP/1.1 " .. SAPI._CurrentResponse.status .. " " .. mg.get_response_code_text(SAPI._CurrentResponse.status) .. "\r\n") mg.write("Content-Type: " .. SAPI._CurrentResponse.contenttype .. "\r\n") for _,v in ipairs(SAPI._CurrentResponse.header) do mg.write(v .. "\r\n") end mg.write("\r\n") end SAPI._CurrentResponse.written = true; end for _,v in ipairs(arg) do mg.write(v) end end -- Debug helper function to print a table function po(t) print("Type: " .. type(t) .. ", Value: " .. tostring(t)) if type(t)=="table" then for k,v in pairs(t) do print(k,v) end end end ----------------------------------------------------- -- Use cgilua interface -- require "cgilua"
local function pp(t) local print_r_cache = {} local function sub_print_r(t, indent) if (print_r_cache[tostring(t)]) then print(indent .. "*" .. tostring(t)) else print_r_cache[tostring(t)] = true if (type(t) == "table") then for pos, val in pairs(t) do if (type(val) == "table") then print(indent .. "[" .. pos .. "] => " .. tostring(t) .. " {") sub_print_r(val, indent .. string.rep(" ", string.len(pos) + 8)) print(indent .. string.rep(" ", string.len(pos) + 6) .. "}") elseif (type(val) == "string") then print(indent .. "[" .. pos .. '] => "' .. val .. '"') else print(indent .. "[" .. pos .. "] => " .. tostring(val)) end end else print(indent .. tostring(t)) end end end if (type(t) == "table") then print(tostring(t) .. " {") sub_print_r(t, " ") print("}") else sub_print_r(t, " ") end print() end local function timestamp(totalSecs) local mins = math.floor(totalSecs / 60) local secs = math.floor(totalSecs - mins * 60) local ms = math.floor(1000 * (totalSecs - mins * 60 - secs)) return string.format("%02d:%02d.%03d", mins, secs, ms) end local function duration(totalSecs, sep) if totalSecs < 0.001 then return "0s" elseif totalSecs < 1 then return string.format("%3.0fms", totalSecs * 1000) elseif totalSecs < 60 then return string.format("%2.1fs", totalSecs) else local mins = math.floor(totalSecs / 60) local secs = math.floor(totalSecs - mins * 60) sep = sep or " " return string.format("%2dm%s%2ds", mins, sep, secs) end end local function durationNoSpace(totalSecs, sep) if totalSecs < 0.001 then return "0s" elseif totalSecs < 1 then return string.format("%03fms", totalSecs * 1000) elseif totalSecs < 60 then return string.format("%02.1fs", totalSecs) else local mins = math.floor(totalSecs / 60) local secs = math.floor(totalSecs - mins * 60) sep = sep or " " return string.format("%02dm%s%02ds", mins, sep, secs) end end local function split(s, delimiter) local result = {} for match in (s .. delimiter):gmatch("(.-)" .. delimiter:quote()) do if match then table.insert(result, match) end end return result end local function trim(s) return s:match '^()%s*$' and '' or s:match '^%s*(.*%S)' end local function startsWith(s, pattern) return s and pattern and (string.sub(s, 1, string.len(pattern)) == pattern) end local function endsWith(s, pattern) return s and pattern and (pattern == '' or string.sub(s, -string.len(pattern)) == pattern) end local function firstToUpper(s) return (s:gsub("^%l", string.upper)) end local function removeExtension(text) return text:gsub("[.]%w*$", "", 1) end local function shorten(text, maxLen, div, forceRemoveExtension) if text == nil then return end if forceRemoveExtension then text = removeExtension(text) end if text:len() <= maxLen then return text end -- trim and remove consecutive white space text = text:match("^%s*(.*%S)") if text then text = text:gsub("%s%s*", " ") end if text:len() <= maxLen then return text end -- strip off the extension if not forceRemoveExtension then text = removeExtension(text) if text:len() <= maxLen then return text end end -- remove any whitespace text = text:gsub("%s%s*", "") if text:len() <= maxLen then return text end -- remove any non-alphanumeric characters -- text = text:gsub("[^%w]","") -- if text:len() <= maxLen then -- return text -- end -- telescope the string with ellipsis in the middle div = div or ".." local divLen if div == ".." then divLen = 1 else divLen = div:len() end local n = maxLen - divLen local i = math.floor(n / 2) local j = n - i if i < 1 or j < 1 then return text:sub(1, maxLen - 1) .. text:sub(-1) else return text:sub(1, i) .. div .. text:sub(-j, -1) end end local function shortenPath(path, maxLen) -- local folders = split(path,"/") return shorten(path, maxLen, "..") end local function findNextUnusedKey(keysInUse, prefix) local index = 1 local key = prefix .. index while keysInUse[key] do index = index + 1 key = prefix .. index end return key end local function convertVersionStringToNumber(version) local values = {} for match in (version .. "."):gmatch("(.-)[.]") do if match then table.insert(values, tonumber(match) or 0) end end while #values < 3 do table.insert(values, 0) end return 1000000 * values[1] + 1000 * values[2] + values[3] end local function spaceWrap(text, width) text = text:gsub("(" .. ("."):rep(width) .. ")", "%1 ") return text end local function shallowCopy(orig) local orig_type = type(orig) local copy if orig_type == 'table' then copy = {} for orig_key, orig_value in pairs(orig) do copy[orig_key] = orig_value end else -- number, string, boolean, etc copy = orig end return copy end local function deepCopy(orig) local orig_type = type(orig) local copy if orig_type == 'table' then copy = {} for orig_key, orig_value in pairs(orig) do copy[orig_key] = deepCopy(orig_value) end else -- number, string, boolean, etc copy = orig end return copy end local function round(num, numDecimalPlaces) local mult = 10 ^ (numDecimalPlaces or 0) return math.floor(num * mult + 0.5) / mult end local function removeValueFromArray(t, value) local j = 1 local n = #t; for i = 1, n do if t[i] == value then t[i] = nil; else -- Move i's kept value to j's position, if it's not already there. if (i ~= j) then t[j] = t[i]; t[i] = nil; end j = j + 1; -- Increment position of where we'll place the next kept value. end end return t; end local function removeValuesFromArray(t, valueHash) local j = 1 local n = #t; for i = 1, n do if valueHash[t[i]] then t[i] = nil; else -- Move i's kept value to j's position, if it's not already there. if (i ~= j) then t[j] = t[i]; t[i] = nil; end j = j + 1; -- Increment position of where we'll place the next kept value. end end return t; end --[[ Ordered table iterator, allow to iterate on the natural order of the keys of a table. Example: ]] local function genOrderedIndex(t) local orderedIndex = {} for key in pairs(t) do table.insert(orderedIndex, key) end table.sort(orderedIndex) return orderedIndex end local function orderedNext(t, state) -- Equivalent of the next function, but returns the keys in the alphabetic -- order. We use a temporary ordered key table that is stored in the -- table being iterated. local key = nil -- print("orderedNext: state = "..tostring(state) ) if state == nil then -- the first time, generate the index t.__orderedIndex = genOrderedIndex(t) key = t.__orderedIndex[1] else -- fetch the next value for i = 1, #(t.__orderedIndex) do if t.__orderedIndex[i] == state then key = t.__orderedIndex[i + 1] end end end if key then return key, t[key] end -- no more value to return, cleanup t.__orderedIndex = nil return end local function orderedPairs(t) -- Equivalent of the pairs() function on tables. Allows to iterate -- in order return orderedNext, t, nil end return { pp = pp, duration = duration, durationNoSpace = durationNoSpace, timestamp = timestamp, convertVersionStringToNumber = convertVersionStringToNumber, removeExtension = removeExtension, shorten = shorten, shortenPath = shortenPath, split = split, trim = trim, endsWith = endsWith, startsWith = startsWith, firstToUpper = firstToUpper, findNextUnusedKey = findNextUnusedKey, spaceWrap = spaceWrap, shallowCopy = shallowCopy, deepCopy = deepCopy, round = round, removeValueFromArray = removeValueFromArray, removeValuesFromArray = removeValuesFromArray, orderedPairs = orderedPairs }
local PLUGIN = PLUGIN;
solution "VulkanDemo" language "C++" location "../build" libdirs { "../deps/vulkan/Lib" } links { "vulkan-1" } configurations { "Debug", "Release", "Shipping" } platforms { "x32", "x64", } configuration "Debug" defines { "DEBUG", "VERBOSE", } flags { "Symbols" } configuration "Release" defines { "RELEASE", "VERBOSE" } buildoptions { "-O3" } configuration "Shipping" defines { "SHIPPING", } buildoptions { "-O3" } project "Demo" location "../build/Demo" kind "ConsoleApp" objdir "../build/Demo/obj" files { "../src/**.cc", "../include/**.h", "../deps/**.h", "../deps/**.hpp", "../deps/**.cc", "../deps/**.cpp", } includedirs { "../include", "../deps/vulkan/Include", "../deps/glm/", } configuration "Debug" targetdir "../bin/Demo/Debug" configuration "Release" targetdir "../bin/Demo/Release" configuration "Shipping" targetdir "../bin/Demo/Shipping" kind "WindowedApp"
package.cpath = package.cpath .. ";?.dylib" hello_module = require('hello_lua_module') hello_module.hello()
local screen_width = 960 local screen_height = 540 local movebox = { width = 300, height = 200, } movebox.x = screen_width / 2 - movebox.width / 2 movebox.y = screen_height - movebox.height local selectionMade = nil local attacks = { SWING = 0, BASH = 1, KICK = 2, CHILL = 3 } local gfx = {} local sfx = {} local attackCount = 4 local selectedAttack = attacks.SWING local player = {x = 50, y = screen_height / 2, health = 5} local enemy = {x = screen_width - 64 - 50 , y = screen_height / 2, health = 3, kind = 0} local arrow = nil local function gameWon() return enemy.kind == 3 end local function gameLost() return player.health == 0 end local function difficulty() return enemy.kind end local input_disabled local function keypressed(key) if input_disabled then return end if key == "down" then selectedAttack = (selectedAttack + 1) % attackCount elseif key == "up" then selectedAttack = (selectedAttack - 1) % attackCount elseif key == "space" or key == "return" then selectionMade = selectedAttack end end local function update(delta, should_disable_input) input_disabled = should_disable_input end local function draw() love.graphics.setColor(255, 255, 255, 1) love.graphics.draw(gfx.background, 0, 0, 0, 4, 4) love.graphics.setColor(1, 1, 1, 1) love.graphics.draw(gfx.player, player.x, player.y, 0, 4, 4) for i = 1, player.health do love.graphics.draw(gfx.heart, i * gfx.heart:getWidth() * 3 - 30, 10, 0, 3, 3) end if enemy.kind < 3 then local enemyImg = nil if enemy.kind == 0 then enemyImg = gfx.enemy0 elseif enemy.kind == 1 then enemyImg = gfx.enemy1 elseif enemy.kind == 2 then enemyImg = gfx.enemy2 end love.graphics.draw(enemyImg, enemy.x, enemy.y, 0, 4, 4) for i = 1, enemy.health do love.graphics.draw(gfx.heart, screen_width + 30 - i * gfx.heart:getWidth() * 3 - gfx.heart:getWidth() * 3, 10, 0, 3, 3) end end love.graphics.setColor(0, 0, 0, 1) love.graphics.rectangle("fill", movebox.x, movebox.y, movebox.width, movebox.height) love.graphics.draw(arrow, lerp(movebox.x - 60, 10, math.cos(love.timer.getTime())), movebox.y + 24 * selectedAttack + 8) love.graphics.setColor(1, 1, 1, 1) love.graphics.print("Swing sword", movebox.x + 10, movebox.y + attacks.SWING * 24 + 16) love.graphics.print("Bash shield", movebox.x + 10, movebox.y + attacks.BASH * 24 + 16) love.graphics.print("Kick", movebox.x + 10, movebox.y + attacks.KICK * 24 + 16) love.graphics.print("Just Chill", movebox.x + 10, movebox.y + attacks.CHILL * 24 + 16) love.graphics.rectangle("line", -1, -1, screen_width + 2, screen_height + 2) love.graphics.setColor(0, 0, 0, 1) if gameWon() then love.graphics.print("\t\t\t You won! \n Press Enter to play again", screen_width / 2 - 120, screen_height / 2 - 50) elseif gameLost() then love.graphics.print("\t\t\t\t You lost. \n Press Enter to play again", screen_width / 2 - 120, screen_height / 2 - 50) end end function getSelection() local temp = selectionMade selectionMade = nil return temp end function damagePlayer() player.health = player.health - 1 end function damageEnemy() enemy.health = enemy.health - 1 if enemy.health == 0 then enemy.kind = enemy.kind + 1 enemy.health = 3 end end local function load() arrow = love.graphics.newImage("gpx/arrow_temp.png") gfx.player = love.graphics.newImage("gpx/mono_sprites/character0.png") gfx.enemy0 = love.graphics.newImage("gpx/mono_sprites/enemy0.png") gfx.enemy1 = love.graphics.newImage("gpx/mono_sprites/enemy1.png") gfx.enemy2 = love.graphics.newImage("gpx/mono_sprites/enemy2.png") gfx.heart = love.graphics.newImage("gpx/mono_sprites/heart2.png") gfx.background = love.graphics.newImage("gpx/bg.png") end return { update = update, draw = draw, keypressed = keypressed, load = load, selectionMade = getSelection, damageEnemy = damageEnemy, damagePlayer = damagePlayer, gameWon = gameWon, gameLost = gameLost, difficulty = difficulty }
require "app.util" local skynet = require "skynet" local agent = require "app.agent" local login = require "app.login" local config = require "app.config.custom" local roleid = tonumber(...) assert(roleid) local robot = {} function robot.onconnect(linkobj) skynet.error(string.format("op=onconnect,linktype=%s,linkid=%s,roleid=%s",linkobj.linktype,linkobj.linkid,roleid)) local account = string.format("#%d",roleid) robot.linkobj = linkobj robot.account = account if config.debuglogin then login.entergame(linkobj,account,roleid,nil,robot.onlogin) else login.quicklogin(linkobj,account,roleid,robot.onlogin) end end function robot.onclose(linkobj) skynet.error(string.format("op=onclose,linktype=%s,linkid=%s,roleid=%s",linkobj.linktype,linkobj.linkid,roleid)) robot.linkobj.closed = true end function robot.onlogin() local linkobj = robot.linkobj skynet.error(string.format("op=onlogin,linktype=%s,linkid=%s,roleid=%s",linkobj.linktype,linkobj.linkid,roleid)) robot.heartbeat() -- todo something end function robot.heartbeat() if robot.linkobj.closed then return end local interval = 1000 -- 10s skynet.timeout(interval,robot.heartbeat) robot.linkobj:send_request("C2GS_Ping",{ str = "heartbeat", }) robot.linkobj:wait("GS2C_Pong",function (linkobj,message) local args = message.args local time = args.time -- 返回的是毫秒 local delay if not robot.linkobj.time then delay = 0 else delay = time - robot.linkobj.time - interval * 10 end robot.linkobj.time = time if delay > 50 then skynet.error(string.format("op=heartbeat,linktype=%s,linkid=%s,roleid=%s,delay=%sms",linkobj.linktype,linkobj.linkid,roleid,delay)) end end) end agent.start(robot) return robot
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author (zacharyenriquee@gmail.com). This content is only intended to be used on the TERRANOVA Half-Life 2 Roleplay server. Please respect the developers. --]] local PANEL = {}; local panelWidth = 700 local panelHeight = 800 -- Called when the panel is initialized. function PANEL:Init() self:SetTitle("Editing blueprints") self:SetBackgroundBlur(true); self:SetDeleteOnClose(false); self:SetSize(panelWidth, panelHeight) -- Called when the button is clicked. function self.btnClose.DoClick(button) self:Close(); self:Remove(); gui.EnableScreenClicker(false); end; net.Receive("ixSendBlueprints", function() local targetName = net.ReadString(32) local blueprints = net.ReadTable() self:Populate(targetName, blueprints) end) end; function PANEL:SetCharacter(charID) net.Start("ixRequestBlueprints") net.WriteInt(charID, 32) net.SendToServer() end net.Receive("ixManageBlueprints", function() local charID = net.ReadInt(32) if(IsValid(ix.gui.menu)) then ix.gui.menu:Remove() end local management = vgui.Create("ixBlueprintManagement") management:MakePopup() management:SetCharacter(charID) end) function PANEL:Populate(targetName, blueprints) if(IsValid(self.scroll)) then self.scroll:Remove() end self.scroll = self:Add("DScrollPanel") self.scroll:Dock(FILL) self.scroll:DockMargin(4,4,4,4) local label = self.scroll:Add("DLabel") label:Dock(TOP) label:DockMargin(4, 4, 4, 4) label:SetTextColor(color_white) label:SetFont("ixMenuButtonFontSmall") label:SetExpensiveShadow(1, Color(0, 0, 0, 200)) label:SetText(string.format("Editing %s's blueprints.", targetName)) for k, v in pairs(blueprints) do local recipe = ix.recipe.Get(v) if(recipe) then local blueprint = self.scroll:Add("DPanel") blueprint:Dock(TOP) blueprint:SetTall(48) blueprint:DockMargin(4,4,4,4) function blueprint:Paint(w, h) surface.SetDrawColor(30, 30, 30, 150) surface.DrawRect(0, 0, self:GetWide(), self:GetTall()) local outlineColor = Color(100, 170, 220, 80) surface.SetDrawColor(outlineColor) surface.DrawOutlinedRect(0, 0, self:GetWide(), self:GetTall()) end local item = ix.item.list[recipe:GetFirstResult()] local icon = blueprint:Add("SpawnIcon") icon:InvalidateLayout(true) icon:Dock(LEFT) icon:SetSize(32, 32) icon:DockMargin(2, 2, 2, 2) icon:SetModel(recipe:GetModel() or item:GetModel(), recipe:GetSkin() or item:GetSkin()) if ((item.iconCam and !ICON_RENDER_QUEUE[item.uniqueID]) or item.forceRender) then local iconCam = item.iconCam iconCam = { cam_pos = iconCam.pos, cam_fov = iconCam.fov, cam_ang = iconCam.ang, } ICON_RENDER_QUEUE[item.uniqueID] = true icon:RebuildSpawnIconEx( iconCam ) end local label = blueprint:Add("DLabel") label:Dock(FILL) label:DockMargin(4, 0, 0, 0) label:SetContentAlignment(4) label:SetTextColor(color_white) label:SetFont("ixMenuButtonFontSmall") label:SetExpensiveShadow(1, Color(0, 0, 0, 200)) label:SetText("Blueprint: " .. recipe:GetName()) local delete = blueprint:Add("ixNewButton") delete:Dock(RIGHT) delete:DockMargin(4,4,4,4) delete:SetText("Remove") delete:SetWide(60) function delete:DoClick() ix.command.Send("CharRemoveBlueprint", targetName, v) blueprint:Remove() end end end end -- Called each frame. function PANEL:Think() local scrW = ScrW(); local scrH = ScrH(); self:SetSize(panelWidth, panelHeight) self:SetPos( (scrW / 2) - (self:GetWide() / 2), (scrH / 2) - (self:GetTall() / 2) ); end; vgui.Register("ixBlueprintManagement", PANEL, "DFrame")
describe("ssdp", function() local upnp_response describe("the UPnP response XML", function() before_each(function() require("spec/nodemcu_stubs") nodemcu.wifi.sta.ip = '192.168.1.100' upnp_response = require("ssdp")() end) it("contains the IP address and port", function() assert.is.truthy(upnp_response:find("<URLBase>http://" .. nodemcu.wifi.sta.ip .. ":8000</URLBase>")) end) it("contains the updated IP address after it changes", function() assert.is.truthy(upnp_response:find("<URLBase>http://" .. nodemcu.wifi.sta.ip .. ":8000</URLBase>")) nodemcu.wifi.sta.ip = '192.168.1.200' upnp_response = require("ssdp")() assert.is.truthy(upnp_response:find("<URLBase>http://" .. nodemcu.wifi.sta.ip .. ":8000</URLBase>")) end) end) end)
-- @group UI -- @brief The OpenGL implementation of a grid. local DefaultGrid = ae.oo.class() -- @brief Creates a DefaultGrid object. -- @param columns The widths of the columns. -- @param rows The heights of the rows. -- @return A new DefaultGrid object. function DefaultGrid.new(columns,rows) local self = ae.oo.new(DefaultGrid) DefaultGrid.construct(self,columns,rows) return self end -- @brief Constructs a DefaultGrid object. -- @param self The object. -- @param columns The widths of the columns. -- @param rows The heights of the rows. function DefaultGrid.construct(self,columns,rows) self.columns = columns self.rows = rows end -- @brief Calculate the fixed sizes. -- @param totalSize The total size. -- @param sizes The size table. local function calcFixedSizes(totalSize,sizes) -- totals, fixed size local totalFixed = 0 local totalRatio = 0 for _,entry in ipairs(sizes) do if entry.fixed then totalFixed = totalFixed + entry.fixed entry.size = entry.fixed end if entry.ratio then totalRatio = totalRatio + entry.ratio end end -- if don't fit if totalFixed > totalSize then ae.log.warning('Sizes do not fit') -- TODO Handle situation in which sizes do not fit. end -- ratio size for _,entry in ipairs(sizes) do if entry.ratio then entry.size = (totalSize - totalFixed) * entry.ratio / totalRatio end end end -- @brief Calculates the coordinates. -- @param translation The coordinate translation. -- @param sizes The size table. local function calcCoords(translation,sizes) local coord = translation local coords = {} -- for each size for index = 1,#sizes do ae.itable.append(coords,coord) coord = coord + sizes[index].size end -- we keep the coordinates of the upper corners ae.itable.append(coords,coord) return coords end -- @brief Lays out the grid. -- @param bounds The bounds in which to lay out the grid. function DefaultGrid:layout(bounds) -- columns calcFixedSizes(bounds.width,self.columns) self.xcoords = calcCoords(bounds.x,self.columns) -- rows calcFixedSizes(bounds.height,self.rows) self.ycoords = calcCoords(bounds.y,self.rows) end -- @brief Gets bounds of a cell. -- @param x The X coordinate of the cell. -- @param y The Y coordinate of the cell. -- @return The cell bounds. function DefaultGrid:getCellBounds(x,y) local x0 = self.xcoords[x + 1] local y0 = self.ycoords[y + 1] local x1 = self.xcoords[x + 2] local y1 = self.ycoords[y + 2] return ui.Bounds.new(x0,y0,x1 - x0,y1 - y0) end return DefaultGrid
-- GENERATED, DO NOT EDIT module("moonscript.errors", package.seeall) local moon = require("moonscript") local util = require("moonscript.util") require("lpeg") local concat, insert = table.concat, table.insert local split, pos_to_line = util.split, util.pos_to_line local lookup_line lookup_line = function(fname, pos, cache) if not cache[fname] then do local _with_0 = io.open(fname) cache[fname] = _with_0:read("*a") _with_0:close() end end return pos_to_line(cache[fname], pos) end local reverse_line_number reverse_line_number = function(fname, line_table, line_num, cache) for i = line_num, 0, -1 do if line_table[i] then return lookup_line(fname, line_table[i], cache) end end return "unknown" end rewrite_traceback = function(text, err) local line_tables = moon.line_tables local V, S, Ct, C = lpeg.V, lpeg.S, lpeg.Ct, lpeg.C local header_text = "stack traceback:" local Header, Line = V("Header"), V("Line") local Break = lpeg.S("\n") local g = lpeg.P({ Header, Header = header_text * Break * Ct(Line ^ 1), Line = "\t" * C((1 - Break) ^ 0) * (Break + -1) }) local cache = { } local rewrite_single rewrite_single = function(trace) local fname, line, msg = trace:match('^%[string "(.-)"]:(%d+): (.*)$') local tbl = line_tables[fname] if fname and tbl then return concat({ fname, ":", reverse_line_number(fname, tbl, line, cache), ": ", msg }) else return trace end end err = rewrite_single(err) local match = g:match(text) for i, trace in ipairs(match) do match[i] = rewrite_single(trace) end return concat({ "moon:" .. err, header_text, "\t" .. concat(match, "\n\t") }, "\n") end
return { { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Arcane Surge Support", npc = "Nessa", classes = "Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Blight", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Burning Arrow", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Caustic Arrow", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Chance to Bleed Support", npc = "Nessa", classes = "Duelist", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Cleave", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Cobra Lash", npc = "Nessa", classes = "Ranger�Scion�Shadow", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Double Strike", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Dual Strike", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Elemental Proliferation Support", npc = "Nessa", classes = "Templar", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Ethereal Knives", npc = "Nessa", classes = "Marauder�Shadow�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Explosive Trap", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Fireball", npc = "Nessa", classes = "Marauder�Scion�Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Freezing Pulse", npc = "Nessa", classes = "Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Frost Blades", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Frostbolt", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Galvanic Arrow", npc = "Nessa", classes = "Duelist�Ranger�Scion", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Glacial Hammer", npc = "Nessa", classes = "Duelist�Marauder�Templar", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Ground Slam", npc = "Nessa", classes = "Duelist�Marauder�Templar", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Heavy Strike", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Ice Shot", npc = "Nessa", classes = "Duelist�Ranger�Scion", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Kinetic Bolt", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Lesser Poison Support", npc = "Nessa", classes = "Shadow", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Lightning Tendrils", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Magma Orb", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Molten Strike", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Onslaught Support", npc = "Nessa", classes = "Scion", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Perforate", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Pierce Support", npc = "Nessa", classes = "Ranger", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Purifying Flame", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Raise Zombie", npc = "Nessa", classes = "Scion�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Ruthless Support", npc = "Nessa", classes = "Marauder", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Smite", npc = "Nessa", classes = "Marauder�Scion�Templar", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Spark", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Spectral Throw", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Split Arrow", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Stormblast Mine", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Enemy at the Gate", quest_id = "a1q1", act = 1, reward = "Viper Strike", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Added Cold Damage Support", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Added Fire Damage Support", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Added Lightning Damage Support", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Additional Accuracy Support", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Arrow Nova Support", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Ballista Totem Support", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Blastchain Mine Support", npc = "Nessa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Blind Support", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Blink Arrow", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Bodyswap", npc = "Nessa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Chance to Flee Support", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Clarity", npc = "Nessa", classes = "Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Combustion Support", npc = "Nessa", classes = "Marauder�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Enduring Cry", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Flame Dash", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Flicker Strike", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Increased Critical Strikes Support", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Infernal Legion Support", npc = "Nessa", classes = "Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Intimidating Cry", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Knockback Support", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Leap Slam", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Lesser Multiple Projectiles Support", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Life Gain on Hit Support", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Lightning Warp", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Maim Support", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Melee Splash Support", npc = "Nessa", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Minion Damage Support", npc = "Nessa", classes = "Scion�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Multiple Traps Support", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Precision", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Shield Charge", npc = "Nessa", classes = "Duelist�Marauder�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Siphoning Trap", npc = "Nessa", classes = "Scion�Shadow�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Smoke Mine", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Shadow�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Spell Totem Support", npc = "Nessa", classes = "Marauder�Scion�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Stun Support", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Summon Skeletons", npc = "Nessa", classes = "Scion�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Trap Support", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Unbound Ailments Support", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Unearth", npc = "Nessa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Void Manipulation Support", npc = "Nessa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Whirling Blades", npc = "Nessa", classes = "Duelist�Ranger�Shadow", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Wither", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Caged Brute", quest_id = "a1q2", act = 1, reward = "Withering Step", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Arc", npc = "Nessa", classes = "Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Barrage", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Blade Vortex", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Bone Offering", npc = "Nessa", classes = "Scion�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Chain Hook", npc = "Nessa", classes = "Duelist�Marauder�Scion", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Creeping Frost", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Earthshatter", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Elemental Hit", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Essence Drain", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Fire Trap", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Firestorm", npc = "Nessa", classes = "Marauder�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Flame Surge", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Flesh Offering", npc = "Nessa", classes = "Scion�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Ice Nova", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Ice Spear", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Icicle Mine", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Incinerate", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Infernal Blow", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Lacerate", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Lightning Arrow", npc = "Nessa", classes = "Duelist�Ranger�Shadow", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Lightning Strike", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow�Templar", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Lightning Trap", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Power Siphon", npc = "Nessa", classes = "Scion�Shadow�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Rain of Arrows", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Reave", npc = "Nessa", classes = "Duelist�Ranger�Shadow", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Scorching Ray", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Searing Bond", npc = "Nessa", classes = "Marauder�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Shattering Steel", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Siege Ballista", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Spectral Shield Throw", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Spirit Offering", npc = "Nessa", classes = "Scion�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Static Strike", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Storm Brand", npc = "Nessa", classes = "Scion�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Storm Burst", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Storm Call", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Sunder", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Sweep", npc = "Nessa", classes = "Duelist�Marauder�Templar", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Toxic Rain", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Venom Gyre", npc = "Nessa", classes = "Ranger�Scion�Shadow", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Volatile Dead", npc = "Nessa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Siren's Cadence", quest_id = "a1q3", act = 1, reward = "Wintertide Brand", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Ancestral Protector", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Animate Weapon", npc = "Nessa", classes = "Scion�Shadow�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Bear Trap", npc = "Nessa", classes = "Marauder�Ranger�Scion�Shadow", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Blood and Sand", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Contagion", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Conversion Trap", npc = "Nessa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Dash", npc = "Nessa", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Decoy Totem", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Detonate Dead", npc = "Nessa", classes = "Ranger�Shadow�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Devouring Totem", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Frost Bomb", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Frost Wall", npc = "Nessa", classes = "Duelist�Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Frostblink", npc = "Nessa", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Holy Flame Totem", npc = "Nessa", classes = "Marauder�Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Molten Shell", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Orb of Storms", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Puncture", npc = "Nessa", classes = "Duelist�Ranger�Shadow", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Reckoning", npc = "Nessa", classes = "Duelist�Marauder�Templar", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Rejuvenation Totem", npc = "Nessa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Riposte", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Shadow", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Shrapnel Ballista", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Steelskin", npc = "Nessa", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Summon Holy Relic", npc = "Nessa", classes = "Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Summon Raging Spirit", npc = "Nessa", classes = "Scion�Templar�Witch", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "Vigilant Strike", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "Breaking Some Eggs", quest_id = "a1q4", act = 1, reward = "War Banner", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Ancestral Call Support", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Arcane Surge Support", npc = "Nessa", classes = "Scion�Shadow�Templar", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Chance to Bleed Support", npc = "Nessa", classes = "Marauder�Ranger�Scion�Templar", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Elemental Proliferation Support", npc = "Nessa", classes = "Scion�Shadow�Witch", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Infused Channelling Support", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Lesser Poison Support", npc = "Nessa", classes = "Ranger�Scion", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Mirage Archer Support", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Onslaught Support", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Shadow�Templar", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Pierce Support", npc = "Nessa", classes = "Duelist�Scion�Shadow", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Ruthless Support", npc = "Nessa", classes = "Duelist�Scion�Templar", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Spell Cascade Support", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Summon Phantasm Support", npc = "Nessa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Swift Assembly Support", npc = "Nessa", classes = "Duelist�Ranger�Scion�Shadow�Witch", }, { quest = "Mercy Mission", quest_id = "a1q5", act = 1, reward = "Volley Support", npc = "Nessa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Bloodlust Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Close Combat Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Cold to Fire Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Concentrated Effect Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Controlled Destruction Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Culling Strike Support", npc = "Yeena", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Damage on Full Life Support", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Deadly Ailments Support", npc = "Yeena", classes = "Duelist�Ranger�Scion�Shadow�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Predator Support", npc = "Yeena", classes = "Scion�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Elemental Damage with Attacks Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Elemental Focus Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Endurance Charge on Melee Stun Support", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Faster Attacks Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Faster Casting Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Increased Critical Damage Support", npc = "Yeena", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Iron Grip Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Iron Will Support", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Melee Physical Damage Support", npc = "Yeena", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Minion Life Support", npc = "Yeena", classes = "Scion�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Minion Speed Support", npc = "Yeena", classes = "Scion�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Nightblade Support", npc = "Yeena", classes = "Ranger�Scion�Shadow", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Physical to Lightning Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Point Blank Support", npc = "Yeena", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Power Charge On Critical Support", npc = "Yeena", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Rage Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Shockwave Support", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Trap and Mine Damage Support", npc = "Yeena", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "Sharp and Cruel", quest_id = "a2q4", act = 2, reward = "Vicious Projectiles Support", npc = "Yeena", classes = "Duelist�Ranger�Scion", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Ancestral Cry", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Arcane Cloak", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Arctic Armour", npc = "Yeena", classes = "Duelist�Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Blade Blast", npc = "Yeena", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Blood Rage", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Bloodlust Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Brand Recall", npc = "Yeena", classes = "Marauder�Scion�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Close Combat Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Cold Snap", npc = "Yeena", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Cold to Fire Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Concentrated Effect Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Controlled Destruction Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Culling Strike Support", npc = "Yeena", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Damage on Full Life Support", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Deadly Ailments Support", npc = "Yeena", classes = "Duelist�Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Predator Support", npc = "Yeena", classes = "Scion�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Desecrate", npc = "Yeena", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Elemental Damage with Attacks Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Elemental Focus Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Endurance Charge on Melee Stun Support", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Ensnaring Arrow", npc = "Yeena", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Faster Attacks Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Faster Casting Support", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Flesh and Stone", npc = "Yeena", classes = "Duelist�Marauder�Scion", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Frenzy", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Herald of Agony", npc = "Yeena", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Herald of Ash", npc = "Yeena", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Herald of Ice", npc = "Yeena", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Herald of Purity", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Herald of Thunder", npc = "Yeena", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Increased Critical Damage Support", npc = "Yeena", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Iron Grip Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Iron Will Support", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Melee Physical Damage Support", npc = "Yeena", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Minion Life Support", npc = "Yeena", classes = "Scion�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Minion Speed Support", npc = "Yeena", classes = "Scion�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Nightblade Support", npc = "Yeena", classes = "Ranger�Scion�Shadow", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Physical to Lightning Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Plague Bearer", npc = "Yeena", classes = "Duelist", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Point Blank Support", npc = "Yeena", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Power Charge On Critical Support", npc = "Yeena", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Rage Support", npc = "Yeena", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Righteous Fire", npc = "Yeena", classes = "Marauder�Scion�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Seismic Cry", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Shockwave Support", npc = "Yeena", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Summon Skitterbots", npc = "Yeena", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Tempest Shield", npc = "Yeena", classes = "Duelist�Marauder�Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Trap and Mine Damage Support", npc = "Yeena", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Vicious Projectiles Support", npc = "Yeena", classes = "Duelist�Ranger�Scion", }, { quest = "The Root of the Problem", quest_id = "a2q9", act = 2, reward = "Wave of Conviction", npc = "Yeena", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Anger", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Assassin's Mark", npc = "Clarissa", classes = "Ranger�Shadow�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Bane", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Conductivity", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Convocation", npc = "Clarissa", classes = "Scion�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Despair", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Determination", npc = "Clarissa", classes = "Duelist�Marauder�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Discipline", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Dread Banner", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Elemental Weakness", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Enfeeble", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Flammability", npc = "Clarissa", classes = "Marauder�Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Frostbite", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "General's Cry", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Grace", npc = "Clarissa", classes = "Duelist�Ranger�Shadow", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Haste", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Hatred", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Infernal Cry", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Malevolence", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Plague Bearer", npc = "Clarissa", classes = "Ranger�Scion�Shadow", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Poacher's Mark", npc = "Clarissa", classes = "Duelist�Ranger�Shadow", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Pride", npc = "Clarissa", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Sniper's Mark", npc = "Clarissa", classes = "Duelist�Ranger�Shadow", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Punishment", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Purity of Elements", npc = "Clarissa", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Purity of Fire", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Purity of Ice", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Purity of Lightning", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Rallying Cry", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Spellslinger", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Temporal Chains", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Vengeance", npc = "Clarissa", classes = "Duelist�Marauder�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Vitality", npc = "Clarissa", classes = "Duelist�Marauder�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Vulnerability", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Warlord's Mark", npc = "Clarissa", classes = "Duelist�Marauder�Templar", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Wrath", npc = "Clarissa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "Lost in Love", quest_id = "a3q1", act = 3, reward = "Zealotry", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Added Chaos Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Added Cold Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Added Fire Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Added Lightning Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Additional Accuracy Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Advanced Traps Support", npc = "Clarissa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Advanced Traps Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ancestral Call Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ancestral Cry", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ancestral Protector", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ancestral Warchief", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Anger", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Animate Guardian", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Animate Weapon", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Arc", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Arcane Cloak", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Arcane Surge Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Archmage Support", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Archmage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Arctic Armour", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Armageddon Brand", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Arrow Nova Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Artillery Ballista", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Assassin's Mark", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ball Lightning", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ballista Totem Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Bane", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Barrage", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Bear Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blade Blast", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blade Flurry", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blade Vortex", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Bladefall", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Bladestorm", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blasphemy Support", npc = "Clarissa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blasphemy Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blast Rain", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blastchain Mine Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blight", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blind Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blink Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blood Magic Support", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Templar", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blood Magic Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blood Rage", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Blood and Sand", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Bloodlust Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Bodyswap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Bone Offering", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Brand Recall", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Burning Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Burning Damage Support", npc = "Clarissa", classes = "Marauder�Scion�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Burning Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Caustic Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Chain Hook", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Chance to Bleed Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Chance to Flee Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Charged Dash", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Charged Mines Support", npc = "Clarissa", classes = "Scion�Shadow�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Charged Mines Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Charged Traps Support", npc = "Clarissa", classes = "Scion�Shadow�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Charged Traps Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Clarity", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Cleave", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Close Combat Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Cobra Lash", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Cold Penetration Support", npc = "Clarissa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Cold Penetration Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Cold Snap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Cold to Fire Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Combustion Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Concentrated Effect Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Conductivity", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Consecrated Path", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Contagion", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Controlled Destruction Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Conversion Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Convocation", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Creeping Frost", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Cremation", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Culling Strike Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Cyclone", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Damage on Full Life Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Dark Pact", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Dash", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Deadly Ailments Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Predator Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Decoy Totem", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Desecrate", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Despair", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Determination", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Detonate Dead", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Devouring Totem", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Discharge", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Discipline", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Divine Ire", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Dominating Blow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Double Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Dread Banner", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Dual Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Earthquake", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Earthshatter", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Efficacy Support", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Efficacy Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Elemental Army Support", npc = "Clarissa", classes = "Scion�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Elemental Army Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Elemental Damage with Attacks Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Elemental Focus Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Elemental Hit", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Elemental Proliferation Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Elemental Weakness", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Endurance Charge on Melee Stun Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Enduring Cry", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Energy Leech Support", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Energy Leech Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Enfeeble", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ensnaring Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Essence Drain", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ethereal Knives", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Explosive Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Explosive Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Faster Attacks Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Faster Casting Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Faster Projectiles Support", npc = "Clarissa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Faster Projectiles Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Feeding Frenzy Support", npc = "Clarissa", classes = "Scion�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Feeding Frenzy Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Fire Penetration Support", npc = "Clarissa", classes = "Marauder�Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Fire Penetration Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Fire Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Fireball", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Firestorm", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Flame Dash", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Flame Surge", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Flameblast", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Flamethrower Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Flammability", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Flesh Offering", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Flesh and Stone", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Flicker Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Fork Support", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Fork Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Fortify Support", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Fortify Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Freezing Pulse", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Frenzy", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Frost Blades", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Frost Bomb", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Frost Wall", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Frostbite", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Frostblink", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Frostbolt", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Galvanic Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "General's Cry", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Generosity Support", npc = "Clarissa", classes = "Marauder�Scion�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Generosity Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Glacial Cascade", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Glacial Hammer", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Grace", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ground Slam", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Haste", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Hatred", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Heavy Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Herald of Agony", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Herald of Ash", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Herald of Ice", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Herald of Purity", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Herald of Thunder", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "High-Impact Mine Support", npc = "Clarissa", classes = "Scion�Shadow�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "High-Impact Mine Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Holy Flame Totem", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Hypothermia Support", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Hypothermia Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ice Bite Support", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ice Bite Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ice Crash", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ice Nova", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ice Shot", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ice Spear", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ice Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Icicle Mine", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Impale Support", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Impale Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Incinerate", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Increased Critical Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Increased Critical Strikes Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Increased Duration Support", npc = "Clarissa", classes = "Duelist�Marauder�Templar", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Increased Duration Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Infernal Blow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Infernal Cry", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Infernal Legion Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Infused Channelling Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Innervate Support", npc = "Clarissa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Innervate Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Inspiration Support", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Inspiration Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Intensify Support", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Intensify Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Intimidating Cry", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Iron Grip Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Iron Will Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Item Rarity Support", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Item Rarity Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Kinetic Blast", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Kinetic Bolt", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Knockback Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lacerate", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lancing Steel", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Leap Slam", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Less Duration Support", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Less Duration Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lesser Multiple Projectiles Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lesser Poison Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Life Gain on Hit Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Life Leech Support", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Life Leech Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lightning Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lightning Penetration Support", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lightning Penetration Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lightning Spire Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lightning Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lightning Tendrils", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lightning Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Lightning Warp", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Magma Orb", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Maim Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Malevolence", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Mana Leech Support", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Mana Leech Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Meat Shield Support", npc = "Clarissa", classes = "Scion�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Meat Shield Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Melee Physical Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Melee Splash Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Minion Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Minion Life Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Minion Speed Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Mirage Archer Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Mirror Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Molten Shell", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Molten Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Multiple Traps Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Nightblade Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Onslaught Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Orb of Storms", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Penance Brand", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Perforate", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Pestilent Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Physical to Lightning Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Pierce Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Plague Bearer", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Poacher's Mark", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Point Blank Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Poison Support", npc = "Clarissa", classes = "Ranger�Scion�Shadow", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Poison Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Power Charge On Critical Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Power Siphon", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Precision", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Pride", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Sniper's Mark", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Pulverise Support", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Pulverise Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Puncture", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Punishment", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Purifying Flame", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Purity of Elements", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Purity of Fire", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Purity of Ice", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Purity of Lightning", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Pyroclast Mine", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Rage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Rain of Arrows", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Raise Spectre", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Raise Zombie", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Rallying Cry", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Reave", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Reckoning", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Rejuvenation Totem", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Righteous Fire", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Riposte", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Ruthless Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Scorching Ray", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Scourge Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Searing Bond", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Second Wind Support", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Second Wind Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Seismic Cry", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Seismic Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Shattering Steel", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Shield Charge", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Shock Nova", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Shockwave Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Shockwave Totem", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Shrapnel Ballista", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Siege Ballista", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Siphoning Trap", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Slower Projectiles Support", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Slower Projectiles Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Smite", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Smoke Mine", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Soulrend", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Spark", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Spectral Shield Throw", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Spectral Throw", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Spell Cascade Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Spell Totem Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Spellslinger", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Spirit Offering", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Split Arrow", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Static Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Steelskin", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Storm Brand", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Storm Burst", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Storm Call", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Stormbind", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Stormblast Mine", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Stun Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Summon Holy Relic", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Summon Phantasm Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Summon Raging Spirit", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Summon Skeletons", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Summon Skitterbots", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Sunder", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Sweep", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Swift Affliction Support", npc = "Clarissa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Swift Affliction Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Swift Assembly Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Swiftbrand Support", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Swiftbrand Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Tectonic Slam", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Tempest Shield", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Temporal Chains", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Tornado Shot", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Toxic Rain", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Trap Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Trap and Mine Damage Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Unbound Ailments Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Unearth", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Urgent Orders Support", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Urgent Orders Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Vengeance", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Venom Gyre", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Vicious Projectiles Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Vigilant Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Viper Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Vitality", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Void Manipulation Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Volatile Dead", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Volley Support", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Vortex", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Vulnerability", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "War Banner", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Warlord's Mark", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Wave of Conviction", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Whirling Blades", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Wild Strike", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Winter Orb", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Wintertide Brand", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Wither", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Withering Step", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Wrath", npc = "Siosa", }, { quest = "A Fixture of Fate", quest_id = "a3q12", act = 3, reward = "Zealotry", npc = "Siosa", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Ancestral Warchief", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Animate Guardian", npc = "Clarissa", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Armageddon Brand", npc = "Clarissa", classes = "Scion�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Artillery Ballista", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Shadow", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Ball Lightning", npc = "Clarissa", classes = "Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Blade Flurry", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Bladefall", npc = "Clarissa", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Bladestorm", npc = "Clarissa", classes = "Duelist�Marauder�Scion", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Blast Rain", npc = "Clarissa", classes = "Duelist�Ranger�Scion", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Charged Dash", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Consecrated Path", npc = "Clarissa", classes = "Marauder�Scion�Templar", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Cremation", npc = "Clarissa", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Cyclone", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Templar", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Dark Pact", npc = "Clarissa", classes = "Scion�Shadow�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Discharge", npc = "Clarissa", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Divine Ire", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Dominating Blow", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Earthquake", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Explosive Arrow", npc = "Clarissa", classes = "Duelist�Marauder�Ranger", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Flameblast", npc = "Clarissa", classes = "Marauder�Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Flamethrower Trap", npc = "Clarissa", classes = "Scion�Shadow�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Glacial Cascade", npc = "Clarissa", classes = "Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Ice Crash", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion�Shadow�Templar", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Ice Trap", npc = "Clarissa", classes = "Scion�Shadow�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Kinetic Blast", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Lancing Steel", npc = "Clarissa", classes = "Duelist�Marauder�Ranger�Scion", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Lightning Spire Trap", npc = "Clarissa", classes = "Scion�Shadow�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Penance Brand", npc = "Clarissa", classes = "Scion�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Pestilent Strike", npc = "Clarissa", classes = "Ranger�Scion�Shadow", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Pyroclast Mine", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Raise Spectre", npc = "Clarissa", classes = "Scion�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Scourge Arrow", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Seismic Trap", npc = "Clarissa", classes = "Scion�Shadow�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Shock Nova", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Shockwave Totem", npc = "Clarissa", classes = "Marauder�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Soulrend", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Stormbind", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Tectonic Slam", npc = "Clarissa", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Tornado Shot", npc = "Clarissa", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Vortex", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Wild Strike", npc = "Clarissa", classes = "Ranger�Scion�Shadow", }, { quest = "Sever the Right Hand", quest_id = "a3q8", act = 3, reward = "Winter Orb", npc = "Clarissa", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Arcanist Brand", npc = "Petarus and Vanja", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Barrage Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Bonechill Support", npc = "Petarus and Vanja", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Brutality Support", npc = "Petarus and Vanja", classes = "Duelist�Marauder�Scion", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Cast On Critical Strike Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Cast on Death Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Cast on Melee Kill Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Cast when Damage Taken Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Cast when Stunned Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Cast while Channelling Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Chain Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Cluster Traps Support", npc = "Petarus and Vanja", classes = "Ranger�Scion�Shadow�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Hextouch Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Decay Support", npc = "Petarus and Vanja", classes = "Scion�Shadow�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Fist of War Support", npc = "Petarus and Vanja", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Greater Multiple Projectiles Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Greater Volley Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Ignite Proliferation Support", npc = "Petarus and Vanja", classes = "Scion�Templar�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Immolate Support", npc = "Petarus and Vanja", classes = "Marauder�Scion�Templar�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Increased Area of Effect Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Minefield Support", npc = "Petarus and Vanja", classes = "Scion�Shadow�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Multiple Totems Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Multistrike Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Spell Echo Support", npc = "Petarus and Vanja", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Unleash Support", npc = "Petarus and Vanja", classes = "Scion�Shadow�Templar�Witch", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Vile Toxins Support", npc = "Petarus and Vanja", classes = "Ranger�Scion�Shadow", }, { quest = "The Eternal Nightmare", quest_id = "a4q1", act = 4, reward = "Withering Touch Support", npc = "Petarus and Vanja", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Berserk", npc = "Petarus and Vanja", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Immortal Call", npc = "Petarus and Vanja", classes = "Duelist�Marauder�Scion�Templar", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Phase Run", npc = "Petarus and Vanja", classes = "Duelist�Ranger�Scion�Shadow", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Summon Carrion Golem", npc = "Petarus and Vanja", classes = "Ranger�Scion�Shadow�Templar�Witch", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Summon Chaos Golem", npc = "Petarus and Vanja", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Summon Flame Golem", npc = "Petarus and Vanja", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Summon Ice Golem", npc = "Petarus and Vanja", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Summon Lightning Golem", npc = "Petarus and Vanja", }, { quest = "Breaking the Seal", quest_id = "a4q2", act = 4, reward = "Summon Stone Golem", npc = "Petarus and Vanja", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Added Chaos Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Added Cold Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Added Fire Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Added Lightning Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Additional Accuracy Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Advanced Traps Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ancestral Call Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ancestral Cry", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ancestral Protector", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ancestral Warchief", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Anger", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Animate Guardian", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Animate Weapon", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Arc", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Arcane Cloak", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Arcane Surge Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Arcanist Brand", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Archmage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Arctic Armour", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Armageddon Brand", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Arrow Nova Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Artillery Ballista", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Assassin's Mark", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ball Lightning", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ballista Totem Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Bane", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Barrage", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Barrage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Bear Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Berserk", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blade Blast", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blade Flurry", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blade Vortex", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Bladefall", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Bladestorm", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blasphemy Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blast Rain", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blastchain Mine Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blight", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blind Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blink Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blood Magic Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blood Rage", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Blood and Sand", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Bloodlust Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Bodyswap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Bone Offering", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Bonechill Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Brand Recall", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Brutality Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Burning Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Burning Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cast On Critical Strike Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cast on Death Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cast on Melee Kill Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cast when Damage Taken Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cast when Stunned Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cast while Channelling Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Caustic Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Chain Hook", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Chain Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Chance to Bleed Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Chance to Flee Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Charged Dash", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Charged Mines Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Charged Traps Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Clarity", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cleave", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Close Combat Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cluster Traps Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cobra Lash", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cold Penetration Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cold Snap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cold to Fire Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Combustion Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Concentrated Effect Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Conductivity", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Consecrated Path", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Contagion", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Controlled Destruction Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Conversion Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Convocation", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Creeping Frost", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cremation", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Culling Strike Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Hextouch Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Cyclone", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Damage on Full Life Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Dark Pact", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Dash", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Deadly Ailments Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Predator Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Decay Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Decoy Totem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Desecrate", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Despair", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Determination", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Detonate Dead", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Detonate Mines", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Devouring Totem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Discharge", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Discipline", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Divine Ire", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Dominating Blow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Double Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Dread Banner", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Dual Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Earthquake", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Earthshatter", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Efficacy Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Elemental Army Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Elemental Damage with Attacks Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Elemental Focus Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Elemental Hit", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Elemental Proliferation Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Elemental Weakness", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Endurance Charge on Melee Stun Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Enduring Cry", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Energy Leech Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Enfeeble", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ensnaring Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Essence Drain", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ethereal Knives", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Explosive Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Explosive Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Faster Attacks Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Faster Casting Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Faster Projectiles Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Feeding Frenzy Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Fire Penetration Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Fire Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Fireball", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Firestorm", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Fist of War Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Flame Dash", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Flame Surge", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Flameblast", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Flamethrower Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Flammability", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Flesh Offering", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Flesh and Stone", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Flicker Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Fork Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Fortify Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Freezing Pulse", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Frenzy", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Frost Blades", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Frost Bomb", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Frost Wall", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Frostbite", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Frostblink", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Frostbolt", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Galvanic Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "General's Cry", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Generosity Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Glacial Cascade", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Glacial Hammer", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Grace", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Greater Multiple Projectiles Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Greater Volley Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ground Slam", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Haste", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Hatred", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Heavy Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Herald of Agony", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Herald of Ash", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Herald of Ice", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Herald of Purity", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Herald of Thunder", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "High-Impact Mine Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Holy Flame Totem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Hypothermia Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ice Bite Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ice Crash", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ice Nova", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ice Shot", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ice Spear", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ice Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Icicle Mine", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ignite Proliferation Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Immolate Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Immortal Call", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Impale Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Incinerate", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Increased Area of Effect Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Increased Critical Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Increased Critical Strikes Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Increased Duration Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Infernal Blow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Infernal Cry", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Infernal Legion Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Infused Channelling Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Innervate Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Inspiration Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Intensify Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Intimidating Cry", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Iron Grip Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Iron Will Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Item Rarity Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Kinetic Blast", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Kinetic Bolt", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Knockback Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lacerate", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lancing Steel", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Leap Slam", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Less Duration Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lesser Multiple Projectiles Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lesser Poison Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Life Gain on Hit Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Life Leech Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lightning Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lightning Penetration Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lightning Spire Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lightning Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lightning Tendrils", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lightning Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Lightning Warp", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Magma Orb", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Maim Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Malevolence", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Mana Leech Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Meat Shield Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Melee Physical Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Melee Splash Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Minefield Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Minion Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Minion Life Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Minion Speed Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Mirage Archer Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Mirror Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Molten Shell", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Molten Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Multiple Totems Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Multiple Traps Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Multistrike Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Nightblade Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Onslaught Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Orb of Storms", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Penance Brand", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Perforate", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Pestilent Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Phase Run", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Physical to Lightning Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Pierce Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Plague Bearer", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Poacher's Mark", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Point Blank Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Poison Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Power Charge On Critical Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Power Siphon", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Precision", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Pride", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Sniper's Mark", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Pulverise Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Puncture", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Punishment", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Purifying Flame", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Purity of Elements", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Purity of Fire", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Purity of Ice", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Purity of Lightning", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Pyroclast Mine", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Rage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Rain of Arrows", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Raise Spectre", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Raise Zombie", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Rallying Cry", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Reave", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Reckoning", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Rejuvenation Totem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Righteous Fire", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Riposte", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Ruthless Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Scorching Ray", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Scourge Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Searing Bond", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Second Wind Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Seismic Cry", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Seismic Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Shattering Steel", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Shield Charge", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Shock Nova", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Shockwave Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Shockwave Totem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Shrapnel Ballista", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Siege Ballista", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Siphoning Trap", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Slower Projectiles Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Smite", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Smoke Mine", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Soulrend", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Spark", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Spectral Shield Throw", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Spectral Throw", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Spell Cascade Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Spell Echo Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Spell Totem Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Spellslinger", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Spirit Offering", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Split Arrow", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Static Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Steelskin", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Storm Brand", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Storm Burst", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Storm Call", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Stormbind", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Stormblast Mine", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Stun Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Carrion Golem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Chaos Golem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Flame Golem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Holy Relic", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Ice Golem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Lightning Golem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Phantasm Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Raging Spirit", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Skeletons", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Skitterbots", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Summon Stone Golem", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Sunder", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Sweep", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Swift Affliction Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Swift Assembly Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Swiftbrand Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Tectonic Slam", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Tempest Shield", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Temporal Chains", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Tornado Shot", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Toxic Rain", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Trap Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Trap and Mine Damage Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Unbound Ailments Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Unearth", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Unleash Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Urgent Orders Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Vengeance", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Venom Gyre", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Vicious Projectiles Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Vigilant Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Vile Toxins Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Viper Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Vitality", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Void Manipulation Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Volatile Dead", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Volley Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Vortex", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Vulnerability", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "War Banner", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Warlord's Mark", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Wave of Conviction", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Whirling Blades", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Wild Strike", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Winter Orb", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Wintertide Brand", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Wither", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Withering Step", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Withering Touch Support", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Wrath", npc = "Lilly Roth", }, { quest = "Fallen from Grace", quest_id = "a6q4", act = 6, reward = "Zealotry", npc = "Lilly Roth", }}
local url = request.path:match("/response/redirects(.*)") assert(url) local path = request.url .. request.ctx if url == '' then assert(response.redirect(path .. '/response/redirects/hop')) return elseif url == '/hop' then assert(response.redirect(path .. '/response/redirects/to')) return elseif url == '/to' then assert(response.redirect(path .. '/response/redirects/the')) return elseif url == '/the' then assert(response.redirect(path .. '/response/redirects/beat')) return elseif url == '/beat' then assert(response.redirect(path .. '/response/redirects/destination')) return elseif url == '/destination' then return 12000 end error('not a valid path')
local class = require('middleclass') local Controller = require('mvc.Controller') local LoginController = class("LoginController", Controller) local ShowWaiting = require('app.helpers.ShowWaiting') local uploaderror = require('app.helpers.uploaderror') local SoundMng = require('app.helpers.SoundMng') function LoginController:initialize(version) Controller.initialize(self) self.version = version SoundMng.load() if device.platform == 'ios' or device.platform == 'android' then uploaderror.changeTraceback() end end function LoginController:sendPingMsg() local app = require("app.App"):instance() app.conn:send(-1,1,{ receive = 'hello' }) end function LoginController:clickLogin() if not self.view:getIsAgree() then tools.showRemind("请确认并同意协议") return end if self.logining then return end self.logining = true SoundMng.playEft('sound/common/audio_card_out.mp3') --audio.playSound('sound/common/audio_card_out.mp3') local app = require("app.App"):instance() local login = app.session.login local function ios_login(uid,avatar,username, sex) login:login(uid,avatar,username, sex) app.localSettings:set('avatar', avatar,true) app.localSettings:set('logintime', os.time(),true) app.localSettings:set('username', username) end if device.platform == 'android' or device.platform == 'ios' then --if device.platform == 'ios' then local need_try = true if device.platform == 'ios' then local expired = 7200 local uid = app.localSettings:get('uid') local avatar = app.localSettings:get('avatar') local username = app.localSettings:get('username') local logintime = app.localSettings:get('logintime') if uid and avatar and username and logintime then local diff = os.time() - logintime if diff < expired then need_try = false ios_login(uid,avatar,username) end end end local platform = 'wechat' -- 加载umeng的只是为了初始化 local social_umeng = require('social') local social if device.platform == 'android' then social = social_umeng else social = require('socialex') end if need_try then ShowWaiting.show() social.authorize(platform, function(stcode,user) print('stcode is ',stcode) self.logining = false if stcode == 100 then return end if stcode == 200 then dump(user) if device.platform == 'ios' then if user.sex and user.sex - 1 < 0 then user.sex = 1 end ios_login(user.uid,user.avatar,user.username, user.sex - 1) else if user.sex and user.sex - 1 < 0 then user.sex = 1 end login:login(user.unionid,user.headimgurl,user.nickname, user.sex - 1) end if device.platform == 'ios' then social.switch2umeng() end end ShowWaiting.delete() end) end else print(app.localSettings:get('uid')) local uid = app.localSettings:get('uid') if not uid then app.localSettings:set('uid', tostring(os.time())) end login:login(app.localSettings:get('uid')) end --停止播放动画 self.view:stopAllCsdAnimation() end function LoginController:viewDidLoad() local app = require("app.App"):instance() cc.Director:getInstance():setClearColor(cc.c4f(1,1,1,1)) if app.session then app.conn:reset() app.session = nil end app:createSession() local login = app.session.login local net = app.session.net net:connect() -- windows平台自动登录 net:once('connect',function() if false and cc.Application:getInstance():getTargetPlatform() == cc.PLATFORM_OS_WINDOWS then self:clickLogin() print("auto login") else if app.localSettings:get('uid') then self:clickLogin() end end end) self.listens = { login:on('loginSuccess',function() print("login success") app:switch('LobbyController') end) } self.view:layout(self.version) end function LoginController:clickShowXieyi() self.view:freshXieyiLayer(true) end function LoginController:clickCloseXieyi() self.view:freshXieyiLayer(false) end function LoginController:clickAgree() self.view:freshIsAgree() end function LoginController:finalize()-- luacheck: ignore for i = 1,#self.listens do self.listens[i]:dispose() end end return LoginController
local function getdirectory(p) for i = #p, 1, -1 do if p:sub(i,i) == "/" then return p:sub(1,i) end end return "./" end local sd = getdirectory(arg[0]) local function lerror(token, err) print(string.format("dragonc: parser: %s:%d: %s", token[4], token[3], err)) end local function node_t(kind, errtok, ident) local node = {} node.ident = ident node.kind = kind node.errtok = errtok return node end local parser = {} local def = {} local public = {} local extern = {} local structs = {} local lex local basedir local stack local currentfn local incdir local res local function defined(ident, kind) local id = currentfn.def[ident] or def[ident] if id then if kind then if id.kind == kind then return id else return false end else return id end end return false end local function define(ident, kind, errtok, scoped, value) if ((ident == "argv") and (not scoped)) or (res[ident]) then lerror(errtok, ident.." is a reserved name") return false end local id = defined(ident) if id then -- if anyone asks i did not tell you it is okay to code like this if (not id.scoped) and scoped then elseif (kind == "fn") and (id.kind == "extern") then elseif (id.kind == "externconst") and ((kind == "table") or (kind == "buffer") or (kind == "var")) then else lerror(errtok, "can't define "..tostring(ident).." twice") return false end end local d = {} d.ident = ident d.kind = kind d.errtok = errtok d.value = value d.scoped = scoped if scoped then currentfn.def[ident] = d currentfn.idef[#currentfn.idef + 1] = d else def[ident] = d end return id or true end function parser.directive() local t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end local directive = t[1] if directive == "include" then t, ok = lex:expect("string") if not ok then lerror(t, "expected string, got "..t[2]) return false end local incpath = t[1] local qd = basedir local f if incpath:sub(1,5) == "<df>/" then f = io.open(sd.."/../headers/dfrt/"..incpath:sub(6), "r") elseif incpath:sub(1,5) == "<ll>/" then f = io.open(sd.."/../headers/"..incpath:sub(6), "r") elseif incpath:sub(1,6) == "<inc>/" then local rpath = incpath:sub(7) for _,path in ipairs(incdir) do f = io.open(path.."/"..rpath) if f then break end end else f = io.open(basedir.."/"..incpath) end if not f then lerror(t, "couldn't include "..incpath) return false end lex:insertCurrent(f:read("*a"), incpath) f:close() else lerror(t, "unknown directive "..directive) return false end return true end -- parses the form { ... in1 in2 in3 -- out1 out2 out3 } -- { in1 ... -- } is not allowed, { ... in1 -- } is. function parser.signature(extern, fnptr) local sig = {} sig.varin = false sig.varout = false sig.fin = {} sig.out = {} sig.public = true local t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end sig.errtok = t if t[1] == "private" then if extern or fnptr then lerror(t, "extern or fnptr can't be declared as private (they are inherently private)") return false end sig.public = false t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end end sig.name = t[1] sig.ident = t[1] t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end if t[1] ~= "{" then lerror(t, "malformed function declaration") return false end t, ok = lex:expect("tag") if not ok then lerror(t, "malformed function declaration") return false end while t[1] ~= "--" do if t[1] == "..." then if (not sig.varin) and (#sig.fin == 0) then sig.varin = true else lerror(t, "malformed function declaration: '...' can only be the first argument") return false end else if (not extern) and (not fnptr) then if not define(t[1], "auto", t, true) then return false end currentfn.autos[#currentfn.autos + 1] = t[1] end sig.fin[#sig.fin + 1] = t[1] end t, ok = lex:expect("tag") if not ok then lerror(t, "malformed function declaration") return false end end t, ok = lex:expect("tag") if not ok then lerror(t, "malformed function declaration") return false end while t[1] ~= "}" do if t[1] == "..." then lerror(t, "varout not allowed") return false else if (not extern) and (not fnptr) then if not define(t[1], "auto", t, true) then return false end currentfn.autos[#currentfn.autos + 1] = t[1] end sig.out[#sig.out + 1] = t[1] end t, ok = lex:expect("tag") if not ok then lerror(t, "malformed function declaration") return false end end function sig.compare(sig2, allowpubdiff) if (not allowpubdiff) and (sig.name ~= sig2.name) then return false end if (not allowpubdiff) and (sig.public ~= sig2.public) then return false end if sig.varin ~= sig2.varin then return false end if #sig.fin ~= #sig2.fin then return false end if #sig.out ~= #sig2.out then return false end for k,v in ipairs(sig.fin) do if sig2.fin[k] ~= v then return false end end for k,v in ipairs(sig.out) do if sig2.out[k] ~= v then return false end end return true end return sig end function parser.extern() local sig = parser.signature(true) if not sig then return false end if not define(sig.name, "extern", sig.errtok, false, sig) then return false end extern[sig.name] = true return true end function parser.fnptr() local sig = parser.signature(false, true) if not sig then return false end if not define(sig.name, "fnptr", sig.errtok, false, sig) then return false end return true end local function defauto(name, tok) if not define(name, "auto", tok, true) then return false end currentfn.autos[#currentfn.autos + 1] = name return true end function parser.auto() local t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end if not defauto(t[1], t) then return false end return true end local function pconbody(name) local t, ok = lex:expect("keyc") if not ok then lerror(t, "malformed "..name.." statement") return false end if t[1] ~= "(" then lerror(t, "malformed conditional") return false end local ast = node_t(name.."_cb", lex:peek()) ast.conditional = parser.block(")") if not ast.conditional then return false end if name == "while" then currentfn.wdepth = currentfn.wdepth + 1 end ast.body = parser.block("end") if name == "while" then currentfn.wdepth = currentfn.wdepth - 1 end if not ast.body then return false end return ast end function parser.pif() local ast = node_t("if", lex:peek()) ast.ifs = {} ast.ifs[1] = pconbody("if") if not ast.ifs[1] then return false end local peek = lex:peek() if not peek then return ast end while peek[1] == "elseif" do lex:extract() ast.ifs[#ast.ifs + 1] = pconbody("if") peek = lex:peek() if not peek then return ast end end peek = lex:peek() if peek and (peek[1] == "else") then lex:extract() ast.default = parser.block("end") if not ast.default then return ast end end return ast end function parser.pwhile() local ast = node_t("while", lex:peek()) ast.w = pconbody("while") if not ast.w then return false end return ast end function parser.pointerof() local ast = node_t("pointerof", lex:peek()) local t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end ast.value = t[1] return ast end function parser.index() local ast = node_t("index", lex:peek()) ast.block = parser.block("]") if not ast.block then return false end local t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end ast.name = t[1] return ast end function parser.block(endtok, defines) local ast = node_t("block", lex:peek()) ast.defines = defines ast.block = {} local b = ast.block local t = lex:extract() if not t then lerror(t, "no block") return false end while t[1] ~= endtok do local ident = t[1] if ident == "if" then local pq = parser.pif() if not pq then return false end b[#b + 1] = pq elseif ident == "while" then local pq = parser.pwhile() if not pq then return false end b[#b + 1] = pq elseif ident == "auto" then if not parser.auto() then return false end elseif ident == "pointerof" then local pq = parser.pointerof() if not pq then return false end b[#b + 1] = pq elseif ident == "[" then local pq = parser.index() if not pq then return false end b[#b + 1] = pq else if (t[1] == "break") or (t[1] == "continue") then if currentfn.wdepth == 0 then lerror(t, "can't "..t[1].." outside of a loop") return false end end b[#b + 1] = node_t("lazy", t, t) end t = lex:extract() if not t then lerror(t, "unfinished block") return false end end return ast end function parser.fn(defonly) local mydef = {} local myautos = {} local myidef = {} currentfn = {} currentfn.def = mydef currentfn.autos = myautos currentfn.idef = myidef local fnptr local t = lex:peek() if t then -- dont deal with the reverse case t=nil, let parser.signature() print its error message if t[1] == "(" then lex:extract() local t, ok = lex:expect("tag") if not ok then lerror(t, "expected fnptr name, got "..t[2]) return false end fnptr = defined(t[1], "fnptr") if not fnptr then lerror(t, t[1].." isn't a declared fnptr") return false end t, ok = lex:expect("keyc") if (not ok) or (t[1] ~= ")") then lerror(t, "expected )") return false end end end local sig = parser.signature(false) if not sig then return false end local ast = node_t("fn", sig.errtok, sig.name) local extdef = defined(sig.name, "extern") if (extdef) and (not sig.compare(extdef.value)) then lerror(sig.errtok, "function declaration doesn't match previous extern declaration") return false end if (fnptr) and (not sig.compare(fnptr.value, true)) then lerror(sig.errtok, "function declaration doesn't match fnptr prototype") return false end if not define(sig.name, "fn", sig.errtok, false, ast) then return false end ast.fin = sig.fin ast.out = sig.out ast.public = sig.public ast.varin = sig.varin ast.def = mydef ast.autos = myautos ast.idef = myidef ast.wdepth = 0 currentfn = ast if ast.varin then if not defauto("argc", sig.errtok) then return false end if not define("argv", "table", sig.errtok, true, {}) then return false end end ast.block = parser.block("end") if not ast.block then return false end return ast end function parser.constant(poa, str, noblock) local t = lex:extract() if not t then return false end if t[2] == "number" then return t[1], "num", t end if (t[2] == "string") and (str) then return t[1], "str", t end if t[2] == "tag" then if t[1] == "pointerof" then if not poa then lerror(t, "pointerof not allowed here") return false end local n, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end return n[1], "ptr", t end local c = defined(t[1], "const") if not c then lerror(t, "not a constant") return false end return c.value, "const", t end if t[1] == "(" then if noblock then lerror(t, "can't use complex constants here") return false end local ast = parser.block(")") if not ast then return false end return ast, "block", t end lerror(t, "strange constant") return false end function parser.def(kind, hasinit, conste) local t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end local name = t[1] local initv = true local k if hasinit then initv, k = parser.constant() if not initv then return false end if (k == "block") and (conste) then initv.defines = name end end if not define(name, kind, t, false, initv) then return false end if kind == "externconst" then extern[name] = true end return true end function parser.table() local t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end local name = t[1] local dte = {} if not define(name, "table", t, false, dte) then return false end dte.name = name local errtok = t local peek = lex:peek() if peek then if peek[1] == "[" then lex:extract() dte.count = parser.constant() if not dte.count then return false end local g = true t = lex:extract() if t then if t[1] ~= "]" then g = false end else g = false end if not g then lerror(peek, "malformed table size") return false end end end if dte.count then -- easy table? return true end -- nope, complicated table dte.words = {} peek = lex:peek() if not t then lerror(errtok, "EOF before table contents defined") return false end while peek[1] ~= "endtable" do local n, q, t = parser.constant(true, true) if not n then return false end dte.words[#dte.words + 1] = {["typ"]=q, ["name"]=n, ["errtok"]=t} peek = lex:peek() if not peek then lerror(errtok, "unfinished table") return false end end lex:extract() return true end function parser.struct() local snt, ok = lex:expect("tag") if not ok then lerror(snt, "expected tag, got "..snt[2]) return false end local name = snt[1] local t = lex:peek() if not t then lerror(t, "unfinished struct") return false end local struc = {} struc.name = name local szofblock = {} szofblock.block = {} if not define(name.."_SIZEOF", "const", t, false, szofblock) then return false end while t[1] ~= "endstruct" do local const, consttype, tok = parser.constant(nil, nil) if not const then return false end local n, ok = lex:expect("tag") if not ok then lerror(n, "expected tag, got "..n[1]) return false end local cn = name.."_"..n[1] local v = {} v.block = {} if not define(name.."_"..n[1], "const", tok, false, v) then return false end struc[#struc + 1] = {tok=tok, size=const, valblock=v, name=cn} t = lex:peek() if not t then lerror(t, "unfinished struct") return false end end lex:extract() struc[#struc + 1] = {tok=snt, size=0, valblock=szofblock, name=name.."_SIZEOF"} structs[#structs + 1] = struc if not define(name, "struct", snt, false, struc) then return false end return true end function parser.public() local t, ok = lex:expect("tag") if not ok then lerror(t, "expected tag, got "..t[2]) return false end local name = t[1] public[name] = t return true end function parser.asm() local t, ok = lex:expect("string") if not ok then lerror(t, "expected string, got "..t[2]) return false end return t[1] end function parser.parse(lexer, sourcetext, filename, incd, reserve, cg) lex = lexer.new(sourcetext, filename) res = reserve incdir = incd if not lex then return false end basedir = getdirectory(filename) currentfn = {} currentfn.def = {} define("WORD", "const", nil, false, cg.wordsize) define("PTR", "const", nil, false, cg.ptrsize) local asms = {} local token = lex:extract() while token do local ident = token[1] if ident == "" then -- why doesnt lua 5.1 have a continue keyword elseif ident == "#" then if not parser.directive() then return false end elseif (ident == "fn") then if not parser.fn(true) then return false end elseif ident == "extern" then if not parser.extern() then return false end elseif ident == "fnptr" then if not parser.fnptr() then return false end elseif ident == "const" then if not parser.def("const", true, true) then return false end elseif ident == "externptr" then if not parser.def("externconst", false) then return false end elseif ident == "public" then if not parser.public() then return false end elseif ident == "var" then if not parser.def("var", true) then return false end elseif ident == "table" then if not parser.table() then return false end elseif ident == "buffer" then if not parser.def("buffer", true) then return false end elseif ident == "struct" then if not parser.struct() then return false end elseif ident == "asm" then local pq = parser.asm() if not pq then return false end asms[#asms + 1] = pq else lerror(token, "unexpected token: "..ident) return false end token = lex:extract() end return def, public, extern, structs, asms end return parser
--[[ file linking. ]]-- -- load engine internals. -- conf.lua is first included by Löve. require 'load' require 'alias' require 'utility' --require 'deep' debug = false if debug then local chunk = love.filesystem.load('buildno.soft') chunk() love.filesystem.write('buildno.soft',fmt('build=%d',build+1)) print(fmt('build no. %d',build+1)) end -- manage Löve state: require 'draw' require 'update' --[[ runtime. ]]-- t = 0 print(fmt('.-* made by verysoftwares with LOVE %d.%d *-.', love.getVersion()))
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) local condition = Condition(CONDITION_DAZZLED) condition:setParameter(CONDITION_PARAM_DELAYED, true) condition:addDamage(50, 10000, -10) combat:setCondition(condition) function onCastSpell(creature, variant) return combat:execute(creature, variant) end
local music = nil; local ambientMusic = ""; local isAmbient = false; local airlocks = {}; boss1 = scene:getObjects("boss1")[1]; boss2 = scene:getObjects("boss2")[1]; bg = nil; function startMusic(name, crossfade) local newMusic = audio:createStream(name); newMusic.loop = true; newMusic.isMusic = true; if crossfade then audio:crossfade(music, newMusic, 0.5, 0.5, 0.3); else if music ~= nil then music:stop(); end newMusic:play(); end music = newMusic; isAmbient = false; end function stopMusic(crossfade) if music ~= nil then if crossfade then audio:crossfade(music, nil, 0.5, 0.5, 0.3); else music:stop(); end end music = nil; end function setAmbientMusic(name) if ambientMusic ~= name then ambientMusic = name; isAmbient = false; end end function startAmbientMusic(crossfade) if not isAmbient then startMusic(ambientMusic, crossfade); isAmbient = true; end end function openAirlock(name, haveSound) local snd = nil; local wheel = true; if airlocks[name] ~= nil then snd = airlocks[name].snd; wheel = airlocks[name].wheel; cancelTimeout(airlocks[name].cookie); airlocks[name] = nil; end local inst = scene:getInstances(name)[1]; local j = findJoint(inst.joints, "airlock_door1_joint"); local wj = findJoint(inst.joints, "airlock_wheel_joint"); if ((j:getJointTranslation() >= j.upperLimit) and (wj.jointAngle >= wj.upperLimit)) then if snd ~= nil then snd:stop(); end j.motorSpeed = math.abs(j.motorSpeed); wj.motorSpeed = math.abs(wj.motorSpeed); return; end airlocks[name] = {}; if (snd == nil) and haveSound then airlocks[name].snd = audio:createSound("door_move.ogg"); airlocks[name].snd.loop = true; airlocks[name].snd:play(); else airlocks[name].snd = snd; end airlocks[name].wheel = wheel; wj.motorSpeed = math.abs(wj.motorSpeed); if (not wheel) then j.motorSpeed = math.abs(j.motorSpeed); airlocks[name].cookie = addTimeout0(function(cookie, dt) if (j:getJointTranslation() >= j.upperLimit) then cancelTimeout(cookie); if haveSound then airlocks[name].snd:stop(); end airlocks[name] = nil; end end); else airlocks[name].cookie = addTimeout0(function(cookie, dt) if (wj.jointAngle >= wj.upperLimit) then if haveSound then airlocks[name].snd:stop(); airlocks[name].snd = audio:createSound("servo_move.ogg"); airlocks[name].snd.loop = true; airlocks[name].snd:play(); end airlocks[name].wheel = false; cancelTimeout(cookie); j.motorSpeed = math.abs(j.motorSpeed); airlocks[name].cookie = addTimeout0(function(cookie, dt) if (j:getJointTranslation() >= j.upperLimit) then cancelTimeout(cookie); if haveSound then airlocks[name].snd:stop(); end airlocks[name] = nil; end end); end end); end end function closeAirlock(name, haveSound) local snd = nil; local wheel = false; if airlocks[name] ~= nil then snd = airlocks[name].snd; wheel = airlocks[name].wheel; cancelTimeout(airlocks[name].cookie); airlocks[name] = nil; end local inst = scene:getInstances(name)[1]; local j = findJoint(inst.joints, "airlock_door1_joint"); local wj = findJoint(inst.joints, "airlock_wheel_joint"); if ((j:getJointTranslation() <= j.lowerLimit) and (wj.jointAngle <= wj.lowerLimit)) then if snd ~= nil then snd:stop(); end j.motorSpeed = -math.abs(j.motorSpeed); wj.motorSpeed = -math.abs(wj.motorSpeed); return; end airlocks[name] = {}; if (snd == nil) and haveSound then airlocks[name].snd = audio:createSound("servo_move.ogg"); airlocks[name].snd.loop = true; airlocks[name].snd:play(); else airlocks[name].snd = snd; end airlocks[name].wheel = wheel; j.motorSpeed = -math.abs(j.motorSpeed); if (wheel) then wj.motorSpeed = -math.abs(wj.motorSpeed); airlocks[name].cookie = addTimeout0(function(cookie, dt) if (wj.jointAngle <= wj.lowerLimit) then cancelTimeout(cookie); if haveSound then airlocks[name].snd:stop(); end airlocks[name] = nil; end end); else airlocks[name].cookie = addTimeout0(function(cookie, dt) if (j:getJointTranslation() <= j.lowerLimit) then if haveSound then airlocks[name].snd:stop(); airlocks[name].snd = audio:createSound("door_move.ogg"); airlocks[name].snd.loop = true; airlocks[name].snd:play(); end airlocks[name].wheel = true; cancelTimeout(cookie); wj.motorSpeed = -math.abs(wj.motorSpeed); airlocks[name].cookie = addTimeout0(function(cookie, dt) if (wj.jointAngle <= wj.lowerLimit) then cancelTimeout(cookie); if haveSound then airlocks[name].snd:stop(); end airlocks[name] = nil; end end); end end); end end function makeAirlock(name, opened) local inst = scene:getInstances(name)[1]; scene:addGearJoint(findObject(inst.objects, "airlock_door1"), findObject(inst.objects, "airlock_door2"), findJoint(inst.joints, "airlock_door1_joint"), findJoint(inst.joints, "airlock_door2_joint"), -1, false); if opened then openAirlock(name, false); end end function makeTentacleFlesh(name) local objs = scene:getObjects(name); for _, obj in pairs(objs) do local c = obj:findRenderTentacleComponent(); local objs2 = c.objects; for _, obj2 in pairs(objs2) do obj2.material = const.MaterialFlesh; end end end function weldTentacleBones(tentacle, bones, targets, freq, damping) local cookies = {}; for i, bone in pairs(bones) do local objs = tentacle:findRenderTentacleComponent().objects; local ac = TentacleAttractComponent(freq, damping); ac.bone = bone; ac.target = targets[i]; tentacle:addComponent(ac); table.insert(cookies, ac); end return cookies; end function unweldTentacleBones(cookies) for _, cookie in pairs(cookies) do cookie:removeFromParent(); end end function weldTentacleBones2(tentacle, bones, freq, damping) local cookies = {}; local objs = tentacle:findRenderTentacleComponent().objects; for _, bone in pairs(bones) do local ac = TentacleAttractComponent(freq, damping); local dummy = factory:createDummy(); ac.bone = bone; dummy.pos = objs[ac.bone + 1].pos; scene:addObject(dummy); ac.target = dummy; tentacle:addComponent(ac); table.insert(cookies, ac); end return cookies; end function unweldTentacleBones2(cookies) for _, cookie in pairs(cookies) do cookie.target:removeFromParent(); cookie:removeFromParent(); end end -- main scene.player:findPlayerComponent():giveWeapon(const.WeaponTypeGG); scene.player:findPlayerComponent():giveWeapon(const.WeaponTypeBlaster); scene.camera:findCameraComponent():zoomTo(35, const.EaseLinear, 0); scene.lighting.ambientLight = {0.4, 0.4, 0.4, 1.0}; math.randomseed(os.time()); bg = factory:createBackground("ground3.png", 9.0, 9.0, vec2(0.8, 0.8), const.zOrderBackground); bg:findRenderBackgroundComponent().color = {0.58, 0.58, 0.58, 1.0}; scene:addObject(bg); setAmbientMusic("ambient13.ogg"); startAmbientMusic(false); require("e1m10_part0"); require("e1m10_part1"); require("e1m10_part2"); if settings.developer >= 1 then scene.respawnPoint = scene:getObjects("player_"..settings.developer)[1]:getTransform(); scene.player:setTransform(scene.respawnPoint); scene:getObjects("boss0_cp")[1].active = false; scene:getObjects("boss0b_cp")[1].active = false; closeAirlock("door2", false); closeAirlock("door3", false); boss1:findTargetableComponent().autoTarget = true; boss2:setTransform(scene:getObjects("target4")[1]:getTransform()); end if settings.developer == 1 then startMusic("action15.ogg", false); scene.camera:findCameraComponent():zoomTo(50, const.EaseLinear, 0); end if settings.developer == 2 then startMusic("action15.ogg", false); setSensorListener("boss1_cp", function(other) end, function(other) end); boss1:findBossBuddyComponent():setDead(); scene.lighting.ambientLight = {0.0, 0.0, 0.0, 1.0}; scene.player:findPlayerComponent():giveWeapon(const.WeaponTypeRLauncher); scene.player:findPlayerComponent():changeAmmo(const.WeaponTypeRLauncher, 10); scene.camera:findCameraComponent():zoomTo(45, const.EaseLinear, 0); swallowSequence(); end if settings.developer >= 3 then setSensorListener("boss1_cp", function(other) end, function(other) end); scene.camera:findCameraComponent():zoomTo(50, const.EaseLinear, 0); boss1:removeFromParent(); boss1 = nil; end if settings.developer == 3 then addTimeoutOnce(1.0, function() startChamber(false); end); end if (settings.developer == 4) or (settings.developer == 5) then startMusic("action15.ogg", false); startChamber(true); scene.cutscene = true; startNatan(); end if settings.developer == 6 then stopMusic(false); scene.lighting.ambientLight = {0.3, 0.3, 0.3, 1.0}; startChamber(true); scene.cutscene = true; addTimeoutOnce(0.25, function() local stream = audio:createStream("queen_shake.ogg"); stream.loop = true; stream:play(); startCarl(stream, false); end); end if settings.developer >= 7 then stopMusic(false); scene.lighting.ambientLight = {0.3, 0.3, 0.3, 1.0}; startChamber(true); local stream = audio:createStream("queen_shake.ogg"); stream.loop = true; stream:play(); startCarl(stream, true); end if settings.developer >= 8 then bg:removeFromParent(); bg = factory:createBackground("metal5.png", 24.0, 24.0, vec2(0.8, 0.8), const.zOrderBackground); scene:addObject(bg); end
if script.active_mods["zk-lib"] then require("__zk-lib__/static-libs/lualibs/event_handler_vZO.lua").add_lib(require("multi-surface-control")) else require("event_handler").add_lib(require("multi-surface-control")) end
local function ChangePhoto(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if text then tdcli_function({ID = "GetUser",user_id_ = msg.sender_user_id_},function(arg,result) if result.id_ then local Rio = DevRio:get("RaumoTeam:Photo"..result.id_) if not result.profile_photo_ then if Rio then Dev_Rio(msg.chat_id_, msg.id_, 1, "حذف كل صوره مضروب بوري، 😹💔", 1, 'html') DevRio:del("RaumoTeam:Photo"..result.id_) end end if result.profile_photo_ then if Rio and Rio ~= result.profile_photo_.big_.persistent_id_ then local Rio_text = { "وفف مو صوره غنبلةة، 🤤♥️", "طالع صاكك بالصوره الجديده ممكن نرتبط؟ ، 🤤♥️", "حطيت صوره جديده عود شوفوني اني صاكك بنات، 😹♥️", "اححح شنيي هالصوره الجديده، 🤤♥️", } Rio3 = math.random(#Rio_text) Dev_Rio(msg.chat_id_, msg.id_, 1, Rio_text[Rio3], 1, 'html') end DevRio:set("RaumoTeam:Photo"..result.id_, result.profile_photo_.big_.persistent_id_) end end end,nil) end end end return { Raumo = ChangePhoto }
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- function getVehicleHandlingProperty ( element, property ) if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then local handlingTable = getVehicleHandling ( element ) local value = handlingTable[property] if value then return value end end return false end local asapd_radiowozy = { {-1640.32, 649.72, -5.52, 359.7, 0.0, 268.8, 597}, {-1640.31, 653.80, -5.52, 359.7, 0.0, 269.4, 597}, --{-1640.31, 653.80, -5.52, 359.7, 0.0, 269.4, 597}, {-1640.34, 657.85, -5.52, 359.7, 0.0, 270.1, 597}, {-1640.35, 661.99, -5.52, 359.7, 0.0, 268.9, 597}, } local asapd_holowniki = { {-1640.21, 670.16, -5.37, 358.0, 0.0, 269.7, 525}, {-1640.21, 674.06, -5.36, 358.3, 360.0, 269.9, 525}, {-1640.25, 678.24, -5.37, 358.0, 0.0, 270.4, 525}, {-1640.19, 682.35, -5.36, 358.3, 0.0, 270.5, 525}, {-1640.29, 686.39, -5.36, 358.2, 360.0, 269.4, 525}, } local sapd_premiery = { {-1608.37, 693.82, -5.50, 0.0, 0.0, 179.6, 426}, {-1604.17, 693.80, -5.50, 0.0, 0.0, 179.8, 426}, {-1600.09, 693.79, -5.50, 0.0, 0.0, 179.6, 426}, {-1596.05, 693.82, -5.50, 0.0, 0.0, 180.0, 426}, } local sapd_sultany = { --{-1596.70, 674.97, -5.61, 0.13, 0.00, 358.53,560}, --{-1600.68, 674.92, -5.61, 0.13, 0.00, 359.72,560}, } local sapd_radiowozy = { {-1632.80, 693.77, -5.52, 359.7, 0.0, 180.1, 597}, {-1628.71, 693.72, -5.52, 359.7, 0.0, 179.6, 597}, {-1624.65, 693.78, -5.52, 359.7, 0.0, 179.6, 597}, {-1620.61, 693.78, -5.52, 359.7, 360.0, 179.4, 597}, {-1616.54, 693.80, -5.52, 359.7, 0.0, 179.2, 597}, } for i,v in pairs(asamc_ambulansy) do local vehicle=createVehicle(v[7], v[1], v[2], v[3]) setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) removeVehicleSirens(vehicle) setElementData(vehicle,"vehicle:police", true) setVehicleSirens ( vehicle, 1, 0.802, 2.300, -0.013, 255, 255, 255, 255, 255 ) addVehicleSirens ( vehicle, 8, 2, true, false, false, true ) setVehicleSirens ( vehicle, 2, -0.795, 2.300, 0.000, 255, 255, 255, 255, 255 ) addVehicleSirens ( vehicle, 8, 2, true, false, false, true ) setVehicleSirens ( vehicle, 3, -0.775, -2.700, 0.047, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 8, 2, true, false, false, true ) setVehicleSirens ( vehicle, 4, 0.768, -2.700, 0.039, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 8, 2, true, false, false, true ) setVehicleSirens ( vehicle, 5, 0.522, -0.405, 0.900, 0, 96, 255, 255, 255 ) addVehicleSirens ( vehicle, 8, 2, true, false, false, true ) setVehicleSirens ( vehicle, 6, -0.479, -0.424, 0.900, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 8, 2, true, false, false, true ) setVehicleSirens ( vehicle, 7, 0.054, -1.873, 0.407, 0, 96, 255, 255, 255 ) addVehicleSirens ( vehicle, 8, 2, true, false, false, true ) setVehicleSirens ( vehicle, 8, 0.053, -1.836, 0.430, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 8, 2, true, false, false, true ) setVehicleColor( vehicle, 0, 40, 0, 100,100,100, 0,0,0 ,0,0,0 ) addVehicleUpgrade(vehicle, 1025) setElementData(vehicle,"vehicle:rank",1) setElementFrozen(vehicle,true) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:ownedPlayer", 1) setElementData(vehicle,"vehicle:id", i+660606) setVehiclePlateText(vehicle,"S " .. i+660606) setElementData(vehicle,"vehicle:desc","Radiowóz\nA-SAPD\nSan Fierro\n001-" .. i+660606 .."") setVehicleDamageProof(vehicle,true) local fast = getVehicleHandlingProperty(vehicle,"engineAcceleration") local maxfast = getVehicleHandlingProperty(vehicle,"maxVelocity") local masa = getVehicleHandlingProperty(vehicle,"mass") local masa2 = getVehicleHandlingProperty(vehicle,"turnMass") local xd = getVehicleHandlingProperty(vehicle,"tractionMultiplier") local coef = getVehicleHandlingProperty(vehicle,"dragCoeff") local stdg = getVehicleHandlingProperty(vehicle,"steeringLock") setVehicleHandling(vehicle,"engineAcceleration",fast+6.5) setVehicleHandling(vehicle,"maxVelocity",maxfast+115) setVehicleHandling(vehicle,"tractionMultiplier",xd+0.25) setVehicleHandling(vehicle,"mass",masa+150+100+200+55) setVehicleHandling(vehicle,"steeringLock",stdg+0.25) setVehicleHandling(vehicle,"dragCoeff",coef-0.25) setVehicleHandling(vehicle,"driveType", "awd") end for i,v in pairs(samc_premiery) do local vehicle=createVehicle(v[7], v[1], v[2], v[3]) setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) setVehicleDamageProof(vehicle,true) removeVehicleSirens(vehicle) setElementData(vehicle,"vehicle:police", true) setVehicleSirens ( vehicle, 1, 0.798, 2.300, 0.017, 255, 255, 255, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 2, -0.772, 2.300, 0.007, 255, 255, 255, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 3, -0.792, -2.700, 0.025, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 4, 0.773, -2.700, 0.037, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 5, -0.093, -1.915, 0.379, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 6, 0.164, -1.931, 0.358, 0, 96, 255, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) -- Police Siren: 3964 --police_object = createObject(3964,0,0,0) --attachElements(police_object,vehicle,0.75,1.15,1,0,0,0) setVehicleColor(vehicle, 0,0,25 ) addVehicleUpgrade(vehicle, 1025) setElementData(vehicle,"vehicle:rank",5) setElementFrozen(vehicle,true) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:id", i+997010) setVehiclePlateText(vehicle,"S " .. i+997010) setElementData(vehicle,"vehicle:ownedPlayer", 1) setElementData(vehicle,"vehicle:desc","Premier\nSAPD\nSan Fierro\n002-".. i+997010 .."") local fast = getVehicleHandlingProperty(vehicle,"engineAcceleration") local maxfast = getVehicleHandlingProperty(vehicle,"maxVelocity") local masa = getVehicleHandlingProperty(vehicle,"mass") local masa2 = getVehicleHandlingProperty(vehicle,"turnMass") local xd = getVehicleHandlingProperty(vehicle,"tractionMultiplier") local coef = getVehicleHandlingProperty(vehicle,"dragCoeff") local stdg = getVehicleHandlingProperty(vehicle,"steeringLock") setVehicleHandling(vehicle,"engineAcceleration",fast+6.5) setVehicleHandling(vehicle,"maxVelocity",maxfast+115) setVehicleHandling(vehicle,"tractionMultiplier",xd+0.25) setVehicleHandling(vehicle,"mass",masa+150+100+200+55) setVehicleHandling(vehicle,"steeringLock",stdg+0.25) setVehicleHandling(vehicle,"dragCoeff",coef-0.25) setVehicleHandling(vehicle,"driveType", "awd") end for i,v in pairs(samc_sultany) do local vehicle=createVehicle(v[7], v[1], v[2], v[3]) setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) setVehicleDamageProof(vehicle,true) removeVehicleSirens(vehicle) setElementData(vehicle,"vehicle:police", true) setVehicleSirens ( vehicle, 1, 0.736, 2.400, -0.178, 255, 255, 255, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 2, -0.727, 2.400, -0.155, 255, 255, 255, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 3, -0.749, -2.300, 0.191, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 4, 0.712, -2.300, 0.168, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 5, -0.150, -1.542, 0.467, 255, 0, 0, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleSirens ( vehicle, 6, 0.185, -1.545, 0.465, 0, 96, 255, 255, 255 ) addVehicleSirens ( vehicle, 6, 2, true, false, false, true ) setVehicleColor(vehicle, 0,0,25 ) addVehicleUpgrade(vehicle, 1025) setElementData(vehicle,"vehicle:rank",5) setElementFrozen(vehicle,true) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:id", i+910290) setVehiclePlateText(vehicle,"S " .. i+910290) setElementData(vehicle,"vehicle:desc","[SF]-[003-" .. i+910290 .."]") local acc=getVehicleHandling(vehicle) local val=acc["engineAcceleration"] setElementData(vehicle,"vehicle:ownedPlayer", 1) setVehicleHandling(vehicle,"maxVelocity",450) setVehicleHandling(vehicle,"engineAcceleration",val+5) end addEventHandler("onVehicleEnter", resourceRoot, function(plr,seat,jacked) if seat == 0 then setElementData(source,"use:player",true) outputChatBox("* Wszedleś(aś) do pojazdu frakcyjnego, dbaj o niego i odstaw na miejsce.", plr) outputChatBox("* Wszelkie zostawiania pojazdów będa karane banem.", plr) end end) setTimer(function() for i,vehicle in pairs(getElementsByType("vehicle", resourceRoot)) do local x,y,z = getElementPosition(vehicle) local r1,r2,r3 = getElementRotation(vehicle) setVehicleRespawnPosition(vehicle,x,y,z,r1,r2,r3) toggleVehicleRespawn(vehicle,true) setVehicleIdleRespawnDelay(vehicle,3600000) setVehicleHandling(vehicle, "driveType", "awd") setElementData(vehicle,"vehicle:duty","SAMC") end end,1000,1) --[[local szkolenia = { {-2542.27,607.71,14.45, 0, 0, 180}, } for i,v in pairs(szkolenia) do local vehicle=createVehicle(431, v[1], v[2], v[3]) setVehicleColor(vehicle,255, 255, 0,255,0,0) addVehicleUpgrade(vehicle, 1078) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) setVehicleColor(vehicle,255, 255, 0,255,0,0) setElementData(vehicle,"vehicle:rank",3) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:desc","Szkolenia SAMC") addVehicleUpgrade(vehicle, 1025) end local karetki = { {-2588.53, 622.43, 14.61, 0.04, 359.61, 270.13}, {-2588.68, 627.49, 14.61, 0.04, 359.61, 270.91}, {-2588.77, 632.68, 14.60, 0.04, 359.61, 270.92}, } for i,v in pairs(karetki) do local vehicle=createVehicle(416, v[1], v[2], v[3]) setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) removeVehicleSirens(vehicle) addVehicleSirens(vehicle, 6, 2, true, false, false, true ) setVehicleSirens(vehicle, 1, -0.400, 0.900, 1.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 2, 0.000, 0.900, 1.200, 255, 255, 255, 255, 255 ) setVehicleSirens(vehicle, 3, 0.400, 0.900, 1.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 4, 0.900, -3.700, 1.400, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 5, -0.900, -3.700, 1.400, 255, 0, 0, 255, 255 ) setVehicleColor( vehicle,255, 255, 0,0,128,255 ) addVehicleUpgrade(vehicle, 1025) setElementData(vehicle,"vehicle:rank",2) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:desc","SAMC-" ..i) end local karetki_2 = { {-2588.93, 637.89, 14.60, 0.08, 359.62, 269.95}, {-2589.17, 643.09, 14.60, 0.04, 359.61, 271.01}, {-2589.42, 648.20, 14.60, 0.04, 359.64, 270.53}, } for i,v in pairs(karetki_2) do local vehicle=createVehicle(416, v[1], v[2], v[3]) setVehicleColor(vehicle,255, 255, 0,255,0,0) addVehicleUpgrade(vehicle, 1078) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) addVehicleSirens(vehicle, 6, 2, true, false, false, true ) setVehicleSirens(vehicle, 1, -0.400, 0.900, 1.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 2, 0.000, 0.900, 1.200, 255, 255, 255, 255, 255 ) setVehicleSirens(vehicle, 3, 0.400, 0.900, 1.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 4, 0.900, -3.700, 1.400, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 5, -0.900, -3.700, 1.400, 255, 0, 0, 255, 255 ) setVehicleColor(vehicle,255, 255, 0,255,0,0) setElementData(vehicle,"vehicle:rank",3) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:desc","SAMC-" .. i) addVehicleUpgrade(vehicle, 1025) end local karetki_1 = { {-2571.47, 622.30, 14.60, 0.04, 359.61, 270.05}, {-2571.70, 627.49, 14.60, 0.04, 359.61, 270.87}, {-2571.64, 632.82, 14.61, 0.04, 359.61, 271.46}, } for i,v in pairs(karetki_1) do local vehicle=createVehicle(416, v[1], v[2], v[3]) --setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) addVehicleSirens(vehicle, 6, 2, false, false, false, true ) setVehicleSirens(vehicle, 1, -0.800, 2.400, 0.000, 255, 255, 255, 255, 255 ) setVehicleSirens(vehicle, 2, 0.800, 2.400, 0.000, 255, 255, 255, 255, 255 ) setVehicleSirens(vehicle, 3, -1.000, -2.600, 0.000, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 4, 1.000, -2.600, 0.000, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 5, -0.400, 0.350, 0.690, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 6, 0.600, 0.350, 0.690, 0, 0, 255, 255, 255 ) --setVehicleColor( vehicle, 255, 0, 0, 0,0,0) setElementData(vehicle,"vehicle:rank",1) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:desc","SAMC-" .. i) addVehicleUpgrade(vehicle, 1025) end local helikoptery = { {-2643.47, 673.41, 67.40, 3.33, 0.00, 89.53}, {-2673.41, 617.12, 67.40, 3.33, 359.93, 179.21}, } for i,v in pairs(helikoptery) do local vehicle=createVehicle(563, v[1], v[2], v[3]) setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) addVehicleSirens(vehicle, 2, 2, true, false, true, false ) setVehicleSirens(vehicle, 1, -0.400, 2.600, -0.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 2, 0.400, 2.600, -0.200, 0, 0, 255, 255, 255 ) setVehicleColor( vehicle, 99 ,184, 255, 255,255,255) addVehicleUpgrade(vehicle, 1096) setElementData(vehicle,"vehicle:rank",7) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:desc","SAMC-" ..i) end local karawany = { { -2589.55, 652.93, 14.28, 0.79, 0.00, 269.56}, {-2589.28, 658.19, 14.29, 0.74, 0.00, 271.01}, } for i,v in pairs(karawany) do local vehicle=createVehicle(442, v[1], v[2], v[3]) setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) addVehicleSirens(vehicle, 2, 2, true, false, true, false ) setVehicleSirens(vehicle, 1, -0.400, 2.600, -0.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 2, 0.400, 2.600, -0.200, 0, 0, 255, 255, 255 ) setVehicleColor( vehicle, 0, 0, 0, 255,255,255) addVehicleUpgrade(vehicle, 1096) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:rank",1) end local patrol = { {-2545.92, 657.88, 14.19, 0.16, 359.99, 89.85}, {-2545.98, 652.67, 14.19, 0.16, 359.99, 90.42}, {-2545.81, 647.50, 14.19, 0.16, 359.99, 89.75}, } for i,v in pairs(patrol) do local vehicle=createVehicle(507, v[1], v[2], v[3]) setVehicleColor(vehicle,99 ,184, 255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) addVehicleSirens(vehicle, 2, 2, true, false, true, false ) setVehicleSirens(vehicle, 1, -0.400, 2.600, -0.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 2, 0.400, 2.600, -0.200, 0, 0, 255, 255, 255 ) setVehicleColor( vehicle, 99 ,184, 255) addVehicleUpgrade(vehicle, 1025) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:rank",1) setElementData(vehicle,"vehicle:desc","SAMC - Jednostka Patrolowa") end local patrol_2 = { {-2545.42, 622.21, 14.60, 359.74, 359.99, 90.14}, {-2545.90, 627.10, 14.60, 359.73, 359.99, 88.85}, } for i,v in pairs(patrol_2) do local vehicle=createVehicle(489, v[1], v[2], v[3]) setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) addVehicleSirens(vehicle, 2, 2, true, false, true, false ) setVehicleSirens(vehicle, 1, -0.400, 2.600, -0.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 2, 0.400, 2.600, -0.200, 0, 0, 255, 255, 255 ) setVehicleColor( vehicle, 99 ,184, 255, 255,255,255) addVehicleUpgrade(vehicle, 1025) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:rank",2) setElementData(vehicle,"vehicle:desc","SAMC - Jednostka Patrolowa") end local Inspekcja = { {-2546.22, 637.53, 14.28, 359.76, 0.00, 88.81}, } for i,v in pairs(Inspekcja) do local vehicle=createVehicle(560, v[1], v[2], v[3]) setVehicleColor(vehicle,255,255,255,255) setElementRotation(vehicle, v[4], v[5], v[6]) setVehicleEngineState(vehicle, false) setElementFrozen(vehicle, true) addVehicleSirens(vehicle, 2, 2, true, false, true, false ) setVehicleSirens(vehicle, 1, -0.400, 2.600, -0.200, 255, 0, 0, 255, 255 ) setVehicleSirens(vehicle, 2, 0.400, 2.600, -0.200, 0, 0, 255, 255, 255 ) setVehicleColor( vehicle, 99 ,184, 255, 255,255,255) addVehicleUpgrade(vehicle, 1096) setElementData(vehicle,"vehicle:fuel", 100) setElementData(vehicle,"vehicle:rank",10) setElementData(vehicle,"vehicle:desc","SAMC - Zarząd frakcyjny") end --]]
return Def.ActorFrame { Def.Quad { InitCommand = function(self) self:FullScreen():diffuse(color('#000000')) end, }, }
----------------------------------------------- -- Set up ----------------------------------------------- local hyper = {"cmd", "alt", "ctrl"} hs.window.animationDuration = 0 ----------------------------------------------- -- hyper d for left one half window ----------------------------------------------- hs.hotkey.bind(hyper, 'd', function() if hs.window.focusedWindow() then local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x f.y = max.y f.w = max.w / 2 f.h = max.h win:setFrame(f) else hs.alert.show("No active window") end end) ----------------------------------------------- -- hyper g for right one half window ----------------------------------------------- hs.hotkey.bind(hyper, 'g', function() if hs.window.focusedWindow() then local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x + (max.w / 2) f.y = max.y f.w = max.w / 2 f.h = max.h win:setFrame(f) else hs.alert.show("No active window") end end) ----------------------------------------------- -- hyper f for fullscreen ----------------------------------------------- hs.hotkey.bind(hyper, 'f', function() if hs.window.focusedWindow() then local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x f.y = max.y f.w = max.w f.h = max.h win:setFrame(f) else hs.alert.show("No active window") end end) ----------------------------------------------- -- hyper r for top left one quarter window ----------------------------------------------- hs.hotkey.bind(hyper, 'r', function() if hs.window.focusedWindow() then local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x f.y = max.y f.w = max.w / 2 f.h = max.h / 2 win:setFrame(f) else hs.alert.show("No active window") end end) ----------------------------------------------- -- hyper t for top right one quarter window ----------------------------------------------- hs.hotkey.bind(hyper, 't', function() if hs.window.focusedWindow() then local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x + (max.w / 2) f.y = max.y f.w = max.w / 2 f.h = max.h / 2 win:setFrame(f) else hs.alert.show("No active window") end end) ----------------------------------------------- -- hyper v for bottom left one quarter window ----------------------------------------------- hs.hotkey.bind(hyper, 'v', function() if hs.window.focusedWindow() then local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x + (max.w / 2) f.y = max.y + (max.h / 2) f.w = max.w / 2 f.h = max.h / 2 win:setFrame(f) else hs.alert.show("No active window") end end) ----------------------------------------------- -- hyper c for bottom right one quarter window ----------------------------------------------- hs.hotkey.bind(hyper, 'c', function() if hs.window.focusedWindow() then local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x f.y = max.y + (max.h / 2) f.w = max.w / 2 f.h = max.h / 2 win:setFrame(f) else hs.alert.show("No active window") end end) ----------------------------------------------- -- Reload config on write ----------------------------------------------- function reload_config(files) hs.reload() end hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", reload_config):start() hs.alert.show("Config loaded") ----------------------------------------------- -- Hyper i to show window hints ----------------------------------------------- hs.hotkey.bind(hyper, 'i', function() hs.hints.windowHints() end) ----------------------------------------------- -- Hyper hjkl to switch window focus ----------------------------------------------- hs.hotkey.bind(hyper, 'k', function() if hs.window.focusedWindow() then hs.window.focusedWindow():focusWindowNorth() else hs.alert.show("No active window") end end) hs.hotkey.bind(hyper, 'j', function() if hs.window.focusedWindow() then hs.window.focusedWindow():focusWindowSouth() else hs.alert.show("No active window") end end) hs.hotkey.bind(hyper, 'l', function() if hs.window.focusedWindow() then hs.window.focusedWindow():focusWindowEast() else hs.alert.show("No active window") end end) hs.hotkey.bind(hyper, 'h', function() if hs.window.focusedWindow() then hs.window.focusedWindow():focusWindowWest() else hs.alert.show("No active window") end end)