content
stringlengths
5
1.05M
--!nocheck --[[ TODO (in order) Instance.new Workspace, Hopperbin and Tool ContextActionService Camera Properties Sound Properties Script Sandbox (the most important) Mobile support --]] --> For scripts that use a Tool, just replace the Tool mouse to LocalPlayer:GetMouse() --> Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local ContextActionService = game:GetService("ContextActionService") --> Immutable local Clock = os.clock local Uppercase = string.upper local Substring = string.sub local Stepped = RunService.Stepped local Modifiers = Enum.ModifierKey:GetEnumItems() local Inputs = {"GetKeysPressed", "GetMouseButtonsPressed", "GetGamepadState", "GetDeviceAcceleration", "GetDeviceGravity", "GetDeviceRotation"} --> Mutable local Times = 0 local Storage = {} --> Functions local function Correct(String) return Uppercase(Substring(String, 1, 1)) .. Substring(String, 2) end local function CreateUserdata(Class, Metatable) local Userdata = newproxy(true) for Index, Value in pairs(Metatable) do getmetatable(Userdata)[Index] = Value end if Metatable.__newindex == nil then if Class.Name ~= nil then getmetatable(Userdata).__newindex = function(_, Index, Value) if Class[Index] ~= nil then if not pcall(function() Class[Index] = Value end) then error("can't set value") end else error(Index .. " is not a valid member of " .. Class.ClassName .. " \"" .. Class.Name .. "\"") end end else getmetatable(Userdata).__newindex = function(_, Index) error(Index .. " cannot be assigned to " .. Class) end end end getmetatable(Userdata).__metatable = nil getmetatable(Userdata).__tostring = function() return Class.Name or Class end return Userdata end local function CreateSignal(Id, Number, Name, Service) Storage[Id][2][Number][Name] = {{}, false} local Signal = Storage[Id][2][Number][Name] function Signal:Connect(Function, ...) if Service.VREnabled ~= nil then --> It's funny that I replicate all the errors if Name == "DeviceRotationChanged" and not Service.GyroscopeEnabled then warn("Trying to listen to rotation events on a device without a gyroscope.") return elseif (Name == "DeviceGravityChanged" or Name == "DeviceAccelerationChanged") and not Service.AccelerometerEnabled then warn("Trying to listen to rotation events on a device without a accelerometer.") return end end local Length = #Signal[1] + 1 Signal[1][Length] = {} Signal[1][Length][1] = Function Signal[1][Length][2] = ... or nil return CreateUserdata("Connection", { __index = function(self, Index) Index = Correct(Index) if Index == "Connected" then if Signal[1][Length] ~= nil then return true end return false elseif Index == "Disconnect" then return function() Signal[1][Length] = nil end end end }) end function Signal:Wait() Signal[2] = true local Time = Clock() while Signal[2] do task.wait() end return Clock() - Time end return CreateUserdata("Signal " .. Name, { __index = function(self, Index) local CIndex = Correct(Index) if Signal[CIndex] ~= nil then return Signal[CIndex] else error(Index .. " is not a valid member of RBXScriptSignal") end end }) end local function CreateInstance(Name, Class, Properties) local Instance = Instance.new(Class) Instance.Name = Name Properties = Properties or {} for Index, Value in pairs(Properties) do Instance[Index] = Value end return Instance end function FireSignal(Signal, ...) for _, Connection in ipairs(Signal[1]) do task.spawn(Connection[1], Connection[2] or ...) end Signal[2] = false end --> Remotes local GSRemotes = CreateInstance("GS Remotes", "Folder") local GSFunction = CreateInstance("GS Function", "RemoteFunction") local GSEvent = CreateInstance("GS Event", "RemoteEvent") GSEvent.Parent = GSRemotes GSFunction.Parent = GSRemotes GSRemotes.Parent = ReplicatedStorage --> Events Players.PlayerRemoving:Connect(function(Player) --> Collect garbage if Storage[Player.UserId] then for _, Script in ipairs(Storage[Player.UserId][1]) do if Script.Disabled ~= nil then Script.Disabled = true Script:Destroy() end end Storage[Player.UserId] = nil end end) --> Public Function return function(Player) --> Used to know how long it takes to convert local Time = Clock() --> Errors if RunService:IsClient() then error("Can't be used on client environment") elseif Player == nil then error("Argument 1 missing or nil") elseif type(Player) ~= "userdata" or Player.ClassName ~= "Player" then error("Argument 1 is not a player") end Times += 1 local Times = Times --> Script environment local Environment = getfenv(2) --> Stores the player for optimizations Storage[Player.UserId] = {} local Storage = Storage[Player.UserId] Storage[1] = {} Storage[1][#Storage[1] + 1] = Environment.script Storage[2] = {} Storage[2][Times] = {} --> Able to execute in client local PlayerGui = Player:FindFirstChildOfClass("PlayerGui") if not PlayerGui:FindFirstChild("GS Shield") then local Client = script.Client:Clone() local Shield = CreateInstance("GS Shield", "ScreenGui", { Enabled = false, ResetOnSpawn = false }) Client.Parent = Shield Shield.Parent = PlayerGui Client.Disabled = false end --> Replacement Services local Services = { { --> Mouse "Idle", "Move", "KeyUp", "KeyDown", "Button1Up", "Button2Up", "Button1Down", "Button2Down", "WheelForward", "WheelBackward" }, { --> UserInputService "TouchPan", "TouchTap", "TouchEnded", "TouchMoved", "TouchSwipe", "TouchPinch", "InputBegan", "InputEnded", "JumpRequest", "TouchRotate", "InputChanged", "TouchStarted", "WindowFocused", "PointerAction", "TouchLongPress", "TextBoxFocused", "TouchTapInWorld", "GamepadConnected", "UserCFrameChanged", "GamepadDisconnected", "WindowFocusReleased", "LastInputTypeChanged", "TextBoxFocusReleased", "DeviceGravityChanged", "DeviceRotationChanged", "DeviceAccelerationChanged", }, { --> ContextActionService (the hardest one) Actions = {}, LocalToolEquipped = CreateSignal(Player.UserId, Times, "LocalToolEquipped", {}), LocalToolUnequipped = CreateSignal(Player.UserId, Times, "LocalToolUnequipped", {}), BindAction = function(self, ActionName, FunctionToBind, CreateTouchButton, ...) self.Actions[ActionName] = {} local Action = self.Actions[ActionName] Action.FunctionToBind = FunctionToBind Action.CreateTouchButton = CreateTouchButton Action.StackOrder = #self.Actions Action.PriorityLevel = 2 Action.InputTypes = ... Action.Description = "" Action.Title = "" Action.Image = "" end, BindActionAtPriority = function(self, ActionName, FunctionToBind, CreateTouchButton, PriorityLevel, ...) self.Actions[ActionName] = {} local Action = self.Actions[ActionName] Action.FunctionToBind = FunctionToBind Action.CreateTouchButton = CreateTouchButton Action.StackOrder = #self.Actions Action.PriorityLevel = PriorityLevel Action.InputTypes = ... Action.Description = "" Action.Title = "" Action.Image = "" end, GetAllBoundActionInfo = function(self, ActionName) local Informations = {} for _, Action in pairs(self.Actions) do Informations[Action] = { stackOrder = Action.StackOrder, priorityLevel = Action.PriorityLevel, createTouchButton = Action.CreateTouchButton, inputTypes = Action.InputTypes, description = Action.Description, title = Action.Title, image = Action.Image, } end return Informations end, GetBoundActionInfo = function(self, ActionName) local Action = self.Actions[ActionName] return { stackOrder = Action.StackOrder, priorityLevel = Action.PriorityLevel, createTouchButton = Action.CreateTouchButton, inputTypes = Action.InputTypes, description = Action.Description, title = Action.Title, image = Action.Image, } end, GetCurrentLocalToolIcon = function() return Player.Character:FindFirstChildOfClass("Tool").TextureId end, SetDescription = function(self, ActionName, Description) self.Actions[ActionName].Description = Description end, SetImage = function(self, ActionName, Image) self.Actions[ActionName].Image = Image end, SetTitle = function(self, ActionName, Title) self.Actions[ActionName].Title = Title end, UnbindAction = function(self, ActionName) table.remove(self.Actions, ActionName) for Index, Action in pairs(self.Actions) do Action.StackOrder = Index end end, UnbindAllActions = function(self, ActionName) self.Actions = {} end, } } --> Nice way to reduce for I = 1, 2 do for Index, Signal in ipairs(Services[I]) do Services[I][Index] = nil --> If I == 2 then Services[2] else {} --> I kinda hate Lua ternary operator Services[I][Signal] = CreateSignal(Player.UserId, Times, Signal, I == 2 and Services[2] or {}) end end local PlayerScripts = {ClassName = "PlayerScripts", Parent = Player, Archivable = true} --> Receive client event or properties GSEvent.OnServerEvent:Connect(function(_, Type, ...) local Arguments = {...} if Type == 1 then --> Error error(Arguments[2]) elseif Type == 2 then --> PlayerScripts property PlayerScripts[Arguments[1]] = Arguments[2] elseif Type == 3 then --> Fires the event or receive new properties for the service if Arguments[2] then FireSignal(Storage[2][Times][Arguments[2]], Arguments[3]) else for Name, Value in pairs(Arguments[3]) do Services[Arguments[1]][Name] = Value end end end end) --> I don't want to talk about this local function GetService(ClassName) if ClassName == "Players" then return CreateUserdata(Players, { __index = function(self, Index) if Correct(Index) == "LocalPlayer" then return CreateUserdata(Player, { __index = function(self, Index) if Index == "PlayerScripts" then return CreateUserdata(PlayerScripts, { __index = function(self, Index) if PlayerScripts[Index] ~= nil then if PlayerScripts[Index].Name ~= nil then return CreateUserdata(PlayerScripts[Index], { __index = function(self, _Index) if PlayerScripts[Index][_Index] ~= nil then return PlayerScripts[Index][_Index] else error(_Index .. " is not a valid member of LocalScript \"" .. PlayerScripts[Index].Name .. "\"") end end, __newindex = function(self, _Index, Value) if PlayerScripts[Index][_Index] ~= nil then GSEvent:FireClient(Player, PlayerScripts[Index].Name, Value) PlayerScripts[Index][_Index] = Value else error(_Index .. " is not a valid member of LocalScript \"" .. PlayerScripts[Index].Name .. "\"") end end }) else return PlayerScripts[Index] end elseif pcall(type, workspace[Index]) then return function(self, Name) if PlayerScripts[Name] ~= nil then return CreateUserdata(PlayerScripts[Name], { __index = function(self, Index) if PlayerScripts[Name][Index] ~= nil then return PlayerScripts[Name][Index] else error(Index .. " is not a valid member of LocalScript \"" .. PlayerScripts[Name].Name .. "\"") end end, __newindex = function(self, Index, Value) if PlayerScripts[Name][Index] ~= nil then GSEvent:FireClient(Player, PlayerScripts[Name].Name, Value) PlayerScripts[Name][Index] = Value else error(Index .. " is not a valid member of LocalScript \"" .. PlayerScripts[Name].Name .. "\"") end end }) end end else error(Index .. " is not a valid member of PlayerScripts \"" .. PlayerScripts.Name .. "\"") end end, __newindex = function(self, Index, Value) if PlayerScripts[Index] ~= nil then GSEvent:FireClient(Player, Index, Value) PlayerScripts[Index] = Value else error(Index .. " is not a valid member of PlayerScripts \"" .. PlayerScripts.Name .. "\"") end end }) elseif Player[Index] ~= nil then if type(Player[Index]) == "function" then return function(self, ...) if Correct(Index) == "GetMouse" then return CreateUserdata(Services[1], { __index = function(self, Index) local CIndex = Correct(Index) if Services[1][CIndex] ~= nil then return Services[1][CIndex] else error(Index .. " is not a valid member of PlayerMouse \"" .. Services[1].Name .. "\"") end end, __newindex = function(self, Index, Value) if Index == "Icon" or Correct(Index) == "TargetFilter" then GSEvent:FireClient(Player, Index, Value) Services[1][Index] = Value elseif Services[1][Index] ~= nil then Services[1][Index] = Value else error(Index .. " is not a valid member of PlayerMouse \"" .. Services[1].Name .. "\"") end end }) else return Player[Index](Player, ...) end end else return Player[Index] end else return --> Need to avoid errors or you can't check nil values (like .Character) end end }) elseif Players[Index] ~= nil then if type(Players[Index]) == "function" then return function(self, ...) return Players[Index](Players, ...) end else return Players[Index] end else error(Index .. " is not a valid member of Players \"" .. Players.Name .. "\"") end end }) elseif ClassName == "UserInputService" then return CreateUserdata(UserInputService, { __index = function(self, Index) local CIndex = Correct(Index) if Services[2][CIndex] ~= nil then return Services[2][CIndex] elseif UserInputService[Index] ~= nil then if pcall(type, workspace[CIndex]) then return function(self, ...) return UserInputService[CIndex](UserInputService, ...) end elseif type(UserInputService[CIndex]) == "function" then if Inputs[CIndex] ~= nil then return function(self, ...) local InputObject = GSFunction:InvokeClient(Player, CIndex, ...) local FakeInputObject = {} for _, InputObject in ipairs(InputObject) do FakeInputObject[#FakeInputObject + 1] = CreateUserdata(InputObject.Name, { __index = function(self, Index) local CIndex = Correct(Index) if CIndex == "IsModifierKeyDown" then return function(self, ModifierKey) if ModifierKey then local IsModifier = false for _, Enum in ipairs(Modifiers) do if ModifierKey == Enum then IsModifier = true break end end return IsModifier else error("Argument 1 missing or nil") end end elseif InputObject[CIndex] ~= nil then return InputObject[CIndex] else error(Index .. " is not a valid member of InputObject \"" .. InputObject.Name .. "\"") end end, __newindex = function(self, Index, Value) if InputObject[Index] ~= nil then InputObject[Index] = Value else error(Index .. " is not a valid member of InputObject \"" .. InputObject.Name .. "\"") end end }) end if Index == "GetKeysPressed" or Index == "GetMouseButtonsPressed" or Index == "GetGamepadState" then return FakeInputObject[1] end return FakeInputObject end else return function(self, ...) return GSFunction:InvokeClient(Player, CIndex, ...) end end else return UserInputService[Index] end else error(Index .. " is not a valid member of UserInputService \"" .. UserInputService.Name .. "\"") end end }) elseif ClassName == "ContextActionService" then --> This service isn't done return CreateUserdata(ContextActionService, { __index = function(self, Index) local CIndex = Correct(Index) if Services[3][CIndex] ~= nil then return Services[3][CIndex] elseif ContextActionService[Index] ~= nil then if pcall(type, workspace[CIndex]) then return function(self, ...) return ContextActionService[CIndex](ContextActionService, ...) end elseif type(ContextActionService[CIndex]) == "function" then return function(self, ...) print(...) return GSFunction:InvokeClient(Player, CIndex, ...) end else return ContextActionService[Index] end else error(Index .. " is not a valid member of ContextActionService \"" .. ContextActionService.Name .. "\"") end end }) elseif ClassName == "RunService" then return CreateUserdata(RunService, { __index = function(self, Index) if Correct(Index) == "RenderStepped" then return Stepped elseif RunService[Index] ~= nil then if type(RunService[Index]) == "function" then return function(self, ...) return RunService[Index](RunService, ...) end else return RunService[Index] end else error(Index .. " is not a valid member of Run Service \"" .. RunService.Name .. "\"") end end }) end end Environment.game = CreateUserdata(game, { __index = function(self, Index) if game[Index] ~= nil then if type(game[Index]) == "function" then local Index = Correct(Index) if Index == "GetService" or Index == "Service" then return function(self, Service) return GetService(Service) or game:GetService(Service) end elseif Index == "FindService" then return function(self, Service) return GetService(Service) or game:FindService(Service) end else return function(self, ...) return game[Index](game, ...) end end else local CIndex = Correct(Index) if pcall(function() game:GetService(CIndex) end) then return GetService(CIndex) or game:GetService(CIndex) else return game[Index] end end else error(Index .. " is not a valid member of DataModel \"" .. game.Name .. "\"") end end }) Environment.LoadLibrary = CreateUserdata("RbxLibrary", { __call = function(self, Index) if script.LoadLibrary[Index] ~= nil then return require(script.LoadLibrary[Index]) else error(Index .. " is not a valid member of RbxLibrary \"LoadLibrary\"") end end, __index = function(self, Index) warn("attempt to index function with '" .. Index .. "'") end, __newindex = function(self, Index) warn("attempt to index function with '" .. Index .. "'") end }) --> We will don't need loadstring Environment.loadstring = function(...) error("loadstring() doenst exists") end --> Environment.defer = task.defer Environment.wait = task.wait Environment.delay = task.delay Environment.spawn = task.spawn Environment.Game = Environment.game while not PlayerScripts.Name do task.wait() end return Clock() - Time end
operation = {"·", ":"} ind = math.random(2) sign = operation[ind] compare = {"<", ">", "≤", "≥"} index = math.random(4) relat = compare[index] factor1 = math.random(59) + 21 factor2 = math.random(39) + 11 prod = factor1 * factor2 term = factor1 solution = factor2; result = prod; relsol = relat stampa = math.random(2) if (stampa == 1) then if (ind == 2) then term = prod solution = factor2; result = factor1; if (index < 3) then relsol = compare[3 - index] else relsol = compare[7 - index] end end ineq = tostring(term) .. " " .. sign .. " x " .. relat .. " " .. tostring(result) else if (ind == 2) then term = factor1 solution = prod; result = factor2; end ineq = "x " .. sign .. " " .. tostring(term) .. " " .. relat .. " " .. tostring(result) end
-- Variable to check if native has already been run local Ran = false -- Wait until client is loaded into the map AddEventHandler("onClientMapStart", function () -- If not already ran if not Ran then -- Close loading screen resource ShutdownLoadingScreenNui() -- Set as ran Ran = true end end)
#!/usr/bin/env luajit local file=assert(io.popen("john --stdout --wordlist " .. (arg[1] and arg[1] or "--rules:best64"))) local line=1 for pass in file:lines("*l") do io.write(string.format("%d Passwort: \"%s\"\n", line, pass)) line=line+1 end file:close()
return { name = 'BlendAlphaMode', description = 'Different ways alpha affects color blending. See BlendMode and the BlendMode Formulas for additional notes.', constants = { { name = 'alphamultiply', description = 'The RGB values of what\'s drawn are multiplied by the alpha values of those colors during blending. This is the default alpha mode.', }, { name = 'premultiplied', description = 'The RGB values of what\'s drawn are \'\'\'not\'\'\' multiplied by the alpha values of those colors during blending. For most blend modes to work correctly with this alpha mode, the colors of a drawn object need to have had their RGB values multiplied by their alpha values at some point previously ("premultiplied alpha").', }, }, }
-- mostly based on repl.lua from Fengari itself: -- https://github.com/fengari-lua/fengari.io/blob/master/static/lua/web-cli.lua package.path = "./?.lua" local js = require "js" local welcome = nil -- the hacks below are needed specifically to get the Fennel test suite to pass -- just make a few things not blow up _G.os.exit = function() end _G.os.getenv = function() return nil end -- require-macros depends on io.open; we splice in a hacky replacement io={open=function(filename) return { read = function(_, all) assert(all=="*all", "Can only read *all.") local xhr = js.new(js.global.XMLHttpRequest) xhr:open("GET", filename, false) xhr:send() assert(xhr.status == 200, xhr.status .. ": " .. xhr.statusText) return tostring(xhr.response) end, close = function() end, } end} package.preload.fennelview = assert(loadfile("fennelview.lua")) package.preload.fennelfriend = assert(loadfile("fennelfriend.lua")) -- Save references to lua baselib functions used local _G = _G local pack = table.pack local tostring = tostring local document = js.global.document local output = document:getElementById("fengari-console") local prompt = document:getElementById("fengari-prompt") local input = document:getElementById("fengari-input") local luacode = document:getElementById("compiled-lua") assert(output and prompt and input and luacode) local function triggerEvent(el, type) local e = document:createEvent("HTMLEvents") e:initEvent(type, false, true) el:dispatchEvent(e) end local history = {} local historyIndex = nil local historyLimit = 100 local function highlightLines(target, elements) for i = 0, #elements-1 do if tonumber(elements[i]:getAttribute("history")) == target then elements[i].style.backgroundColor = (elements[i].style.backgroundColor == "") and "pink" or "" else elements[i].style.backgroundColor = "" end end end local function makeLine(...) local toprint = pack(...) local line = document:createElement("pre") line.style["white-space"] = "pre-wrap" line:setAttribute("history", #history) line.onclick = function() local n = tonumber(line:getAttribute("history")) highlightLines(n, output.children) highlightLines(n, luacode.children) end for i = 1, toprint.n do if i ~= 1 then line:appendChild(document:createTextNode("\t")) end line:appendChild(document:createTextNode(tostring(toprint[i]))) end return line end _G.printLuacode = function(...) local line = makeLine(...) luacode:appendChild(line) luacode.scrollTop = luacode.scrollHeight triggerEvent(luacode, "change") end _G.print = function(...) local line = makeLine(...) output:appendChild(line) output.scrollTop = output.scrollHeight triggerEvent(output, "change") end _G.narrate = function(...) local line = makeLine(...) line.style.color = "blue" output:appendChild(line) output.scrollTop = output.scrollHeight triggerEvent(output, "change") end _G.printError = function(...) local line = makeLine(...) line.style.color = "red" output:appendChild(line) output.scrollTop = output.scrollHeight triggerEvent(output, "change") end local repl -- loading Fennel at the top level breaks scrolling because browsers -- are terrible; so we load when the input element gets focus function input.onfocus() -- setting input.onfocus to nil has no effect, somehow if repl ~= nil then return end _G.print("Loading...") local fennel = require("fennel/fennel") package.loaded.fennel = fennel repl = coroutine.create(fennel.dofile("repl.fnl")) coroutine.resume(repl) welcome = "Welcome to Fennel " .. fennel.version .. ", running on Fengari (" .. _VERSION .. ")" _G.print(welcome) _G.printLuacode("Compiled Lua code") end function input.onkeydown(_, e) if not e then e = js.global.event end local key = e.key or e.which if key == "Enter" and not e.shiftKey then historyIndex = nil if #input.value > 0 then if history[#history] ~= input.value then table.insert(history, input.value) if #history > historyLimit then table.remove(history, 1) end end coroutine.resume(repl, input.value) input.value = "" end return false elseif key == "ArrowUp" or key == "Up" then if historyIndex then if historyIndex > 1 then historyIndex = historyIndex - 1 end else -- start with more recent history item local hist_len = #history if hist_len > 0 then historyIndex = hist_len end end input.value = history[historyIndex] return false elseif key == "ArrowDown" or key == "Down" then local newvalue = "" if historyIndex then if historyIndex < #history then historyIndex = historyIndex + 1 newvalue = history[historyIndex] else -- no longer in history historyIndex = nil end end input.value = newvalue return false elseif key == "l" and e.ctrlKey and not e.shiftKey and not e.altKey and not e.metaKey and not e.isComposing then -- Ctrl+L clears screen like you would expect in a terminal output.innerHTML = "" _G.print(welcome) return false end end return repl
local Skada = Skada -- cache frequently used globals local pairs, ipairs, select, format, wipe = pairs, ipairs, select, string.format, wipe local max, min, floor = math.max, math.min, math.floor local GetSpellInfo = Skada.GetSpellInfo or GetSpellInfo local UnitGUID, UnitClass, unitClass = UnitGUID, UnitClass, Skada.unitClass local setPrototype = Skada.setPrototype local playerPrototype = Skada.playerPrototype local cacheTable = Skada.cacheTable local _ -- ============== -- -- Absorbs module -- -- ============== -- Skada:AddLoadableModule("Absorbs", function(L) if Skada:IsDisabled("Absorbs") then return end local mod = Skada:NewModule(L["Absorbs"]) local playermod = mod:NewModule(L["Absorb spell list"]) local targetmod = mod:NewModule(L["Absorbed target list"]) local spellmod = targetmod:NewModule(L["Absorb spell list"]) local LGT = LibStub("LibGroupTalents-1.0") local GroupIterator = Skada.GroupIterator local UnitName, UnitExists, UnitBuff = UnitName, UnitExists, UnitBuff local UnitIsDeadOrGhost, UnitHealthInfo = UnitIsDeadOrGhost, Skada.UnitHealthInfo local GetTime, band = GetTime, bit.band local tsort, tContains = table.sort, tContains local T = Skada.Table -- INCOMPLETE -- the following list is incomplete due to the lack of testing for different -- shield ranks. Feel free to provide any helpful data possible to complete it. -- Note: some of the caps are used as backup because their amounts are calculated later. local absorbspells = { [48707] = {dur = 5}, -- Anti-Magic Shell (rank 1) [51052] = {dur = 10}, -- Anti-Magic Zone( (rank 1) [50150] = {dur = 86400}, -- Will of the Necropolis [49497] = {dur = 86400}, -- Spell Deflection [62606] = {dur = 10, avg = 1600, cap = 2500}, -- Savage Defense [11426] = {dur = 60}, -- Ice Barrier (rank 1) [13031] = {dur = 60}, -- Ice Barrier (rank 2) [13032] = {dur = 60}, -- Ice Barrier (rank 3) [13033] = {dur = 60}, -- Ice Barrier (rank 4) [27134] = {dur = 60}, -- Ice Barrier (rank 5) [33405] = {dur = 60}, -- Ice Barrier (rank 6) [43038] = {dur = 60}, -- Ice Barrier (rank 7) [43039] = {dur = 60, avg = 6500, cap = 8300}, -- Ice Barrier (rank 8) [6143] = {dur = 30}, -- Frost Ward (rank 1) [8461] = {dur = 30}, -- Frost Ward (rank 2) [8462] = {dur = 30}, -- Frost Ward (rank 3) [10177] = {dur = 30}, -- Frost Ward (rank 4) [28609] = {dur = 30}, -- Frost Ward (rank 5) [32796] = {dur = 30}, -- Frost Ward (rank 6) [43012] = {dur = 30, avg = 5200, cap = 7000}, -- Frost Ward (rank 7) [1463] = {dur = 60}, -- Mana shield (rank 1) [8494] = {dur = 60}, -- Mana shield (rank 2) [8495] = {dur = 60}, -- Mana shield (rank 3) [10191] = {dur = 60}, -- Mana shield (rank 4) [10192] = {dur = 60}, -- Mana shield (rank 5) [10193] = {dur = 60}, -- Mana shield (rank 6) [27131] = {dur = 60}, -- Mana shield (rank 7) [43019] = {dur = 60}, -- Mana shield (rank 8) [43020] = {dur = 60, avg = 4500, cap = 6300}, -- Mana shield (rank 9) [543] = {dur = 30}, -- Fire Ward (rank 1) [8457] = {dur = 30}, -- Fire Ward (rank 2) [8458] = {dur = 30}, -- Fire Ward (rank 3) [10223] = {dur = 30}, -- Fire Ward (rank 4) [10225] = {dur = 30}, -- Fire Ward (rank 5) [27128] = {dur = 30}, -- Fire Ward (rank 6) [43010] = {dur = 30, avg = 5200, cap = 7000}, -- Fire Ward (rank 7) [58597] = {dur = 6, avg = 4400, cap = 6000}, -- Sacred Shield [66233] = {dur = 86400}, -- Ardent Defender [31230] = {dur = 86400}, -- Cheat Death [17] = {dur = 30}, -- Power Word: Shield (rank 1) [592] = {dur = 30}, -- Power Word: Shield (rank 2) [600] = {dur = 30}, -- Power Word: Shield (rank 3) [3747] = {dur = 30}, -- Power Word: Shield (rank 4) [6065] = {dur = 30}, -- Power Word: Shield (rank 5) [6066] = {dur = 30}, -- Power Word: Shield (rank 6) [10898] = {dur = 30, avg = 721, cap = 848}, -- Power Word: Shield (rank 7) [10899] = {dur = 30, avg = 898, cap = 1057}, -- Power Word: Shield (rank 8) [10900] = {dur = 30, avg = 1543, cap = 1816}, -- Power Word: Shield (rank 9) [10901] = {dur = 30, avg = 3643, cap = 4288}, -- Power Word: Shield (rank 10) [25217] = {dur = 30, avg = 5436, cap = 6398}, -- Power Word: Shield (rank 11) [25218] = {dur = 30, avg = 7175, cap = 8444}, -- Power Word: Shield (rank 12) [48065] = {dur = 30, avg = 9596, cap = 11293}, -- Power Word: Shield (rank 13) [48066] = {dur = 30, avg = 10000, cap = 11769}, -- Power Word: Shield (rank 14) [47509] = {dur = 12}, -- Divine Aegis (rank 1) [47511] = {dur = 12}, -- Divine Aegis (rank 2) [47515] = {dur = 12}, -- Divine Aegis (rank 3) [47753] = {dur = 12, cap = 10000}, -- Divine Aegis (rank 1) [54704] = {dur = 12, cap = 10000}, -- Divine Aegis (rank 1) [47788] = {dur = 10}, -- Guardian Spirit [7812] = {dur = 30}, -- Sacrifice (rank 1) [19438] = {dur = 30}, -- Sacrifice (rank 2) [19440] = {dur = 30}, -- Sacrifice (rank 3) [19441] = {dur = 30}, -- Sacrifice (rank 4) [19442] = {dur = 30}, -- Sacrifice (rank 5) [19443] = {dur = 30}, -- Sacrifice (rank 6) [27273] = {dur = 30}, -- Sacrifice (rank 7) [47985] = {dur = 30}, -- Sacrifice (rank 8) [47986] = {dur = 30}, -- Sacrifice (rank 9) [6229] = {dur = 30}, -- Shadow Ward (rank 1) [11739] = {dur = 30}, -- Shadow Ward (rank 1) [11740] = {dur = 30}, -- Shadow Ward (rank 2) [28610] = {dur = 30}, -- Shadow Ward (rank 3) [47890] = {dur = 30}, -- Shadow Ward (rank 4) [47891] = {dur = 30, avg = 6500, cap = 8300}, -- Shadow Ward (rank 5) [29674] = {dur = 86400, cap = 1000}, -- Lesser Ward of Shielding [29719] = {dur = 86400, cap = 4000}, -- Greater Ward of Shielding [29701] = {dur = 86400, cap = 4000}, -- Greater Shielding [28538] = {dur = 120, avg = 3400, cap = 4000}, -- Major Holy Protection Potion [28537] = {dur = 120, avg = 3400, cap = 4000}, -- Major Shadow Protection Potion [28536] = {dur = 120, avg = 3400, cap = 4000}, -- Major Arcane Protection Potion [28513] = {dur = 120, avg = 3400, cap = 4000}, -- Major Nature Protection Potion [28512] = {dur = 120, avg = 3400, cap = 4000}, -- Major Frost Protection Potion [28511] = {dur = 120, avg = 3400, cap = 4000}, -- Major Fire Protection Potion [7233] = {dur = 120, avg = 1300, cap = 1625}, -- Fire Protection Potion [7239] = {dur = 120, avg = 1800, cap = 2250}, -- Frost Protection Potion [7242] = {dur = 120, avg = 1800, cap = 2250}, -- Shadow Protection Potion [7245] = {dur = 120, avg = 1800, cap = 2250}, -- Holy Protection Potion [7254] = {dur = 120, avg = 1800, cap = 2250}, -- Nature Protection Potion [53915] = {dur = 120, avg = 5100, cap = 6000}, -- Mighty Shadow Protection Potion [53914] = {dur = 120, avg = 5100, cap = 6000}, -- Mighty Nature Protection Potion [53913] = {dur = 120, avg = 5100, cap = 6000}, -- Mighty Frost Protection Potion [53911] = {dur = 120, avg = 5100, cap = 6000}, -- Mighty Fire Protection Potion [53910] = {dur = 120, avg = 5100, cap = 6000}, -- Mighty Arcane Protection Potion [17548] = {dur = 120, avg = 2600, cap = 3250}, -- Greater Shadow Protection Potion [17546] = {dur = 120, avg = 2600, cap = 3250}, -- Greater Nature Protection Potion [17545] = {dur = 120, avg = 2600, cap = 3250}, -- Greater Holy Protection Potion [17544] = {dur = 120, avg = 2600, cap = 3250}, -- Greater Frost Protection Potion [17543] = {dur = 120, avg = 2600, cap = 3250}, -- Greater Fire Protection Potion [17549] = {dur = 120, avg = 2600, cap = 3250}, -- Greater Arcane Protection Potion [28527] = {dur = 15, avg = 1000, cap = 1250}, -- Fel Blossom [29432] = {dur = 3600, avg = 2000, cap = 2500}, -- Frozen Rune [36481] = {dur = 4, cap = 100000}, -- Arcane Barrier (TK Kael'Thas) Shield [57350] = {dur = 6, cap = 1500}, -- Darkmoon Card: Illusion [17252] = {dur = 1800, cap = 500}, -- Mark of the Dragon Lord (LBRS epic ring) [25750] = {dur = 15, avg = 151, cap = 302}, -- Defiler's Talisman/Talisman of Arathor [25747] = {dur = 15, avg = 344, cap = 378}, -- Defiler's Talisman/Talisman of Arathor [25746] = {dur = 15, avg = 435, cap = 478}, -- Defiler's Talisman/Talisman of Arathor [23991] = {dur = 15, avg = 550, cap = 605}, -- Defiler's Talisman/Talisman of Arathor [31000] = {dur = 300, avg = 1800, cap = 2700}, -- Pendant of Shadow's End Usage [30997] = {dur = 300, avg = 1800, cap = 2700}, -- Pendant of Frozen Flame Usage [31002] = {dur = 300, avg = 1800, cap = 2700}, -- Pendant of the Null Rune [30999] = {dur = 300, avg = 1800, cap = 2700}, -- Pendant of Withering [30994] = {dur = 300, avg = 1800, cap = 2700}, -- Pendant of Thawing [31000] = {dur = 300, avg = 1800, cap = 2700}, -- Pendant of Shadow's End [23506] = {dur = 20, avg = 1000, cap = 1250}, -- Arena Grand Master [12561] = {dur = 60, avg = 400, cap = 500}, -- Goblin Construction Helmet [31771] = {dur = 20, cap = 440}, -- Runed Fungalcap [21956] = {dur = 10, cap = 500}, -- Mark of Resolution [29506] = {dur = 20, cap = 900}, -- The Burrower's Shell [4057] = {dur = 60, cap = 500}, -- Flame Deflector [4077] = {dur = 60, cap = 600}, -- Ice Deflector [39228] = {dur = 20, cap = 1150}, -- Argussian Compass (may not be an actual absorb) [27779] = {dur = 30, cap = 350}, -- Divine Protection (Priest dungeon set 1/2) [11657] = {dur = 20, avg = 70, cap = 85}, -- Jang'thraze (Zul Farrak) [10368] = {dur = 15, cap = 200}, -- Uther's Light Effect [37515] = {dur = 15, cap = 200}, -- Blade Turning [42137] = {dur = 86400, cap = 400}, -- Greater Rune of Warding [26467] = {dur = 30, cap = 1000}, -- Scarab Brooch [26470] = {dur = 8, cap = 1000}, -- Persistent Shield [27539] = {dur = 6, avg = 300, cap = 500}, -- Thick Obsidian Breatplate [28810] = {dur = 30, cap = 500}, -- Faith Set Proc Armor of Faith [55019] = {dur = 12, cap = 1100}, -- Sonic Shield [64413] = {dur = 8, cap = 20000}, -- Val'anyr, Hammer of Ancient Kings Protection of Ancient Kings [40322] = {dur = 30, avg = 12000, cap = 12600}, -- Teron's Vengeful Spirit Ghost - Spirit Shield [71586] = {dur = 10, cap = 6400}, -- Hardened Skin (Corroded Skeleton Key) [60218] = {dur = 10, avg = 140, cap = 4000}, -- Essence of Gossamer [57350] = {dur = 6, cap = 1500}, -- Illusionary Barrier (Darkmoon Card: Illusion) [70845] = {dur = 10}, -- Stoicism [65874] = {dur = 15, cap = 175000}, -- Twin Val'kyr's: Shield of Darkness [67257] = {dur = 15, cap = 300000}, -- Twin Val'kyr's: Shield of Darkness [67256] = {dur = 15, cap = 700000}, -- Twin Val'kyr's: Shield of Darkness [67258] = {dur = 15, cap = 1200000}, -- Twin Val'kyr's: Shield of Darkness [65858] = {dur = 15, cap = 175000}, -- Twin Val'kyr's: Shield of Lights [67260] = {dur = 15, cap = 300000}, -- Twin Val'kyr's: Shield of Lights [67259] = {dur = 15, cap = 700000}, -- Twin Val'kyr's: Shield of Lights [67261] = {dur = 15, cap = 1200000}, -- Twin Val'kyr's: Shield of Lights [65686] = {dur = 86400, cap = 1000000}, -- Twin Val'kyr: Light Essence [65684] = {dur = 86400, cap = 1000000} -- Twin Val'kyr: Dark Essence86400 } local priest_divine_aegis = {[47509] = true, [47511] = true, [47515] = true, [47753] = true, [54704] = true} -- Divine Aegis local mage_frost_ward = { -- Frost Ward [6143] = true, [8461] = true, [8462] = true, [10177] = true, [28609] = true, [32796] = true, [43012] = true } local mage_fire_ward = { -- Fire Ward [543] = true, [8457] = true, [8458] = true, [10223] = true, [10225] = true, [27128] = true, [43010] = true } local mage_ice_barrier = { -- Ice Barrier [11426] = true, [13031] = true, [13032] = true, [13033] = true, [27134] = true, [33405] = true, [43038] = true, [43039] = true } local warlock_shadow_ward = { -- Shadow Ward [6229] = true, [11739] = true, [11740] = true, [28610] = true, [47890] = true, [47891] = true } local warlock_sacrifice = { -- Sacrifice [7812] = true, [19438] = true, [19440] = true, [19441] = true, [19442] = true, [19443] = true, [27273] = true, [47985] = true, [47986] = true } local zoneModifier = 1 -- coefficient used to calculate amounts local heals = nil -- holds heal amounts used to "guess" shield amounts local shields = nil -- holds the list of players shields and other stuff local shieldamounts = nil -- holds the amount shields absorbed so far local shieldspopped = nil -- holds the list of shields that popped on a player -- spells in the following table will be ignored. local ignoredSpells = {} local function log_absorb(set, absorb, nocount) if (absorb.spellid and tContains(ignoredSpells, absorb.spellid)) or (absorb.amount or 0) <= 0 then return end local player = Skada:GetPlayer(set, absorb.playerid, absorb.playername) if player then Skada:AddActiveTime(player, (player.role ~= "DAMAGER" and not nocount)) -- add absorbs amount player.absorb = (player.absorb or 0) + absorb.amount set.absorb = (set.absorb or 0) + absorb.amount -- saving this to total set may become a memory hog deluxe. if set ~= Skada.current then return end -- record the spell local spell = player.absorbspells and player.absorbspells[absorb.spellid] if not spell then player.absorbspells = player.absorbspells or {} spell = {count = 1, amount = absorb.amount, school = absorb.school} player.absorbspells[absorb.spellid] = spell else if not spell.school and absorb.school then spell.school = absorb.school end spell.amount = (spell.amount or 0) + absorb.amount if not nocount then spell.count = (spell.count or 0) + 1 end end if not spell.min or absorb.amount < spell.min then spell.min = absorb.amount end if not spell.max or absorb.amount > spell.max then spell.max = absorb.amount end -- record the target if absorb.dstName then local actor = Skada:GetActor(set, absorb.dstGUID, absorb.dstName, absorb.dstFlags) if actor then spell.targets = spell.targets or {} spell.targets[absorb.dstName] = (spell.targets[absorb.dstName] or 0) + absorb.amount end end end end -- https://github.com/TrinityCore/TrinityCore/blob/5d82995951c2be99b99b7b78fa12505952e86af7/src/server/game/Spells/Auras/SpellAuraEffects.h#L316 -- Note: this order is reversed local function SortShields(a, b) local a_spellid, b_spellid = a.spellid, b.spellid if a_spellid == b_spellid then return (a.ts > b.ts) end -- Twin Val'ky if a_spellid == 65686 then return false end if b_spellid == 65686 then return true end if a_spellid == 65684 then return false end if b_spellid == 65684 then return true end -- Frost Ward if mage_frost_ward[a_spellid] then return false end if mage_frost_ward[b_spellid] then return true end -- Fire Ward if mage_fire_ward[a_spellid] then return false end if mage_fire_ward[b_spellid] then return true end -- Shadow Ward if warlock_shadow_ward[a_spellid] then return false end if warlock_shadow_ward[b_spellid] then return true end -- Sacred Shield if a_spellid == 58597 then return false end if b_spellid == 58597 then return true end -- Fel Blossom if a_spellid == 28527 then return false end if b_spellid == 28527 then return true end -- Divine Aegis if priest_divine_aegis[a_spellid] then return false end if priest_divine_aegis[b_spellid] then return true end -- Ice Barrier if mage_ice_barrier[a_spellid] then return false end if mage_ice_barrier[b_spellid] then return true end -- Sacrifice if warlock_sacrifice[a_spellid] then return false end if warlock_sacrifice[b_spellid] then return true end -- Anti-Magic Shell if a_spellid == 48707 then return false end if b_spellid == 48707 then return true end -- Will of the Necropolis if a_spellid == 50150 then return false end if b_spellid == 50150 then return true end -- Ardent Defender if a_spellid == 66233 then return false end if b_spellid == 66233 then return true end -- Hardened Skin (Corroded Skeleton Key) if a_spellid == 71586 then return false end if b_spellid == 71586 then return true end return (a.ts > b.ts) end local function AuraApplied(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...) local spellid, _, spellschool, _, points = ... if absorbspells[spellid] and dstName then shields[dstName] = shields[dstName] or {} shields[dstName][spellid] = shields[dstName][spellid] or {} -- we calculate how much the shield's maximum absorb amount local amount = 0 -- Stackable Shields if (priest_divine_aegis[spellid] or spellid == 64413) then if shields[dstName][spellid][srcName] and timestamp < shields[dstName][spellid][srcName].ts then amount = shields[dstName][spellid][srcName].amount end end if priest_divine_aegis[spellid] then -- Divine Aegis if heals and heals[dstName] and heals[dstName][srcName] and heals[dstName][srcName].ts > timestamp - 0.2 then amount = min((UnitLevel(srcName) or 80) * 125, amount + (heals[dstName][srcName].amount * 0.3 * zoneModifier)) end elseif spellid == 64413 then -- Protection of Ancient Kings (Vala'nyr) if heals and heals[dstName] and heals[dstName][srcName] and heals[dstName][srcName].ts > timestamp - 0.2 then amount = min(20000, amount + (heals[dstName][srcName].amount * 0.15)) end elseif (spellid == 48707 or spellid == 51052) and UnitHealthMax(dstName) then -- Anti-Magic Shell/Zone amount = UnitHealthMax(dstName) * 0.5 elseif spellid == 70845 and UnitHealthMax(dstName) then -- Stoicism amount = UnitHealthMax(dstName) * 0.2 elseif absorbspells[spellid].cap then if shieldamounts[srcName] and shieldamounts[srcName][spellid] then shields[dstName][spellid][srcName] = { srcGUID = srcGUID, srcFlags = srcFlags, spellid = spellid, school = spellschool, points = points, amount = shieldamounts[srcName][spellid], ts = timestamp + absorbspells[spellid].dur + 0.1, full = true } return else amount = (absorbspells[spellid].avg or absorbspells[spellid].cap or 1000) * zoneModifier end else amount = 1000 * zoneModifier -- default end shields[dstName][spellid][srcName] = { srcGUID = srcGUID, srcFlags = srcFlags, spellid = spellid, school = spellschool, points = points, amount = floor(amount), ts = timestamp + absorbspells[spellid].dur + 0.1, full = true } end end local function AuraRemoved(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...) local spellid = ... if absorbspells[spellid] and shields[dstName] and shields[dstName][spellid] and shields[dstName][spellid][srcName] then shields[dstName][spellid][srcName].ts = timestamp + 0.1 end end do -- some effects aren't shields but rather special effects, such us talents. -- in order to track them, we simply add them as fake shields before all. -- I don't know the whole list of effects but, if you want to add yours -- please do : CLASS = {[index] = {spellid, spellschool}} local passivespells = { DEATHKNIGHT = {{50150, 1}, {49497, 1}}, PALADIN = {{66233, 1}}, ROGUE = {{31230, 1}} } local function CheckUnitShields(unit, owner, timestamp, curtime) if not UnitIsDeadOrGhost(unit) then local dstName, dstGUID = UnitName(unit), UnitGUID(unit) for i = 1, 40 do local expires, unitCaster, _, _, spellid = select(7, UnitBuff(unit, i)) if spellid then if absorbspells[spellid] and unitCaster then AuraApplied(timestamp + expires - curtime, nil, UnitGUID(unitCaster), UnitName(unitCaster), nil, dstGUID, dstName, nil, spellid) end else break -- nothing found end end -- passive shields (not for pets) if owner == nil then local class = select(2, UnitClass(unit)) if passivespells[class] then for _, spell in ipairs(passivespells[class]) do local points = LGT:GUIDHasTalent(dstGUID, GetSpellInfo(spell[1]), LGT:GetActiveTalentGroup(unit)) if points then AuraApplied(timestamp - 60, nil, dstGUID, dstGUID, nil, dstGUID, dstName, nil, spell[1], nil, spell[2], nil, points) end end end end end end function mod:CheckPreShields(event, set, timestamp) if event == "COMBAT_PLAYER_ENTER" and set and not set.stopped then self:ZoneModifier() GroupIterator(CheckUnitShields, timestamp, GetTime()) end end end local absorb = {} local function process_absorb(timestamp, dstGUID, dstName, dstFlags, absorbed, spellschool, damage, broke) shields[dstName] = shields[dstName] or {} shieldspopped = wipe(shieldspopped) local count, total = 0, damage + absorbed for spellid, spells in pairs(shields[dstName]) do for srcName, shield in pairs(spells) do if shield.ts > timestamp then -- Light Essence vs Fire Damage if spellid == 65686 and band(spellschool, 0x4) == spellschool then return -- don't record -- Dark Essence vs Shadow Damage elseif spellid == 65684 and band(spellschool, 0x20) == spellschool then return -- don't record -- Frost Ward vs Frost Damage elseif mage_frost_ward[spellid] and band(spellschool, 0x10) ~= spellschool then -- nothing -- Fire Ward vs Fire Damage elseif mage_fire_ward[spellid] and band(spellschool, 0x4) ~= spellschool then -- nothing -- Shadow Ward vs Shadow Damage elseif warlock_shadow_ward[spellid] and band(spellschool, 0x20) ~= spellschool then -- nothing -- Anti-Magic, Spell Deflection, Savage Defense elseif (spellid == 48707 or spellid == 49497 or spellid == 62606) and band(spellschool, 0x1) == spellschool then -- nothing else shieldspopped[#shieldspopped + 1] = { srcGUID = shield.srcGUID, srcName = srcName, srcFlags = shield.srcFlags, spellid = shield.spellid, school = shield.school, points = shield.points, ts = shield.ts - absorbspells[shield.spellid].dur, amount = shield.amount, full = shield.full } count = count + 1 end end end end -- the player has no shields, so nothing to do. if count <= 0 then return end -- if the player has a single shield and it broke, we update its max absorb if count == 1 and broke and shieldspopped[1].full and absorbspells[shieldspopped[1].spellid].cap then local s = shieldspopped[1] shieldamounts[s.srcName] = shieldamounts[s.srcName] or {} if (not shieldamounts[s.srcName][s.spellid] or shieldamounts[s.srcName][s.spellid] < absorbed) and absorbed < (absorbspells[s.spellid].cap * zoneModifier) then shieldamounts[s.srcName][s.spellid] = absorbed end end -- we loop through available shields and make sure to update -- their maximum absorb values. for _, s in ipairs(shieldspopped) do if s.full and shieldamounts and shieldamounts[s.srcName] and shieldamounts[s.srcName][s.spellid] then s.amount = shieldamounts[s.srcName][s.spellid] elseif s.spellid == 50150 and s.points then -- Will of the Necropolis local hppercent = UnitHealthInfo(dstName, dstGUID) s.amount = (hppercent and hppercent <= 36) and floor(total * 0.05 * s.points) or 0 elseif s.spellid == 49497 and s.points then -- Spell Deflection s.amount = floor(total * 0.15 * s.points) elseif s.spellid == 66233 and s.points then -- Ardent Defender local hppercent = UnitHealthInfo(dstName, dstGUID) s.amount = (hppercent and hppercent <= 36) and floor(total * 0.0667 * s.points) or 0 elseif s.spellid == 31230 and s.points then -- Cheat Death s.amount = floor((select(3, UnitHealthInfo(dstName, dstGUID)) or 0) * 0.1) end end tsort(shieldspopped, SortShields) local amount = absorbed local pshield = nil for i = #shieldspopped, 0, -1 do -- no shield left to check? if i == 0 then -- if we still have an absorbed amount running and there is -- a previous shield, we attributed dumbly to it. -- the "true" at the end is so we don't update the spell count or active time. if amount > 0 and pshield then absorb.playerid = pshield.srcGUID absorb.playername = pshield.srcName absorb.playerflags = pshield.srcFlags absorb.dstGUID = dstGUID absorb.dstName = dstName absorb.dstFlags = dstFlags absorb.spellid = pshield.spellid absorb.school = pshield.school absorb.amount = amount log_absorb(Skada.current, absorb, true) log_absorb(Skada.total, absorb, true) end break end local s = shieldspopped[i] -- whoops! No shield? if not s then break end -- we store the previous shield to use later in case of -- any missing abosrb amount that wasn't properly added. pshield = s -- if the amount can be handled by the shield itself, we just -- attribute it and break, no need to check for more. if s.amount >= amount then shields[dstName][s.spellid][s.srcName].amount = s.amount - amount shields[dstName][s.spellid][s.srcName].full = nil absorb.playerid = s.srcGUID absorb.playername = s.srcName absorb.playerflags = s.srcFlags absorb.dstGUID = dstGUID absorb.dstName = dstName absorb.dstFlags = dstFlags absorb.spellid = s.spellid absorb.school = s.school absorb.amount = amount log_absorb(Skada.current, absorb) log_absorb(Skada.total, absorb) break -- arriving at this point means that the shield broke, -- so we make sure to remove it first, use its max -- abosrb value then use the difference for the rest. else -- if the "points" key exists, we don't remove the shield because -- for us it means it's a passive shield that should always be kept. if s.points == nil then shields[dstName][s.spellid][s.srcName] = nil end absorb.playerid = s.srcGUID absorb.playername = s.srcName absorb.playerflags = s.srcFlags absorb.dstGUID = dstGUID absorb.dstName = dstName absorb.dstFlags = dstFlags absorb.spellid = s.spellid absorb.school = s.school absorb.amount = s.amount log_absorb(Skada.current, absorb) log_absorb(Skada.total, absorb) amount = amount - s.amount end end end local function SpellDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...) local spellschool, amount, _, _, _, _, absorbed = select(3, ...) if (absorbed or 0) > 0 and dstName and shields[dstName] then process_absorb(timestamp, dstGUID, dstName, dstFlags, absorbed, spellschool, amount, amount > absorbed) end end local function SwingDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...) SpellDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, 6603, nil, 1, ...) end local function SpellMissed(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...) local spellschool, misstype, absorbed = select(3, ...) if misstype == "ABSORB" and (absorbed or 0) > 0 and dstName and shields[dstName] then process_absorb(timestamp, dstGUID, dstName, dstFlags, absorbed, spellschool, 0, false) end end local function SwingMissed(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...) SpellMissed(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, 6603, nil, 1, ...) end local function EnvironmentDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...) local envtype, amount, _, _, _, _, absorbed = ... if (absorbed or 0) > 0 and dstName and shields[dstName] then local spellschool = 1 if envtype == "Falling" or envtype == "FALLING" then spellschool = 1 elseif envtype == "Drowning" or envtype == "DROWNING" then spellschool = 1 elseif envtype == "Fatigue" or envtype == "FATIGUE" then spellschool = 1 elseif envtype == "Fire" or envtype == "FIRE" then spellschool = 4 elseif envtype == "Lava" or envtype == "LAVA" then spellschool = 4 elseif envtype == "Slime" or envtype == "SLIME" then spellschool = 8 end process_absorb(timestamp, dstGUID, dstName, dstFlags, absorbed, spellschool, amount, amount > absorbed) end end local function SpellHeal(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, ...) heals[dstName] = heals[dstName] or {} heals[dstName][srcName] = {ts = timestamp, amount = select(4, ...)} end local function playermod_tooltip(win, id, label, tooltip) local set = win:GetSelectedSet() local player = set and set:GetPlayer(win.playerid, win.playername) local spell = player and player.absorbspells and player.absorbspells[id] if spell then tooltip:AddLine(player.name .. " - " .. label) if spell.school then local c = Skada.schoolcolors[spell.school] local n = Skada.schoolnames[spell.school] if c and n then tooltip:AddLine(n, c.r, c.g, c.b) end end if (spell.count or 0) > 0 then tooltip:AddDoubleLine(L["Count"], spell.count, 1, 1, 1) tooltip:AddDoubleLine(L["Average"], Skada:FormatNumber(spell.amount / spell.count), 1, 1, 1) end if spell.min and spell.max then tooltip:AddLine(" ") tooltip:AddDoubleLine(L["Minimum Hit"], Skada:FormatNumber(spell.min), 1, 1, 1) tooltip:AddDoubleLine(L["Maximum Hit"], Skada:FormatNumber(spell.max), 1, 1, 1) tooltip:AddDoubleLine(L["Average Hit"], Skada:FormatNumber((spell.min + spell.max) / 2), 1, 1, 1) end end end function spellmod:Enter(win, id, label) win.targetid, win.targetname = id, label win.title = format(L["%s's absorbs on %s"], win.playername or L.Unknown, label) end function spellmod:Update(win, set) win.title = format(L["%s's absorbs on %s"], win.playername or L.Unknown, win.targetname or L.Unknown) if not win.targetname then return end local player = set and set:GetPlayer(win.playerid, win.playername) local total = player and player.absorb or 0 if total > 0 and player.absorbspells then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 for spellid, spell in pairs(player.absorbspells) do if spell.targets and spell.targets[win.targetname] then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = spellid d.spellid = spellid d.spellschool = spell.school d.label, _, d.icon = GetSpellInfo(spellid) d.value = spell.targets[win.targetname] d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Absorbs, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end end function playermod:Enter(win, id, label) win.playerid, win.playername = id, label win.title = format(L["%s's absorb spells"], label) end function playermod:Update(win, set) win.title = format(L["%s's absorb spells"], win.playername or L.Unknown) local player = set and set:GetPlayer(win.playerid, win.playername) local total = player and player.absorb or 0 if total > 0 and player.absorbspells then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 for spellid, spell in pairs(player.absorbspells) do nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = spellid d.spellid = spellid d.spellschool = spell.school d.label, _, d.icon = GetSpellInfo(spellid) d.value = spell.amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Absorbs, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end function targetmod:Enter(win, id, label) win.playerid, win.playername = id, label win.title = format(L["%s's absorbed targets"], label) end function targetmod:Update(win, set) win.title = format(L["%s's absorbed targets"], win.playername or L.Unknown) local player = set and set:GetPlayer(win.playerid, win.playername) local total = player and player.absorb or 0 local targets = (total > 0) and player:GetAbsorbTargets() if targets then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 for targetname, target in pairs(targets) do nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = target.id or targetname d.label = targetname d.text = target.id and Skada:FormatName(targetname, target.id) d.class = target.class d.role = target.role d.spec = target.spec d.value = target.amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Absorbs, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end function mod:Update(win, set) win.title = L["Absorbs"] local total = set.absorb or 0 if total > 0 then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 for _, player in ipairs(set.players) do local aps, amount = player:GetAPS() if amount > 0 then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = player.id or player.name d.label = player.name d.text = player.id and Skada:FormatName(player.name, player.id) d.class = player.class d.role = player.role d.spec = player.spec d.value = amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), self.metadata.columns.Absorbs, Skada:FormatNumber(aps), self.metadata.columns.HPS, Skada:FormatPercent(d.value, total), self.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end end function mod:OnEnable() playermod.metadata = {tooltip = playermod_tooltip} targetmod.metadata = {showspots = true, click1 = spellmod} self.metadata = { showspots = true, click1 = playermod, click2 = targetmod, nototalclick = {playermod, targetmod}, columns = {Absorbs = true, HPS = true, Percent = true}, icon = [[Interface\Icons\spell_holy_powerwordshield]] } Skada:RegisterForCL(AuraApplied, "SPELL_AURA_APPLIED", {src_is_interesting_nopets = true}) Skada:RegisterForCL(AuraApplied, "SPELL_AURA_REFRESH", {src_is_interesting_nopets = true}) Skada:RegisterForCL(AuraRemoved, "SPELL_AURA_REMOVED", {src_is_interesting_nopets = true}) Skada:RegisterForCL(SpellDamage, "DAMAGE_SHIELD", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellDamage, "SPELL_DAMAGE", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellDamage, "SPELL_PERIODIC_DAMAGE", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellDamage, "SPELL_BUILDING_DAMAGE", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellDamage, "RANGE_DAMAGE", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SwingDamage, "SWING_DAMAGE", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(EnvironmentDamage, "ENVIRONMENTAL_DAMAGE", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellMissed, "SPELL_MISSED", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellMissed, "SPELL_PERIODIC_MISSED", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellMissed, "SPELL_BUILDING_MISSED", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellMissed, "RANGE_MISSED", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SwingMissed, "SWING_MISSED", {dst_is_interesting_nopets = true}) Skada:RegisterForCL(SpellHeal, "SPELL_HEAL", {src_is_interesting = true}) Skada:RegisterForCL(SpellHeal, "SPELL_PERIODIC_HEAL", {src_is_interesting = true}) Skada.RegisterCallback(self, "Skada_ZoneCheck", "ZoneModifier") Skada.RegisterMessage(self, "COMBAT_PLAYER_ENTER", "CheckPreShields") Skada:AddMode(self, L["Absorbs and Healing"]) end function mod:OnDisable() Skada.UnregisterAllCallbacks(self) Skada.UnregisterAllMessages(self) Skada:RemoveMode(self) end function mod:GetSetSummary(set) if not set then return end local aps, amount = set:GetAPS() return Skada:FormatValueText( Skada:FormatNumber(amount), self.metadata.columns.Absorbs, Skada:FormatNumber(aps), self.metadata.columns.HPS ), amount end function mod:ZoneModifier() if UnitInBattleground("player") or GetCurrentMapAreaID() == 502 then zoneModifier = 1.17 elseif IsActiveBattlefieldArena() then zoneModifier = 0.9 elseif GetCurrentMapAreaID() == 605 then zoneModifier = (UnitBuff("player", GetSpellInfo(73822)) or UnitBuff("player", GetSpellInfo(73828))) and 1.3 or 1 else zoneModifier = 1 end end function mod:AddSetAttributes(set) self:ZoneModifier() heals = heals or T.get("Absorbs_Heals") shields = shields or T.get("Absorbs_Shields") shieldamounts = shieldamounts or T.get("Absorbs_ShieldAmounts") shieldspopped = shieldspopped or T.get("Absorbs_ShieldsPopped") end function mod:SetComplete(set) T.free("Absorbs_Heals", heals) T.free("Absorbs_Shields", shields) T.free("Absorbs_ShieldAmounts", shieldamounts) T.free("Absorbs_ShieldsPopped", shieldspopped) end function setPrototype:GetAPS() local amount, aps = self.absorb or 0, 0 if amount > 0 then aps = amount / max(1, self:GetTime()) end return aps, amount end function playerPrototype:GetAPS(active) local amount, aps = self.absorb or 0, 0 if amount > 0 then aps = amount / max(1, self:GetTime(active)) end return aps, amount end function playerPrototype:GetAbsorbTargets() if self.absorbspells then wipe(cacheTable) for _, spell in pairs(self.absorbspells) do if spell.targets then for name, amount in pairs(spell.targets) do if not cacheTable[name] then cacheTable[name] = {amount = amount} else cacheTable[name].amount = cacheTable[name].amount + amount end if not cacheTable[name].class then local actor = self.super:GetActor(name) if actor then cacheTable[name].id = actor.id cacheTable[name].class = actor.class cacheTable[name].role = actor.role cacheTable[name].spec = actor.spec else cacheTable[name].class = "UNKNOWN" end end end end end return cacheTable end end end) -- ========================== -- -- Absorbs and healing module -- -- ========================== -- Skada:AddLoadableModule("Absorbs and Healing", function(L) if Skada:IsDisabled("Healing", "Absorbs", "Absorbs and Healing") then return end local mod = Skada:NewModule(L["Absorbs and Healing"]) local playermod = mod:NewModule(L["Absorbs and healing spells"]) local targetmod = mod:NewModule(L["Absorbed and healed targets"]) local spellmod = targetmod:NewModule(L["Absorbs and healing spells"]) local function hps_tooltip(win, id, label, tooltip) local set = win:GetSelectedSet() local player = set and set:GetActor(label, id) if player then local totaltime = set:GetTime() local activetime = player:GetTime() local hps, amount = 0, 0 if player.GetAHPS then hps, amount = player:GetAHPS() elseif player.GetHPS then hps, amount = player:GetHPS() end tooltip:AddLine(player.name .. " - " .. L["HPS"]) tooltip:AddDoubleLine(L["Segment Time"], Skada:FormatTime(set:GetTime()), 1, 1, 1) tooltip:AddDoubleLine(L["Active Time"], Skada:FormatTime(player:GetTime(true)), 1, 1, 1) tooltip:AddDoubleLine(L["Absorbs and Healing"], format("%s (%s)", Skada:FormatNumber(hps), Skada:FormatPercent(hps, amount)), 1, 1, 1) tooltip:AddDoubleLine(Skada:FormatNumber(amount) .. "/" .. Skada:FormatTime(activetime), Skada:FormatNumber(hps), 1, 1, 1) end end local function playermod_tooltip(win, id, label, tooltip) local set = win:GetSelectedSet() local player = set and set:GetPlayer(win.playerid, win.playername) local spell = player and ((player.absorbspells and player.absorbspells[id]) or (player.healspells and player.healspells[id])) if spell then tooltip:AddLine(player.name .. " - " .. label) if spell.school then local c = Skada.schoolcolors[spell.school] local n = Skada.schoolnames[spell.school] if c and n then tooltip:AddLine(n, c.r, c.g, c.b) end end if (spell.count or 0) > 0 then tooltip:AddDoubleLine(L["Count"], spell.count, 1, 1, 1) tooltip:AddDoubleLine(L["Average"], Skada:FormatNumber(spell.amount / spell.count), 1, 1, 1) if (spell.critical or 0) > 0 then tooltip:AddDoubleLine(L["Critical"], Skada:FormatPercent(spell.critical, spell.count), 1, 1, 1) end end if (spell.overheal or 0) > 0 then tooltip:AddLine(" ") tooltip:AddDoubleLine(L["Total Healing"], Skada:FormatNumber(spell.overheal + spell.amount), 1, 1, 1) tooltip:AddDoubleLine(L["Overhealing"], format("%s (%s)", Skada:FormatNumber(spell.overheal), Skada:FormatPercent(spell.overheal, spell.overheal + spell.amount)), 1, 1, 1) end if spell.min and spell.max then local spellmin = spell.min if spell.criticalmin and spell.criticalmin < spellmin then spellmin = spell.criticalmin end local spellmax = spell.max if spell.criticalmax and spell.criticalmax > spellmax then spellmax = spell.criticalmax end tooltip:AddLine(" ") tooltip:AddDoubleLine(L["Minimum Hit"], Skada:FormatNumber(spellmin), 1, 1, 1) tooltip:AddDoubleLine(L["Maximum Hit"], Skada:FormatNumber(spellmax), 1, 1, 1) tooltip:AddDoubleLine(L["Average Hit"], Skada:FormatNumber((spellmin + spellmax) / 2), 1, 1, 1) end end end function spellmod:Enter(win, id, label) win.targetid, win.targetname = id, label win.title = format(L["%s's absorbs and healing on %s"], win.playername or L.Unknown, label) end function spellmod:Update(win, set) win.title = format(L["%s's absorbs and healing on %s"], win.playername or L.Unknown, win.targetname or L.Unknown) if not win.targetname then return end local player, enemy = set and set:GetPlayer(win.playerid, win.playername), false if not player and Skada.forPVP and set.type == "arena" then player, enemy = set:GetEnemy(win.playername, win.playerid), true end local total = player and (enemy and player:GetHealOnTarget(win.targetname) or player:GetAbsorbHealOnTarget(win.targetname)) or 0 if total > 0 then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 if player.healspells then for spellid, spell in pairs(player.healspells) do if spell.targets and spell.targets[win.targetname] then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = spellid d.spellid = spellid d.spellschool = spell.school d.label, _, d.icon = GetSpellInfo(spellid) if spell.ishot then d.text = d.label .. L["HoT"] end if enemy then d.value = spell.targets[win.targetname] else d.value = spell.targets[win.targetname].amount or 0 end d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Healing, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end if player.absorbspells then for spellid, spell in pairs(player.absorbspells) do if spell.targets and spell.targets[win.targetname] then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = spellid d.spellid = spellid d.spellschool = spell.school d.label, _, d.icon = GetSpellInfo(spellid) d.value = spell.targets[win.targetname] or 0 d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Healing, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end end end function playermod:Enter(win, id, label) win.playerid, win.playername = id, label win.title = format(L["%s's absorb and healing spells"], label) end function playermod:Update(win, set) win.title = format(L["%s's absorb and healing spells"], win.playername or L.Unknown) local player = set and set:GetPlayer(win.playerid, win.playername) local total = player and player:GetAbsorbHeal() or 0 if not player and Skada.forPVP and set.type == "arena" then player = set:GetEnemy(win.playername, win.playerid) total = player and player.heal or 0 end if total > 0 then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 if player.healspells then for spellid, spell in pairs(player.healspells) do nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = spellid d.spellid = spellid d.spellschool = spell.school d.label, _, d.icon = GetSpellInfo(spellid) if spell.ishot then d.text = d.label .. L["HoT"] end d.value = spell.amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Healing, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end if player.absorbspells then for spellid, spell in pairs(player.absorbspells) do nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = spellid d.spellid = spellid d.spellschool = spell.school d.label, _, d.icon = GetSpellInfo(spellid) d.value = spell.amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Healing, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end end function targetmod:Enter(win, id, label) win.playerid, win.playername = id, label win.title = format(L["%s's absorbed and healed targets"], label) end function targetmod:Update(win, set) win.title = format(L["%s's absorbed and healed targets"], win.playername or L.Unknown) local player = set and set:GetPlayer(win.playerid, win.playername) if not player and Skada.forPVP and set.type == "arena" then player = set:GetEnemy(win.playername, win.playerid) end local total, targets = 0, nil if player and player.GetAbsorbHealTargets then targets, total = player:GetAbsorbHealTargets() elseif player and player.GetHealTargets then targets = player:GetHealTargets() total = player.heal or 0 end if targets and total > 0 then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 for targetname, target in pairs(targets) do if target.amount > 0 then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = target.id or targetname d.label = targetname d.class = target.class d.role = target.role d.spec = target.spec d.value = target.amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Healing, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end end function mod:Update(win, set) win.title = L["Absorbs and Healing"] local total = set and set:GetAbsorbHeal() or 0 if total > 0 then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 -- players for _, player in ipairs(set.players) do local hps, amount = player:GetAHPS() if amount > 0 then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = player.id or player.name d.label = player.name d.text = player.id and Skada:FormatName(player.name, player.id) d.class = player.class d.role = player.role d.spec = player.spec if Skada.forPVP and set.type == "arena" then d.color = set.gold and Skada.classcolors.ARENA_GOLD or Skada.classcolors.ARENA_GREEN end d.value = amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), self.metadata.columns.Healing, Skada:FormatNumber(hps), self.metadata.columns.HPS, Skada:FormatPercent(d.value, total), self.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end -- arena enemies if Skada.forPVP and set.type == "arena" and set.enemies and set.GetEnemyHeal then for _, enemy in ipairs(set.enemies) do local hps, amount = enemy:GetHPS() if amount > 0 then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = enemy.id or enemy.name d.label = enemy.name d.text = nil d.class = enemy.class d.role = enemy.role d.spec = enemy.spec d.color = set.gold and Skada.classcolors.ARENA_GREEN or Skada.classcolors.ARENA_GOLD d.value = amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), self.metadata.columns.Healing, Skada:FormatNumber(hps), self.metadata.columns.HPS, Skada:FormatPercent(d.value, total), self.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end end end local function feed_personal_hps() local set = Skada:GetSet("current") local player = set and set:GetPlayer(Skada.userGUID, Skada.userName) if player then return Skada:FormatNumber(player:GetAHPS()) .. " " .. L["HPS"] end end local function feed_raid_hps() local set = Skada:GetSet("current") return Skada:FormatNumber(set and set:GetAHPS() or 0) .. " " .. L["RHPS"] end function mod:OnEnable() playermod.metadata = {tooltip = playermod_tooltip} targetmod.metadata = {showspots = true, click1 = spellmod} self.metadata = { showspots = true, click1 = playermod, click2 = targetmod, post_tooltip = hps_tooltip, nototalclick = {playermod, targetmod}, columns = {Healing = true, HPS = true, Percent = true}, icon = [[Interface\Icons\spell_holy_healingfocus]] } Skada:AddFeed(L["Healing: Personal HPS"], feed_personal_hps) Skada:AddFeed(L["Healing: Raid HPS"], feed_raid_hps) Skada:AddMode(self, L["Absorbs and Healing"]) end function mod:OnDisable() Skada:RemoveFeed(L["Healing: Personal HPS"]) Skada:RemoveFeed(L["Healing: Raid HPS"]) Skada:RemoveMode(self) end function mod:AddToTooltip(set, tooltip) if not set then return end local hps, amount = set:GetAHPS() if amount > 0 then tooltip:AddDoubleLine(L["Healing"], Skada:FormatNumber(amount), 1, 1, 1) tooltip:AddDoubleLine(L["HPS"], Skada:FormatNumber(hps), 1, 1, 1) end if (set.overheal or 0) > 0 then amount = amount + set.overheal tooltip:AddDoubleLine(L["Overhealing"], Skada:FormatPercent(set.overheal, amount), 1, 1, 1) end end function mod:GetSetSummary(set) if not set then return end local hps, amount = set:GetAHPS() return Skada:FormatValueText( Skada:FormatNumber(amount), self.metadata.columns.Healing, Skada:FormatNumber(hps), self.metadata.columns.HPS ), amount end function mod:SetComplete(set) for _, p in ipairs(set.players) do -- clean absorbspells table: if p.absorb and p.absorb == 0 then p.absorbspells = nil elseif p.absorbspells then for spellid, spell in pairs(p.absorbspells) do if spell.amount == 0 then p.absorbspells[spellid] = nil end end if next(p.absorbspells) == nil then p.absorbspells = nil end end -- clean healspells table! if p.heal and (p.heal + p.overheal) == 0 then p.healspells = nil elseif p.healspells then for spellid, spell in pairs(p.healspells) do if (spell.amount + spell.overheal) == 0 then p.healspells[spellid] = nil end end if next(p.healspells) == nil then p.healspells = nil end end end end function setPrototype:GetAbsorbHeal() return (self.absorb or 0) + self:GetHeal() end function setPrototype:GetAHPS() local amount = self:GetAbsorbHeal() return amount / max(1, self:GetTime()), amount end function playerPrototype:GetAbsorbHeal() return (self.absorb or 0) + (self.heal or 0) end function playerPrototype:GetAHPS() local amount = (self.heal or 0) + (self.absorb or 0) return amount / max(1, self:GetTime()), amount end function playerPrototype:GetAbsorbHealTargets() if self.absorbspells or self.healspells then wipe(cacheTable) local total = 0 -- absorb targets: if self.absorbspells then for _, spell in pairs(self.absorbspells) do if spell.targets then total = total + spell.amount for name, amount in pairs(spell.targets) do if not cacheTable[name] then cacheTable[name] = {amount = amount} else cacheTable[name].amount = cacheTable[name].amount + amount end if not cacheTable[name].class then local actor = self.super:GetActor(name) if actor then cacheTable[name].id = actor.id cacheTable[name].class = actor.class cacheTable[name].role = actor.role cacheTable[name].spec = actor.spec else cacheTable[name].class = "UNKNOWN" end end end end end end -- heal targets: if self.healspells then for _, spell in pairs(self.healspells) do if spell.targets then total = total + spell.amount for name, target in pairs(spell.targets) do if not cacheTable[name] then cacheTable[name] = {amount = target.amount, overheal = target.overheal} else cacheTable[name].amount = cacheTable[name].amount + target.amount if target.overheal then cacheTable[name].overheal = (cacheTable[name].overheal or 0) + target.overheal end end if not cacheTable[name].class then local actor = self.super:GetActor(name) if actor then cacheTable[name].id = actor.id cacheTable[name].class = actor.class cacheTable[name].role = actor.role cacheTable[name].spec = actor.spec else cacheTable[name].class = "UNKNOWN" end end end end end end return cacheTable, total end end function playerPrototype:GetAbsorbHealOnTarget(name) local total = 0 if name and self.absorbspells then for _, spell in pairs(self.absorbspells) do if spell.targets and spell.targets[name] then total = total + spell.targets[name] end end end if name and self.healspells then for _, spell in pairs(self.healspells) do if spell.targets and spell.targets[name] then total = total + spell.targets[name].amount end end end return total end end) -- ============================== -- -- Healing done per second module -- -- ============================== -- Skada:AddLoadableModule("HPS", function(L) if Skada:IsDisabled("Absorbs", "Healing", "Absorbs and Healing", "HPS") then return end local mod = Skada:NewModule(L["HPS"]) local function hps_tooltip(win, id, label, tooltip) local set = win:GetSelectedSet() local player = set and set:GetActor(label, id) if player then local totaltime = set:GetTime() local activetime = player:GetTime() local hps, amount = 0 if player.GetAHPS then hps, amount = player:GetAHPS() elseif player.GetHPS then hps, amount = player:GetHPS() end tooltip:AddLine(player.name .. " - " .. L["HPS"]) tooltip:AddDoubleLine(L["Segment Time"], Skada:FormatTime(set:GetTime()), 1, 1, 1) tooltip:AddDoubleLine(L["Active Time"], Skada:FormatTime(player:GetTime(true)), 1, 1, 1) tooltip:AddDoubleLine(L["Absorbs and Healing"], format("%s (%s)", Skada:FormatNumber(hps), Skada:FormatPercent(hps, amount)), 1, 1, 1) tooltip:AddDoubleLine(Skada:FormatNumber(amount) .. "/" .. Skada:FormatTime(activetime), Skada:FormatNumber(hps), 1, 1, 1) end end function mod:Update(win, set) win.title = L["HPS"] local total = set and set:GetAHPS() or 0 if total > 0 then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 -- players for _, player in ipairs(set.players) do local amount = player:GetAHPS() if amount > 0 then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = player.id or player.name d.label = player.name d.text = player.id and Skada:FormatName(player.name, player.id) d.class = player.class d.role = player.role d.spec = player.spec if Skada.forPVP and set.type == "arena" then d.color = set.gold and Skada.classcolors.ARENA_GOLD or Skada.classcolors.ARENA_GREEN end d.value = amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), self.metadata.columns.HPS, Skada:FormatPercent(d.value, total), self.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end -- arena enemies if Skada.forPVP and set.type == "arena" and set.enemies and set.GetEnemyHeal then for _, enemy in ipairs(set.enemies) do local amount = enemy:GetHPS() if amount > 0 then nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = enemy.id or enemy.name d.label = enemy.name d.text = nil d.class = enemy.class d.role = enemy.role d.spec = enemy.spec d.color = set.gold and Skada.classcolors.ARENA_GREEN or Skada.classcolors.ARENA_GOLD d.value = amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), self.metadata.columns.HPS, Skada:FormatPercent(d.value, total), self.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end end end function mod:OnEnable() self.metadata = { showspots = true, tooltip = hps_tooltip, columns = {HPS = true, Percent = true}, icon = [[Interface\Icons\spell_nature_rejuvenation]] } local parentmod = Skada:GetModule(L["Absorbs and Healing"], true) if parentmod then self.metadata.click1 = parentmod.metadata.click1 self.metadata.click2 = parentmod.metadata.click2 self.metadata.nototalclick = parentmod.metadata.nototalclick end Skada:AddMode(self, L["Absorbs and Healing"]) end function mod:OnDisable() Skada:RemoveMode(self) end function mod:GetSetSummary(set) return Skada:FormatNumber(set and set:GetAHPS() or 0) end end) -- ===================== -- -- Healing done by spell -- -- ===================== -- Skada:AddLoadableModule("Healing Done By Spell", function(L) if Skada:IsDisabled("Healing", "Absorbs", "Healing Done By Spell") then return end local mod = Skada:NewModule(L["Healing Done By Spell"]) local spellmod = mod:NewModule(L["Healing spell sources"]) local function spell_tooltip(win, id, label, tooltip) local set = win:GetSelectedSet() local total = set and set:GetAbsorbHeal() or 0 if total == 0 then return end wipe(cacheTable) for _, p in ipairs(set.players) do local spell = (p.absorbspells and p.absorbspells[id]) or (p.healspells and p.healspells[id]) if spell then if not cacheTable[id] then cacheTable[id] = {school = spell.school, amount = spell.amount} cacheTable[id].isabsorb = (p.absorbspells and p.absorbspells[id]) else cacheTable[id].amount = cacheTable[id].amount + spell.amount end end end local spell = cacheTable[id] if spell then tooltip:AddLine(GetSpellInfo(id)) if spell.school then local c = Skada.schoolcolors[spell.school] local n = Skada.schoolnames[spell.school] if c and n then tooltip:AddLine(n, c.r, c.g, c.b) end end if (spell.count or 0) > 0 then tooltip:AddDoubleLine(L["Count"], spell.count, 1, 1, 1) end tooltip:AddDoubleLine(spell.isabsorb and L["Absorbs"] or L["Healing"], format("%s (%s)", Skada:FormatNumber(spell.amount), Skada:FormatPercent(spell.amount, total)), 1, 1, 1) if (spell.overheal or 0) > 0 then local overheal = set.overheal or 1 tooltip:AddDoubleLine(L["Overhealing"], format("%s (%s)", Skada:FormatNumber(spell.overheal), Skada:FormatPercent(spell.overheal, overheal)), 1, 1, 1) end end end function spellmod:Enter(win, id, label) win.spellid, win.spellname = id, label win.title = format(L["%s's sources"], label) end function spellmod:Update(win, set) win.title = format(L["%s's sources"], win.spellname or L.Unknown) if not (win.spellid and set) then return end -- let's go... wipe(cacheTable) local total = 0 for _, p in ipairs(set.players) do local spell = (p.absorbspells and p.absorbspells[win.spellid]) or (p.healspells and p.healspells[win.spellid]) if spell then cacheTable[p.name] = { id = p.id, class = p.class, role = p.role, spec = p.spec, amount = spell.amount } -- calculate the total. total = total + spell.amount end end if total > 0 then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 for playername, player in pairs(cacheTable) do nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = player.id or playername d.label = playername d.text = player.id and Skada:FormatName(playername, player.id) d.class = player.class d.role = player.role d.spec = player.spec d.value = player.amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), mod.metadata.columns.Healing, Skada:FormatPercent(d.value, total), mod.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end function mod:Update(win, set) win.title = L["Healing Done By Spell"] local total = set and set:GetAbsorbHeal() or 0 local spells = (total > 0) and set:GetAbsorbHealSpells() if spells then if win.metadata then win.metadata.maxvalue = 0 end local nr = 0 for spellid, spell in pairs(spells) do nr = nr + 1 local d = win.dataset[nr] or {} win.dataset[nr] = d d.id = spellid d.spellid = spellid d.spellschool = spell.school d.label, _, d.icon = GetSpellInfo(spellid) if spell.ishot then d.text = d.label .. L["HoT"] end d.value = spell.amount d.valuetext = Skada:FormatValueText( Skada:FormatNumber(d.value), self.metadata.columns.Healing, Skada:FormatPercent(d.value, total), self.metadata.columns.Percent ) if win.metadata and d.value > win.metadata.maxvalue then win.metadata.maxvalue = d.value end end end end function mod:OnEnable() spellmod.metadata = {showspots = true} self.metadata = { click1 = spellmod, post_tooltip = spell_tooltip, columns = {Healing = true, Percent = true}, icon = [[Interface\Icons\spell_nature_healingwavelesser]] } Skada:AddMode(self, L["Absorbs and Healing"]) end function mod:OnDisable() Skada:RemoveMode(self) end function setPrototype:GetAbsorbHealSpells() if (self.absorb or self.heal) and self.players then wipe(cacheTable) for _, player in ipairs(self.players) do if player.healspells then for spellid, spell in pairs(player.healspells) do if not cacheTable[spellid] then cacheTable[spellid] = {school = spell.school, amount = spell.amount} else cacheTable[spellid].amount = cacheTable[spellid].amount + spell.amount end end end if player.absorbspells then for spellid, spell in pairs(player.absorbspells) do if not cacheTable[spellid] then cacheTable[spellid] = {school = spell.school, amount = spell.amount} else cacheTable[spellid].amount = cacheTable[spellid].amount + spell.amount end end end end return cacheTable end end end)
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRIGHT ZENIMAX MEDIA INC. **************************************************************************** ]] ZO_KeybindButtonMixin = {} function ZO_KeybindButtonMixin:GetKeybind() return (IsInGamepadPreferredMode() or self.alwaysPreferGamepadMode) and self.gamepadPreferredKeybind or self.keybind end function ZO_KeybindButtonMixin:GetKeyboardKeybind() return self.keybind end function ZO_KeybindButtonMixin:GetGamepadKeybind() return self.gamepadPreferredKeybind end function ZO_KeybindButtonMixin:UpdateEnabledState() self.nameLabel:SetEnabled(self.enabled) local keybindEnabled = self.keybindEnabled and self.enabled local keybindColor = keybindEnabled and ZO_SELECTED_TEXT or ZO_DISABLED_TEXT self.keyLabel:SetColor(keybindColor:UnpackRGBA()) self.keyLabel:SetAlpha((self:GetKeybind() or self.customKeyText) and 1 or 0) ZO_KeyMarkupLabel_SetEdgeFileColor(self.keyLabel, keybindColor) end function ZO_KeybindButtonMixin:SetEnabled(enabled) if(enabled ~= self.enabled) then self.enabled = enabled self:UpdateEnabledState() end end function ZO_KeybindButtonMixin:SetState(buttonState, locked) self:SetEnabled(buttonState ~= BSTATE_DISABLED) end function ZO_KeybindButtonMixin:SetKeybindEnabled(enabled) if(enabled ~= self.keybindEnabled) then self.keybindEnabled = enabled self:UpdateEnabledState() end end function ZO_KeybindButtonMixin:IsEnabled() return self.enabled end function ZO_KeybindButtonMixin:SetClickSound(clickSound) self.clickSound = clickSound end function ZO_KeybindButtonMixin:SetText(text) self.nameLabel:SetText(text) end function ZO_KeybindButtonMixin:SetCustomKeyText(keyText) self.customKeyText = true self.keyLabel:SetText(ZO_Keybindings_GenerateTextKeyMarkup(keyText)) self:UpdateEnabledState() end function ZO_KeybindButtonMixin:SetCustomKeyIcon(keyIcon) local key = ("|t%f%%:%f%%:%s|t"):format(200, 200, keyIcon) self.customKeyText = true self.keyLabel:SetText(key) self:UpdateEnabledState() end function ZO_KeybindButtonMixin:ShowKeyIcon() self.keyLabel:SetHidden(false) end function ZO_KeybindButtonMixin:HideKeyIcon() self.keyLabel:SetHidden(true) end function ZO_KeybindButtonMixin:SetupStyle(styleInfo) KEYBIND_STRIP:SetupButtonStyle(self, styleInfo or KEYBIND_STRIP:GetStyle()) end function ZO_KeybindButtonMixin:SetKeybindEnabledInEdit(enabled) self.keybindEnabledInEdit = enabled end function ZO_KeybindButtonMixin:SetMouseOverEnabled(enabled) ZO_SelectableLabel_SetMouseOverEnabled(self.nameLabel, enabled) end function ZO_KeybindButtonMixin:SetNormalTextColor(color) ZO_SelectableLabel_SetNormalColor(self.nameLabel, color) end function ZO_KeybindButtonMixin:SetNameFont(font) self.nameLabel:SetFont(font) end function ZO_KeybindButtonMixin:SetKeyFont(font) self.keyLabel:SetFont(font) end function ZO_KeybindButtonMixin:AdjustBindingAnchors(wideSpacing) if(not self:GetUsingCustomAnchors()) then self.keyLabel:SetAnchor(RIGHT, self.nameLabel, LEFT, wideSpacing and -15 or 0) end end function ZO_KeybindButtonMixin:SetUsingCustomAnchors(useCustom) self.usingCustomAnchors = useCustom end function ZO_KeybindButtonMixin:GetUsingCustomAnchors() return self.usingCustomAnchors end local function OnKeybindLabelChanged(label, bindingText, key, mod1, mod2, mod3, mod4) label.owner:AdjustBindingAnchors(not ZO_Keybindings_ShouldUseIconKeyMarkup(key)) end function ZO_KeybindButtonMixin:SetKeybind(keybind, showUnbound, gamepadPreferredKeybind, alwaysPreferGamepadMode, showAsHold) local hadKeybind = self:GetKeybind() ~= nil self.keybind = keybind self.gamepadPreferredKeybind = gamepadPreferredKeybind self.alwaysPreferGamepadMode = alwaysPreferGamepadMode keybind = self:GetKeybind() if keybind then if hadKeybind then ZO_Keybindings_UnregisterLabelForBindingUpdate(self.keyLabel) end ZO_Keybindings_RegisterLabelForBindingUpdate(self.keyLabel, self.keybind, showUnbound, self.gamepadPreferredKeybind, OnKeybindLabelChanged, alwaysPreferGamepadMode, showAsHold) else ZO_Keybindings_UnregisterLabelForBindingUpdate(self.keyLabel) end self:UpdateEnabledState() end function ZO_KeybindButtonMixin:SetCallback(callback) self.callback = callback end function ZO_KeybindButtonMixin:GetKeybindButtonDescriptorReference() return self.keybindDescriptorReference end function ZO_KeybindButtonMixin:SetKeybindButtonDescriptor(keybindDescriptor) self.keybindDescriptorReference = keybindDescriptor if keybindDescriptor.name then local name = keybindDescriptor.name if type(keybindDescriptor.name) == "function" then name = keybindDescriptor.name() end self:SetText(name) end if keybindDescriptor.keybind then self:SetKeybind(keybindDescriptor.keybind) end if keybindDescriptor.callback then self:SetCallback(keybindDescriptor.callback) end if keybindDescriptor.sound then self:SetClickSound(keybindDescriptor.sound) end if keybindDescriptor.customKeyText then self:SetCustomKeyText(keybindDescriptor.customKeyText) end if keybindDescriptor.customKeyIcon then self:SetCustomKeyIcon(keybindDescriptor.customKeyIcon) end end function ZO_KeybindButtonMixin:OnClicked() local visible = self.keybindDescriptorReference and self.keybindDescriptorReference.visible or true if type(visible) == "function" then visible = visible() end if visible then if self.enabled then if self.clickSound then if type(self.clickSound) == "function" then PlaySound(self.clickSound()) else PlaySound(self.clickSound) end end if self.callback then self.callback(self) end else PlaySound(SOUNDS.KEYBIND_BUTTON_DISABLED) end end end local g_cooldownButtons = {} -- Should only be used for Floating Keybind Buttons -- Otherwise use ZO_KeybindStrip:TriggerCooldown function ZO_KeybindButtonMixin:SetCooldown(durationMs) self.cooldownDurationMs = durationMs self.cooldownStartTimeMs = GetFrameTimeMilliseconds() --Check for duplicates for i, button in ipairs(g_cooldownButtons) do if button == self then return end end self.baseText = self.nameLabel:GetText() table.insert(g_cooldownButtons, self) end local g_areKeybindsEnabled local g_keybindButtons = {} local g_numDisabledReferences = 0 local function OnUpdate() local shouldKeybindsBeEnabled = WINDOW_MANAGER:GetFocusControl() == nil and g_numDisabledReferences == 0 if shouldKeybindsBeEnabled ~= g_areKeybindsEnabled then g_areKeybindsEnabled = shouldKeybindsBeEnabled for i = 1, #g_keybindButtons do local currentKeybindButton = g_keybindButtons[i] if not currentKeybindButton.keybindEnabledInEdit then currentKeybindButton:SetKeybindEnabled(shouldKeybindsBeEnabled) end end end local currentTimeMs = GetFrameTimeMilliseconds() for i = #g_cooldownButtons, 1, -1 do local button = g_cooldownButtons[i] local timeDifferenceMs = currentTimeMs - button.cooldownStartTimeMs local shouldBeEnabled = timeDifferenceMs > button.cooldownDurationMs if shouldBeEnabled then button:SetText(button.baseText) button.cooldownDurationMs = nil button.cooldownStartTimeMs = nil table.remove(g_cooldownButtons, i) else local secondsTillEnabled = zo_ceil((button.cooldownStartTimeMs + button.cooldownDurationMs - currentTimeMs) / 1000) button:SetText(zo_strformat(SI_BINDING_NAME_COOLDOWN_FORMAT, button.baseText, secondsTillEnabled)) end button:SetEnabled(shouldBeEnabled) end end EVENT_MANAGER:RegisterForUpdate("KeybindButtonUpdate", 0, OnUpdate) function ZO_KeybindButtonTemplate_AddGlobalDisableReference() g_numDisabledReferences = g_numDisabledReferences + 1 end function ZO_KeybindButtonTemplate_RemoveGlobalDisableReference() g_numDisabledReferences = g_numDisabledReferences - 1 end function ZO_KeybindButtonTemplate_OnMouseUp(self, button, upInside) if upInside and (button == MOUSE_BUTTON_INDEX_LEFT) and self.enabled then self:OnClicked() end end function ZO_KeybindButtonTemplate_OnInitialized(self) self.nameLabel = self:GetNamedChild("NameLabel") self.keyLabel = self:GetNamedChild("KeyLabel") self.keyLabel.owner = self self.enabled = true self.keybindEnabled = true zo_mixin(self, ZO_KeybindButtonMixin) ZO_KeyMarkupLabel_SetCustomOffsets(self.keyLabel, -5, 5, -2, 3) ZO_SelectableLabel_OnInitialized(self.nameLabel) table.insert(g_keybindButtons, self) self:UpdateEnabledState() end function ZO_KeybindButtonTemplate_Setup(self, keybind, callbackFunction, text) ZO_KeybindButtonTemplate_OnInitialized(self) self:SetKeybind(keybind) self:SetText(text) self:SetCallback(callbackFunction) end ZO_ChromaKeybindButtonMixin = {} function ZO_ChromaKeybindButtonMixin:SetChromaEnabled(enabled) if self.chromaEnabled ~= enabled then self.chromaEnabled = enabled self:UpdateChromaEffect() end end function ZO_ChromaKeybindButtonMixin:AddChromaEffect() if ZO_RZCHROMA_EFFECTS and self:AreChromaEffectsEnabled() then local keybindAction = self:GetKeyboardKeybind() if keybindAction then ZO_RZCHROMA_EFFECTS:AddKeybindActionEffect(keybindAction) end end end function ZO_ChromaKeybindButtonMixin:RemoveChromaEffect() if ZO_RZCHROMA_EFFECTS then local keybindAction = self:GetKeyboardKeybind() if keybindAction then ZO_RZCHROMA_EFFECTS:RemoveKeybindActionEffect(keybindAction) end end end function ZO_ChromaKeybindButtonMixin:UpdateChromaEffect() if ZO_RZCHROMA_EFFECTS and not self:IsHidden() then local keybindAction = self:GetKeyboardKeybind() if keybindAction then if self:AreChromaEffectsEnabled() then ZO_RZCHROMA_EFFECTS:AddKeybindActionEffect(keybindAction) else ZO_RZCHROMA_EFFECTS:RemoveKeybindActionEffect(keybindAction) end end end end function ZO_ChromaKeybindButtonMixin:SetKeybind(keybind, showUnbound, gamepadPreferredKeybind, alwaysPreferGamepadMode) local previousKeybind = self:GetKeyboardKeybind() local refreshKeybind = keybind ~= previousKeybind and not self:IsHidden() if refreshKeybind then self:RemoveChromaEffect() end ZO_KeybindButtonMixin.SetKeybind(self, keybind, showUnbound, gamepadPreferredKeybind, alwaysPreferGamepadMode) if refreshKeybind then self:AddChromaEffect() end end function ZO_ChromaKeybindButtonMixin:UpdateEnabledState() ZO_KeybindButtonMixin.UpdateEnabledState(self) self:UpdateChromaEffect() end function ZO_ChromaKeybindButtonMixin:AreChromaEffectsEnabled() return self.chromaEnabled and self:IsEnabled() end function ZO_ChromaKeybindButtonTemplate_OnInitialized(self) ZO_KeybindButtonTemplate_OnInitialized(self) zo_mixin(self, ZO_ChromaKeybindButtonMixin) self:SetChromaEnabled(true) end function ZO_ChromaKeybindButtonTemplate_Setup(self, keybind, callbackFunction, text) ZO_ChromaKeybindButtonTemplate_OnInitialized(self) self:SetKeybind(keybind) self:SetText(text) self:SetCallback(callbackFunction) end function ZO_KeybindButton_ChromaBehavior_OnEffectivelyShown(self) if self.AddChromaEffect then self:AddChromaEffect() end end function ZO_KeybindButton_ChromaBehavior_OnEffectivelyHidden(self) if self.RemoveChromaEffect then self:RemoveChromaEffect() end end
Loop(300, function() AddPlayerTechResearched(Com[0], |Rhar|, 1) AddPlayerTechResearched(Com[0], |Rema|, 1) AddPlayerTechResearched(Com[1], |Rhar|, 1) AddPlayerTechResearched(Com[1], |Rema|, 1) end )
-- -- Created by IntelliJ IDEA. -- User: dell -- Date: 21/03/01 -- Time: 下午 10:56 -- To change this template use File | Settings | File Templates. -- local from = redis.call('hget', KEYS[1], ARGV[1]) if (from == nil or from == false) then from = nil; else from = tonumber(from) end local cnt = 0 for i = 2, #KEYS do if (from == nil) then local zCard = redis.call('zcard', KEYS[i]) if (zCard > 10) then zCard = 10 end cnt = cnt + zCard else cnt = cnt + redis.call('zcount', KEYS[i], from, '+inf') end end return cnt
local _={} _.name="Tiger" _.new=function(options) local result=BaseEntity.new(options) result.x=0 result.y=0 result.mountX=13 result.mountY=22 result.originX=13 result.originY=22 result.footX=13 result.footY=31 Entity.setSprite(result,"tiger") result.isDrawable=true result.aiEnabled=true result.isMountable=true Entity.afterCreated(result,_,options) return result end _.draw=DrawableBehaviour.draw _.updateAi=require("misc/ai/pantera_ai") return _
local pf = require 'eonz.polyfill' local table = pf.extended 'table' local string = pf.extended 'string' test["table.equals(a, b) arrays"] = function() assert_equals(true, table.equals( { 'a', 'b', 'c' }, { 'a', 'b', "c" } )) assert_equals(true, table.equals( { 1, 2, 3 }, { 1.0, 2.0, 3.0 } )) assert_equals(false, table.equals( { 'a', 'b', 'c' }, { 'c', 'b', 'a' } )) assert_equals(false, table.equals( { 1, 2, 3 }, { 1.0, 2.0, 3.0, 4.0 } )) end test["table.equals(a, b) arrays torture test"] = function() assert_equals(false, table.equals( { 'a', 'b', 'c' }, {} )) assert_equals(false, table.equals( {}, { "a", "b", "c" } )) assert_equals(false, table.equals( { 'a', 'b', 'c' }, { 'a', 'b', 'c', ["a"] = "some-key" } )) end test["table.equals(a, b, true) recursive mode"] = function() local a = { "a", "b", "c", { "d", "e" }, x = { 1, 2, 3 }, y = { 4, 5, 6 }, } local b = { "a", y = { 4, 5, 6 }, "b", x = { 1, 2, 3 }, "c", { "d", "e" }, } assert_false(table.equals(a, b)) assert_true(table.equals(a, b, true)) end test["table.slice()"] = function() local a = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 } local b = { 4, 5, 6, 7, 8, 9, 10, 11 } local c = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 } assert_equals(false, a == b) assert_equals(false, a == c) assert_equals(false, table.equals(a, b)) assert_equals(true, table.equals(a, c)) assert_equals(true, table.equals(table.slice(a, 4, 11), b)) assert_equals(true, table.equals(table.slice(a, 4, 11), b)) assert_equals(true, table.equals(table.slice(c, -9, -2), b)) end test["table.slice() graceful failure when out of bounds"] = function() do local array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 } local expected = { 5, 6, 7, 8, 9, 10, 11, 12 } local actual = table.slice(array, 5, 100) assert_table_equals(expected, actual) end do local array = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 } local expected = { } local actual = table.slice(array, 100, 105) assert_table_equals(expected, actual) end end test["table.index == table.index_of"] = function() assert_same(table.index, table.index_of) end test["table.reverse()"] = function() local array = { 1, 2, 3, 4, 5 } local expected = { 5, 4, 3, 2, 1 } local actual = table.reverse(array) assert_table_equals(expected, actual) end test["table.slice() end index before start index"] = function() local array = { 1, 2, 3, 4, 5 } local expected_1 = {} local actual_1 = table.slice(array, 5, 1) local expected_2 = { 5, 4, 3, 2, 1 } local actual_2 = table.reverse(table.slice(array, 1, 5)) assert_table_equals(expected_1, actual_1) assert_table_equals(expected_2, actual_2) end test["table.join() applies metamethod?"] = function() local a = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 } local b = { 1, 2, 3, 4, 5, 6 } local c = { 7, 8, 9, 10, 11, 12 } assert_equals(true, table.equals(table.slice(a, 1, 6), b)) assert_equals(true, table.equals(table.slice(a, 7, 12), c)) assert_equals(true, table.equals(table.join(b, c), a)) end test["table.is_array(arr)"] = function() local a = { 1, 2, "3", 4 } local b = { 1, 2, "3", 4 } local c = { 1, 2, "3", 4, key="value" } local d = { 1, 2, "3", 4, ["5"]="value" } local e = {} assert_equals(false, table.is_array(nil)) assert_equals(false, table.is_array("hello")) assert_equals(false, table.is_array(1000)) assert_equals(false, table.is_array(true)) assert_equals(true, table.is_array(a)) assert_equals(true, table.is_array(a)) assert_equals(true, table.is_array(b)) assert_equals(false, table.is_array(c)) assert_equals(false, table.is_array(d)) assert_equals(false, table.is_array(d)) assert_equals(true, table.is_array(e)) end test["array table.tostring() behavior"] = function() local a = { 1, 2, "3", 4 } local a_alt = { 1, ["2"]=2, "3", 4 } local b = {} local c = { nil } local d = { "this", "is", "an", setmetatable({},{__tostring=function() return "\"array\"" end}), "of strings" } local e = { { 1, 2 }, "3", "4", { { 5 }, { 6 }}} assert_equals("[1, 2, \"3\", 4]", table.tostring(a)) assert_equals("{[1]=1, [2]=2, [3]=\"3\", [4]=4}", table.tostring(a, "~arrays")) assert_equals("{[1]=1, [\"2\"]=2, [2]=\"3\", [3]=4}", table.tostring(a_alt, "~arrays")) assert_equals("[1, 2, \"3\", 4]", table.tostring(a)) assert_equals("[]", table.tostring(b)) assert_equals("[]", table.tostring(c)) assert_equals('["this", "is", "an", "array", "of strings"]', table.tostring(d)) assert_equals('[[1, 2], "3", "4", [[5], [6]]]', table.tostring(e)) assert_equals(string.trim([==[ [ [ 1, 2 ], "3", "4", [ [ 5 ], [ 6 ] ] ] ]==]), table.tostring(e, {"pretty"})) end test["table.tostring() behavior"] = function() local a = { { 1, 2 }, "3", "4", { { 5 }, { 6 }}} local b = { 1, 2, 3, 4, { key = "value" }} assert_equals('[[1, 2], "3", "4", [[5], [6]]]', table.tostring(a)) assert_equals('[1, 2, 3, 4, {key="value"}]', table.tostring(b)) end test["table.merge()"] = function() local base = { 1, 2, 4, 6, 8, best_star_trek_captain = "Kirk" } local a = { [4] = "six" } local b = { best_star_trek_captain = "Quark", best_star_trek_series = "Deep Space 9" } local c = { best_star_trek_captain = "Picard", "one" } local result = table.merge(base, a, b, c) local expected = { "one", 2, 4, "six", 8, best_star_trek_captain = "Picard", best_star_trek_series = "Deep Space 9" } assert_table_equals(expected, result) assert_table_equals(expected, base) assert_raw_equals(result, base) end --[[ test["table.array, table.__eq (table as metatable)"] = function() local a = { 1, 2, 3, 4, 5 } local b = setmetatable({ 1, 2, 3, 4, 5 }, table) local c = { "1", "2", "3", "4", "5" } local d = { 1, 2, 3, 4, 5 } assert_equals(true, table.equals(a, b)) assert_equals(true, table.equals(b, a)) -- metamethod is not reliably invoked across all versions, so this -- must fail assert_equals(false, a == d) assert_equals(false, b == d) assert_equals(false, getmetatable(a).__eq(a, d)) assert_equals(false, getmetatable(a).__eq(a, d)) -- but the tables should still be considered "equal" assert_equals(true, table.equals(a, d)) assert_equals(true, table.equals(b, d)) assert_equals(false, a ~= b) assert_equals(false, b ~= a) assert_equals(false, a == c) assert_equals(false, b == c) assert_equals(true, a ~= c) assert_equals(true, b ~= c) assert_equals(true, c == c) assert_equals(false, c ~= c) assert_equals(false, a == nil) assert_equals(false, b == nil) assert_equals(false, c == nil) end --]] test["table.equals(a, b) with mixed keys and array"] = function() local a = { "This", "is", "a", "mixed", what="table", why="it contains both keys and array elements" } local b = { why="it contains both keys and array elements", "This", what="table", "is", "a", "mixed" } local c = { why="it contains both keys and array elements", "This", "mixed", what="table", "is", "a" } local d = { "This", "is", "a", "mixed", what="table", why="it contains both keys and array elements", when="always" } assert_equals(true, table.equals(a, b)) assert_equals(true, table.equals(b, a)) assert_equals(false, table.equals(a, c)) assert_equals(false, table.equals(c, a)) assert_equals(false, table.equals(b, c)) assert_equals(false, table.equals(c, b)) assert_equals(false, table.equals(a, d)) assert_equals(false, table.equals(d, a)) assert_equals(false, table.equals(b, d)) assert_equals(false, table.equals(d, b)) assert_equals(false, table.equals(c, d)) assert_equals(false, table.equals(d, c)) end test["table.join(...) array join"] = function() local a = { 1, 2, 3, 4 } local b = { 5, 6 } local c = { 7, 8, 9 } local d = {} local e = { 10 } local expected = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } local joined = table.join(a, b, c, d, e) local joined_inline_nil = table.join(a, b, c, nil, d, e) assert_equals(true, table.equals(expected, joined)) assert_equals(true, table.equals(expected, joined_inline_nil)) end
-- -*- coding: utf-8 -*- local _M = {} _M.logfd = '/openresty-logs/collector/ngx.log.filter' _M.whitelist = { ["regular"] = { ['/v1/ad/request'] = true }, ["regex"] = { -- '\\/v1\\/game\\/ad\\/request$', } } _M.blacklist = { ["BothRequestAndResponse"] = { ["regular"] = { ["/"] = true, ["/favicon.ico"] = true, ["/ngx_status/"] = true }, ["regex"] = { } }, ["BlockResponse"] = { ["regular"] = { -- ["/v2/game/baseinfo"] = true, -- ["/v2/game/latest"] = true, -- ["/v2/game/startup"] = true }, ["regex"] = { -- '\\/list$' } }, ["BlockRequest"] = { ["regular"] = {}, ["regex"] = {} } } return _M
if script.active_mods["switchable_mods"] then require("__switchable_mods__/event_handler_vSM").add_lib(require("models/restrict_building")) else local event_handler if script.active_mods["zk-lib"] then event_handler = require("__zk-lib__/static-libs/lualibs/event_handler_vZO.lua") else event_handler = require("event_handler") end event_handler.add_lib(require("models/restrict_building")) end
load_any("Bar","bar","BAR")
modifier_juggernaut_basic_attack_stacks = class({}) function modifier_juggernaut_basic_attack_stacks:IsHidden() return false end function modifier_juggernaut_basic_attack_stacks:IsDebuff() return false end function modifier_juggernaut_basic_attack_stacks:IsStunDebuff() return false end function modifier_juggernaut_basic_attack_stacks:IsPurgable() return true end function modifier_juggernaut_basic_attack_stacks:OnCreated(kv) if IsServer() then self.effects_cast_weapon = {} self:SetStackCount(1) end end function modifier_juggernaut_basic_attack_stacks:OnRefresh(kv) local max_stacks = self:GetAbility():GetSpecialValueFor("max_stacks") if IsServer() then if self:GetStackCount() < max_stacks then self.effects_cast_weapon = {} self:IncrementStackCount() if self:GetStackCount() == max_stacks then self:PlayEffectsCharged() end end end end function modifier_juggernaut_basic_attack_stacks:OnDestroy(kv) if IsServer() then self:StopEffects() end end function modifier_juggernaut_basic_attack_stacks:PlayEffectsCharged() ReplenishEFX(self:GetParent()) self:CreateGlow(0) self:CreateGlow(1) self:CreateGlow(2) self:CreateGlow(3) self:CreateGlow(4) self:CreateGlow(5) end function modifier_juggernaut_basic_attack_stacks:CreateGlow(index) local particle_cast = "particles/units/heroes/hero_invoker_kid/invoker_kid_forge_spirit_ambient_fire.vpcf" local caster = self:GetParent() local origin = caster:GetOrigin() self.effects_cast_weapon[index] = ParticleManager:CreateParticle( particle_cast, PATTACH_ABSORIGIN_FOLLOW, caster ) end function modifier_juggernaut_basic_attack_stacks:StopEffects() for _,efx in pairs(self.effects_cast_weapon) do if efx ~= nil then ParticleManager:DestroyParticle(efx, false) ParticleManager:ReleaseParticleIndex(efx) end end end function modifier_juggernaut_basic_attack_stacks:GetTexture() return "juggernaut_blade_dance" end
function Collectionator.Utilities.GetPrice(replicateInfo) if replicateInfo[10] == 0 then return math.max(replicateInfo[11], replicateInfo[8]) else return replicateInfo[10] end end
-- This file is part of muforth: https://muforth.nimblemachines.com/ -- Copyright (c) 2002-2020 David Frech. (Read the LICENSE for details.) -- Equates for several PIC18 variants, "scraped" from Microchip datasheets. -- From here we generate muforth code! -- Be careful of pasted in endashes and ligatures! -- To convert en- and em-dashes to normal (double) dashes, do this (in Vim): -- :set encoding=utf-8 -- :%s/\%u2013/--/g ( en-dash) -- :%s/\%u2014/--/g ( em-dash) -- and for common ligatures, do these: -- :%s/\%ufb00/ff/g -- :%s/\%ufb01/fi/g -- :%s/\%ufb02/fl/g -- :%s/\%ufb03/ffi/g -- :%s/\%ufb04/ffl/g -- Also beware copyright and trademark characters. -- :%s/\%u2122//g ( tm) -- 1xK50 chip defs -- NOTE: Had to change SSPMASK to SSPMSK, to match the reg bits string. pic_1xk50_reg_addrs = [[ FFFh TOSU FD7h TMR0H FAFh SPBRG F87h --(2) F5Fh UEIR FFEh TOSH FD6h TMR0L FAEh RCREG F86h --(2) F5Eh UFRMH FFDh TOSL FD5h T0CON FADh TXREG F85h --(2) F5Dh UFRML FFCh STKPTR FD4h --(2) FACh TXSTA F84h --(2) F5Ch UADDR FFBh PCLATU FD3h OSCCON FABh RCSTA F83h --(2) F5Bh UEIE FFAh PCLATH FD2h OSCCON2 FAAh -- F82h PORTC F5Ah UEP7 FF9h PCL FD1h WDTCON FA9h EEADR F81h PORTB F59h UEP6 FF8h TBLPTRU FD0h RCON FA8h EEDATA F80h PORTA F58h UEP5 FF7h TBLPTRH FCFh TMR1H FA7h EECON2(1) F7Fh ANSELH F57h UEP4 FF6h TBLPTRL FCEh TMR1L FA6h EECON1 F7Eh ANSEL F56h UEP3 FF5h TABLAT FCDh T1CON FA5h --(2) F7Dh --(2) F55h UEP2 FF4h PRODH FCCh TMR2 FA4h --(2) F7Ch --(2) F54h UEP1 FF3h PRODL FCBh PR2 FA3h --(2) F7Bh --(2) F53h UEP0 FF2h INTCON FCAh T2CON FA2h IPR2 F7Ah IOCB FF1h INTCON2 FC9h SSPBUF FA1h PIR2 F79h IOCA FF0h INTCON3 FC8h SSPADD FA0h PIE2 F78h WPUB FEFh INDF0(1) FC7h SSPSTAT F9Fh IPR1 F77h WPUA FEEh POSTINC0(1) FC6h SSPCON1 F9Eh PIR1 F76h SLRCON FEDh POSTDEC0(1) FC5h SSPCON2 F9Dh PIE1 F75h --(2) FECh PREINC0(1) FC4h ADRESH F9Ch --(2) F74h --(2) FEBh PLUSW0(1) FC3h ADRESL F9Bh OSCTUNE F73h --(2) FEAh FSR0H FC2h ADCON0 F9Ah --(2) F72h --(2) FE9h FSR0L FC1h ADCON1 F99h --(2) F71h --(2) FE8h WREG FC0h ADCON2 F98h --(2) F70h --(2) FE7h INDF1(1) FBFh CCPR1H F97h --(2) F6Fh SSPMSK FE6h POSTINC1(1) FBEh CCPR1L F96h --(2) F6Eh --(2) FE5h POSTDEC1(1) FBDh CCP1CON F95h --(2) F6Dh CM1CON0 FE4h PREINC1(1) FBCh REFCON2 F94h TRISC F6Ch CM2CON1 FE3h PLUSW1(1) FBBh REFCON1 F93h TRISB F6Bh CM2CON0 FE2h FSR1H FBAh REFCON0 F92h TRISA F6Ah --(2) FE1h FSR1L FB9h PSTRCON F91h --(2) F69h SRCON1 FE0h BSR FB8h BAUDCON F90h --(2) F68h SRCON0 FDFh INDF2(1) FB7h PWM1CON F8Fh --(2) F67h --(2) FDEh POSTINC2(1) FB6h ECCP1AS F8Eh --(2) F66h --(2) FDDh POSTDEC2(1) FB5h --(2) F8Dh --(2) F65h --(2) FDCh PREINC2(1) FB4h --(2) F8Ch --(2) F64h UCON FDBh PLUSW2(1) FB3h TMR3H F8Bh LATC F63h USTAT FDAh FSR2H FB2h TMR3L F8Ah LATB F62h UIR FD9h FSR2L FB1h T3CON F89h LATA F61h UCFG FD8h STATUS FB0h SPBRGH F88h --(2) F60h UIE ]] pic_1xk50_reg_bits = [[ TOSU -- -- -- Top-of-Stack Upper Byte (TOS<20:16>) ---0 0000 285, 30 TOSH Top-of-Stack, High Byte (TOS<15:8>) 0000 0000 285, 30 TOSL Top-of-Stack, Low Byte (TOS<7:0>) 0000 0000 285, 30 STKPTR STKFUL STKUNF -- SP4 SP3 SP2 SP1 SP0 00-0 0000 285, 31 PCLATU -- -- -- Holding Register for PC<20:16> ---0 0000 285, 30 PCLATH Holding Register for PC<15:8> 0000 0000 285, 30 PCL PC, Low Byte (PC<7:0>) 0000 0000 285, 30 TBLPTRU -- -- -- Program Memory Table Pointer Upper Byte (TBLPTR<20:16>) ---0 0000 285, 54 TBLPTRH Program Memory Table Pointer, High Byte (TBLPTR<15:8>) 0000 0000 285, 54 TBLPTRL Program Memory Table Pointer, Low Byte (TBLPTR<7:0>) 0000 0000 285, 54 TABLAT Program Memory Table Latch 0000 0000 285, 54 PRODH Product Register, High Byte xxxx xxxx 285, 65 PRODL Product Register, Low Byte xxxx xxxx 285, 65 INTCON GIE/GIEH PEIE/GIEL TMR0IE INT0IE RABIE TMR0IF INT0IF RABIF 0000 000x 285, 70 INTCON2 RABPU INTEDG0 INTEDG1 INTEDG2 -- TMR0IP -- RABIP 1111 -1-1 285, 71 INTCON3 INT2IP INT1IP -- INT2IE INT1IE -- INT2IF INT1IF 11-0 0-00 285, 72 INDF0 Uses contents of FSR0 to address data memory -- value of FSR0 not changed (not a physical register) N/A 285, 47 POSTINC0 Uses contents of FSR0 to address data memory -- value of FSR0 post-incremented (not a physical register) N/A 285, 47 POSTDEC0 Uses contents of FSR0 to address data memory -- value of FSR0 post-decremented (not a physical register) N/A 285, 47 PREINC0 Uses contents of FSR0 to address data memory -- value of FSR0 pre-incremented (not a physical register) N/A 285, 47 PLUSW0 Uses contents of FSR0 to address data memory -- value of FSR0 pre-incremented (not a physical register) -- value of FSR0 offset by W N/A 285, 47 FSR0H -- -- -- -- Indirect Data Memory Address Pointer 0, High Byte ---- 0000 285, 47 FSR0L Indirect Data Memory Address Pointer 0, Low Byte xxxx xxxx 285, 47 WREG Working Register xxxx xxxx 285 INDF1 Uses contents of FSR1 to address data memory -- value of FSR1 not changed (not a physical register) N/A 285, 47 POSTINC1 Uses contents of FSR1 to address data memory -- value of FSR1 post-incremented (not a physical register) N/A 285, 47 POSTDEC1 Uses contents of FSR1 to address data memory -- value of FSR1 post-decremented (not a physical register) N/A 285, 47 PREINC1 Uses contents of FSR1 to address data memory -- value of FSR1 pre-incremented (not a physical register) N/A 285, 47 PLUSW1 Uses contents of FSR1 to address data memory -- value of FSR1 pre-incremented (not a physical register) -- value of FSR1 offset by W N/A 285, 47 FSR1H -- -- -- -- Indirect Data Memory Address Pointer 1, High Byte ---- 0000 286, 47 FSR1L Indirect Data Memory Address Pointer 1, Low Byte xxxx xxxx 286, 47 BSR -- -- -- -- Bank Select Register ---- 0000 286, 35 INDF2 Uses contents of FSR2 to address data memory -- value of FSR2 not changed (not a physical register) N/A 286, 47 POSTINC2 Uses contents of FSR2 to address data memory -- value of FSR2 post-incremented (not a physical register) N/A 286, 47 POSTDEC2 Uses contents of FSR2 to address data memory -- value of FSR2 post-decremented (not a physical register) N/A 286, 47 PREINC2 Uses contents of FSR2 to address data memory -- value of FSR2 pre-incremented (not a physical register) N/A 286, 47 PLUSW2 Uses contents of FSR2 to address data memory -- value of FSR2 pre-incremented (not a physical register) -- value of FSR2 offset by W N/A 286, 47 FSR2H -- -- -- -- Indirect Data Memory Address Pointer 2, High Byte ---- 0000 286, 47 FSR2L Indirect Data Memory Address Pointer 2, Low Byte xxxx xxxx 286, 47 STATUS -- -- -- N OV Z DC C ---x xxxx 286, 45 TMR0H Timer0 Register, High Byte 0000 0000 286, 103 TMR0L Timer0 Register, Low Byte xxxx xxxx 286, 103 T0CON TMR0ON T08BIT T0CS T0SE PSA T0PS2 T0PS1 T0PS0 1111 1111 286, 101 OSCCON IDLEN IRCF2 IRCF1 IRCF0 OSTS IOSF SCS1 SCS0 0011 qq00 286, 20 OSCCON2 -- -- -- -- -- PRI_SD HFIOFL LFIOFS ---- -10x 286, 21 WDTCON -- -- -- -- -- -- -- SWDTEN --- ---0 286, 303 RCON IPEN SBOREN(1) -- RI TO PD POR BOR 0q-1 11q0 277, 284, 79 TMR1H Timer1 Register, High Byte xxxx xxxx 286, 110 TMR1L Timer1 Register, Low Bytes xxxx xxxx 286, 110 T1CON RD16 T1RUN T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON 0000 0000 286, 105 TMR2 Timer2 Register 0000 0000 286, 112 PR2 Timer2 Period Register 1111 1111 286, 112 T2CON -- T2OUTPS3 T2OUTPS2 T2OUTPS1 T2OUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 286, 111 SSPBUF SSP Receive Buffer/Transmit Register xxxx xxxx 286, 143, 144 SSPADD SSP Address Register in I2C Slave Mode. SSP Baud Rate Reload Register in I2C Master Mode. 0000 0000 286, 144 SSPSTAT SMP CKE D/A P S R/W UA BF 0000 0000 286, 137, 146 SSPCON1 WCOL SSPOV SSPEN CKP SSPM3 SSPM2 SSPM1 SSPM0 0000 0000 286, 137, 146 SSPCON2 GCEN ACKSTAT ACKDT ACKEN RCEN PEN RSEN SEN 0000 0000 286, 147 ADRESH A/D Result Register, High Byte xxxx xxxx 287, 221 ADRESL A/D Result Register, Low Byte xxxx xxxx 287, 221 ADCON0 -- -- CHS3 CHS2 CHS1 CHS0 GO/DONE ADON --00 0000 287, 215 ADCON1 -- -- -- -- PVCFG1 PVCFG0 NVCFG1 NVCFG0 ---- 0000 287, 216 ADCON2 ADFM -- ACQT2 ACQT1 ACQT0 ADCS2 ADCS1 ADCS0 0-00 0000 287, 217 CCPR1H Capture/Compare/PWM Register 1, High Byte xxxx xxxx 287, 138 CCPR1L Capture/Compare/PWM Register 1, Low Byte xxxx xxxx 287, 138 CCP1CON P1M1 P1M0 DC1B1 DC1B0 CCP1M3 CCP1M2 CCP1M1 CCP1M0 0000 0000 287, 117 REFCON2 -- -- -- DAC1R4 DAC1R3 DAC1R2 DAC1R1 DAC1R0 ---0 0000 287, 248 REFCON1 D1EN D1LPS DAC1OE --- D1PSS1 D1PSS0 -- D1NSS 000- 00-0 287, 248 REFCON0 FVR1EN FVR1ST FVR1S1 FVR1S0 -- -- -- -- 0001 00-- 287, 247 PSTRCON -- -- -- STRSYNC STRD STRC STRB STRA ---0 0001 287, 134 BAUDCON ABDOVF RCIDL DTRXP CKTXP BRG16 -- WUE ABDEN 0100 0-00 287, 192 PWM1CON PRSEN PDC6 PDC5 PDC4 PDC3 PDC2 PDC1 PDC0 0000 0000 287, 133 ECCP1AS ECCPASE ECCPAS2 ECCPAS1 ECCPAS0 PSSAC1 PSSAC0 PSSBD1 PSSBD0 0000 0000 287, 129 TMR3H Timer3 Register, High Byte xxxx xxxx 287, 115 TMR3L Timer3 Register, Low Byte xxxx xxxx 287, 115 T3CON RD16 -- T3CKPS1 T3CKPS0 T3CCP1 T3SYNC TMR3CS TMR3ON 0-00 0000 287, 113 SPBRGH EUSART Baud Rate Generator Register, High Byte 0000 0000 287, 181 SPBRG EUSART Baud Rate Generator Register, Low Byte 0000 0000 287, 181 RCREG EUSART Receive Register 0000 0000 287, 182 TXREG EUSART Transmit Register 0000 0000 287, 181 TXSTA CSRC TX9 TXEN SYNC SENDB BRGH TRMT TX9D 0000 0010 287, 190 RCSTA SPEN RX9 SREN CREN ADDEN FERR OERR RX9D 0000 000x 287, 191 EEADR EEADR7 EEADR6 EEADR5 EEADR4 EEADR3 EEADR2 EEADR1 EEADR0 0000 0000 287, 52, 61 EEDATA EEPROM Data Register 0000 0000 287, 52, 61 EECON2 EEPROM Control Register 2 (not a physical register) 0000 0000 287, 52, 61 EECON1 EEPGD CFGS -- FREE WRERR WREN WR RD xx-0 x000 287, 53, 61 IPR2 OSCFIP C1IP C2IP EEIP BCLIP USBIP TMR3IP -- 1111 111- 288, 78 PIR2 OSCFIF C1IF C2IF EEIF BCLIF USBIF TMR3IF -- 0000 000- 288, 74 PIE2 OSCFIE C1IE C2IE EEIE BCLIE USBIE TMR3IE -- 0000 000- 288, 76 IPR1 -- ADIP RCIP TXIP SSPIP CCP1IP TMR2IP TMR1IP -111 1111 288, 77 PIR1 -- ADIF RCIF TXIF SSPIF CCP1IF TMR2IF TMR1IF -000 0000 288, 73 PIE1 -- ADIE RCIE TXIE SSPIE CCP1IE TMR2IE TMR1IE -000 0000 288, 75 OSCTUNE INTSRC SPLLEN TUN5 TUN4 TUN3 TUN2 TUN1 TUN0 0000 0000 22, 288 TRISC TRISC7 TRISC6 TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 1111 1111 288, 94 TRISB TRISB7 TRISB6 TRISB5 TRISB4 -- -- -- -- 1111 ---- 288, 89 TRISA -- -- TRISA5 TRISA4 -- -- -- -- --11 ---- 288, 83 LATC LATC7 LATC6 LATC5 LATC4 LATC3 LATC2 LATC1 LATC0 xxxx xxxx 288, 94 LATB LATB7 LATB6 LATB5 LATB4 -- -- -- -- xxxx ---- 288, 89 LATA -- -- LATA5 LATA4 -- -- -- -- --xx ---- 288, 83 PORTC RC7 RC6 RC5 RC4 RC3 RC2 RC1 RC0 xxxx xxxx 288, 94 PORTB RB7 RB6 RB5 RB4 -- -- -- -- xxxx ---- 288, 89 PORTA -- -- RA5 RA4 RA3(2) -- RA1(3) RA0(3) --xx x-xx 288, 83 ANSELH -- -- -- -- ANS11 ANS10 ANS9 ANS8 ---- 1111 288, 99 ANSEL ANS7 ANS6 ANS5 ANS4 ANS3 -- -- -- 1111 1--- 288, 98 IOCB IOCB7 IOCB6 IOCB5 IOCB4 -- -- -- -- 0000 ---- 288, 89 IOCA -- -- IOCA5 IOCA4 IOCA3 -- IOCA1 IOCA0 --00 0-00 288, 83 WPUB WPUB7 WPUB6 WPUB5 WPUB4 -- -- -- -- 1111 ---- 288, 89 WPUA -- -- WPUA5 WPUA4 WPUA3 -- -- -- --11 1--- 285, 89 SLRCON -- -- -- -- -- SLRC SLRB SLRA ---- -111 288, 100 SSPMSK MSK7 MSK6 MSK5 MSK4 MSK3 MSK2 MSK1 MSK0 1111 1111 288, 154 CM1CON0 C1ON C1OUT C1OE C1POL C1SP C1R C1CH1 C1CH0 0000 1000 288, 229 CM2CON1 MC1OUT MC2OUT C1RSEL C2RSEL C1HYS C2HYS C1SYNC C2SYNC 0000 0000 288, 230 CM2CON0 C2ON C2OUT C2OE C2POL C2SP C2R C2CH1 C2CH0 0000 1000 288, 230 SRCON1 SRSPE SRSCKE SRSC2E SRSC1E SRRPE SRRCKE SRRC2E SRRC1E 0000 0000 288, 243 SRCON0 SRLEN SRCLK2 SRCLK1 SRCLK0 SRQEN SRNQEN SRPS SRPR 0000 0000 288, 242 UCON -- PPBRST SE0 PKTDIS USBEN RESUME SUSPND -- -0x0 000- 288, 252 USTAT -- ENDP3 ENDP2 ENDP1 ENDP0 DIR PPBI -- -xxx xxx- 289, 256 UIR -- SOFIF STALLIF IDLEIF TRNIF ACTVIF UERRIF URSTIF -000 0000 289, 266 UCFG UTEYE -- -- UPUEN -- FSEN PPB1 PPB0 0--0 -000 289, 254 UIE -- SOFIE STALLIE IDLEIE TRNIE ACTVIE UERRIE URSTIE -000 0000 289, 268 UEIR BTSEF -- -- BTOEF DFN8EF CRC16EF CRC5EF PIDEF 0--0 0000 289, 269 UFRMH -- -- -- -- -- FRM10 FRM9 FRM8 ---- -xxx 289, 252 UFRML FRM7 FRM6 FRM5 FRM4 FRM3 FRM2 FRM1 FRM0 xxxx xxxx 289, 252 UADDR -- ADDR6 ADDR5 ADDR4 ADDR3 ADDR2 ADDR1 ADDR0 -000 0000 289, 258 UEIE BTSEE -- -- BTOEE DFN8EE CRC16EE CRC5EE PIDEE 0--0 0000 289, 270 UEP7 -- -- -- EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL ---0 0000 289, 257 UEP6 -- -- -- EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL ---0 0000 289, 257 UEP5 -- -- -- EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL ---0 0000 289, 257 UEP4 -- -- -- EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL ---0 0000 289, 257 UEP3 -- -- -- EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL ---0 0000 289, 257 UEP2 -- -- -- EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL ---0 0000 289, 257 UEP1 -- -- -- EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL ---0 0000 289, 257 UEP0 -- -- -- EPHSHK EPCONDIS EPOUTEN EPINEN EPSTALL ---0 0000 285, 257 ]] pic_1xk50_configs = [[ 300000h CONFIG1L -- -- USBDIV CPUDIV1 CPUDIV0 -- -- -- --00 0--- 300001h CONFIG1H IESO FCMEN PCLKEN PLLEN FOSC3 FOSC2 FOSC1 FOSC0 0010 0111 300002h CONFIG2L -- -- -- BORV1 BORV0 BOREN1 BOREN0 PWRTEN ---1 1111 300003h CONFIG2H -- -- -- WDTPS3 WDTPS2 WDTPS1 WDTPS0 WDTEN ---1 1111 300005h CONFIG3H MCLRE -- -- -- HFOFST -- -- -- 1--- 1--- 300006h CONFIG4L BKBUG(2) ENHCPU -- -- BBSIZ LVP -- STVREN -0-- 01-1 300008h CONFIG5L -- -- -- -- -- -- CP1 CP0 ---- --11 300009h CONFIG5H CPD CPB -- -- -- -- -- -- 11-- ---- 30000Ah CONFIG6L -- -- -- -- -- -- WRT1 WRT0 ---- --11 30000Bh CONFIG6H WRTD WRTB WRTC -- -- -- -- -- 111- ---- 30000Ch CONFIG7L -- -- -- -- -- -- EBTR1 EBTR0 ---- --11 30000Dh CONFIG7H -- EBTRB -- -- -- -- -- -- -1-- ---- 3FFFFEh DEVID1(1) DEV2 DEV1 DEV0 REV4 REV3 REV2 REV1 REV0 qqqq qqqq(1) 3FFFFFh DEVID2(1) DEV10 DEV9 DEV8 DEV7 DEV6 DEV5 DEV4 DEV3 0000 1100 ]] dofile 'target/S08/device/string.lua' -- S08 -- UNUSED currently for PIC18 function show_vectors(v) vt = {} name_max = 0 -- width of name field for addr, desc, name in v:gmatch("(0x%x+):0?x?%x+ ([%w ]-) ([%w%-]+)%s-\n") do if desc ~= "Reserved" then table.insert(vt, 1, { addr=addr, desc=desc, name=name }) end if #name > name_max then name_max = #name end --print (addr, desc, name) end --print (name_max) for _,vec in ipairs(vt) do -- print(string.format("#%02d %05x vec %s ( %s)", -- 0x10000-vec.addr, vec.addr, vec.name..(" "):rep(name_max-#vec.name), vec.desc)) print(string.format("%05x vector %s ( %s)", vec.addr, vec.name..(" "):rep(name_max-#vec.name), vec.desc)) end print() end function show_regs(reg_addrs, reg_bits, configs) local reg2addr = {} -- Some lines have five reg/addr pairs; some have four -- FFFh TOSU FD7h TMR0H FAFh SPBRG F87h --(2) F5Fh UEIR -- FD8h STATUS FB0h SPBRGH F88h --(2) F60h UIE local function read_addrs(l) if l:match "^%s*$" then return end -- skip whitespace-only lines local firstpair = "(%x+)h ([%w_-]+)" local pair = " " .. firstpair local a1, r1, a2, r2, a3, r3, a4, r4, a5, r5 = l:match(firstpair .. pair:rep(4)) if a1 then -- print(a1, r1, a2, r2, a3, r3, a4, r4, a5, r5) reg2addr[r1] = a1 reg2addr[r2] = a2 reg2addr[r3] = a3 reg2addr[r4] = a4 reg2addr[r5] = a5 else a1, r1, a2, r2, a3, r3, a4, r4, a5, r5 = l:match(firstpair .. (pair):rep(3)) if a1 then -- print(a1, r1, a2, r2, a3, r3, a4, r4) reg2addr[r1] = a1 reg2addr[r2] = a2 reg2addr[r3] = a3 reg2addr[r4] = a4 else print "Something went wrong reading the reg addresses" end end end local function addr(reg) return "0x" .. reg2addr[reg] end -- Example of register definitions with 8 bit names following: -- EEADR EEADR7 EEADR6 EEADR5 EEADR4 EEADR3 EEADR2 EEADR1 EEADR0 0000 0000 287, 52, 61 -- EECON1 EEPGD CFGS -- FREE WRERR WREN WR RD xx-0 x000 287, 53, 61 -- Examples that don't have 8 bit names: -- EEDATA EEPROM Data Register 0000 0000 287, 52, 61 -- EECON2 EEPROM Control Register 2 (not a physical register) 0000 0000 287, 52, 61 local function show_reg(l) if l:match "^%s*$" then return end -- skip whitespace-only lines local pat = "([%w_]+)" .. (" ([%u%d/_-]+)"):rep(8) local reg, b7, b6, b5, b4, b3, b2, b1, b0 = l:match(pat) if reg then print (string.format("%04x reg %-8s | "..("%-7s "):rep(8), addr(reg), reg, b7, b6, b5, b4, b3, b2, b1, b0)) return end reg, desc = l:match "([%w_]+) (.+)" print (string.format("%04x reg %-8s | %s", addr(reg), reg, desc)) end -- 300000h CONFIG1L -- -- USBDIV CPUDIV1 CPUDIV0 -- -- -- --00 0--- local function show_config(l) if l:match "^%s*$" then return end -- skip whitespace-only lines local pat = "(%x+)h ([%w_]+)" .. (" ([%u%d/_-]+)"):rep(8) local addr, reg, b7, b6, b5, b4, b3, b2, b1, b0 = l:match(pat) if addr then print (string.format("%06x reg %-8s | "..("%-7s "):rep(8), "0x"..addr, reg, b7, b6, b5, b4, b3, b2, b1, b0)) return end print("Failed to match config: ", l) end local function drop_footnotes(s) s = s:gsub("%(%d+%)", "") return s end for l in reg_addrs:lines() do read_addrs(drop_footnotes(l)) end for l in reg_bits:lines() do show_reg(drop_footnotes(l)) end print() for l in configs:lines() do show_config(drop_footnotes(l)) end end function show_heading(s) print (string.format( "( Equates for PIC18F%s. Extracted from the datasheet using Lua!)", s)) print() end function show_part(name, reg_addrs, reg_bits, configs) show_heading(name) show_regs(reg_addrs, reg_bits, configs) end show_part("1xK50", pic_1xk50_reg_addrs, pic_1xk50_reg_bits, pic_1xk50_configs)
--[[ luci-app-argon-config ]]-- module("luci.controller.argon-config", package.seeall) function index() if not nixio.fs.access('/www/luci-static/argon/css/cascade.css') then return end entry({"admin", "system", "argon-config"}, form("argon-config"), _("Argon设置"), 90) end
if SERVER then AddCSLuaFile() end --local DbgPrint = print local DbgPrint = GetLogging("EnvCredits") ENT.Base = "lambda_entity" ENT.Type = "anim" DEFINE_BASECLASS("lambda_entity") CREDITS_TYPE_NONE = 0 CREDITS_TYPE_INTRO = 1 CREDITS_TYPE_OUTRO = 2 CREDITS_TYPE_PARAMS = 3 local CREDITS_SECTION_NAME = { [CREDITS_TYPE_INTRO] = "IntroCreditsNames", [CREDITS_TYPE_OUTRO] = "OutroCreditsNames", [CREDITS_TYPE_PARAMS] = "CreditsParams", } local function GetCreditsSection(tab, key) local name = CREDITS_SECTION_NAME[key] for k,v in pairs(tab) do if v.Key == name then return v.Value end end end function ENT:PreInitialize() BaseClass.PreInitialize(self) DbgPrint(self, "PreInitialize") self:SetupNWVar("CreditsFile", "string", { Default = "hl2:scripts/credits.txt", KeyValue = "CreditsFile", OnChange = self.CreditsFileChanged }) self:SetupNWVar("CreditsFinishTime", "float", { Default = 0 }) self:SetupNWVar("CreditsStartTime", "float", { Default = 0 }) self:SetupNWVar("CreditsType", "int", { Default = CREDITS_TYPE_NONE, OnChange = self.CreditsTypeChanged }) self:SetInputFunction("RollCredits", self.RollCredits) self:SetInputFunction("RollOutroCredits", self.RollOutroCredits) self:SetInputFunction("ShowLogo", self.ShowLogo) self:SetInputFunction("SetLogoLength", self.SetLogoLength) self:SetInputFunction("StopCredits", self.StopCredits) if CLIENT then self.LastCreditsType = nil self.LastCreditsFile = nil end self:SetupOutput("OnCreditsDone") end function ENT:Initialize() BaseClass.Initialize(self) DbgPrint(self, "Initialize") self:NextThink(CurTime()) end function ENT:LoadCreditsFile(filePath, gamePath) local fileData = file.Read(filePath, gamePath) if fileData == nil then return false end local credits = util.KeyValuesToTablePreserveOrder(fileData, false, true) if credits == nil then print(self, "Unable to parse credits file") return false end self.Credits = credits self.Params = {} for _,v in pairs(GetCreditsSection(self.Credits, CREDITS_TYPE_PARAMS) or {}) do self.Params[v.Key] = v.Value end if self.Params["color"] ~= nil then self.Params["color"] = Color(unpack(string.Split(self.Params["color"], " "))) end DbgPrint("Loaded credits file: " .. gamePath .. ":" .. filePath) self.LastCreditsFile = gamePath .. ":" .. filePath return true end function ENT:ReloadCreditsFile(f) local splitUp = string.Split(f, ":") local gamePath = "MOD" local filePath if #splitUp > 1 then gamePath = splitUp[1] filePath = splitUp[2] else filePath = splitUp[1] end DbgPrint("Credits file changed: " .. tostring(newVal)) return self:LoadCreditsFile(filePath, gamePath) end function ENT:CreditsFileChanged(key, oldVal, newVal) return self:ReloadCreditsFile(newVal) end function ENT:GetCreditsLength(creditsType) if self.Credits == nil then return 0 end local creditsLength = 0 if creditsType == CREDITS_TYPE_INTRO then local section = GetCreditsSection(self.Credits, creditsType) local i = 0 local creditsSize = #section local fadeInTime = self.Params["fadeintime"] or 1.0 local fadeOutTime = self.Params["fadeouttime"] or 1.0 local fadeHoldTime = self.Params["fadeholdtime"] or 1.0 local nextFadeTime = self.Params["nextfadetime"] or 1.0 local pauseBetweenWaves = self.Params["pausebetweenwaves"] or 1.0 local entryLength = fadeInTime + fadeOutTime + fadeHoldTime while i < creditsSize do local len = 3 if i + len > creditsSize then len = creditsSize - i end creditsLength = creditsLength + (len * nextFadeTime) + pauseBetweenWaves i = i + len end creditsLength = creditsLength + entryLength elseif creditsType == CREDITS_TYPE_OUTRO then creditsLength = self.Params["scrolltime"] or 158 end return creditsLength end function ENT:CreditsTypeChanged(key, oldVal, newVal) DbgPrint(self, "CreditsTypeChanged: " .. key .. ", " .. tostring(oldVal) .. "," .. newVal) if self.Credits == nil and self:ReloadCreditsFile(self:GetNWVar("CreditsFile")) == false then return end if newVal == CREDITS_TYPE_NONE then self.Section = nil else self.Section = GetCreditsSection(self.Credits, newVal) end if CLIENT then self.LastCreditsType = newVal if IsValid(self.Panel) then self.Panel:Remove() end local startTime = self:GetNWVar("CreditsStartTime") local finishTime = self:GetNWVar("CreditsFinishTime") if newVal ~= CREDITS_TYPE_NONE then self.Panel = vgui.Create("HudCredits", GetHUDPanel()) self.Panel:ShowCredits(self.Credits, self.Params, newVal, startTime, finishTime) end end end function ENT:Think() local creditsFile = self:GetNWVar("CreditsFile") if CLIENT and self.LastCreditsFile ~= creditsFile then self:CreditsFileChanged("CreditsFile", self.LastCreditsFile, creditsFile) end local creditsType = self:GetNWVar("CreditsType", CREDITS_TYPE_NONE) if CLIENT and self.LastCreditsType ~= creditsType then self:CreditsTypeChanged("CreditsType", self.LastCreditsType, creditsType) end if creditsType == CREDITS_TYPE_NONE then return end if SERVER then local finishTime = self:GetNWVar("CreditsFinishTime") local curTime = CurTime() if finishTime ~= 0 and curTime >= finishTime then DbgPrint("Credits completed") self:StopCredits() end end end function ENT:AcceptInput(fn, data, activator, caller) DbgPrint(self, "AcceptInput", fn, data, activator, caller) BaseClass.AcceptInput(self, fn, data, activator, caller) end function ENT:RollCredits() if CLIENT then return end local length = self:GetCreditsLength(CREDITS_TYPE_INTRO) self:SetNWVar("CreditsStartTime", CurTime()) self:SetNWVar("CreditsFinishTime", CurTime() + length) self:SetNWVar("CreditsType", CREDITS_TYPE_INTRO) end function ENT:RollOutroCredits() if CLIENT then return end local length = self:GetCreditsLength(CREDITS_TYPE_OUTRO) self:SetNWVar("CreditsStartTime", CurTime()) self:SetNWVar("CreditsFinishTime", CurTime() + length) self:SetNWVar("CreditsType", CREDITS_TYPE_OUTRO) end function ENT:StopCredits() DbgPrint("StopCredits") local prevType = self:GetNWVar("CreditsType") self:SetNWVar("CreditsStartTime", 0) self:SetNWVar("CreditsFinishTime", 0) self:SetNWVar("CreditsType", CREDITS_TYPE_NONE) if prevType ~= CREDITS_TYPE_NONE then self:FireOutputs("OnCreditsDone", self, self) end end function ENT:KeyValue(key, val) DbgPrint(self, "KeyValue", key, val) return BaseClass.KeyValue(self, key, val) end function ENT:OnRemove() if CLIENT and IsValid(self.Panel) then self.Panel:Remove() end end function ENT:UpdateTransmitState() return TRANSMIT_ALWAYS end function TriggerCredits() for k,v in pairs(ents.FindByClass("env_credits")) do v:Fire("RollOutroCredits") break end end function FinishCredits() for k,v in pairs(ents.FindByClass("env_credits")) do v:Fire("StopCredits") break end end function RollCredits() for k,v in pairs(ents.FindByClass("env_credits")) do v:Fire("RollCredits") break end end
goriyas = {} require 'src/enemies/dungeons/goriyasProjectile' function spawnGoriya() local goriya = {} -- Check if the goriya are spawning in the 'dungeon_brick' repeat goriya.x = multiple16(love.math.random(16,256)) goriya.y = multiple16(love.math.random(72,224)) until checkLayer('Ground_layer', map:convertPixelToTile(goriya.x-8, goriya.y-8)) == 'dungeon_brick' goriya.vectorX = 0 goriya.vectorY = 0 goriya.speed = 40 goriya.state = 'idle' goriya.damage = 1 goriya.health = 3 goriya.invincible = false goriya.dead = false goriya.directions = {'up', 'down', 'left', 'right'} goriya.direction = goriya.directions[math.random(#goriya.directions)] goriya.grid = anim8.newGrid(16, 16, sprites.goriya:getWidth(), sprites.goriya:getHeight()) goriya.animWalkUp = anim8.newAnimation(goriya.grid('1-2', 1), 0.1) goriya.animWalkDown = anim8.newAnimation(goriya.grid('1-2', 2), 0.1) goriya.animWalkLeft = anim8.newAnimation(goriya.grid('1-2', 3), 0.1):flipH() goriya.animWalkRight = anim8.newAnimation(goriya.grid('1-2', 3), 0.1) goriya.currentAnim = goriya.animWalkUp -- center the collider on the sprite goriya.collider = world:newRectangleCollider(goriya.x-14, goriya.y-6, 12, 12) goriya.collider:setCollisionClass('Enemy') goriya.collider:setFixedRotation(true) goriya.colliderExists = true goriya.shot = false goriya.turn = false goriya.projectileReturn = false goriya.tmpState = 'idle' goriya.pushedDirection = 'none' goriya.turnTimer = 0 goriya.pushedTimer = 0 goriya.invincibleTimer = 0 table.insert(goriyas, goriya) end function goriyas:update(dt) goriyasProjectile:update(dt) -- loop for all goriyas in the table for i, goriya in ipairs(goriyas) do if goriya.dead then goto continue end if goriya.health <= 0 then goriyaDeath(i) goto continue end if goriya.invincible then goriya.invincibleTimer = goriya.invincibleTimer + 1 * dt if goriya.invincibleTimer >= 0.750 then goriya.invincible = false end end goriya.currentAnim:update(dt) goriya.x, goriya.y = goriya.collider:getPosition() goriya.vectorX = 0 goriya.vectorY = 0 checkGoriyaDamage(i) checkIfGoriyaHitPlayer(i) if goriya.collider:enter('Wall') then turnGoriya(i) end if goriya.state == 'idle' then -- set a timer for goriya actions goriya.turnTimer = goriya.turnTimer + 1 * dt if goriya.turnTimer >= 1 then if math.random(3) == 1 then goriya.turn = true goriya.turnTimer = 0 elseif math.random(3) == 1 then goriya.state = 'shooting' goriya.turnTimer = 0 goriya.shot = false goriya.projectileReturn = false goto continue end if checkIfSeePlayer(goriya.x, goriya.y, goriya.direction) == true and distanceFrom(goriya.x, goriya.y, Player.x, Player.y) <= 96 then goriya.state = 'shooting' goriya.turnTimer = 0 goriya.shot = false goriya.projectileReturn = false goto continue end end if goriya.turn == true then if distanceFrom(goriya.x, goriya.y, multiple16(goriya.x)+8, multiple16(goriya.y+4)) < 1 then turnGoriya(i) goriya.turnTimer = 0 goriya.turn = false end end setGoriyaDirection(i) goriya.collider:setLinearVelocity(goriya.vectorX * goriya.speed, goriya.vectorY * goriya.speed) elseif goriya.state == 'shooting' then setGoriyaDirection(i) goriya.collider:setLinearVelocity(0, 0) if goriya.shot == false then goriyasProjectileSpawn(goriya.x, goriya.y, goriya.direction, i) goriya.shot = true end if goriya.projectileReturn then goriya.state = 'idle' local directions = checkArea(goriya.x, goriya.y) if not contains(goriya.direction, directions) then goriya.direction = directions[math.random(#directions)] end end elseif goriya.state == 'pushed' then goriya.x, goriya.y = goriya.collider:getPosition() local x, y = (getDirectionVector(goriya.pushedDirection) * dt * 600):unpack() goriya.collider:setLinearVelocity(x * goriya.speed, y * goriya.speed) goriya.pushedTimer = goriya.pushedTimer + 1 * dt if goriya.pushedTimer >= 0.133 then goriya.state = goriya.tmpState end end ::continue:: end end function goriyas:draw() goriyasProjectile:draw() for i, goriya in ipairs(goriyas) do if goriya.dead then goto continue end if goriya.invincible then -- makes the sprite blink white if math.floor(math.cos(love.timer.getTime() * 18 % 2 * math.pi)) == 0 then love.graphics.setShader(white_flash) end else love.graphics.setShader() end goriya.currentAnim:draw(sprites.goriya, goriya.x-8, goriya.y-8) love.graphics.setColor(1,1,1,1) ::continue:: end end function setGoriyaDirection(index) local goriya = goriyas[index] if goriya.direction == 'up' then goriya.vectorY = -1 goriya.currentAnim = goriya.animWalkUp elseif goriya.direction == 'down' then goriya.vectorY = 1 goriya.currentAnim = goriya.animWalkDown elseif goriya.direction == 'left' then goriya.vectorX = -1 goriya.currentAnim = goriya.animWalkLeft elseif goriya.direction == 'right' then goriya.vectorX = 1 goriya.currentAnim = goriya.animWalkRight end end function checkGoriyaDamage(index) local goriya = goriyas[index] if goriya.invincible == true then return end if goriya.collider:enter('Weapon') then local sword for i, swordT in ipairs(swordThrow) do sword = swordT end goriya.pushedTimer = 0 goriya.invincibleTimer = 0 goriya.invincible = true goriya.tmpState = goriya.state goriya.state = 'pushed' if sword == nil then goriya.pushedDirection = Sword.direction else goriya.pushedDirection = sword.direction end goriya.health = goriya.health - Sword.damage if goriya.health > 0 then sounds.enemyHit:stop() sounds.enemyHit:play() end elseif goriya.collider:enter('Arrow') then goriya.pushedTimer = 0 goriya.invincibleTimer = 0 goriya.invincible = true goriya.tmpState = goriya.state goriya.state = 'pushed' goriya.pushedDirection = arrows[1].direction goriya.health = goriya.health - arrows[1].damage if goriya.health > 0 then sounds.enemyHit:stop() sounds.enemyHit:play() end end end function checkIfGoriyaHitPlayer(index) local goriya = goriyas[index] if goriya.collider:enter('Player') then playerDamage(goriya.damage) end end function turnGoriya(index) local goriya = goriyas[index] -- create 4 queries around the collider for get the availables directions local directions = checkArea(goriya.x, goriya.y) goriya.direction = directions[math.random(#directions)] -- center the collider position in the block goriya.collider:setPosition(multiple16(goriya.x+2)+8, multiple16(goriya.y+2)) end function goriyaDeath(index) local goriya = goriyas[index] deathSpawn(goriya.x-7.5, goriya.y-7.5, enemyDrops()) for i, projectile in ipairs(goriyasProjectile) do -- check if goriya has a projectile and delete it if projectile.id == index then goriyasProjectileRemove(i) end end if goriya.colliderExists then goriya.collider:destroy() goriya.colliderExists = false end -- subtracts a goriya from the goriyas list in the current room enemiesDungeon1_rooms[currentDungeonRoom][4] = enemiesDungeon1_rooms[currentDungeonRoom][4] - 1 goriya.dead = true end function deleteGoriyas() deleteAllGoriyasProjectile() for i, goriya in ipairs(goriyas) do if goriya.colliderExists then goriya.collider:destroy() goriya.colliderExists = false end table.remove(goriyas, i) end end
-- Sets a unit's combat-hardened value to a given percent --@ module = true local help = [====[ combat-harden ============= Sets the combat-hardened value on a unit, making them care more/less about seeing corpses. Requires a value and a target. Valid values: :``-value <0-100>``: A percent value to set combat hardened to. :``-tier <1-4>``: Choose a tier of hardenedness to set it to. 1 = No hardendness. 2 = "is getting used to tragedy" 3 = "is a hardened individual" 4 = "doesn't really care about anything anymore" (max) If neither are provided, the script defaults to using a value of 100. Valid targets: :``-all``: All active units will be affected. :``-citizens``: All (sane) citizens of your fort will be affected. Will do nothing in adventure mode. :``-unit <UNIT ID>``: The given unit will be affected. If no target is given, the provided unit can't be found, or no unit id is given with the unit argument, the script will try and default to targeting the currently selected unit. ]====] local utils = require 'utils' local validArgs = utils.invert({ 'help', 'all', 'citizens', 'tier', 'unit', 'value', }) local tiers = {0, 33, 67, 100} function setUnitCombatHardened(unit, value) if unit.status.current_soul ~= nil then -- Ensure value is in the bounds of 0-100 local value = math.max(0, math.min(100, value)) unit.status.current_soul.personality.combat_hardened = value end end function main(...) local args = utils.processArgs({...}, validArgs) if args.help then print(help) return end local value if not args.tier and not args.value then -- Default to 100 value = 100 elseif args.tier then -- Bound between 1-4 local tierNum = math.max(1, math.min(4, tonumber(args.tier))) value = tiers[tierNum] elseif args.value then -- Function ensures value is bound, so no need to bother here -- Will check it's a number, though value = tonumber(args.value) or 100 end local unitsList = {} --as:df.unit[] if not args.all and not args.citizens then -- Assume trying to target a unit local unit if args.unit then if tonumber(args.unit) then unit = df.unit.find(args.unit) end end -- If unit ID wasn't provided / unit couldn't be found, -- Try getting selected unit if unit == nil then unit = dfhack.gui.getSelectedUnit(true) end if unit == nil then qerror("Couldn't find unit. If you don't want to target a specific unit, use -all or -citizens.") else table.insert(unitsList, unit) end elseif args.all then for _, unit in pairs(df.global.world.units.active) do table.insert(unitsList, unit) end elseif args.citizens then -- Technically this will exclude insane citizens, but this is the -- easiest thing that dfhack provides -- Abort if not in Fort mode if not dfhack.world.isFortressMode() then qerror('-citizens requires fortress mode') end for _, unit in pairs(df.global.world.units.active) do if dfhack.units.isCitizen(unit) then table.insert(unitsList, unit) end end end for index, unit in ipairs(unitsList) do setUnitCombatHardened(unit, value) end end if not dfhack_flags.module then main(...) end
--- LOADING SCREEN love.graphics.clear(0, 0, 0) local img = love.graphics.newImage("img/loading.png") love.graphics.draw(img) love.graphics.present() --- LIB -- font local font = love.graphics.newFont("font/iosevka-bold.ttf", 20) love.graphics.setFont(font) -- object-oriented Object = require "lib.classic" -- base base = require "lib.base" keys = require "lib.keys" require "lib.screen" require "lib.level" require "lib.fighter" require "lib.player" require "lib.fighterAI" -- screenManager local ScreenManager = require "lib.screenManager" --- LOAD SCREENS local MainScreen = require "screens.mainScreen" local pvpScreen = require "screens.level.pvpScreen" local pveScreen = require "screens.level.pveScreen" --- LOAD GAME function love.load() -- sound sfx_menu = love.audio.newSource("sound/bibi.mp3", "static") sfx_finish = love.audio.newSource("sound/finish.mp3", "static") --- register screens local screenManager = ScreenManager() screenManager:register('/', MainScreen) -- frist screenManager:register('pvpScreen', pvpScreen) screenManager:register('pveScreen', pveScreen) end
------------------------------ --[[ SSJ 1337 BY SAUD20 AND POINTCODED (Chara) ]]-- local p = game:GetService("Players").LocalPlayer local char = p.Character local Char = char ------------------------------ local mouse = p:GetMouse() local larm = char["Left Arm"] local rarm = char["Right Arm"] local lleg = char["Left Leg"] local rleg = char["Right Leg"] local hed = char.Head local torso = char.Torso local hum = char.Humanoid local cam = game.Workspace.CurrentCamera local root = char.HumanoidRootPart local deb = false local shot = 0 local debris=game:service"Debris" local l = game:GetService("Lighting") local rs = game:GetService("RunService").RenderStepped ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} math.randomseed(os.time()) for i,v in pairs(char:children()) do if v:IsA("Hat") then v:Destroy() end end for i,v in pairs (hed:GetChildren()) do if v:IsA("Sound") then v:Destroy() end end ---------------------------------------------------- Debounces = { CanAttack = true; NoIdl = false; Slashing = false; Slashed = false; RPunch = false; RPunched = false; LPunch = false; LPunched = false; } local Touche = {char.Name, } ---------------------------------------------------- hed.face.Texture = "rbxassetid://167125093" char["Body Colors"].HeadColor = BrickColor.new("Pastel brown") char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown") char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown") char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown") ---------------------------------------------------- ypcall(function() char.Shirt:Destroy() char.Pants:Destroy() shirt = Instance.new("Shirt", char) shirt.Name = "Shirt" pants = Instance.new("Pants", char) pants.Name = "Pants" char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=401269844" char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=344084364" end) ---------------------------------------------------- function lerp(a, b, t) -- Linear interpolation return a + (b - a)*t end function slerp(a, b, t) --Spherical interpolation dot = a:Dot(b) if dot > 0.99999 or dot < -0.99999 then return t <= 0.5 and a or b else r = math.acos(dot) return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) end end function matrixInterpolate(a, b, t) local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back local t = v1:Dot(v2) if not (t < 0 or t == 0 or t > 0) then -- Failsafe return CFrame.new() end return CFrame.new( v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z) end ---------------------------------------------------- function genWeld(a,b) local w = Instance.new("Weld",a) w.Part0 = a w.Part1 = b return w end function weld(a, b) local weld = Instance.new("Weld") weld.Name = "W" weld.Part0 = a weld.Part1 = b weld.C0 = a.CFrame:inverse() * b.CFrame weld.Parent = a return weld; end ---------------------------------------------------- function Lerp(c1,c2,al) local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} for i,v in pairs(com1) do com1[i] = v+(com2[i]-v)*al end return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) end ---------------------------------------------------- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) local wld = Instance.new("Weld", wp1) wld.Part0 = wp0 wld.Part1 = wp1 wld.C0 = CFrame.new(wc0x, wc0y, wc0z) end ---------------------------------------------------- function weld5(part0, part1, c0, c1) weeld=Instance.new("Weld", part0) weeld.Part0=part0 weeld.Part1=part1 weeld.C0=c0 weeld.C1=c1 return weeld end ---------------------------------------------------- function HasntTouched(plrname) local ret = true for _, v in pairs(Touche) do if v == plrname then ret = false end end return ret end ---------------------------------------------------- newWeld(torso, larm, -1.5, 0.5, 0) larm.Weld.C1 = CFrame.new(0, 0.5, 0) newWeld(torso, rarm, 1.5, 0.5, 0) rarm.Weld.C1 = CFrame.new(0, 0.5, 0) newWeld(torso, hed, 0, 1.5, 0) newWeld(torso, lleg, -0.5, -1, 0) lleg.Weld.C1 = CFrame.new(0, 1, 0) newWeld(torso, rleg, 0.5, -1, 0) rleg.Weld.C1 = CFrame.new(0, 1, 0) newWeld(root, torso, 0, -1, 0) torso.Weld.C1 = CFrame.new(0, -1, 0) ---------------------------------------------------- z = Instance.new("Sound", char) z.SoundId = "rbxassetid://335958739"--303570180 z.Looped = true z.Pitch = 1 z.Volume = 1 wait(.1) z:Play() ---------------------------------------------------- local Transforming = true hum.WalkSpeed = 0 local fx = Instance.new("Part",torso) fx.Anchored = true fx.Material = "Neon" fx.CanCollide = false fx.Locked = true fx.Transparency = 1 fx.Material = "SmoothPlastic" fx.Size = Vector3.new(1,1,1) fx.TopSurface = "SmoothNoOutlines" fx.BottomSurface = "SmoothNoOutlines" fx.BrickColor = BrickColor.new("Really red") fxm = Instance.new("SpecialMesh",fx) fxm.MeshType = "Sphere" fxm.Scale = Vector3.new(1,1,1) for i = 1, 20 do rs:wait() fx.Transparency = fx.Transparency - (1/20) fx.CFrame = torso.CFrame fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) rs:wait() end ---------------------------------------------------- local H = Instance.new("Hat",Char) local P = Instance.new("Part",H) local M = Instance.new("SpecialMesh",P) M.MeshId = "http://www.roblox.com/asset/?id=346578029" M.TextureId = "http://www.roblox.com/asset/?id=17877254" P.Locked = true H.AttachmentPos = Vector3.new(0, 0, 0) P.formFactor = 0 P.Size = Vector3.new(2,2,2) P.Position = Char.Head.Position ------------------------------------------------------ local cor = Instance.new("Part", char.Hat) cor.Name = "Link" cor.Locked = true cor.BottomSurface = 0 cor.CanCollide = false cor.Size = Vector3.new(1, 9, 1) cor.Transparency = 1 cor.TopSurface = 0 corw = Instance.new("Weld", cor) corw.Part0 = hed corw.Part1 = cor corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) weld1 = Instance.new("Weld", char.Hat) weld1.Part0 = cor weld1.Part1 = char.Hat.Part weld1.C0 = CFrame.new(0, 0.56, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) GroundWave1 = function() local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) local Colors = {"Bright red", "Really red"} local wave = Instance.new("Part", torso) wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) wave.Anchored = true wave.CanCollide = false wave.Locked = true wave.Size = Vector3.new(1, 1, 1) wave.TopSurface = "Smooth" wave.BottomSurface = "Smooth" wave.Transparency = 0.35 wave.CFrame = HandCF wm = Instance.new("SpecialMesh", wave) wm.MeshId = "rbxassetid://3270017" coroutine.wrap(function() for i = 1, 30, 1 do wm.Scale = Vector3.new(1 + i*1.2, 1 + i*1.2, 1) wave.Size = wm.Scale wave.CFrame = HandCF wave.Transparency = i/30 wait() end wait() wave:Destroy() end)() end ---------------------------------------------------- GroundWave = function() if Transforming == true then local wave = Instance.new("Part", torso) wave.BrickColor = BrickColor.new("Really red") wave.Anchored = true wave.CanCollide = false wave.Locked = true wave.Size = Vector3.new(1, 1, 1) wave.TopSurface = "Smooth" wave.BottomSurface = "Smooth" wave.Transparency = 0.35 wave.CFrame = fx.CFrame wm = Instance.new("SpecialMesh", wave) wm.MeshType = "Sphere" wm.Scale = Vector3.new(1,1,1) coroutine.wrap(function() for i = 1, 18, 1 do wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) --wave.Size = wm.Scale wave.CFrame = fx.CFrame wave.Transparency = i/14 wait() end wait() wave:Destroy() end)() elseif Transforming == false then wait() end end for i = 1, 100 do rs:wait() fx.CFrame = torso.CFrame end Spawn(function() while wait(1) do GroundWave() end end) wait(4) Transforming = false for i = 1, 20 do rs:wait() fx.Transparency = fx.Transparency + (1/20) fx.CFrame = torso.CFrame fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) rs:wait() end local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) local wave = Instance.new("Part", torso) wave.BrickColor = BrickColor.new("Institutional white") wave.Anchored = true wave.CanCollide = false wave.Locked = true wave.Size = Vector3.new(1, 1, 1) wave.TopSurface = "Smooth" wave.BottomSurface = "Smooth" wave.Transparency = 0.35 wave.CFrame = HandCF wm = Instance.new("SpecialMesh", wave) wm.MeshId = "rbxassetid://3270017" coroutine.wrap(function() for i = 1, 14, 1 do wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) wave.Size = wm.Scale wave.CFrame = HandCF wave.Transparency = i/14 wait() end wait() wave:Destroy() end)() hum.WalkSpeed = 16 ---------------------------------------------------- Blast = function() local Colors = {"Really red", "Really red"} local wave = Instance.new("Part", torso) wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) wave.Anchored = true wave.CanCollide = false wave.Locked = true wave.Size = Vector3.new(1, 1, 1) wave.TopSurface = "Smooth" wave.BottomSurface = "Smooth" wave.Transparency = 0.35 wave.CFrame = rarm.CFrame wm = Instance.new("SpecialMesh", wave) wm.MeshType = "Sphere" wm.Scale = Vector3.new(1,1,1) z = Instance.new("Sound",wave) z.SoundId = "rbxassetid://237035051" z.Volume = 1 z.Pitch = .9 z:Play() coroutine.wrap(function() for i = 1, 30, 1 do wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) --wave.Size = wm.Scale wave.CFrame = rarm.CFrame wave.Transparency = (1/14) rs:wait() end rs:wait() wave:Destroy() z:Destroy() end)() end ---------------------------------------------------- rarm.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then if Debounces.RPunch == true and Debounces.RPunched == false then Debounces.RPunched = true hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) if Debounces.ks==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() end wait(.2) Debounces.RPunched = false end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then if Debounces.RPunch == true and Debounces.RPunched == false then Debounces.RPunched = true hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) if Debounces.ks==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() end wait(.2) Debounces.RPunched = false end end end end end) larm.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then if Debounces.LPunch == true and Debounces.LPunched == false then Debounces.LPunched = true hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) if Debounces.ks2==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() end wait(.2) Debounces.LPunched = false end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then if Debounces.LPunch == true and Debounces.LPunched == false then Debounces.LPunched = true hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) if Debounces.ks2==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() end wait(.2) Debounces.LPunched = false end end end end end) ---------------------------------------------------- mod4 = Instance.new("Model",char) ptez = {0.7, 0.8, 0.9, 1} function FindNearestTorso(Position,Distance,SinglePlayer) if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end local List = {} for i,v in pairs(workspace:GetChildren())do if v:IsA("Model")then if v:findFirstChild("Torso")then if v ~= char then if(v.Torso.Position -Position).magnitude <= Distance then table.insert(List,v) end end end end end return List end function Punch() part=Instance.new('Part',mod4) part.Anchored=true part.CanCollide=false part.FormFactor='Custom' part.Size=Vector3.new(.2,.2,.2) part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) part.Transparency=.7 part.BrickColor=BrickColor.new('Really red') mesh=Instance.new('SpecialMesh',part) mesh.MeshId='http://www.roblox.com/asset/?id=3270017' mesh.Scale=Vector3.new(3,3,3) part2=Instance.new('Part',mod4) part2.Anchored=true part2.CanCollide=false part2.FormFactor='Custom' part2.Size=Vector3.new(.2,.2,.2) part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) part2.Transparency=.7 part2.BrickColor=BrickColor.new('Really red') mesh2=Instance.new('SpecialMesh',part2) mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' mesh2.Scale=Vector3.new(3,1.5,3) for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do if v:FindFirstChild('Humanoid') then v.Humanoid:TakeDamage(math.random(2,6)) end end coroutine.resume(coroutine.create(function() for i=0,0.62,0.4 do wait() part.CFrame=part.CFrame part.Transparency=i mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) part2.CFrame=part2.CFrame part2.Transparency=i mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) end part.Parent=nil part2.Parent=nil end)) end ---------------------------------------------------- rarm.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then if Debounces.RPunch == true and Debounces.RPunched == false then Debounces.RPunched = true hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) if Debounces.ks==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() end wait(.2) Debounces.RPunched = false end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then if Debounces.RPunch == true and Debounces.RPunched == false then Debounces.RPunched = true hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) if Debounces.ks==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() end wait(.2) Debounces.RPunched = false end end end end end) larm.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then if Debounces.LPunch == true and Debounces.LPunched == false then Debounces.LPunched = true hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) if Debounces.ks2==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() end wait(.2) Debounces.LPunched = false end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then if Debounces.LPunch == true and Debounces.LPunched == false then Debounces.LPunched = true hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) if Debounces.ks2==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() end wait(.2) Debounces.LPunched = false end end end end end) ---------------------------------------------------- local player = game.Players.LocalPlayer local pchar = player.Character local mouse = player:GetMouse() local cam = workspace.CurrentCamera local rad = math.rad local keysDown = {} local flySpeed = 0 local MAX_FLY_SPEED = 150 local canFly = false local flyToggled = false local forward, side = 0, 0 local lastForward, lastSide = 0, 0 local floatBP = Instance.new("BodyPosition") floatBP.maxForce = Vector3.new(0, math.huge, 0) local flyBV = Instance.new("BodyVelocity") flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) local turnBG = Instance.new("BodyGyro") turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) mouse.KeyDown:connect(function(key) keysDown[key] = true if key == "f" then flyToggled = not flyToggled if not flyToggled then stanceToggle = "Normal" floatBP.Parent = nil flyBV.Parent = nil turnBG.Parent = nil root.Velocity = Vector3.new() pchar.Humanoid.PlatformStand = false end end end) mouse.KeyUp:connect(function(key) keysDown[key] = nil end) local function updateFly() if not flyToggled then return end lastForward = forward lastSide = side forward = 0 side = 0 if keysDown.w then forward = forward + 1 end if keysDown.s then forward = forward - 1 end if keysDown.a then side = side - 1 end if keysDown.d then side = side + 1 end canFly = (forward ~= 0 or side ~= 0) if canFly then stanceToggle = "Floating" turnBG.Parent = root floatBP.Parent = nil flyBV.Parent = root flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end else floatBP.position = root.Position floatBP.Parent = root flySpeed = flySpeed - 1 if flySpeed < 0 then flySpeed = 0 end end local camCF = cam.CoordinateFrame local in_forward = canFly and forward or lastForward local in_side = canFly and side or lastSide flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, in_forward * 0.2, 0).p) - camCF.p) * flySpeed turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, 0) end game:service'RunService'.RenderStepped:connect(function() if flyToggled then pchar.Humanoid.PlatformStand = true end updateFly() end) ------------------------------- mouse.KeyDown:connect(function(key) if key == "q" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true function FindNearestTorso(Position,Distance,SinglePlayer) if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end local List = {} for i,v in pairs(workspace:GetChildren())do if v:IsA("Model")then if v:findFirstChild("Torso")then if v ~= char then if(v.Torso.Position -Position).magnitude <= Distance then table.insert(List,v) end end end end end return List end z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://232213955" z.Pitch = 1 z.Volume = 1 wait(0.2) z:Play() sp = Instance.new("Part",rarm) sp.Anchored = true sp.CanCollide = false sp.Locked = true sp.Transparency = 0 sp.Material = "Neon" sp.Size = Vector3.new(1,1,1) sp.TopSurface = "SmoothNoOutlines" sp.BottomSurface = "SmoothNoOutlines" sp.BrickColor = BrickColor.new("Bright red") spm = Instance.new("SpecialMesh",sp) spm.MeshType = "Sphere" spm.Scale = Vector3.new(21,21,21) sp2 = Instance.new("Part", rarm) sp2.Name = "Energy" sp2.BrickColor = BrickColor.new("Bright red") sp2.Size = Vector3.new(1, 1, 1) sp2.Shape = "Ball" sp2.CanCollide = false sp2.Anchored = true sp2.Locked = true sp2.TopSurface = 0 sp2.BottomSurface = 0 sp2.Transparency = 1 spm2 = Instance.new("SpecialMesh",sp2) spm2.MeshId = "rbxassetid://9982590" spm2.Scale = Vector3.new(2,2,2) for i = 1, 20 do spm.Scale = spm.Scale - Vector3.new(1,1,1) sp.CFrame = root.CFrame*CFrame.new(0,1,-2) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) if Debounces.on == false then break end rs:wait() end for i = 1, 100, 20 do rs:wait() sp.CFrame = root.CFrame*CFrame.new(0,1,-2) end for i = 1, 20 do sp.CFrame = root.CFrame*CFrame.new(0,1,-2) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) if Debounces.on == false then break end rs:wait() end sp.Transparency = 1 for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) if Debounces.on == false then break end rs:wait() end wait(1) sp.Transparency = 0 sp2.Transparency = 0.84 for i = 1, 20 do --spm.Scale = spm.Scale - Vector3.new(1,1,1) sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) if Debounces.on == false then break end rs:wait() end for i = 1, 2880, 50 do rs:wait() sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) rs:wait() end sp:Destroy() sp2:Destroy() local X = Instance.new("Part",char) local O = Instance.new("ObjectValue",X) O.Name = "creator" X.Locked = true X.Name = "Shell" X.Anchored = false X.CanCollide = false X.Transparency = 0 X.Reflectance = 0 X.BottomSurface = 0 X.TopSurface = 0 X.Shape = 0 local V = Instance.new("ObjectValue",X) V.Value = char V.Name = "creator" X.BrickColor = BrickColor.new("Bright red") X.Size = Vector3.new(2,2,2) X.Material = "Neon" local Z = Instance.new("SpecialMesh",X) Z.MeshType = "Sphere" Z.Scale = Vector3.new(0.5,0.5,1) X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) local bv = Instance.new("BodyVelocity",X) bv.maxForce = Vector3.new(99999,99999,99999) X.CFrame = CFrame.new(X.Position,mouse.Hit.p) bv.velocity = X.CFrame.lookVector*65 Explode = X.Touched:connect(function(hit) if hit ~= char and hit.Name ~= "Shell" then local cf = X.CFrame bv:Destroy() X.Anchored = true Z:Remove() Explode:disconnect() X.Size = Vector3.new(3,3,3) X.Touched:connect(function(hit) end) X.CanCollide = false local part3 = Instance.new("Part", rarm) part3.Anchored=true part3.CanCollide=false part3.Locked = true part3.TopSurface = "SmoothNoOutlines" part3.BottomSurface = "SmoothNoOutlines" part3.FormFactor='Custom' part3.Size=Vector3.new(1,1, 1) part3.CFrame=X.CFrame part3.Transparency=0 part3.BrickColor=BrickColor.new("Bright red") local mesh3 = Instance.new("SpecialMesh",part3) mesh3.MeshType = "Sphere" mesh3.Scale = Vector3.new(1,1,1) --debris:AddItem(X,8) local part4 = Instance.new("Part", rarm) part4.Material = "Neon" part4.Anchored=true part4.CanCollide=false part4.Locked = true part4.TopSurface = "SmoothNoOutlines" part4.BottomSurface = "SmoothNoOutlines" part4.FormFactor='Custom' part4.Size=Vector3.new(1,1, 1) part4.CFrame=X.CFrame part4.Transparency=0 part4.BrickColor=BrickColor.new("Hot pink") local mesh4 = Instance.new("SpecialMesh",part4) mesh4.MeshType = "Sphere" mesh4.Scale = Vector3.new(.5,.5,.5) local part7 = Instance.new("Part", rarm) part7.Material = "Neon" part7.Anchored=true part7.CanCollide=false part7.Locked = true part7.TopSurface = "SmoothNoOutlines" part7.BottomSurface = "SmoothNoOutlines" part7.FormFactor='Custom' part7.Size=Vector3.new(1,1, 1) part7.CFrame=X.CFrame part7.Transparency=0 part7.BrickColor=BrickColor.new("Really red") local mesh7 = Instance.new("SpecialMesh",part7) mesh7.MeshType = "Sphere" mesh7.Scale = Vector3.new(0.1, 0.1, 0.1) --[[X.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) wait(.3) end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) wait(.3) end end end end) part3.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) wait(.3) end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) wait(.3) end end end end)]]-- for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do if v:FindFirstChild('Humanoid') then v.Humanoid:TakeDamage(math.random(60,90)) v.Humanoid.PlatformStand = true v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 end end local acos = math.acos local sqrt = math.sqrt local Vec3 = Vector3.new local fromAxisAngle = CFrame.fromAxisAngle local function toAxisAngle(CFr) local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() local Angle = math.acos((R00+R11+R22-1)/2) local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 A = A == 0 and 0.00001 or A local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 B = B == 0 and 0.00001 or B local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 C = C == 0 and 0.00001 or C local x = (R21-R12)/sqrt(A) local y = (R02-R20)/sqrt(B) local z = (R10-R01)/sqrt(C) return Vec3(x,y,z),Angle end function ApplyTrig(Num,Func) local Min,Max = Func(0),Func(1) local i = Func(Num) return (i-Min)/(Max-Min) end function LerpCFrame(CFrame1,CFrame2,Num) local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num end function Crater(Torso,Radius) Spawn(function() local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) local Ignore = {} for i,v in pairs(game:GetService("Players"):GetPlayers()) do if v.Character ~= nil then Ignore[#Ignore+1] = v.Character end end local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) if Hit == nil then return end local Parts = {} for i = 1,360,10 do local P = Instance.new("Part",Torso.Parent) P.Anchored = true P.FormFactor = "Custom" P.BrickColor = Hit.BrickColor P.Material = Hit.Material P.TopSurface = "Smooth" P.BottomSurface = "Smooth" P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} if math.random(0,5) == 0 then -- rubble local P = Instance.new("Part",Torso.Parent) P.Anchored = true P.FormFactor = "Custom" P.BrickColor = Hit.BrickColor P.Material = Hit.Material P.TopSurface = "Smooth" P.BottomSurface = "Smooth" P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} end end for i = 0,1,0.05 do for i2,v in pairs(Parts) do v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) end wait(0.02) end for i,v in pairs(Parts) do if v[1].Size.X > 2.1 then v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) end v[1].Anchored = false end for i = 0,1,0.05 do for i2,v in pairs(Parts) do v[1].Transparency = i if i == 1 then v[1]:Destroy() elseif i >= 0.25 then v[1].CanCollide = false end end wait(0.02) end Parts = nil end) end ROW = function(out, trans, s, wt, t, ang, plus) for i = 1, 360, 360/t do local c = Instance.new("Part", game.Workspace) c.FormFactor = 3 c.TopSurface = 0 c.BottomSurface = 0 c.Size = s c.Anchored = true c.CanCollide = wt c.Material=workspace.Base.Material c.Transparency = trans c.BrickColor = workspace.Base.BrickColor c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang c.Locked=true game.Debris:AddItem(c,15) end end Part = function(x,y,z,color,tr,cc,an,parent) local p = Instance.new('Part',parent or Weapon) p.formFactor = 'Custom' p.Size = Vector3.new(x,y,z) p.BrickColor = BrickColor.new(color) p.CanCollide = cc p.Transparency = tr p.Anchored = an p.TopSurface,p.BottomSurface = 0,0 p.Locked=true p:BreakJoints() return p end Mesh = function(par,num,x,y,z) local msh = _ if num == 1 then msh = Instance.new("CylinderMesh",par) elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 elseif num == 3 then msh = Instance.new("BlockMesh",par) elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num end msh.Scale = Vector3.new(x,y,z) return msh end function explosion(col1,col2,cfr,sz,rng,dmg) local a= Part(1,1,1,col1,.5,false,true,workspace) local a2= Part(1,1,1,col2,.5,false,true,workspace) local a3= Part(1,1,1,col2,.5,false,true,workspace) v1,v2,v3=sz.x,sz.y,sz.z local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) local m2= Mesh(a2,3,v1/3,v2/3,v3/3) local m3= Mesh(a3,3,v1/3,v2/3,v3/3) a.CFrame=cfr a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) Spawn(function() while wait() do if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) a.Transparency=a.Transparency+0.05 a2.Transparency=a2.Transparency+0.05 a3.Transparency=a3.Transparency+0.05 end end) end Crater(X,20) ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) z = Instance.new("Sound",X) z.SoundId = "rbxassetid://231917744" z.Pitch = .5 z.Volume = 10 z1 = Instance.new("Sound",X) z1.SoundId = "rbxassetid://231917744" z1.Pitch = .5 z1.Volume = 10 z2 = Instance.new("Sound",X) z2.SoundId = "rbxassetid://231917744" z2.Pitch = .5 z2.Volume = 10 z3 = Instance.new("Sound",X) z3.SoundId = "rbxassetid://245537790" z3.Pitch = .7 z3.Volume = 1 z4 = Instance.new("Sound",X) z4.SoundId = "rbxassetid://245537790" z4.Pitch = .7 z4.Volume = 1 wait(0.1) z:Play() z1:Play() z2:Play() z3:Play() z4:Play() local part=Instance.new('Part',rarm) part.Anchored=true part.CanCollide=false part.Locked = true part.FormFactor='Custom' part.Size=Vector3.new(1,1,1) part.CFrame=X.CFrame*CFrame.new(0,0,0) part.Transparency=0 part.BrickColor=BrickColor.new('Really red') local mesh=Instance.new('SpecialMesh',part) mesh.MeshId='http://www.roblox.com/asset/?id=20329976' mesh.Scale=Vector3.new(2,2,2) local part2=part:clone() part2.Parent = rarm part2.BrickColor=BrickColor.new("Bright red") local part5=part:clone() part5.Parent = rarm part5.BrickColor=BrickColor.new("Really red") local part6=part:clone() part6.Parent = rarm part6.BrickColor=BrickColor.new("Black") local mesh2=mesh:clone() mesh2.Parent=part2 mesh2.Scale=Vector3.new(3, 3, 3) local mesh5=mesh:clone() mesh5.Parent=part5 mesh5.Scale=Vector3.new(3, 3, 3) local mesh6=mesh:clone() mesh6.Parent=part6 mesh6.Scale=Vector3.new(3, 3, 3) local blast = Instance.new("Part", rarm) blast.BrickColor = BrickColor.new("Really red") blast.Anchored = true blast.CanCollide = false blast.Locked = true blast.Size = Vector3.new(1, 1, 1) blast.TopSurface = "Smooth" blast.BottomSurface = "Smooth" blast.Transparency = 0 blast.CFrame = HandCF local bm = Instance.new("SpecialMesh", blast) bm.Scale = Vector3.new(5,1,5) bm.MeshId = "rbxassetid://3270017" local blast2 = Instance.new("Part", rarm) blast2.BrickColor = BrickColor.new("Really red") blast2.Anchored = true blast2.CanCollide = false blast2.Locked = true blast2.Size = Vector3.new(1, 1, 1) blast2.TopSurface = "Smooth" blast2.BottomSurface = "Smooth" blast2.Transparency = 0 blast2.CFrame = HandCF local bm2 = Instance.new("SpecialMesh", blast2) bm2.Scale = Vector3.new(3,1,3) bm2.MeshId = "rbxassetid://3270017" local blast3 = Instance.new("Part", rarm) blast3.BrickColor = BrickColor.new("Really red") blast3.Anchored = true blast3.CanCollide = false blast3.Locked = true blast3.Size = Vector3.new(1, 1, 1) blast3.TopSurface = "Smooth" blast3.BottomSurface = "Smooth" blast3.Transparency = 0 blast3.CFrame = HandCF local bm3 = Instance.new("SpecialMesh", blast3) bm3.Scale = Vector3.new(3,1,3) bm3.MeshId = "rbxassetid://3270017" for i = 1,120 do rs:wait() X.Transparency = X.Transparency + (1/120) part.Transparency = part.Transparency + (1/120) part2.Transparency = part2.Transparency + (1/120) part3.Transparency = part3.Transparency + (1/120) part4.Transparency = part4.Transparency + (1/120) part5.Transparency = part5.Transparency + (1/120) part6.Transparency = part6.Transparency + (1/120) part7.Transparency = part7.Transparency + (1/120) blast.Transparency = blast.Transparency + (1/120) blast2.Transparency = blast2.Transparency + (1/120) blast3.Transparency = blast3.Transparency + (1/120) X.Size = X.Size + Vector3.new(.8,.8,.8) --part3.Size = part3.Size + Vector3.new(3,3,3) mesh.Scale = mesh.Scale + Vector3.new(1,.2,1) mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1) mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3) mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7) mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6) mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2) mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4) bm.Scale = bm.Scale + Vector3.new(6,6,.2) bm2.Scale = bm2.Scale + Vector3.new(4,4,.2) bm3.Scale = bm3.Scale + Vector3.new(4,4,.2) X.CFrame = cf part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) part3.CFrame=X.CFrame part4.CFrame=X.CFrame part7.CFrame=X.CFrame part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) rs:wait() end X:Destroy() part:Destroy() part2:Destroy() part3:Destroy() part4:Destroy() part5:Destroy() part6:Destroy() blast:Destroy() blast2:Destroy() blast3:Destroy() z:Destroy() z1:Destroy() z2:Destroy() z3:Destroy() z4:Destroy() end end) for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) if Debounces.on == false then break end rs:wait() end if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.NoIdl = false Debounces.on = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "e" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5} z = Instance.new("Sound", rarm) z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 z.Volume = .6 z.Pitch = pt[math.random(1,#pt)] z.Looped = false z:Play() Debounces.RPunch = true Debounces.LPunch = true Debounces.ks = true Debounces.ks2 = true for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z2 = Instance.new("Sound", larm) z2.SoundId = "http://www.roblox.com/asset/?id=206083107" z2.Volume = .6 z2.Pitch = pt[math.random(1,#pt)] z2.Looped = false z2:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z3 = Instance.new("Sound", rarm) z3.SoundId = "http://www.roblox.com/asset/?id=206083107" z3.Volume = 0.6 z3.Pitch = pt[math.random(1,#pt)] z3.Looped = false z3:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z4 = Instance.new("Sound", larm) z4.SoundId = "http://www.roblox.com/asset/?id=206083107" z4.Volume = .6 z4.Pitch = pt[math.random(1,#pt)] z4.Looped = false z4:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z5 = Instance.new("Sound", rarm) z5.SoundId = "http://www.roblox.com/asset/?id=206083107" z5.Volume = .6 z5.Pitch = pt[math.random(1,#pt)] z5.Looped = false z5:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) if Debounces.on == false then break end wait() end z6 = Instance.new("Sound", larm) z6.SoundId = "http://www.roblox.com/asset/?id=206083107" z6.Volume = .6 z6.Pitch = pt[math.random(1,#pt)] z6.Looped = false z6:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z7 = Instance.new("Sound", rarm) z7.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 z7.Volume = .6 z7.Pitch = pt[math.random(1,#pt)] z7.Looped = false z7:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z8 = Instance.new("Sound", larm) z8.SoundId = "http://www.roblox.com/asset/?id=206083107" z8.Volume = .6 z8.Pitch = pt[math.random(1,#pt)] z8.Looped = false z8:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z9 = Instance.new("Sound", rarm) z9.SoundId = "http://www.roblox.com/asset/?id=206083107" z9.Volume = 0.6 z9.Pitch = pt[math.random(1,#pt)] z9.Looped = false z9:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z10 = Instance.new("Sound", larm) z10.SoundId = "http://www.roblox.com/asset/?id=206083107" z10.Volume = .6 z10.Pitch = pt[math.random(1,#pt)] z10.Looped = false z10:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z11 = Instance.new("Sound", rarm) z11.SoundId = "http://www.roblox.com/asset/?id=206083107" z11.Volume = .6 z11.Pitch = pt[math.random(1,#pt)] z11.Looped = false z11:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) if Debounces.on == false then break end wait() end z12 = Instance.new("Sound", larm) z12.SoundId = "http://www.roblox.com/asset/?id=206083107" z12.Volume = .6 z12.Pitch = pt[math.random(1,#pt)] z12.Looped = false z12:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z13 = Instance.new("Sound", rarm) z13.SoundId = "http://www.roblox.com/asset/?id=206083107" z13.Volume = 0.6 z13.Pitch = pt[math.random(1,#pt)] z13.Looped = false z13:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z14 = Instance.new("Sound", larm) z14.SoundId = "http://www.roblox.com/asset/?id=206083107" z14.Volume = .6 z14.Pitch = pt[math.random(1,#pt)] z14.Looped = false z14:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z15 = Instance.new("Sound", rarm) z15.SoundId = "http://www.roblox.com/asset/?id=206083107" z15.Volume = .6 z15.Pitch = pt[math.random(1,#pt)] z15.Looped = false z15:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) if Debounces.on == false then break end wait() end z16 = Instance.new("Sound", larm) z16.SoundId = "http://www.roblox.com/asset/?id=206083107" z16.Volume = .6 z16.Pitch = pt[math.random(1,#pt)] z16.Looped = false z16:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z17 = Instance.new("Sound", rarm) z17.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 z17.Volume = .6 z17.Pitch = pt[math.random(1,#pt)] z17.Looped = false z17:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z18 = Instance.new("Sound", larm) z18.SoundId = "http://www.roblox.com/asset/?id=206083107" z18.Volume = .6 z18.Pitch = pt[math.random(1,#pt)] z18.Looped = false z18:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z19 = Instance.new("Sound", rarm) z19.SoundId = "http://www.roblox.com/asset/?id=206083107" z19.Volume = 0.6 z19.Pitch = pt[math.random(1,#pt)] z19.Looped = false z19:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z20 = Instance.new("Sound", larm) z20.SoundId = "http://www.roblox.com/asset/?id=206083107" z20.Volume = .6 z20.Pitch = pt[math.random(1,#pt)] z20.Looped = false z20:Play() for i = 1, 3 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) if Debounces.on == false then break end wait() end z:Destroy() z2:Destroy() z3:Destroy() z4:Destroy() z5:Destroy() z6:Destroy() z7:Destroy() z8:Destroy() z9:Destroy() z10:Destroy() z11:Destroy() z12:Destroy() z13:Destroy() z14:Destroy() z15:Destroy() z16:Destroy() z17:Destroy() z18:Destroy() z19:Destroy() z20:Destroy() Debounces.LPunch = false Debounces.RPunch = false Debounces.ks = false Debounces.ks2 = false if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.on = false Debounces.NoIdl = false end end end end) ------------------------------- mouse.KeyDown:connect(function(key) if key == "t" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true Debounces.ks = true kik = rleg.Touched:connect(function(ht) hit = ht.Parent if ht and hit:IsA("Model") then if hit:FindFirstChild("Humanoid") then if hit.Name ~= p.Name then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- if Debounces.ks==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Volume = 1 z:Play() Debounces.ks=false end hit:FindFirstChild("Humanoid"):TakeDamage(2) hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 --Debounces.Slashed = false --end end end elseif ht and hit:IsA("Hat") then if hit.Parent.Name ~= p.Name then if hit.Parent:FindFirstChild("Humanoid") then --[[if Debounces.Slashing == true and Debounces.Slashed == false then Debounces.Slashed = true]]-- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2) hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 --Debounces.Slashed = false --end end end end end) for i = 1,20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) if Debounces.on == false then break end rs:wait() end kik:disconnect() if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.NoIdl = false Debounces.on = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "y" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.on = true Debounces.NoIdl = true for i = 1, 15 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait(2.7) end x = Instance.new("Sound",char) x.SoundId = "rbxassetid://228343271" x.Pitch = 1 x.Volume = .8 wait(.1) x:Play() Debounces.on = false Debounces.Here = false shot = shot + 1 local rng = Instance.new("Part", larm) rng.Anchored = true rng.BrickColor = BrickColor.new("Bright red") rng.CanCollide = false rng.FormFactor = 3 rng.Name = "Ring" rng.Size = Vector3.new(1, 1, 1) rng.Transparency = 0.35 rng.TopSurface = 0 rng.BottomSurface = 0 rng2 = rng:clone() rng3 = rng2:clone() rng4 = rng2:clone() local rngm = Instance.new("SpecialMesh", rng) rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" rngm.Scale = Vector3.new(10, 10, 1) rngm2 = rngm:clone() rngm2.Scale = Vector3.new(5, 5, 3) rngm3=rngm2:clone() rngm3.Parent = rng3 rngm3.Scale = Vector3.new(8, 8, 1) rngm4 = rngm2:clone() rngm4.Parent = rng4 rngm4.Scale = Vector3.new(6, 6, 1) local bem = Instance.new("Part", larm) bem.Anchored = true bem.BrickColor = BrickColor.new("Really red") bem.CanCollide = false bem.FormFactor = 3 bem.Name = "Beam" .. shot bem.Size = Vector3.new(1, 1, 1) bem.Transparency = 0.35 bem.TopSurface = 0 bem.BottomSurface = 0 local bemm = Instance.new("SpecialMesh", bem) bemm.MeshType = 4 bemm.Scale = Vector3.new(1, 4, 4) local out = Instance.new("Part", larm) out.Anchored = true out.BrickColor = BrickColor.new("Really red") out.CanCollide = false out.FormFactor = 3 out.Name = "Out" out.Size = Vector3.new(4, 4, 4) out.Transparency = 0.35 out.TopSurface = 0 out.BottomSurface = 0 local outm = Instance.new("SpecialMesh", out) outm.MeshId = "http://www.roblox.com/asset/?id=1033714" outm.Scale = Vector3.new(6, 4, 6) local bnd = Instance.new("Part", larm) bnd.Anchored = true bnd.BrickColor = BrickColor.new("Really red") bnd.CanCollide = false bnd.FormFactor = 3 bnd.Name = "Bend" bnd.Size = Vector3.new(1, 1, 1) bnd.Transparency = 1 bnd.TopSurface = 0 bnd.BottomSurface = 0 local bndm = Instance.new("SpecialMesh", bnd) bndm.MeshType = 3 bndm.Scale = Vector3.new(8, 8, 8) out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) Debounces.Shewt = true coroutine.wrap(function() for i = 1, 20, 0.2 do rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) rng.Transparency = i/20 rng3.Transparency = 1/24 rng4.Transparency = i/26 wait() end wait() rng:Destroy() end)() if Debounces.Shewt == true then larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht) hit = ht.Parent if hit:IsA("Model") and hit:findFirstChild("Humanoid") then if HasntTouched(hit.Name) == true and deb == false then deb = true coroutine.wrap(function() hit:FindFirstChild("Humanoid").PlatformStand = true hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) end)() table.insert(Touche, hit.Name) deb = false end elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then if HasntTouched(hit.Parent.Name) == true and deb == false then deb = true coroutine.wrap(function() hit.Parent:FindFirstChild("Humanoid").PlatformStand = true hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 wait(1) hit.Parent:FindFirstChild("Humanoid").PlatformStand = false end)() table.insert(Touche, hit.Parent.Name) deb = false for i, v in pairs(Touche) do print(v) end end end end) end for i = 0, 260, 8 do bem.Size = Vector3.new(i, 3, 3) out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) bnd.Size = Vector3.new(1,1,1) bndm.Scale = Vector3.new(8,8,8) if i % 10 == 0 then local newRng = rng2:Clone() newRng.Parent = larm newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) local newRngm = rngm2:clone() newRngm.Parent=newRng coroutine.wrap(function() for i = 1, 10, 0.2 do newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) newRng.Transparency = i/10 wait() end wait() newRng:Destroy() end)() end wait() end wait() Debounces.Shewt = false bem:Destroy() out:Destroy() bnd:Destroy() Debounces.Ready = false for i, v in pairs(Touche) do table.remove(Touche, i) end wait() table.insert(Touche, char.Name) Debounces.NoIdl = false if Debounces.CanAttack == false then Debounces.CanAttack = true end end end end) ---------------------------------------------------- --[[mouse.KeyDown:connect(function(key) if key == "y" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true local shell = Instance.new("Part",torso) shell.BrickColor = BrickColor.new("Bright red") shell.Anchored = false shell.CanCollide = false shell.Locked = true shell.TopSurface = "SmoothNoOutlines" shell.BottomSurface = "SmoothNoOutlines" shell.Size = Vector3.new(1.2,1.2,1.2) shell.FormFactor = 3 local shellm = Instance.new("SpecialMesh",shell) shellm.MeshType = "Sphere" shellm.Scale = Vector3.new(1.2,1.2,1.2) Omega = function() local X = Instance.new("Part",char) local O = Instance.new("ObjectValue",X) O.Name = "creator" X.Locked = true X.Name = "Shell" X.Anchored = false X.CanCollide = false X.Transparency = 0.5 X.Reflectance = 0 X.BottomSurface = 0 X.TopSurface = 0 X.Shape = 0 local V = Instance.new("ObjectValue",X) V.Value = char V.Name = "creator" X.BrickColor = BrickColor.new("Bright red") X.Size = Vector3.new(40,40,40) --X.Material = "Neon" local Z = Instance.new("SpecialMesh",X) Z.MeshType = "Sphere" Z.Scale = Vector3.new(0.2,0.2,0.2) X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) local bv = Instance.new("BodyVelocity",X) bv.maxForce = Vector3.new(99999,99999,99999) X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) bv.velocity = root.CFrame.lookVector*10 Explode = X.Touched:connect(function(hit) if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart}") then local cf = X.CFrame bv:Destroy() X.Anchored = true Z:Remove() Explode:disconnect() X.Size = Vector3.new(3,3,3) X.Touched:connect(function(hit) end) X.CanCollide = false for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do if v:FindFirstChild('Humanoid') then v.Humanoid:TakeDamage(math.random(80,120)) end end for i = 1, (40) do rs:wait() X.Transparency = X.Transparency + (1/40) X.Size = X.Size + Vector3.new(1,1,1) X.CFrame = root.CFrame * CFrame.new(0,0,-10) end X:Destroy() end end) end for i = 1,200 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) if Debounces.on == false then break end rs:wait() end for i = 1,30 do shell.CFrame = torso.CFrame * CFrame.new(0,8,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) if Debounces.on == false then break end rs:wait() end for i = 1,40 do shell.CFrame = torso.CFrame * CFrame.new(0,20,0) shell.Size = shell.Size + Vector3.new(1,1,1) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) if Debounces.on == false then break end rs:wait() end for i = 1,40 do shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) if Debounces.on == false then break end rs:wait() end for i = 1,60 do shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) if Debounces.on == false then break end rs:wait() end for i = 1,60 do shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) shell.Size = shell.Size + Vector3.new(1,1,1) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) if Debounces.on == false then break end rs:wait() end if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.NoIdl = false Debounces.on = false end end end end)]]-- ---------------------------------------------------- Charging = false mouse.KeyDown:connect(function(key) if key == "r" then end end) ---------------------------------------------------- mouse.KeyUp:connect(function(key) if key == "r" then if Charging == true then Charging = false pt2:remove() bl:remove() if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.NoIdl = false Debounces.on = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if key == "g" then if Debounces.CanAttack == true then Debounces.CanAttack = false Debounces.NoIdl = true Debounces.on = true local shell = Instance.new("Part",torso) shell.BrickColor = BrickColor.new("Bright red") shell.Anchored = true shell.CanCollide = false shell.Locked = true shell.TopSurface = "SmoothNoOutlines" shell.BottomSurface = "SmoothNoOutlines" shell.Size = Vector3.new(1,1,1) shellm = Instance.new("SpecialMesh",shell) shellm.MeshType = "Sphere" shellm.Scale = Vector3.new(1,1,1) local shell2 = Instance.new("Part",torso) shell2.BrickColor = BrickColor.new("Bright red") shell2.Anchored = true shell2.CanCollide = false shell2.Locked = true shell2.TopSurface = "SmoothNoOutlines" shell2.BottomSurface = "SmoothNoOutlines" shell2.Size = Vector3.new(1,1,1) shellm2 = Instance.new("SpecialMesh",shell2) shellm2.MeshType = "Sphere" shellm2.Scale = Vector3.new(1,1,1) function FindNearestTorso(Position,Distance,SinglePlayer) if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end local List = {} for i,v in pairs(workspace:GetChildren())do if v:IsA("Model")then if v:findFirstChild("Torso")then if v ~= char then if(v.Torso.Position -Position).magnitude <= Distance then table.insert(List,v) end end end end end return List end Shell = function() local X = Instance.new("Part",char) local O = Instance.new("ObjectValue",X) O.Name = "creator" X.Locked = true X.Name = "Shell" X.Anchored = false X.CanCollide = false X.Transparency = 0 X.Reflectance = 0 X.BottomSurface = 0 X.TopSurface = 0 X.Shape = 0 local V = Instance.new("ObjectValue",X) V.Value = char V.Name = "creator" X.BrickColor = BrickColor.new("Bright red") X.Size = Vector3.new(1,1,1) --X.Material = "Neon" local Z = Instance.new("SpecialMesh",X) Z.MeshType = "Sphere" Z.Scale = Vector3.new(1,1,1) X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) local bv = Instance.new("BodyVelocity",X) bv.maxForce = Vector3.new(99999,99999,99999) X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) bv.velocity = root.CFrame.lookVector*65 Explode = X.Touched:connect(function(hit) if hit ~= char and hit.Name ~= "Shell" and hit:IsA("Part") or hit:IsA("BasePart}") then local cf = X.CFrame bv:Destroy() X.Anchored = true Z:Remove() Explode:disconnect() X.Size = Vector3.new(3,3,3) X.Touched:connect(function(hit) end) X.CanCollide = false for i,v in pairs(FindNearestTorso(X.CFrame.p,40))do if v:FindFirstChild('Humanoid') then v.Humanoid:TakeDamage(math.random(6,12)) end end for i = 1, (40) do rs:wait() X.Transparency = X.Transparency + (1/40) X.Size = X.Size + Vector3.new(1,1,1) X.CFrame = cf end X:Destroy() end end) end Shell() for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell.Transparency = 0 shell2.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell2.Transparency = 0 shell.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell.Transparency = 0 shell2.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell2.Transparency = 0 shell.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell.Transparency = 0 shell2.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.5) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell2.Transparency = 0 shell.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell.Transparency = 0 shell2.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell2.Transparency = 0 shell.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell.Transparency = 0 shell2.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell2.Transparency = 0 shell.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end Shell() shell.Transparency = 0 shell2.Transparency = 1 for i = 1, 10 do shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) if Debounces.on == false then break end rs:wait() end shell.Transparency = 1 if Debounces.CanAttack == false then Debounces.CanAttack = true Debounces.NoIdl = false Debounces.on = false end end end end) ---------------------------------------------------- Search = false mouse.KeyDown:connect(function(key) if key == "n" then if Search == false then Search = true for i,v in pairs(game.Players:getPlayers()) do if v.Name~=char.Name then for j,k in pairs(v.Character:GetChildren()) do if k:IsA("BasePart") and k.Transparency >= 1 then bawx=Instance.new("SelectionBox",cam) bawx.Color = BrickColor.new("Bright red") bawx.Transparency = .5 bawx.Adornee = k end end end end elseif Search == true then Search = false for i, v in pairs(cam:GetChildren()) do if v:IsA("SelectionBox") then v:Destroy() end end end end end) ---------------------------------------------------- Grab = false mouse.KeyDown:connect(function(key) if key == "z" then Debounces.on = true Debounces.NoIdl = true Debounces.ks = true if Grab == false then gp = nil for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) if Debounces.on == false then break end rs:wait() end con1=larm.Touched:connect(function(hit) -- this is grab ht = hit.Parent hum1=ht:FindFirstChild('Humanoid') if hum1 ~= nil then if Debounces.ks==true then z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Volume = 1 z:Play() Debounces.ks=false end hum1.PlatformStand=true gp = ht Grab = true asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0)) asd.Parent = larm asd.Name = "asd" asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0) --[[elseif hum1 == nil then con1:disconnect() wait() return]]-- end end) for i = 1, 20 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) if Debounces.on == false then break end rs:wait() end if hum1 == nil then Debounces.on = false Debounces.NoIdl = false end con1:disconnect() elseif Grab == true then Grab = false Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end Punch() z = Instance.new("Sound",hed) z.SoundId = "rbxassetid://169380525" z.Pitch = ptz[math.random(1,#ptz)] z.Volume = 1 z:Play() for i = 1, 10 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) if Debounces.on == false then break end rs:wait() end con1:disconnect() Debounces.on = false Debounces.NoIdl = false if gp ~= nil then gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140 for i,v in pairs(larm:GetChildren()) do if v.Name == "asd" and v:IsA("Weld") then v:Remove() end end --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) bv.maxForce = Vector3.new(400000, 400000, 400000) bv.P = 125000 bv.velocity = char.Head.CFrame.lookVector * 200]]-- hum1=nil ht=nil Debounces.on = false Debounces.NoIdl = false elseif ht == nil then wait() Grab = false Debounces.on = false Debounces.NoIdl = false end end end end) ---------------------------------------------------- mouse.KeyDown:connect(function(key) if string.byte(key) == 52 then char.Humanoid.WalkSpeed = 60 end end) mouse.KeyUp:connect(function(key) if string.byte(key) == 52 then char.Humanoid.WalkSpeed = 8 end end) ------------------------------- local animpose = "Idle" local lastanimpose = "Idle" local sine = 0 local change = 1 local val = 0 local ffing = false ------------------------------- game:GetService("RunService").RenderStepped:connect(function() --[[if char.Humanoid.Jump == true then jump = true else jump = false end]] char.Humanoid.FreeFalling:connect(function(f) if f then ffing = true else ffing = false end end) sine = sine + change if jumpn == true then animpose = "Jumping" elseif ffing == true then animpose = "Freefalling" elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then animpose = "Idle" elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then animpose = "Walking" elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then animpose = "Running" end if animpose ~= lastanimpose then sine = 0 if Debounces.NoIdl == false then if animpose == "Idle" then for i = 1, 2 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) end elseif animpose == "Walking" then for i = 1, 2 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) end elseif animpose == "Running" then for i = 1, 2 do rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4) wait() end end else end end lastanimpose = animpose if Debounces.NoIdl == false then if animpose == "Idle" then change = 0.5 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8+2*math.cos(sine/14))), 0.4) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8-2*math.cos(sine/14))), 0.4) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) elseif animpose == "Walking" then change = 1 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) elseif animpose == "Running" then change = 1 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2) larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) end end end) function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module --[[Part0 = Vector3 (Start pos) Part1 = Vector3 (End pos) Times = number (Amount of lightning parts) Offset = number (Offset) Color = color (brickcolor value) Thickness = number (thickness) Trans = number (transparency) ]]-- local magz = (Part0 - Part1).magnitude local curpos = Part0 local trz = {-Offset,Offset} for i=1,Times do local li = Instance.new("Part", torso) li.Name = "Lightning" li.TopSurface =0 li.Material = "Neon" li.BottomSurface = 0 li.Anchored = true li.Locked = true li.Transparency = Trans or 0.4 li.BrickColor = BrickColor.new("Really red") li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet if Times == i then local magz2 = (curpos - Part1).magnitude li.Size = Vector3.new(0.3,0.3,0.3) li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) else li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) end curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,.2) end end BodyParts = {} -- Parts to emit lightning effects from for _, v in pairs(char:GetChildren()) do if v:IsA("Part") then table.insert(BodyParts, v) end end Bounding = {} -- Calculate the bounding boxes for _, v in pairs(BodyParts) do local temp = {X=nil, Y=nil, Z=nil} temp.X = v.Size.X/2 * 10 temp.Y = v.Size.Y/2 * 10 temp.Z = v.Size.Z/2 * 10 Bounding[v.Name] = temp --table.insert(Bounding, v.Name, temp) end hum.MaxHealth = 1000 while wait(math.random(5,10)/10) do -- Emit the Lightning effects randomly local Body1 = BodyParts[math.random(#BodyParts)] local Body2 = BodyParts[math.random(#BodyParts)] local Pos1 = Vector3.new( math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 ) local Pos2 = Vector3.new( math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 ) local SPos1 = Body1.Position + Pos1 local SPos2 = Body2.Position + Pos2 Lightning(SPos1, SPos2, 4, 3, "Bright red", .3, .56) end while wait(0.1) do hum.Health = hum.Health + 10 end
--[[ Desc: Radio group, a collection widget of radio buttons that only one of them can be selected. Author: SerDing Since: 2021/11/6 Alter: 2021/11/6 ]] ---@class System.Gui.Widget.RadioGroup local _RadioGroup = require("core.class")() function _RadioGroup:Ctor() end return _RadioGroup
object_tangible_item_publish_gift_magic_painting_2 = object_tangible_item_shared_publish_gift_magic_painting_2:new { } ObjectTemplates:addTemplate(object_tangible_item_publish_gift_magic_painting_2, "object/tangible/item/publish_gift_magic_painting_2.iff")
#!/usr/bin/env tarantool local test = require("sqltester") local yaml = require("yaml") local fio = require("fio") local ffi = require("ffi") test:plan(74) ffi.cdef[[ int dup(int oldfd); int dup2(int oldfd, int newfd); int close(int fd); int fsync(int fd); int fflush(int stream); ]] --!./tcltestrunner.lua -- 2005 July 28 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, never taking more than you give. -- ------------------------------------------------------------------------- -- This file implements regression tests for sql library. The -- focus of this file is testing the use of indices in WHERE clauses -- based on recent changes to the optimizer. -- -- $Id: where2.test,v 1.15 2009/02/02 01:50:40 drh Exp $ -- ["set","testdir",[["file","dirname",["argv0"]]]] -- ["source",[["testdir"],"\/tester.tcl"]] -- Build some test data -- test:do_test( "where2-1.0", function() test:execsql [[ CREATE TABLE t1(w int PRIMARY KEY, x int, y int, z int); START TRANSACTION; ]] for i=1,100 do local w, x, y, z w = i x = math.floor(math.log(i) / math.log(2)) y = (((i * i) + (2 * i)) + 1) z = (x + y) test:execsql(string.format("INSERT INTO t1 VALUES(%s,%s,%s,%s)", w, x, y, z)) end return test:execsql [[ COMMIT; CREATE INDEX i1xy ON t1(x,y); CREATE INDEX i1zyx ON t1(z,y,x); ]] end, { -- <where2-1.0> -- </where2-1.0> }) -- Do an SQL statement. Append the search count to the end of the result. -- local function count(sql) local sql_sort_count = box.stat.sql().sql_sort_count local r = test:execsql(sql) print("lol "..(box.stat.sql().sql_sort_count - sql_sort_count)) table.insert(r, box.stat.sql().sql_sort_count - sql_sort_count) return r end -- This procedure executes the SQL. Then it checks to see if the OP_Sort -- opcode was executed. If an OP_Sort did occur, then "sort" is appended -- to the result. If no OP_Sort happened, then "nosort" is appended. -- -- This procedure is used to check to make sure sorting is or is not -- occurring as expected. -- local function cksort(sql) local sort = "nosort" local sql_sort_count = box.stat.sql().sql_sort_count local data = test:execsql(sql) if sql_sort_count < box.stat.sql().sql_sort_count then sort = 'sort' end table.insert(data, sort) return data end -- This procedure executes the SQL. Then it appends to the result the -- "sort" or "nosort" keyword (as in the cksort procedure above) then -- it appends the name of the table and index used. -- -- This procedure executes the SQL. Then it appends -- the names of the table and index used -- local function queryplan(sql) local sort = "nosort" local sql_sort_count = box.stat.sql().sql_sort_count local data = test:execsql(sql) if sql_sort_count < box.stat.sql().sql_sort_count then sort = 'sort' end table.insert(data, sort) local eqp = test:execsql("EXPLAIN QUERY PLAN "..sql) for i,v in ipairs(eqp) do if i % 4 == 0 then local as, tab, idx = string.match(v, "TABLE (%w+ AS) (%w+) USING.*INDEX (%w+)") if as == nil then tab, idx = string.match(v, "TABLE (%w+) USING.*INDEX (%w+)") end if tab ~= nil then table.insert(data, tab) table.insert(data, idx) else as, tab = string.match(v, "TABLE (%w+ AS) (%w+)") if tab == nil then tab = string.match(v, "TABLE (%w+)") end if tab ~= nil then table.insert(data, tab) table.insert(data, '*') end end end end return data end -- local function queryplan(sql) -- sql_sort_count = 0 -- data = test:execsql(sql) -- if sql_sort_count -- then -- x = "sort" -- end -- table.insert(data,x) or data -- eqp = test:execsql("EXPLAIN QUERY PLAN "..sql.."") -- -- puts eqp=$eqp -- for _ in X(0, "X!foreach", [=[["a b c x",["eqp"]]]=]) do -- if X(83, "X!cmd", [=[["regexp"," TABLE (\\w+ AS )?(\\w+) USING.* INDEX (\\w+)\\y",["x"],"all","as","tab","idx"]]=]) -- then -- table.insert(data,tab, idx) or data -- elseif X(83, "X!cmd", [=[["expr","[regexp { TABLE (\\w+ AS )?(\\w+)\\y} $x all as tab]"]]=]) -- then -- table.insert(data,tab, "*") or data -- end -- end -- return data -- end -- Prefer a UNIQUE index over another index. -- test:do_test( "where2-1.1", function() return queryplan([[ SELECT * FROM t1 WHERE w=85 AND x=6 AND y=7396 ]]) end, { -- <where2-1.1> 85, 6, 7396, 7402, "nosort", "T1", "*" -- </where2-1.1> }) -- # Always prefer a rowid== constraint over any other index. -- # -- do_test where2-1.3 { -- queryplan { -- SELECT * FROM t1 WHERE w=85 AND x=6 AND y=7396 AND rowid=85 -- } -- } {85 6 7396 7402 nosort t1 *} -- When constrained by a UNIQUE index, the ORDER BY clause is always ignored. -- test:do_test( "where2-2.1", function() return queryplan([[ SELECT * FROM t1 WHERE w=85 ORDER BY random(); ]]) end, { -- <where2-2.1> 85, 6, 7396, 7402, "sort", "T1", "*" -- </where2-2.1> }) test:do_test( "where2-2.2", function() return queryplan([[ SELECT * FROM t1 WHERE x=6 AND y=7396 ORDER BY random(); ]]) end, { -- <where2-2.2> 85, 6, 7396, 7402, "sort", "T1", "I1XY" -- </where2-2.2> }) -- Ticket [65bdeb9739605cc22966f49208452996ff29a640] 2014-02-26 -- Make sure "ORDER BY random" does not gets optimized out. -- test:do_test( "where2-2.4", function() test:execsql [[ CREATE TABLE x1(a INTEGER PRIMARY KEY, b INT DEFAULT 1); WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<50) INSERT INTO x1 SELECT x, 1 FROM cnt; CREATE TABLE x2(x INTEGER PRIMARY KEY); INSERT INTO x2 VALUES(1); ]] local sql, out1, out2, out3 sql = "SELECT * FROM x1, x2 WHERE x=1 ORDER BY random()" out1 = test:execsql(sql) out2 = test:execsql(sql) out3 = test:execsql(sql) return ((out1 ~= out2) and (out2 ~= out3)) end, -- <where2-2.4> true -- </where2-2.4> ) test:do_execsql_test( "where2-2.5", [[ -- random() is not optimized out EXPLAIN SELECT * FROM x1, x2 WHERE x=1 ORDER BY random(); ]], { -- <where2-2.5> "/RANDOM/" -- </where2-2.5> }) test:do_execsql_test( "where2-2.5b", [[ -- random() is not optimized out EXPLAIN SELECT * FROM x1, x2 WHERE x=1 ORDER BY random(); ]], { -- <where2-2.5b> "/SorterOpen/" -- </where2-2.5b> }) -- MUST_WORK_TEST test:do_execsql_test( "where2-2.6", [[ -- other constant functions are optimized out EXPLAIN SELECT * FROM x1, x2 WHERE x=1 ORDER BY abs(5); ]], { -- <where2-2.6> "~/ABS/" -- </where2-2.6> }) test:do_execsql_test( "where2-2.6b", [[ -- other constant functions are optimized out EXPLAIN SELECT * FROM x1, x2 WHERE x=1 ORDER BY abs(5); ]], { -- <where2-2.6b> "~/SorterOpen/" -- </where2-2.6b> }) -- # Efficient handling of forward and reverse table scans. -- # -- do_test where2-3.1 { -- queryplan { -- SELECT * FROM t1 ORDER BY rowid LIMIT 2 -- } -- } {1 0 4 4 2 1 9 10 nosort t1 *} -- do_test where2-3.2 { -- queryplan { -- SELECT * FROM t1 ORDER BY rowid DESC LIMIT 2 -- } -- } {100 6 10201 10207 99 6 10000 10006 nosort t1 *} -- The IN operator can be used by indices at multiple layers -- test:do_test( "where2-4.1", function() return queryplan([[ SELECT * FROM t1 WHERE z IN (10207,10006) AND y IN (10000,10201) AND x>0 AND x<10 ORDER BY w ]]) end, { -- <where2-4.1> 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", "I1ZYX" -- </where2-4.1> }) test:do_test( "where2-4.2", function() return queryplan([[ SELECT * FROM t1 WHERE z IN (10207,10006) AND y=10000 AND x>0 AND x<10 ORDER BY w ]]) end, { -- <where2-4.2> 99, 6, 10000, 10006, "sort", "T1", "I1ZYX" -- </where2-4.2> }) test:do_test( "where2-4.3", function() return queryplan([[ SELECT * FROM t1 WHERE z=10006 AND y IN (10000,10201) AND x>0 AND x<10 ORDER BY w ]]) end, { -- <where2-4.3> 99, 6, 10000, 10006, "sort", "T1", "I1ZYX" -- </where2-4.3> }) test:do_test( "where2-4.4", function() return queryplan([[ SELECT * FROM t1 WHERE z IN (SELECT 10207 UNION SELECT 10006) AND y IN (10000,10201) AND x>0 AND x<10 ORDER BY w ]]) end, { -- <where2-4.4> 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", "I1ZYX" -- </where2-4.4> }) test:do_test( "where2-4.5", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE z IN (SELECT 10207 UNION SELECT 10006) AND y IN (SELECT 10000 UNION SELECT 10201) AND x>0 AND x<10 ORDER BY w ]]) end, { -- <where2-4.5> 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", "I1ZYX" -- </where2-4.5> }) test:do_test( "where2-4.6a", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE x IN (1,2,3,4,5,6,7,8) AND y IN (10000,10001,10002,10003,10004,10005) ORDER BY x ]]) end, { -- <where2-4.6a> 99, 6, 10000, 10006, "nosort", "T1", "I1XY" -- </where2-4.6a> }) test:do_test( "where2-4.6b", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE x IN (1,2,3,4,5,6,7,8) AND y IN (10000,10001,10002,10003,10004,10005) ORDER BY x DESC ]]) end, { -- <where2-4.6b> 99, 6, 10000, 10006, "nosort", "T1", "I1XY" -- </where2-4.6b> }) test:do_test( "where2-4.6c", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE x IN (1,2,3,4,5,6,7,8) AND y IN (10000,10001,10002,10003,10004,10005) ORDER BY x, y ]]) end, { -- <where2-4.6c> 99, 6, 10000, 10006, "nosort", "T1", "I1XY" -- </where2-4.6c> }) test:do_test( "where2-4.6d", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE x IN (1,2,3,4,5,6,7,8) AND y IN (10000,10001,10002,10003,10004,10005) ORDER BY x, y DESC ]]) end, { -- <where2-4.6d> 99, 6, 10000, 10006, "sort", "T1", "I1XY" -- </where2-4.6d> }) -- Duplicate entires on the RHS of an IN operator do not cause duplicate -- output rows. -- test:do_test( "where2-4.6x", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE z IN (10207,10006,10006,10207) ORDER BY w ]]) end, { -- <where2-4.6x> 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", "I1ZYX" -- </where2-4.6x> }) test:do_test( "where2-4.6y", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE z IN (10207,10006,10006,10207) ORDER BY w DESC ]]) end, { -- <where2-4.6y> 100, 6, 10201, 10207, 99, 6, 10000, 10006, "sort", "T1", "I1ZYX" -- </where2-4.6y> }) test:do_test( "where2-4.7", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE z IN ( SELECT 10207 UNION ALL SELECT 10006 UNION ALL SELECT 10006 UNION ALL SELECT 10207) ORDER BY w ]]) end, { -- <where2-4.7> 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", "I1ZYX" -- </where2-4.7> }) -- ifcapable subquery -- The use of an IN operator disables the index as a sorter. -- test:do_test( "where2-5.1", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE w=99 ORDER BY w ]]) end, { -- <where2-5.1> 99, 6, 10000, 10006, "nosort", "T1", "*" -- </where2-5.1> }) test:do_test( "where2-5.2a", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE w IN (99) ORDER BY w ]]) end, { -- <where2-5.2a> 99, 6, 10000, 10006, "nosort", "T1", "*" -- </where2-5.2a> }) test:do_test( "where2-5.2b", function() return queryplan([[ SELECT w,x,y,z FROM t1 WHERE w IN (99) ORDER BY w DESC ]]) end, { -- <where2-5.2b> 99, 6, 10000, 10006, "nosort", "T1", "*" -- </where2-5.2b> }) -- Verify that OR clauses get translated into IN operators. -- local idx = "*" test:do_test( "where2-6.1.1", function() return queryplan([[ SELECT * FROM t1 WHERE w=99 OR w=100 ORDER BY +w ; ]]) end, { -- <where2-6.1.1> 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", idx -- </where2-6.1.1> }) test:do_test( "where2-6.1.2", function() return queryplan([[ SELECT * FROM t1 WHERE 99=w OR 100=w ORDER BY +w ]]) end, { -- <where2-6.1.2> 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", idx -- </where2-6.1.2> }) test:do_test( "where2-6.2", function() return queryplan([[ SELECT * FROM t1 WHERE w=99 OR w=100 OR 6=w ORDER BY +w ]]) end, { -- <where2-6.2> 6, 2, 49, 51, 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", idx -- </where2-6.2> }) -- tarantool -- changed to * after reordering indexes -- actually it does not matter (because it uses full scan) --idx = "I1ZYX" idx = "*" test:do_test( "where2-6.3", function() return queryplan([[ SELECT * FROM t1 WHERE w=99 OR w=100 OR 6=+w ORDER BY +w ]]) end, { -- <where2-6.3> 6, 2, 49, 51, 99, 6, 10000, 10006, 100, 6, 10201, 10207, "sort", "T1", idx -- </where2-6.3> }) test:do_test( "where2-6.4", function() return queryplan([[ SELECT *, '|' FROM t1 WHERE w=99 OR +w=100 OR 6=w ORDER BY +w ]]) end, { -- <where2-6.4> 6, 2, 49, 51, "|", 99, 6, 10000, 10006, "|", 100, 6, 10201, 10207, "|", "sort", "T1", idx -- </where2-6.4> }) test:do_test( "where2-6.5", function() return queryplan([[ SELECT *, '|' FROM t1 WHERE w=99 OR y=10201 OR 6=w ORDER BY +w ]]) end, { -- <where2-6.5> 6, 2, 49, 51, "|", 99, 6, 10000, 10006, "|", 100, 6, 10201, 10207, "|", "sort", "T1", idx -- </where2-6.5> }) idx = "I1ZYX" test:do_test( "where2-6.6.1", function() return queryplan([[ SELECT b.w,b.x,b.y,b.z FROM t1 a, t1 b WHERE a.w=1 AND (a.y=b.z OR b.z=10) ORDER BY +b.w ]]) end, { -- <where2-6.5> 1, 0, 4, 4, 2, 1, 9, 10, "sort", "A", "*", "B", idx -- </where2-6.5> }) test:do_test( "where2-6.6.2", function() return queryplan([[ SELECT b.w,b.x,b.y,b.z FROM t1 a, t1 b WHERE a.w=1 AND (b.z=10 OR a.y=b.z OR b.z=10) ORDER BY +b.w ]]) end, { -- <where2-6.6> 1, 0, 4, 4, 2, 1, 9, 10, "sort", "A", "*", "B", idx -- </where2-6.6> }) -- if X(356, "X!cmd", [=[["expr","[permutation] != \"no_optimization\""]]=]) -- then -- Ticket #2249. Make sure the OR optimization is not attempted if -- comparisons between columns of different affinities are needed. -- test:do_test( "where2-6.7", function() test:execsql [[ CREATE TABLE t2249a(a TEXT PRIMARY KEY, x VARCHAR(100)); CREATE TABLE t2249b(b INTEGER PRIMARY KEY); INSERT INTO t2249a(a) VALUES('0123'); INSERT INTO t2249b VALUES(123); ]] return queryplan([[ -- Because a is type TEXT and b is type INTEGER, both a and b -- will attempt to convert to NUMERIC before the comparison. -- They will thus compare equal. -- SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE a=b; ]]) end, { -- <where2-6.7> 123, '0123', "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.7> }) test:do_test( "where2-6.9", function() return queryplan([[ -- The + operator doesn't affect RHS. -- SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE a=+b; ]]) end, { -- <where2-6.9> 123, "0123", "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.9> }) test:do_test( "where2-6.9.2", function() -- The same thing but with the expression flipped around. return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE +b=a ]]) end, { -- <where2-6.9.2> 123, "0123","nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.9.2> }) test:do_test( "where2-6.10", function() return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE +a=+b; ]]) end, { -- <where2-6.10> 123, "0123", "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.10> }) test:do_test( "where2-6.11", function() -- This will not attempt the OR optimization because of the a=b -- comparison. return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE a=b OR a='hello'; ]]) end, { -- <where2-6.11> 123, '0123', "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.11> }) test:do_test( "where2-6.11.2", function() -- Permutations of the expression terms. return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE b=a OR a='hello'; ]]) end, { -- <where2-6.11.2> 123, '0123', "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.11.2> }) test:do_test( "where2-6.11.3", function() -- Permutations of the expression terms. return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE 'hello'=a OR b=a; ]]) end, { -- <where2-6.11.3> 123, '0123', "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.11.3> }) test:do_test( "where2-6.11.4", function() -- Permutations of the expression terms. return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE a='hello' OR b=a; ]]) end, { -- <where2-6.11.4> 123, '0123', "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.11.4> }) -- These tests are not run if subquery support is not included in the -- build. This is because these tests test the "a = 1 OR a = 2" to -- "a IN (1, 2)" optimisation transformation, which is not enabled if -- subqueries and the IN operator is not available. -- test:do_test( "where2-6.12", function() return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE a=+b OR a='hello'; ]]) end, { -- <where2-6.12> 123, "0123", "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.12> }) test:do_test( "where2-6.12.2", function() return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE a='hello' OR +b=a; ]]) end, { -- <where2-6.12.2> 123, "0123", "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.12.2> }) test:do_test( "where2-6.12.3", function() return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE +b=a OR a='hello'; ]]) end, { -- <where2-6.12.3> 123, "0123", "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.12.3> }) test:do_test( "where2-6.13", function() -- The addition of +a on the second term disabled the OR optimization. -- But we should still get the same empty-set result as in where2-6.9. return queryplan([[ SELECT b,a FROM t2249b CROSS JOIN t2249a WHERE a=+b OR +a='hello'; ]]) end, { -- <where2-6.13> 123, "0123", "nosort", "T2249B", "*", "T2249A", "*" -- </where2-6.13> }) -- Variations on the order of terms in a WHERE clause in order -- to make sure the OR optimizer can recognize them all. test:do_test( "where2-6.20", function() return queryplan([[ SELECT x.a, y.a FROM t2249a x CROSS JOIN t2249a y WHERE x.a=y.a ]]) end, { -- <where2-6.20> '0123', '0123', "nosort", "X", "*", "Y", "*" -- </where2-6.20> }) -- These tests are not run if subquery support is not included in the -- build. This is because these tests test the "a = 1 OR a = 2" to -- "a IN (1, 2)" optimisation transformation, which is not enabled if -- subqueries and the IN operator is not available. -- test:do_test( "where2-6.21", function() return queryplan([[ SELECT x.a,y.a FROM t2249a x CROSS JOIN t2249a y WHERE x.a=y.a OR y.a='hello' ]]) end, { -- <where2-6.21> '0123', '0123', "nosort", "X", "*", "Y", "*" -- </where2-6.21> }) test:do_test( "where2-6.22", function() return queryplan([[ SELECT x.a,y.a FROM t2249a x CROSS JOIN t2249a y WHERE y.a=x.a OR y.a='hello' ]]) end, { -- <where2-6.22> '0123', '0123', "nosort", "X", "*", "Y", "*" -- </where2-6.22> }) test:do_test( "where2-6.23", function() return queryplan([[ SELECT x.a,y.a FROM t2249a x CROSS JOIN t2249a y WHERE y.a='hello' OR x.a=y.a ]]) end, { -- <where2-6.23> '0123', '0123', "nosort", "X", "*", "Y", "*" -- </where2-6.23> }) -- Unique queries (queries that are guaranteed to return only a single -- row of result) do not call the sorter. But all tables must give -- a unique result. If any one table in the join does not give a unique -- result then sorting is necessary. -- test:do_test( "where2-7.1", function() return cksort([[ create table t8(a INT PRIMARY KEY, b INT, c INT); insert into t8 values(1,2,3); insert into t8 values(2,3,4); create table t9(x INT,y INT, PRIMARY key (x, y)); insert into t9 values(2,4); insert into t9 values(2,3); select y from t8, t9 where a=1 order by a, y; ]]) end, { -- <where2-7.1> 3, 4, "sort" -- </where2-7.1> }) test:do_test( "where2-7.2", function() return cksort([[ select * from t8 where a=1 order by b, c ]]) end, { -- <where2-7.2> 1, 2, 3, "nosort" -- </where2-7.2> }) -- since extra columns deleted from pk (#2289), "order by" is optimized awy -- because 1 - we do not need to sorder by b (as t8 unique by a) -- 2 - t9 is already ordered by x test:do_test( "where2-7.3", function() return cksort([[ select * from t8, t9 where a=1 and y=3 order by b, x ]]) end, { -- <where2-7.3> --1, 2, 3, 2, 3, "sort" 1, 2, 3, 2, 3, "nosort" -- </where2-7.3> }) test:do_test( "where2-7.4", function() test:execsql('create unique index i9y on t9(y);') return cksort([[ select * from t8, t9 where a=1 and y=3 order by b, x]]) end, { -- <where2-7.4> --1, 2, 3, 2, 3, "sort" -- This is tahter strange, but when pk was deleted from secondary indexes -- sql became able to optimize sort using information that i9y is unique and -- there is nothing to sort here. -- todo: It seems like this kind of optimization was appliable until removing pk and -- it is a bug in sql optimizer. 1, 2, 3, 2, 3, "nosort" -- </where2-7.4> }) -- end -- if {[permutation] != "no_optimization"} -- Ticket #1807. Using IN constrains on multiple columns of -- a multi-column index. -- test:do_execsql_test( "where2-8.1", [[ SELECT * FROM t1 WHERE x IN (20,21) AND y IN (1,2) ]], { -- <where2-8.1> -- </where2-8.1> }) test:do_execsql_test( "where2-8.2", [[ SELECT * FROM t1 WHERE x IN (1,2) AND y IN (-5,-6) ]], { -- <where2-8.2> -- </where2-8.2> }) test:do_test( "where2-8.3.0", function () test:execsql('CREATE TABLE tx(id int PRIMARY KEY, w int, x int, y int, z int);') -- for _ in X(0, "X!for", [=[["set i 1","$i<=100","incr i"]]=]) do for i=1,100 do local w, x, y, z w = i x = math.floor(math.log(i) / math.log(2)) y = (((i * i) + (2 * i)) + 1) z = (x + y) test:execsql(string.format("INSERT INTO tx VALUES(%s,%s,%s,%s,%s)", i, w, x, y, z)) end end, {}) -- do_test where2-8.3 { -- execsql { -- SELECT w FROM t1 -- WHERE x IN (SELECT x FROM tx WHERE rowid<0) -- AND +y IN (SELECT y FROM tx WHERE rowid=1) -- } -- } {} -- do_test where2-8.4 { -- execsql { -- SELECT w FROM t1 -- WHERE x IN (SELECT x FROM tx WHERE rowid=1) -- AND y IN (SELECT y FROM tx WHERE rowid<0) -- } -- } {} --set sql_where_trace 1 test:do_execsql_test( "where2-8.5", [[ CREATE INDEX tx_xyz ON tx(x, y, z, w); SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 12 AND 14) ]], { -- <where2-8.5> 12, 13, 14 -- </where2-8.5> }) test:do_execsql_test( "where2-8.6", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 12 AND 14) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.6> 12, 13, 14 -- </where2-8.6> }) test:do_execsql_test( "where2-8.7", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 12 AND 14) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.7> 10, 11, 12, 13, 14, 15 -- </where2-8.7> }) test:do_execsql_test( "where2-8.8", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.8> 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 -- </where2-8.8> }) test:do_execsql_test( "where2-8.9", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 2 AND 4) ]], { -- <where2-8.9> -- </where2-8.9> }) test:do_execsql_test( "where2-8.10", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 2 AND 4) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.10> -- </where2-8.10> }) test:do_execsql_test( "where2-8.11", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 2 AND 4) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.11> -- </where2-8.11> }) test:do_execsql_test( "where2-8.12", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN -4 AND -2) ]], { -- <where2-8.12> -- </where2-8.12> }) test:do_execsql_test( "where2-8.13", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN -4 AND -2) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.13> -- </where2-8.13> }) test:do_execsql_test( "where2-8.14", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN -4 AND -2) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.14> -- </where2-8.14> }) test:do_execsql_test( "where2-8.15", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 200 AND 300) ]], { -- <where2-8.15> -- </where2-8.15> }) test:do_execsql_test( "where2-8.16", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 200 AND 300) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.16> -- </where2-8.16> }) test:do_execsql_test( "where2-8.17", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE w BETWEEN 200 AND 300) AND y IN (SELECT y FROM t1 WHERE w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE w BETWEEN 10 AND 20) ]], { -- <where2-8.17> -- </where2-8.17> }) test:do_execsql_test( "where2-8.18", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE +w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE +w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE +w BETWEEN 200 AND 300) ]], { -- <where2-8.18> -- </where2-8.18> }) test:do_execsql_test( "where2-8.19", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE +w BETWEEN 10 AND 20) AND y IN (SELECT y FROM t1 WHERE +w BETWEEN 200 AND 300) AND z IN (SELECT z FROM t1 WHERE +w BETWEEN 10 AND 20) ]], { -- <where2-8.19> -- </where2-8.19> }) test:do_execsql_test( "where2-8.20", [[ SELECT w FROM tx WHERE x IN (SELECT x FROM t1 WHERE +w BETWEEN 200 AND 300) AND y IN (SELECT y FROM t1 WHERE +w BETWEEN 10 AND 20) AND z IN (SELECT z FROM t1 WHERE +w BETWEEN 10 AND 20) ]], { -- <where2-8.20> -- </where2-8.20> }) -- Make sure WHERE clauses of the form A=1 AND (B=2 OR B=3) are optimized -- when we have an index on A and B. -- -- if X(0, "X!capable", [["or_opt&&tclvar"]]) then test:do_test( "where2-9.1", function() test:execsql [[ CREATE TABLE t10(id int PRIMARY KEY,a INT,b INT,c INT); START TRANSACTION; INSERT INTO t10 VALUES(1, 1,1,1); INSERT INTO t10 VALUES(2, 1,2,2); INSERT INTO t10 VALUES(3, 1,3,3); ]] for i=4, 1000 do -- for _ in X(0, "X!for", [=[["set i 4","$i<=1000","incr i"]]=]) do test:execsql(string.format("INSERT INTO t10 VALUES(%s,1,%s,%s)", i, i, i)) end return test:execsql [[ COMMIT; CREATE INDEX i10 ON t10(a,b); SELECT count(*) FROM t10; ]] end, { -- <where2-9.1> 1000 -- </where2-9.1> }) -- Tarantool: count is not supported yet -- test:do_test( -- "where2-9.2", -- function() -- return count([[ -- SELECT a,b,c FROM t10 WHERE a=1 AND (b=2 OR b=3) -- ]]) -- end, { -- -- <where2-9.2> -- 1, 2, 2, 1, 3, 3, 3 -- -- </where2-9.2> -- }) -- end -- Indices with redundant columns -- -- Tarantool doesn't allow indexes with duplicated columns. Comment the test. --do_test where2-11.1 { -- execsql { -- CREATE TABLE t11(id int primary key, a int,b int,c int,d int); -- CREATE INDEX i11aba ON t11(a,b,a,c); -- column A occurs twice. -- INSERT INTO t11 VALUES(1, 1,2,3,4); -- INSERT INTO t11 VALUES(2, 5,6,7,8); -- INSERT INTO t11 VALUES(3, 1,2,9,10); -- INSERT INTO t11 VALUES(4, 5,11,12,13); -- SELECT c FROM t11 WHERE a=1 AND b=2 ORDER BY c; -- } --} {3 9} --do_test where2-11.2 { -- execsql { -- CREATE INDEX i11cccccccc ON t11(c,c,c,c,c,c,c,c); -- repeated column -- SELECT d FROM t11 WHERE c=9; -- } --} {10} --do_test where2-11.3 { -- execsql { -- SELECT d FROM t11 WHERE c IN (1,2,3,4,5); -- } --} {4} --do_test where2-11.4 { -- execsql { -- SELECT d FROM t11 WHERE c=7 OR (a=1 AND b=2) ORDER BY d; -- } --} {4 8 10} -- Verify that the OR clause is used in an outer loop even when -- the OR clause scores slightly better on an inner loop. -- if X(767, "X!cmd", [=[["expr","[permutation] != \"no_optimization\""]]=]) -- then test:do_test( "where2-12.1", function () local data = test:execsql([[ CREATE TABLE t12(x INTEGER PRIMARY KEY, y INT, z VARCHAR(100)); CREATE INDEX t12y ON t12(y); EXPLAIN QUERY PLAN SELECT a.x, b.x FROM t12 AS a JOIN t12 AS b ON a.y=b.x WHERE (b.x=1 OR b.y=1); ]]) -- Tarantool: model this unsupported match -- "/.*SEARCH TABLE t12 AS b .*SEARCH TABLE t12 AS b .*/" local cnt = 0 for _, v in ipairs(data) do if type(v) == 'string' and string.find(v, 'SEARCH TABLE T12 AS B ') then cnt = cnt + 1 end end return {cnt} end , { -- <where2-12.1> -- "/.*SEARCH TABLE t12 AS b .*SEARCH TABLE t12 AS b .*/" 2 -- </where2-12.1> }) -- end -- Verify that all necessary OP_OpenRead opcodes occur in the OR optimization. -- test:do_execsql_test( "where2-13.1", [[ CREATE TABLE t13(a INT primary key,b INT); INSERT INTO t13 VALUES(4,5); SELECT * FROM t13 WHERE (1=2 AND a=3) OR a=4; ]], { -- <where2-13.1> 4, 5 -- </where2-13.1> }) test:finish_test()
require "assets_loader" require "body" require "class" require "health" require "helpers" require "position_helpers" require "weapons_manager" Ship = {} function Ship.new(args) local self = Class.new() self.inherit(Body.new(args)) self.inherit(Health.new(args)) self.inherit(WeaponsManager.new()) self.title = 'player' self.owner = args.owner or self self.self_controller = args.self_controller or true -- variable to block user to move character self.current_power_level = 1 -- current level of power according collected power ups self.power = 1 self.keys = args.keys self.power = 1 self.power_level = {} -- level of power ups collected self.power_per_level_up = 100 -- for each time of power_level reach this amount of power, rise current_power_level by one self.current_power_level = 1 self.current_blink_time = 0 -- time to blink self.default_blink_time = 0.02 self.blink_time = self.default_blink_time or 0.02 self.blink = false self.current_ship = args.ship_model_name or 'ship_01' -- ship of ship self.current_ship_position = 'center' -- current position of ship (left, right or normal) self.time_turning = 0.08 self.current_time_turning = 0 self.sprites = args.sprites or nil self.self_controller = true self.self_controller_target = { x=0, y=0 } function self.max_time_to_extra_turn() return self.current_time_turning >= self.time_turning end function self.set_self_controll_to(x, y) self.self_controller = true self.self_controller_target.x = x self.self_controller_target.y = y end function self.self_move_to_target(dt) local extra = 10 local moviment = dt*self.speed local moviment_x = 0 local moviment_y = 0 if (self.body.x + extra) < self.self_controller_target.x then moviment_x = moviment elseif (self.body.x - extra) > self.self_controller_target.x then moviment_x = -moviment end if (self.body.y + extra) < self.self_controller_target.y then moviment_y = moviment elseif (self.body.y - extra) > self.self_controller_target.y then moviment_y = -moviment end return moviment_x, moviment_y end function self.get_to_target() local extra = 10 return (self.body.x + extra) > self.self_controller_target.x and (self.body.x - extra) < self.self_controller_target.x and (self.body.y + extra) > self.self_controller_target.y and (self.body.y - extra) < self.self_controller_target.y end -- this metho count the time that player is turning the ship to change the sprite function self.count_time_turning_to_change_sprite(dt) if not self.max_time_to_extra_turn() then self.current_time_turning = self.current_time_turning + dt end end -- set the correct sprite of position function self.correct_position_sprite(side) local position = 'center' if side < 0 then position = 'left' if self.max_time_to_extra_turn() then position = 'extra_left' end elseif side > 0 then position = 'right' if self.max_time_to_extra_turn() then position = 'extra_right' end end self.current_ship_position = position end -- perform horizontal move function self.horizontal_move(x) if inside_screen_width(x+self.body.x) or self.self_controller then self.body.x = self.body.x + x end end -- perform vertical move function self.vertical_move(y) if inside_screen_height(y+self.body.y) or self.self_controller then self.body.y = self.body.y + y end end -- return the current ship ammo, based on it's level function self.current_ammo() return self.owner.level_settings[string.format("level_%02d", self.current_power_level)] end -- collect power ups and give it to ships power cell function self.collect_power_up(collected_power) if not self.owner.level_exist(self.current_power_level+1) then -- if player get the last level, all power collected turn in score self.owner.earn_points(collected_power*1000) return end self.power = self.power + collected_power if self.power >= self.power_per_level_up then local amount_of_extra_levels = self.power/self.power_per_level_up self.increase_power_level(around(amount_of_extra_levels)) self.power = 0 -- update all weapons with the new ammo self.change_ammo_of_all_weapons(self.current_ammo().bullet_name) self.change_delay_of_all_weapons(self.current_ammo().delay) end end -- change the ship's ammo to a high ammo function self.increase_power_level(amount_of_levels) self.show_charger_animation() self.current_power_level = self.current_power_level + amount_of_levels -- if there is no more leves to gain, reduce by one to avoid problems with null level if not self.owner.level_exist(self.current_power_level) then self.current_power_level = self.current_power_level - 1 end end -- show the charger animation function self.show_charger_animation() explosions_controller.create_charger_explosion(self.body.x, self.body.y) end -- return the current ship sprite besed on it's current moviment function self.current_sprite() return self.sprites[self.current_ship][self.current_ship_position] end -- update ship logic function self:update(dt) local current_x = 0 local current_y = 0 local horizontal_keys_pressend = false self.correct_position_sprite(0) -- controller of the keys of ship if self.self_controller then if self.get_to_target() then self.self_controller = false else current_x, current_y = self.self_move_to_target(dt) end else if love.keyboard.isDown(self.keys.up) then current_y = -self.speed*dt end if love.keyboard.isDown(self.keys.down) then current_y = self.speed*dt end if love.keyboard.isDown(self.keys.left) then self.correct_position_sprite(-1) horizontal_keys_pressend = true current_x = -self.speed*dt end if love.keyboard.isDown(self.keys.right) then self.correct_position_sprite(1) horizontal_keys_pressend = true current_x = self.speed*dt end if love.keyboard.isDown(self.keys.shoot) then self:shoot_every_weapon() else -- if current ammo is the laser, when player press up shoot button, laser shoud stop to work on the same time if #bullets_controller.bullets.player > 0 then if bullets_controller.bullets_settings[self.current_ammo().bullet_name].follow_owner then bullets_controller.destroy_all_bullets_by_owner(bullets_controller.bullets.player, self.owner) end end end end self.horizontal_move(current_x) self.vertical_move(current_y) if horizontal_keys_pressend then self.count_time_turning_to_change_sprite(dt) else self.current_time_turning = 0 end -- blink to show ivulnerability if self.invulnerable_time > 0 then self.invulnerable_time = self.invulnerable_time -1*dt self.current_blink_time = self.current_blink_time + 1*dt self.invulnerable = true if self.current_blink_time >= self.blink_time then self.blink_time = self.blink_time + 0.005 self.current_blink_time = 0 self.blink = not self.blink end else self.blink = false self.invulnerable = false end -- update weapons status for _, weapon in ipairs(self.weapons) do weapon:update(dt) end end -- draw ship function self.draw() -- self.draw_test() if self.blink then else self.current_sprite().draw{x=self.body.x, y=self.body.y, scala_x=1, scala_y=1, rot=0} end end self.add_weapon{ammo_name=self.current_ammo().bullet_name, delay=self.current_ammo().delay, relative_x=0, relative_y=-30, direction_x=0, direction_y=-1} self.change_ammo_of_all_weapons(self.current_ammo().bullet_name) self.change_delay_of_all_weapons(self.current_ammo().delay) self.invulnerable_time = 2 self.invulnerable = true return self end
-- init random math.randomseed(os.time()) -- the request function that will run at each request request = function() -- define the path that will search for q=%v 9%v being a random number between 0 and 1000) somenumber = math.random(0, 1000) somenumber2 = somenumber + 10000 url_path = "/?requestId=0&version=5&action=getData&seqName=chr2&start=" .. somenumber .. "&end=" .. somenumber2 .. "&measurement=39033&datasource=umd .. math.random(0,1000)" -- if we want to print the path generated print(url_path) -- Return the request object with the current URL path return wrk.format("GET", url_path) end
-- Copyright 2018 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> -- Licensed to the public under the Apache License 2.0. m = Map("mail", translate("Mail settings"), translate("Set mail settings for services that need to send mails.")) s = m:section(TypedSection, "smtp", translate("SMTP")) s.anonymous = true s.addremove = false server = s:option(Value, "server", translate("Server")) server.datatype = "host" server.placeholder = "smtp.gmail.com" server.optional = false port = s:option(Value, "port", translate("Port")) port.datatype = "port" port.optional = false port.rmempty = true port.default = "25" tls = s:option(Flag, "tls", translate("TLS")) tls.rmempty = false tls_starttls = s:option(Flag, "tls_starttls", translate("STARTTLS")) tls_starttls.rmempty = false user = s:option(Value, "user", translate("Username")) user.rmempty = true password = s:option(Value, "password", translate("Password")) password.password = true password.rmempty = true from = s:option(Value, "from", translate("From")) from.optional = false from.rmempty = true from.placeholder = "myself@gmail.com" to = s:option(Value, "to", translate("To")) to.optional = false to.rmempty = true to.placeholder = "myself@gmail.com" return m
gemcutting = { craft = function(player, npc, speech) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID if speech == "gem" then -- 100 ambers used. 37 tarnished, 14 crafted, 6 well crafted local ambertypes = { "amber", "dark_amber", "white_amber", "yellow_amber" } local skill = crafting.getSkillLevel(player, "gemcutting") local opts = {} table.insert(opts, "Amber") if (skill == "adept" or skill == "talented" or skill == "skilled" or skill == "expert" or skill == "master" or skill == "grandmaster" or skill == "champion" or skill == "legendary") then table.insert(opts, "Dark Amber") end if (skill == "adept" or skill == "talented" or skill == "skilled" or skill == "expert" or skill == "master" or skill == "grandmaster" or skill == "champion" or skill == "legendary") then table.insert(opts, "White Amber") end if (skill == "skilled" or skill == "expert" or skill == "master" or skill == "grandmaster" or skill == "champion" or skill == "legendary") then table.insert(opts, "Yellow Amber") end local choice = 1 if #opts > 1 then choice = player:menuSeq( "Which gem would you like to attempt?", opts, {} ) end local amber = ambertypes[choice] local ta = {graphic = Item(amber).icon, color = Item(amber).iconC} if player:hasItem(amber, 1) ~= true then player:dialogSeq({ta, "You have nothing to craft."}, 0) return end player:removeItem(amber, 1, 9) crafting.skillChanceIncrease(player, NPC("Sel"), "gemcutting") if (amber == "amber") then gemcutting.amber(player) elseif (amber == "dark_amber") then gemcutting.darkamber(player) elseif (amber == "white_amber") then gemcutting.whiteamber(player) elseif (amber == "yellow_amber") then gemcutting.yellowamber(player) end return end end, amber = function(player) local skill = crafting.getSkillLevel(player, "gemcutting") if skill == "novice" then local rand = math.random(1, 100) if (rand <= 5) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 5 and rand < 15) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 15 and rand < 90) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "apprentice" then local rand = math.random(1, 100) if (rand <= 5) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 5 and rand < 20) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 20 and rand < 90) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "accomplished" then local rand = math.random(1, 100) if (rand <= 5) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 5 and rand < 25) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 25 and rand < 90) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "adept" then local rand = math.random(1, 100) if (rand <= 5) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 5 and rand < 30) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 30) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "talented" then local rand = math.random(1, 100) if (rand <= 5) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 5 and rand < 35) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 35) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "skilled" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 40) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 40) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "expert" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 45) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 45) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "master" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 50) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 50) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "grandmaster" then local rand = math.random(1, 100) if (rand <= 13) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 60) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 60) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "champion" then local rand = math.random(1, 100) if (rand <= 16) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 65) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 65) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "legendary" then local rand = math.random(1, 100) if (rand <= 20) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 70) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 70) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end else local rand = math.random(1, 100) if (rand == 1) then player:addItem("well_crafted_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_amber").icon, color = Item("well_crafted_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 1 and rand < 20) then player:addItem("crafted_amber", 1) player:dialogSeq( { { graphic = Item("crafted_amber").icon, color = Item("crafted_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 20 and rand < 90) then player:addItem("tarnished_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_amber").icon, color = Item("tarnished_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end end end, darkamber = function(player) local skill = crafting.getSkillLevel(player, "gemcutting") if skill == "adept" then local rand = math.random(1, 100) if (rand <= 5) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 5 and rand < 15) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 15 and rand < 90) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "talented" then local rand = math.random(1, 100) if (rand <= 5) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 5 and rand < 20) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 20) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "skilled" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 25) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 25) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "expert" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 30) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 30) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "master" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 35) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 35) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "grandmaster" then local rand = math.random(1, 100) if (rand <= 12) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 40) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 40) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "champion" then local rand = math.random(1, 100) if (rand <= 14) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 45) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 45) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "legendary" then local rand = math.random(1, 100) if (rand <= 16) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 50) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 50) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end else local rand = math.random(1, 100) if (rand == 1) then player:addItem("well_crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_dark_amber").icon, color = Item("well_crafted_dark_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 1 and rand < 20) then player:addItem("crafted_dark_amber", 1) player:dialogSeq( { { graphic = Item("crafted_dark_amber").icon, color = Item("crafted_dark_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 20 and rand < 90) then player:addItem("tarnished_dark_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_dark_amber").icon, color = Item("tarnished_dark_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end end end, whiteamber = function(player) local skill = crafting.getSkillLevel(player, "gemcutting") if skill == "adept" then local rand = math.random(1, 100) if (rand <= 1) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 1 and rand < 15) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 15 and rand < 90) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "talented" then local rand = math.random(1, 100) if (rand <= 2) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 2 and rand < 20) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 20 and rand < 90) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "skilled" then local rand = math.random(1, 100) if (rand <= 3) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 3 and rand < 25) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 25 and rand < 90) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "expert" then local rand = math.random(1, 100) if (rand <= 4) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 4 and rand < 30) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 30) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "master" then local rand = math.random(1, 100) if (rand <= 5) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 5 and rand < 35) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 35) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "grandmaster" then local rand = math.random(1, 100) if (rand <= 6) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 6 and rand < 38) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 38) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "champion" then local rand = math.random(1, 100) if (rand <= 7) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 7 and rand < 41) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 41) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "legendary" then local rand = math.random(1, 100) if (rand <= 8) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 8 and rand < 45) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 45) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end else local rand = math.random(1, 100) if (rand == 1) then player:addItem("well_crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_white_amber").icon, color = Item("well_crafted_white_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 1 and rand < 20) then player:addItem("crafted_white_amber", 1) player:dialogSeq( { { graphic = Item("crafted_white_amber").icon, color = Item("crafted_white_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 20 and rand < 90) then player:addItem("tarnished_white_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_white_amber").icon, color = Item("tarnished_white_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end end end, yellowamber = function(player) local skill = crafting.getSkillLevel(player, "gemcutting") if skill == "skilled" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_yellow_amber").icon, color = Item("well_crafted_yellow_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 30) then player:addItem("crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("crafted_yellow_amber").icon, color = Item("crafted_yellow_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 30) then player:addItem("tarnished_yellow_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_yellow_amber").icon, color = Item("tarnished_yellow_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "expert" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_yellow_amber").icon, color = Item("well_crafted_yellow_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 40) then player:addItem("crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("crafted_yellow_amber").icon, color = Item("crafted_yellow_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 40) then player:addItem("tarnished_yellow_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_yellow_amber").icon, color = Item("tarnished_yellow_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "master" then local rand = math.random(1, 100) if (rand <= 10) then player:addItem("well_crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_yellow_amber").icon, color = Item("well_crafted_yellow_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 50) then player:addItem("crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("crafted_yellow_amber").icon, color = Item("crafted_yellow_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 50) then player:addItem("tarnished_yellow_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_yellow_amber").icon, color = Item("tarnished_yellow_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "grandmaster" then local rand = math.random(1, 100) if (rand <= 12) then player:addItem("well_crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_yellow_amber").icon, color = Item("well_crafted_yellow_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 12 and rand < 55) then player:addItem("crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("crafted_yellow_amber").icon, color = Item("crafted_yellow_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 55) then player:addItem("tarnished_yellow_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_yellow_amber").icon, color = Item("tarnished_yellow_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "champion" then local rand = math.random(1, 100) if (rand <= 14) then player:addItem("well_crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_yellow_amber").icon, color = Item("well_crafted_yellow_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 14 and rand < 60) then player:addItem("crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("crafted_yellow_amber").icon, color = Item("crafted_yellow_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 60) then player:addItem("tarnished_yellow_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_yellow_amber").icon, color = Item("tarnished_yellow_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end elseif skill == "legendary" then local rand = math.random(1, 100) if (rand <= 16) then player:addItem("well_crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_yellow_amber").icon, color = Item("well_crafted_yellow_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 16 and rand < 65) then player:addItem("crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("crafted_yellow_amber").icon, color = Item("crafted_yellow_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 65) then player:addItem("tarnished_yellow_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_yellow_amber").icon, color = Item("tarnished_yellow_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end else local rand = math.random(1, 100) if (rand == 10) then player:addItem("well_crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("well_crafted_yellow_amber").icon, color = Item("well_crafted_yellow_amber").iconC }, "You have succeeded masterfully!" }, 0 ) elseif (rand > 10 and rand < 30) then player:addItem("crafted_yellow_amber", 1) player:dialogSeq( { { graphic = Item("crafted_yellow_amber").icon, color = Item("crafted_yellow_amber").iconC }, "Your efforts are successful!" }, 0 ) elseif (rand >= 30) then player:addItem("tarnished_yellow_amber", 1) player:dialogSeq( { { graphic = Item("tarnished_yellow_amber").icon, color = Item("tarnished_yellow_amber").iconC }, "You have failed in your attempt." }, 0 ) else player:dialogSeq( { { graphic = Item("amber").icon, color = Item("amber").iconC }, "Your feeble efforts have destroyed that which you meant to enhance." }, 0 ) end end end, }
--[[ .______ ______ _______. _______. ____ ____ _______. .______ __ ___ ____ ____ _______ .______ _______. | _ \ / __ \ / | / | \ \ / / / | | _ \ | | / \ \ \ / / | ____|| _ \ / | | |_) | | | | | | (----` | (----` \ \/ / | (----` | |_) | | | / ^ \ \ \/ / | |__ | |_) | | (----` | _ < | | | | \ \ \ \ \ / \ \ | ___/ | | / /_\ \ \_ _/ | __| | / \ \ | |_) | | `--' | .----) | .----) | \ / .----) | | | | `----./ _____ \ | | | |____ | |\ \----.----) | |______/ \______/ |_______/ |_______/ \__/ |_______/ | _| |_______/__/ \__\ |__| |_______|| _| `._____|_______/ .______ ____ ____ _______ ___ __ ___ ___ ___ __ .______ | _ \ \ \ / / | ____| / \ | | / \ \ \ / / | | | _ \ | |_) | \ \/ / | |__ / ^ \ | | / ^ \ \ V / | | | |_) | | _ < \_ _/ | __| / /_\ \ | | / /_\ \ > < | | | / | |_) | | | | | / _____ \ | `----./ _____ \ / . \ | | | |\ \----. |______/ |__| |__| /__/ \__\ |_______/__/ \__\ /__/ \__\ |__| | _| `._____| --]] -- Spawns a WebUI with the HTML file you just created MainHUD = WebUI("Main HUD", "file:///hud/Hud.html") OptionsHUD = WebUI("Options HUD", "file:///options/Options.html", false) -- REQUIREMENTS Package.Require("TriggerEvent.lua") Package.Require("CommunicationToClients.lua") Package.Require("RageCalculation.lua") Package.Require("JumpCalculation.lua") Package.Require("SpecialCalculation.lua") Package.Require("PlaySound.lua") Package.Require("KeyEvent.lua") Package.Require("Spectator.lua") Package.Require("OptionsEvents.lua") Package.Require("LocalTimer.lua") Package.Require("AddNametags.lua") -- When LocalPlayer spawns, sets an event on it to trigger when we possesses a new character, to store the local controlled character locally. This event is only called once, see Package:Subscribe("Load") to load it when reloading a package Client.Subscribe("SpawnLocalPlayer", function(local_player) local_player:Subscribe("Possess", function(player, character) UpdateLocalCharacter(character) end) end) -- When package loads, verify if LocalPlayer already exists (eg. when reloading the package), then try to get and store it's controlled character Package.Subscribe("Load", function() Client.SetDiscordActivity("Waiting Round Start", "Boss VS Players Gamemode", "screenshot_173", "by Falaxir") if (Client.GetLocalPlayer() ~= nil) then UpdateLocalCharacter(Client.GetLocalPlayer():GetControlledCharacter()) end end) -- Function to set all needed events on local character (to update the UI when it takes damage or dies) function UpdateLocalCharacter(character) -- Verifies if character is not nil (eg. when GetControllerCharacter() doesn't return a character) if (character == nil) then return end -- Updates the UI with the current character's health UpdateHealth(character:GetHealth()) -- Sets on character an event to update the health's UI after it takes damage character:Subscribe("TakeDamage", function(charac, damage, type, bone, from_direction, instigator) -- Plays a Hit Taken sound effect Sound(Vector(), "nanos-world::A_HitTaken_Feedback", true) -- Updates the Health UI UpdateHealth(charac:GetHealth()) end) -- Sets on character an event to update the health's UI after it dies character:Subscribe("Death", function(charac) UpdateHealth(0) end) -- Sets on character an event to update the health's UI after it respawns character:Subscribe("Respawn", function(charac) UpdateHealth(charac:GetMaxHealth()) end) -- Try to get if the character is holding any weapon local current_picked_item = character:GetPicked() -- If so, update the UI if (current_picked_item and current_picked_item:GetType() == "Weapon" and not current_picked_item:GetValue("ToolGun")) then UpdateAmmo(true, current_picked_item:GetAmmoClip(), current_picked_item:GetAmmoBag()) end -- Sets on character an event to update his grabbing weapon (to show ammo on UI) character:Subscribe("PickUp", function(charac, object) if (object:GetType() == "Weapon" and not object:GetValue("ToolGun")) then UpdateAmmo(true, object:GetAmmoClip(), object:GetAmmoBag()) -- Sets on character an event to update the UI when he fires charac:Subscribe("Fire", function(charac, weapon) UpdateAmmo(true, weapon:GetAmmoClip(), weapon:GetAmmoBag()) end) -- Sets on character an event to update the UI when he reloads the weapon charac:Subscribe("Reload", function(charac, weapon, ammo_to_reload) UpdateAmmo(true, weapon:GetAmmoClip(), weapon:GetAmmoBag()) end) end end) -- Sets on character an event to remove the ammo ui when he drops it's weapon character:Subscribe("Drop", function(charac, object) UpdateAmmo(false) charac:Unsubscribe("Fire") charac:Unsubscribe("Reload") end) end -- Function to update the Ammo's UI function UpdateAmmo(enable_ui, ammo, ammo_bag) MainHUD:CallEvent("UpdateWeaponAmmo", enable_ui, ammo, ammo_bag) end -- Function to update the Health's UI function UpdateHealth(health) MainHUD:CallEvent("UpdateHealth", health) end -- VOIP UI Player.Subscribe("VOIP", function(player, is_talking) MainHUD:CallEvent("ToggleVoice", player:GetName(), is_talking) end) Player.Subscribe("Destroy", function(player) MainHUD:CallEvent("ToggleVoice", player:GetName(), false) MainHUD:CallEvent("UpdatePlayer", player:GetID(), false) end)
Camera = Object:extend() function Camera:new() self.zoom = 1 self.box = {position = {x = 0, y = 0}, size = {w = BASE_SCREEN_W / 4, h = BASE_SCREEN_H / 3}} self.box.size.originalW = self.box.size.w self.box.size.originalH = self.box.size.h -- Automatically center the box (x, y) position based on the width self:refresh_box() self.position = {x = 0, y = 0} self.velocity = {x = 0, y = 0} end function Camera:set_player(player) self.player = player end function Camera:get_center_box() return {position = {x = self.position.x + self.box.position.x, y = self.position.y + self.box.position.y}, size = {w = self.box.size.w, h = self.box.size.h}} end function Camera:refresh_box() self.box.size.w = self.box.size.originalW / self.zoom self.box.size.h = self.box.size.originalH / self.zoom self.box.position.x = ((BASE_SCREEN_W / self.zoom) / 2) - (self.box.size.w / 2) self.box.position.y = ((BASE_SCREEN_H / self.zoom) / 2) - (self.box.size.h / 2) end function Camera:get_zoom(value) return self.zoom end function Camera:set_zoom(value) self.zoom = value self:refresh_box() self:warp_to_player() end function Camera:get_player_center() return {x = self.player.position.x + self.player.skin:get_width() / 2, y = self.player.position.y + self.player.skin:get_height() / 2} end function Camera:screen_scroll() local target = self:get_player_center() local screen = self:get_screen_position() screen.w = BASE_SCREEN_W screen.h = BASE_SCREEN_H if target.x < screen.x then self.velocity.x = -BASE_SCREEN_W elseif target.x > screen.x + screen.w then self.velocity.x = BASE_SCREEN_W end if target.y < screen.y then self.velocity.y = -BASE_SCREEN_H elseif target.y > screen.y + screen.h then self.velocity.y = BASE_SCREEN_H end end function Camera:follow_player() local target = { x1 = self.player.position.x, x2 = self.player.position.x + self.player.skin:get_width() - 1, y1 = self.player.position.y, y2 = self.player.position.y + self.player.skin:get_height() - 1} target.x1 = math.floor(target.x1) target.x2 = math.floor(target.x2) target.y1 = math.floor(target.y1) target.y2 = math.floor(target.y2) local box = self:get_center_box() if target.x1 < box.position.x then local distance = math.abs(box.position.x - target.x1) if distance <= PlayerPhysicsSystem.MAX_VELOCITY_X then -- Move the camera locked with the player self.velocity.x = -distance else -- Move the camera smoothly up to the player self.velocity.x = -distance * .25 end elseif target.x2 > box.position.x + box.size.w - 1 then local distance = math.abs(target.x2 - (box.position.x + box.size.w - 1)) if distance <= PlayerPhysicsSystem.MAX_VELOCITY_X then -- Move the camera locked with the player self.velocity.x = distance else -- Move the camera smoothly up to the player self.velocity.x = distance * .25 end end if target.y1 < box.position.y then local distance = math.abs(box.position.y - target.y1) if self.player.isOnPlatform then -- Move the camera smoothly up to the player self.velocity.y = -distance * .25 end elseif target.y2 > box.position.y + box.size.h - 1 then local distance = math.abs(target.y2 - (box.position.y + box.size.h - 1)) -- Move the camera locked with the player self.velocity.y = distance end end -- Draw a debug view of camera's box function Camera:draw() love.graphics.push() love.graphics.scale(self.zoom, self.zoom) love.graphics.setLineWidth(1) love.graphics.setColor(255, 0, 0) love.graphics.rectangle('line', self.box.position.x + .5, self.box.position.y + .5, self.box.size.w, self.box.size.h) love.graphics.pop() end function Camera:update() self:follow_player() --self:screen_scroll(player) self:do_physics() end function Camera:do_physics() self.position.x = self.position.x + self.velocity.x self.position.y = self.position.y + self.velocity.y -- Apply friction self.velocity.x = 0 self.velocity.y = 0 -- Don't go lower than the ground local maxY = BASE_SCREEN_H - (BASE_SCREEN_H / self.zoom) + 1 maxY = math.floor(maxY) if self.position.y > maxY then self.position.y = maxY end end function Camera:transform(parallax) if not parallax then parallax = 1 end local pos = self:get_screen_position() love.graphics.translate(-pos.x * self.zoom * parallax, -pos.y * self.zoom * parallax) love.graphics.scale(self.zoom, self.zoom) end function Camera:warp_to_player() local target = self:get_player_center() self.position.x = target.x - self.box.position.x - (self.box.size.w / 2) self.position.y = target.y - self.box.position.y - (self.box.size.h / 2) end function Camera:get_screen_position() return {x = math.floor(self.position.x), y = math.floor(self.position.y)} end
--[[ Stateless Iterators By the name itself we can understand that this type of iterator function does not retain any state. Let us now see an example of creating our own iterator using a simple function that prints the squares of n numbers. --]] function Square(iteratorMaxCount, currentNumber) --[[ A stateless iterator example. Mimic the way ipairs works. Calculates the squared value of a number. Parameters: > iteratorMaxCount (int): object length. > currentNumber (int): start index position. Returns: > iteratorMaxCount (int): > currentNumber (int): --]] if currentNumber < iteratorMaxCount then currentNumber = currentNumber + 1 return currentNumber, currentNumber * currentNumber end end function Squares(iteratorMaxCount) return Square, iteratorMaxCount, 0 end for i, n in Squares(3) do print(i, n) end
local ESX, selectedspawnposition = nil local spawn = nil local LastLocation = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) local camZPlus1 = 1500 local camZPlus2 = 50 local pointCamCoords = 75 local pointCamCoords2 = 0 local cam1Time = 500 local cam2Time = 1000 RegisterNUICallback("SpawnPlayer", function() if selectedspawnposition ~= nil then SpawnPlayer(selectedspawnposition) else TriggerEvent('spawnselector:setNui') print("You need to select a spawn point!") end end) RegisterNUICallback("LastLocation", function() selectedspawnposition = LastLocation local playerPed = PlayerPedId() local campos = selectedspawnposition cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords) SetCamActiveWithInterp(cam2, cam, cam1Time, true, true) if DoesCamExist(cam) then DestroyCam(cam, true) end Citizen.Wait(cam1Time) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2) SetCamActiveWithInterp(cam, cam2, cam2Time, true, true) SetEntityCoords(GetPlayerPed(-1), campos.x, campos.y, campos.z) end) RegisterNUICallback("SpawnTorget", function() selectedspawnposition = {x = 216.32, y = -814.36, z = 30.64, h = 163.4 } local playerPed = PlayerPedId() local campos = selectedspawnposition cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords) SetCamActiveWithInterp(cam2, cam, cam1Time, true, true) if DoesCamExist(cam) then DestroyCam(cam, true) end Citizen.Wait(cam1Time) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2) SetCamActiveWithInterp(cam, cam2, cam2Time, true, true) SetEntityCoords(GetPlayerPed(-1), campos.x, campos.y, campos.z) end) RegisterNUICallback("SpawnMRPD", function() selectedspawnposition = {x = 413.32, y = -965.08, z = 29.48, h = 227.87 } local playerPed = PlayerPedId() local campos = selectedspawnposition cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords) SetCamActiveWithInterp(cam2, cam, cam1Time, true, true) if DoesCamExist(cam) then DestroyCam(cam, true) end Citizen.Wait(cam1Time) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2) SetCamActiveWithInterp(cam, cam2, cam2Time, true, true) SetEntityCoords(GetPlayerPed(-1), campos.x, campos.y, campos.z) end) RegisterNUICallback("SpawnPink", function() selectedspawnposition = {x = 329.76, y = -200.68, z = 54.24, h = 159.87 } local playerPed = PlayerPedId() local campos = selectedspawnposition cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords) SetCamActiveWithInterp(cam2, cam, cam1Time, true, true) if DoesCamExist(cam) then DestroyCam(cam, true) end Citizen.Wait(cam1Time) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2) SetCamActiveWithInterp(cam, cam2, cam2Time, true, true) SetEntityCoords(GetPlayerPed(-1), campos.x, campos.y, campos.z) end) RegisterNUICallback("SpawnTrondheim", function() selectedspawnposition = {x = 1906.84, y = 3742.2, z = 32.64, h = 26.87 } local playerPed = PlayerPedId() local campos = selectedspawnposition cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords) SetCamActiveWithInterp(cam2, cam, cam1Time, true, true) if DoesCamExist(cam) then DestroyCam(cam, true) end Citizen.Wait(cam1Time) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2) SetCamActiveWithInterp(cam, cam2, cam2Time, true, true) SetEntityCoords(GetPlayerPed(-1), campos.x, campos.y, campos.z) end) RegisterNUICallback("SpawnTromso", function() selectedspawnposition = {x = 134.48, y = 6640.44, z = 31.76, h = 227.36 } local playerPed = PlayerPedId() local campos = selectedspawnposition cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords) SetCamActiveWithInterp(cam2, cam, cam1Time, true, true) if DoesCamExist(cam) then DestroyCam(cam, true) end Citizen.Wait(cam1Time) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2) SetCamActiveWithInterp(cam, cam2, cam2Time, true, true) SetEntityCoords(GetPlayerPed(-1), campos.x, campos.y, campos.z) end) RegisterNUICallback("SpawnStrandmotel", function() selectedspawnposition = {x = -1477.68, y = -677.76, z = 29.04, h = 227.36 } local playerPed = PlayerPedId() local campos = selectedspawnposition cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords) SetCamActiveWithInterp(cam2, cam, cam1Time, true, true) if DoesCamExist(cam) then DestroyCam(cam, true) end Citizen.Wait(cam1Time) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2) SetCamActiveWithInterp(cam, cam2, cam2Time, true, true) SetEntityCoords(GetPlayerPed(-1), campos.x, campos.y, campos.z) end) RegisterNUICallback("SpawnGardermoen", function() selectedspawnposition = {x = -1016.48, y = -2704.44, z = 13.76, h = 227.36 } local playerPed = PlayerPedId() local campos = selectedspawnposition cam2 = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus1, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam2, campos.x, campos.y, campos.z + pointCamCoords) SetCamActiveWithInterp(cam2, cam, cam1Time, true, true) if DoesCamExist(cam) then DestroyCam(cam, true) end Citizen.Wait(cam1Time) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", campos.x, campos.y, campos.z + camZPlus2, 300.00,0.00,0.00, 110.00, false, 0) PointCamAtCoord(cam, campos.x, campos.y, campos.z + pointCamCoords2) SetCamActiveWithInterp(cam, cam2, cam2Time, true, true) SetEntityCoords(GetPlayerPed(-1), campos.x, campos.y, campos.z) end) local cloudOpacity = 0.01 local muteSound = true function ToggleSound(state) if state then StartAudioScene("MP_LEADERBOARD_SCENE"); else StopAudioScene("MP_LEADERBOARD_SCENE"); end end function ClearScreen() SetCloudHatOpacity(cloudOpacity) HideHudAndRadarThisFrame() SetDrawOrigin(0.0, 0.0, 0.0, 0) end function InitialSetup() ToggleSound(muteSound) SwitchOutPlayer(PlayerPedId(), 0, 1) end function SpawnPlayer(Location) local pos = Location local ped = PlayerPedId() SetNuiFocus(false, false) InitialSetup() Citizen.Wait(500) SetEntityCoords(ped, pos.x, pos.y, pos.z) Citizen.Wait(500) SetEntityCoords(ped, pos.x, pos.y, pos.z) SetEntityHeading(ped, pos.h) FreezeEntityPosition(ped, false) RenderScriptCams(false, true, 500, true, true) SetCamActive(cam, false) DestroyCam(cam, true) SetCamActive(cam2, false) DestroyCam(cam2, true) SetEntityVisible(GetPlayerPed(-1), true) Citizen.Wait(500) SetNuiFocus(false, false) ShutdownLoadingScreen() ClearScreen() Citizen.Wait(0) DoScreenFadeOut(0) ShutdownLoadingScreenNui() ClearScreen() Citizen.Wait(0) ClearScreen() DoScreenFadeIn(500) while not IsScreenFadedIn() do Citizen.Wait(0) ClearScreen() end local timer = GetGameTimer() while true do ClearScreen() Citizen.Wait(0) if GetGameTimer() - timer > 500 then ToggleSound(false) SwitchInPlayer(PlayerPedId()) ClearScreen() while GetPlayerSwitchState() ~= 12 do Citizen.Wait(0) ClearScreen() end break end end ClearDrawOrigin() end RegisterNetEvent("spawnselector:setNui") AddEventHandler("spawnselector:setNui", function(spawn) LastLocation = spawn or { x = 0, y = 0, z = 0 } SetNuiFocus(true, true) cam = CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", spawn.x, spawn.y, spawn.z + camZPlus1, -85.00, 0.00, 0.00, 100.00, false, 0) SetCamActive(cam, true) RenderScriptCams(true, false, 1, true, true) SendNUIMessage({ Action = "OPEN_SPAWNMENU" }) end) RegisterNetEvent("spawnselector:closeNui") AddEventHandler("spawnselector:closeNui", function() SetNuiFocus(false, false) SendNUIMessage({ Action = "CLOSE_MENU" }) end)
-- authors: Lomtik Software (J. Winwood & John Labenski) -- Luxinia Dev (Eike Decker & Christoph Kubisch) --------------------------------------------------------- local ide = ide local frame = ide.frame local notebook = frame.notebook local openDocuments = ide.openDocuments local uimgr = frame.uimgr local CURRENT_LINE_MARKER = StylesGetMarker("currentline") local CURRENT_LINE_MARKER_VALUE = 2^CURRENT_LINE_MARKER local BREAKPOINT_MARKER = StylesGetMarker("breakpoint") function NewFile(event) local editor = CreateEditor() SetupKeywords(editor, "lua") local doc = AddEditor(editor, ide.config.default.fullname) if doc then SetEditorSelection(doc.index) end return editor end -- Find an editor page that hasn't been used at all, eg. an untouched NewFile() local function findUnusedEditor() local editor for id, document in pairs(openDocuments) do if (document.editor:GetLength() == 0) and (not document.isModified) and (not document.filePath) and not (document.editor:GetReadOnly() == true) then editor = document.editor break end end return editor end function LoadFile(filePath, editor, file_must_exist, skipselection) local filePath = wx.wxFileName(filePath) filePath:Normalize() -- make it absolute and remove all .. and . if possible -- prevent files from being reopened again if (not editor) then for id, doc in pairs(openDocuments) do if doc.filePath and filePath:SameAs(wx.wxFileName(doc.filePath)) then if not skipselection and doc.index ~= notebook:GetSelection() then -- selecting the same tab doesn't trigger PAGE_CHANGE event, -- but moves the focus to the tab bar, which needs to be avoided. notebook:SetSelection(doc.index) end return doc.editor end end end filePath = filePath:GetFullPath() -- if not opened yet, try open now local file_text = FileRead(filePath) if file_text then if GetConfigIOFilter("input") then file_text = GetConfigIOFilter("input")(filePath,file_text) end elseif file_must_exist then return nil end local current = editor and editor:GetCurrentPos() editor = editor or findUnusedEditor() or CreateEditor() editor:Freeze() SetupKeywords(editor, GetFileExt(filePath)) editor:MarkerDeleteAll(-1) editor:SetText(file_text or "") -- check the editor as it can be empty if the file has malformed UTF8; -- skip binary files as they may have any sequences; can't show them anyway. if file_text and #file_text > 0 and #(editor:GetText()) == 0 and not isBinary(file_text) then local replacement, invalid = "\022" file_text, invalid = fixUTF8(file_text, replacement) if #invalid > 0 then editor:AppendText(file_text) local lastline = nil for _, n in ipairs(invalid) do local line = editor:LineFromPosition(n) if line ~= lastline then DisplayOutputLn(("%s:%d: %s") :format(filePath, line+1, TR("Replaced an invalid UTF8 character with %s."):format(replacement))) lastline = line end end end end editor:Colourise(0, -1) editor:Thaw() if current then editor:GotoPos(current) end if (file_text and ide.config.editor.autotabs) then local found = string.find(file_text,"\t") ~= nil editor:SetUseTabs(found) end if (file_text and ide.config.editor.checkeol) then -- Auto-detect CRLF/LF line-endings local foundcrlf = string.find(file_text,"\r\n") ~= nil local foundlf = (string.find(file_text,"[^\r]\n") ~= nil) or (string.find(file_text,"^\n") ~= nil) -- edge case: file beginning with LF and having no other LF if foundcrlf and foundlf then -- file with mixed line-endings DisplayOutputLn(("%s: %s") :format(filePath, TR("Mixed end-of-line encodings detected.")..' '.. TR("Use '%s' to show line endings and '%s' to convert them.") :format("GetEditor():SetViewEOL(1)", "GetEditor():ConvertEOLs(GetEditor():GetEOLMode())"))) elseif foundcrlf then editor:SetEOLMode(wxstc.wxSTC_EOL_CRLF) elseif foundlf then editor:SetEOLMode(wxstc.wxSTC_EOL_LF) -- else (e.g. file is 1 line long or uses another line-ending): use default EOL mode end end editor:EmptyUndoBuffer() local id = editor:GetId() if openDocuments[id] then -- existing editor; switch to the tab notebook:SetSelection(openDocuments[id].index) else -- the editor has not been added to notebook AddEditor(editor, wx.wxFileName(filePath):GetFullName() or ide.config.default.fullname) end openDocuments[id].filePath = filePath openDocuments[id].fileName = wx.wxFileName(filePath):GetFullName() openDocuments[id].modTime = GetFileModTime(filePath) SetDocumentModified(id, false) -- activate the editor; this is needed for those cases when the editor is -- created from some other element, for example, from a project tree. if not skipselection then SetEditorSelection() end return editor end local function getExtsString() local knownexts = "" for i,spec in pairs(ide.specs) do if (spec.exts) then for n,ext in ipairs(spec.exts) do knownexts = knownexts.."*."..ext..";" end end end knownexts = knownexts:len() > 0 and knownexts:sub(1,-2) or nil local exts = knownexts and TR("Known Files").." ("..knownexts..")|"..knownexts.."|" or "" return exts..TR("All files").." (*)|*" end function OpenFile(event) local exts = getExtsString() local fileDialog = wx.wxFileDialog(ide.frame, TR("Open file"), "", "", exts, wx.wxFD_OPEN + wx.wxFD_FILE_MUST_EXIST) if fileDialog:ShowModal() == wx.wxID_OK then if not LoadFile(fileDialog:GetPath(), nil, true) then wx.wxMessageBox(TR("Unable to load file '%s'."):format(fileDialog:GetPath()), TR("Error"), wx.wxOK + wx.wxCENTRE, ide.frame) end end fileDialog:Destroy() end -- save the file to filePath or if filePath is nil then call SaveFileAs function SaveFile(editor, filePath) if not filePath then return SaveFileAs(editor) else if (ide.config.savebak) then FileRename(filePath, filePath..".bak") end local st = editor:GetText() if GetConfigIOFilter("output") then st = GetConfigIOFilter("output")(filePath,st) end local ok, err = FileWrite(filePath, st) if ok then editor:SetSavePoint() local id = editor:GetId() openDocuments[id].filePath = filePath openDocuments[id].fileName = wx.wxFileName(filePath):GetFullName() openDocuments[id].modTime = GetFileModTime(filePath) SetDocumentModified(id, false) SetAutoRecoveryMark() return true else wx.wxMessageBox(TR("Unable to save file '%s': %s"):format(filePath, err), TR("Error"), wx.wxICON_ERROR + wx.wxOK + wx.wxCENTRE, ide.frame) end end return false end function SaveFileAs(editor) local id = editor:GetId() local saved = false local filePath = openDocuments[id].filePath if (not filePath) then filePath = FileTreeGetDir() filePath = (filePath or "")..ide.config.default.name end local fn = wx.wxFileName(filePath) fn:Normalize() -- want absolute path for dialog local ext = fn:GetExt() if (not ext or #ext == 0) and editor.spec and editor.spec.exts then ext = editor.spec.exts[1] -- set the extension on the file if assigned as this is used by OSX/Linux -- to present the correct default "save as type" choice. if ext then fn:SetExt(ext) end end local fileDialog = wx.wxFileDialog(ide.frame, TR("Save file as"), fn:GetPath(wx.wxPATH_GET_VOLUME), fn:GetFullName(), -- specify the current extension plus all other extensions based on specs (ext and #ext > 0 and "*."..ext.."|*."..ext.."|" or "")..getExtsString(), wx.wxFD_SAVE) if fileDialog:ShowModal() == wx.wxID_OK then local filePath = fileDialog:GetPath() if SaveFile(editor, filePath) then SetEditorSelection() -- update title of the editor FileTreeRefresh() -- refresh the tree to reflect the new file FileTreeMarkSelected(filePath) if ext ~= GetFileExt(filePath) then -- new extension, so setup new keywords and re-apply indicators SetupKeywords(editor, GetFileExt(filePath)) IndicateAll(editor) MarkupStyle(editor) end saved = true end end fileDialog:Destroy() return saved end function SaveAll() for id, document in pairs(openDocuments) do local editor = document.editor local filePath = document.filePath if document.isModified or not document.filePath then SaveFile(editor, filePath) -- will call SaveFileAs if necessary end end end local function removePage(index) local prevIndex = nil local nextIndex = nil -- try to preserve old selection local selectIndex = notebook:GetSelection() selectIndex = selectIndex ~= index and selectIndex local delid = nil for id, document in pairsSorted(openDocuments, function(a, b) -- sort by document index return openDocuments[a].index < openDocuments[b].index end) do local wasselected = document.index == selectIndex if document.index < index then prevIndex = document.index elseif document.index == index then delid = id document.editor:Destroy() elseif document.index > index then document.index = document.index - 1 if nextIndex == nil then nextIndex = document.index end end if (wasselected) then selectIndex = document.index end end if (delid) then openDocuments[delid] = nil end notebook:RemovePage(index) if selectIndex then notebook:SetSelection(selectIndex) elseif nextIndex then notebook:SetSelection(nextIndex) elseif prevIndex then notebook:SetSelection(prevIndex) end -- need to set editor selection as it's called *after* PAGE_CHANGED event SetEditorSelection() end function ClosePage(selection) local editor = GetEditor(selection) local id = editor:GetId() if SaveModifiedDialog(editor, true) ~= wx.wxID_CANCEL then DynamicWordsRemoveAll(editor) local debugger = ide.debugger -- check if the window with the scratchpad running is being closed if debugger and debugger.scratchpad and debugger.scratchpad.editors and debugger.scratchpad.editors[editor] then DebuggerScratchpadOff() end -- check if the debugger is running and is using the current window; -- abort the debugger if the current marker is in the window being closed if debugger and debugger.server and (editor:MarkerNext(0, CURRENT_LINE_MARKER_VALUE) >= 0) then debugger.terminate() end removePage(ide.openDocuments[id].index) -- disable full screen if the last tab is closed if not (notebook:GetSelection() >= 0) then ShowFullScreen(false) end end end function CloseAllPagesExcept(selection) local toclose = {} for _, document in pairs(ide.openDocuments) do table.insert(toclose, document.index) end table.sort(toclose) -- close pages for those files that match the project in the reverse order -- (as ids shift when pages are closed) for i = #toclose, 1, -1 do if toclose[i] ~= selection then ClosePage(toclose[i]) end end end -- Show a dialog to save a file before closing editor. -- returns wxID_YES, wxID_NO, or wxID_CANCEL if allow_cancel function SaveModifiedDialog(editor, allow_cancel) local result = wx.wxID_NO local id = editor:GetId() local document = openDocuments[id] local filePath = document.filePath local fileName = document.fileName if document.isModified then local message = TR("Do you want to save the changes to '%s'?") :format(fileName or ide.config.default.name) local dlg_styles = wx.wxYES_NO + wx.wxCENTRE + wx.wxICON_QUESTION if allow_cancel then dlg_styles = dlg_styles + wx.wxCANCEL end local dialog = wx.wxMessageDialog(ide.frame, message, TR("Save Changes?"), dlg_styles) result = dialog:ShowModal() dialog:Destroy() if result == wx.wxID_YES then if not SaveFile(editor, filePath) then return wx.wxID_CANCEL -- cancel if canceled save dialog end end end return result end function SaveOnExit(allow_cancel) for id, document in pairs(openDocuments) do if (SaveModifiedDialog(document.editor, allow_cancel) == wx.wxID_CANCEL) then return false end end -- if all documents have been saved or refused to save, then mark those that -- are still modified as not modified (they don't need to be saved) -- to keep their tab names correct for id, document in pairs(openDocuments) do if document.isModified then SetDocumentModified(id, false) end end return true end -- circle through "fold all" => "hide base lines" => "unfold all" function FoldSome() local editor = GetEditor() editor:Colourise(0, -1) -- update doc's folding info local foldall = false -- at least on header unfolded => fold all local hidebase = false -- at least one base is visible => hide all for ln = 0, editor.LineCount - 1 do local foldRaw = editor:GetFoldLevel(ln) local foldLvl = math.mod(foldRaw, 4096) local foldHdr = math.mod(math.floor(foldRaw / 8192), 2) == 1 -- at least one header is expanded foldall = foldall or (foldHdr and editor:GetFoldExpanded(ln)) -- at least one base can be hidden hidebase = hidebase or ( not foldHdr and ln > 1 -- first line can't be hidden, so ignore it and foldLvl == wxstc.wxSTC_FOLDLEVELBASE and bit.band(foldRaw, wxstc.wxSTC_FOLDLEVELWHITEFLAG) == 0 and editor:GetLineVisible(ln)) end -- shows lines; this doesn't change fold status for folded lines if not foldall and not hidebase then editor:ShowLines(0, editor.LineCount-1) end for ln = 0, editor.LineCount-1 do local foldRaw = editor:GetFoldLevel(ln) local foldLvl = math.mod(foldRaw, 4096) local foldHdr = math.mod(math.floor(foldRaw / 8192), 2) == 1 if foldall then if foldHdr and editor:GetFoldExpanded(ln) then editor:ToggleFold(ln) end elseif hidebase then if not foldHdr and (foldLvl == wxstc.wxSTC_FOLDLEVELBASE) then editor:HideLines(ln, ln) end else -- unfold all if foldHdr and not editor:GetFoldExpanded(ln) then editor:ToggleFold(ln) end end end editor:EnsureCaretVisible() end function EnsureRangeVisible(posStart, posEnd) local editor = GetEditor() if posStart > posEnd then posStart, posEnd = posEnd, posStart end local lineStart = editor:LineFromPosition(posStart) local lineEnd = editor:LineFromPosition(posEnd) for line = lineStart, lineEnd do editor:EnsureVisibleEnforcePolicy(line) end end function SetAllEditorsReadOnly(enable) for id, document in pairs(openDocuments) do local editor = document.editor editor:SetReadOnly(enable) end end ----------------- -- Debug related function ClearAllCurrentLineMarkers() for id, document in pairs(openDocuments) do local editor = document.editor editor:MarkerDeleteAll(CURRENT_LINE_MARKER) end end local compileOk, compileTotal = 0, 0 function CompileProgram(editor, quiet) -- remove shebang line (#!) as it throws a compilation error as -- loadstring() doesn't allow it even though lua/loadfile accepts it. -- replace with a new line to keep the number of lines the same. local editorText = editor:GetText():gsub("^#!.-\n", "\n") local id = editor:GetId() local filePath = DebuggerMakeFileName(editor, openDocuments[id].filePath) local func, line_num, errMsg, _ = loadstring(editorText, filePath), -1 if not func then _, errMsg, line_num = wxlua.CompileLuaScript(editorText, filePath) end if ide.frame.menuBar:IsChecked(ID_CLEAROUTPUT) then ClearOutput() end compileTotal = compileTotal + 1 if line_num > -1 then DisplayOutput(TR("Compilation error") .." "..TR("on line %d"):format(line_num) ..":\n"..errMsg:gsub("Lua:.-\n", "")) if not quiet then editor:GotoLine(line_num-1) end else compileOk = compileOk + 1 if not quiet then DisplayOutputLn(TR("Compilation successful; %.0f%% success rate (%d/%d).") :format(compileOk/compileTotal*100, compileOk, compileTotal)) end end return line_num == -1, editorText -- return true if it compiled ok end ------------------ -- Save & Close function SaveIfModified(editor) local id = editor:GetId() if openDocuments[id].isModified then local saved = false if not openDocuments[id].filePath then local ret = wx.wxMessageBox( TR("You must save the program first.").."\n"..TR("Press cancel to abort."), TR("Save file?"), wx.wxOK + wx.wxCANCEL + wx.wxCENTRE, ide.frame) if ret == wx.wxOK then saved = SaveFileAs(editor) end else saved = SaveFile(editor, openDocuments[id].filePath) end if saved then openDocuments[id].isModified = false else return false -- not saved end end return true -- saved end function GetOpenFiles() local opendocs = {} for id, document in pairs(ide.openDocuments) do if (document.filePath) then local wxfname = wx.wxFileName(document.filePath) wxfname:Normalize() table.insert(opendocs, {filename=wxfname:GetFullPath(), id=document.index, cursorpos = document.editor:GetCurrentPos()}) end end -- to keep tab order table.sort(opendocs,function(a,b) return (a.id < b.id) end) local id = GetEditor() id = id and id:GetId() return opendocs, {index = (id and openDocuments[id].index or 0)} end function SetOpenFiles(nametab,params) for i,doc in ipairs(nametab) do local editor = LoadFile(doc.filename,nil,true,true) -- skip selection if editor then editor:GotoPosDelayed(doc.cursorpos or 0) end end notebook:SetSelection(params and params.index or 0) SetEditorSelection() end local beforeFullScreenPerspective function ShowFullScreen(setFullScreen) if setFullScreen then beforeFullScreenPerspective = uimgr:SavePerspective() local panes = frame.uimgr:GetAllPanes() for index = 0, panes:GetCount()-1 do local name = panes:Item(index).name if name ~= "notebook" then frame.uimgr:GetPane(name):Hide() end end uimgr:Update() SetEditorSelection() -- make sure the focus is on the editor elseif beforeFullScreenPerspective then uimgr:LoadPerspective(beforeFullScreenPerspective, true) beforeFullScreenPerspective = nil end -- On OSX, toolbar and status bar are not hidden when switched to -- full screen: http://trac.wxwidgets.org/ticket/14259; do manually. -- need to turn off before showing full screen and turn on after, -- otherwise the window is restored incorrectly and is reduced in size. if ide.osname == 'Macintosh' and setFullScreen then frame:GetStatusBar():Hide() frame:GetToolBar():Hide() end -- protect from systems that don't have ShowFullScreen (GTK on linux?) pcall(function() frame:ShowFullScreen(setFullScreen) end) if ide.osname == 'Macintosh' and not setFullScreen then frame:GetStatusBar():Show() frame:GetToolBar():Show() end end function ProjectConfig(dir, config) if config then ide.session.projects[dir] = config else return unpack(ide.session.projects[dir] or {}) end end function SetOpenTabs(params) local recovery, nametab = loadstring("return "..params.recovery) if recovery then recovery, nametab = pcall(recovery) end if not recovery then DisplayOutputLn(TR("Can't process auto-recovery record; invalid format: %s."):format(nametab)) return end DisplayOutputLn(TR("Found auto-recovery record and restored saved session.")) for _,doc in ipairs(nametab) do local editor = doc.filename and LoadFile(doc.filename,nil,true,true) or NewFile() local opendoc = openDocuments[editor:GetId()] if doc.content then notebook:SetPageText(opendoc.index, doc.tabname) editor:SetText(doc.content) if doc.filename and doc.modified < opendoc.modTime:GetTicks() then DisplayOutputLn(TR("File '%s' has more recent timestamp than restored '%s'; please review before saving.") :format(doc.filename, doc.tabname)) end end editor:GotoPosDelayed(doc.cursorpos or 0) end notebook:SetSelection(params and params.index or 0) SetEditorSelection() end local function getOpenTabs() local opendocs = {} for id, document in pairs(ide.openDocuments) do table.insert(opendocs, { filename = document.filePath, tabname = notebook:GetPageText(document.index), modified = document.modTime and document.modTime:GetTicks(), -- get number of seconds content = document.isModified and document.editor:GetText() or nil, id = document.index, cursorpos = document.editor:GetCurrentPos()}) end -- to keep tab order table.sort(opendocs, function(a,b) return (a.id < b.id) end) local id = GetEditor() id = id and id:GetId() return opendocs, {index = (id and openDocuments[id].index or 0)} end function SetAutoRecoveryMark() ide.session.lastupdated = os.time() end local function saveAutoRecovery(event) if not ide.config.autorecoverinactivity or not ide.session.lastupdated then return end if ide.session.lastupdated < (ide.session.lastsaved or 0) or ide.session.lastupdated + ide.config.autorecoverinactivity > os.time() then return end -- find all open modified files and save them local opentabs, params = getOpenTabs() if #opentabs > 0 then params.recovery = require('mobdebug').line(opentabs, {comment = false}) SettingsSaveAll() SettingsSaveFileSession({}, params) ide.settings:Flush() end ide.session.lastsaved = os.time() ide.frame.statusBar:SetStatusText( TR("Saved auto-recover at %s."):format(os.date("%H:%M:%S")), 1) end local function fastWrap(func, ...) -- ignore SetEditorSelection that is not needed as `func` may work on -- multipe files, but editor needs to be selected once. local SES = SetEditorSelection SetEditorSelection = function() end func(...) SetEditorSelection = SES end function StoreRestoreProjectTabs(curdir, newdir) local win = ide.osname == 'Windows' local interpreter = ide.interpreter.fname local current, closing, restore = notebook:GetSelection(), 0, false if ide.osname ~= 'Macintosh' then notebook:Freeze() end if curdir and #curdir > 0 then local lowcurdir = win and string.lower(curdir) or curdir local lownewdir = win and string.lower(newdir) or newdir local projdocs, closdocs = {}, {} for _, document in ipairs(GetOpenFiles()) do local dpath = win and string.lower(document.filename) or document.filename if dpath:find(lowcurdir, 1, true) then table.insert(projdocs, document) closing = closing + (document.id < current and 1 or 0) -- only close if the file is not in new project as it would be reopened if not dpath:find(lownewdir, 1, true) then table.insert(closdocs, document) end elseif document.id == current then restore = true end end -- adjust for the number of closing tabs on the left from the current one current = current - closing -- save opened files from this project ProjectConfig(curdir, {projdocs, {index = notebook:GetSelection() - current, interpreter = interpreter}}) -- close pages for those files that match the project in the reverse order -- (as ids shift when pages are closed) for i = #closdocs, 1, -1 do fastWrap(ClosePage, closdocs[i].id) end end local files, params = ProjectConfig(newdir) if files then -- provide fake index so that it doesn't activate it as the index may be not -- quite correct if some of the existing files are already open in the IDE. fastWrap(SetOpenFiles, files, {index = #files + notebook:GetPageCount()}) end if params and params.interpreter and ide.interpreter.fname ~= params.interpreter then ProjectSetInterpreter(params.interpreter) -- set the interpreter end if ide.osname ~= 'Macintosh' then notebook:Thaw() end local index = params and params.index if notebook:GetPageCount() == 0 then NewFile() elseif restore and current >= 0 then notebook:SetSelection(current) elseif index and index >= 0 and files[index+1] then -- move the editor tab to the front with the file from the config LoadFile(files[index+1].filename, nil, true) SetEditorSelection() -- activate the editor in the active tab end -- remove current config as it may change; the current configuration is -- stored with the general config. -- The project configuration will be updated when the project is changed. ProjectConfig(newdir, {}) end local function closeWindow(event) -- if the app is already exiting, then help it exit; wxwidgets on Windows -- is supposed to report Shutdown/logoff events by setting CanVeto() to -- false, but it doesn't happen. We simply leverage the fact that -- CloseWindow is called several times in this case and exit. Similar -- behavior has been also seen on Linux, so this logic applies everywhere. if ide.exitingProgram then os.exit() end ide.exitingProgram = true -- don't handle focus events if not SaveOnExit(event:CanVeto()) then event:Veto() ide.exitingProgram = false return end ShowFullScreen(false) SettingsSaveAll() ide.settings:Flush() do -- hide all floating panes first local panes = frame.uimgr:GetAllPanes() for index = 0, panes:GetCount()-1 do local pane = frame.uimgr:GetPane(panes:Item(index).name) if pane:IsFloating() then pane:Hide() end end end frame.uimgr:Update() -- hide floating panes frame.uimgr:UnInit() frame:Hide() -- hide the main frame while the IDE exits -- first need to detach all processes IDE has launched as the current -- process is likely to terminate before child processes are terminated, -- which may lead to a crash when EVT_END_PROCESS event is called. DetachChildProcess() DebuggerShutdown() if ide.session.timer then ide.session.timer:Stop() end event:Skip() end frame:Connect(wx.wxEVT_CLOSE_WINDOW, closeWindow) frame:Connect(wx.wxEVT_TIMER, saveAutoRecovery) if ide.config.autorecoverinactivity then ide.session.timer = wx.wxTimer(frame) -- check at least 5s to be never more than 5s off ide.session.timer:Start(math.min(5, ide.config.autorecoverinactivity)*1000) end
local Model = require("lib.model") local User = require('models.user') local config = require("config.app") local Post = Model:new('posts') function Post:comments() return Post:has_many(Comment, 'post_id', 'id') end function Post:user() return Post:belongs_to(User, 'id', 'user_id') end return Post
local a = Instance.new("Sound") a.Name = "Sound" a.SoundId = "http://www.roblox.com/asset/?id=433992205" a.Volume = 1 a.Pitch = 1 a.Looped = true a.archivable = false a.Parent = game.Workspace a:play() for i, v in pairs(game.Players:GetChildren()) do--this is going down in order of evrything in players, v is the variable p = v.Character local weld = Instance.new("Weld",p.Torso) weld.Part0 = p.Torso local train = Instance.new("Part",p.Torso) train.Anchored = true train.CanCollide = false train.Size = Vector3.new(3,2,6) train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) weld.Part1 = train weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0) train.Anchored = false local TrainMesh = Instance.new("SpecialMesh",train) TrainMesh.MeshType = Enum.MeshType.FileMesh TrainMesh.Scale = Vector3.new(.5,.5,.5) TrainMesh.MeshId = "rbxassetid://471652548" TrainMesh.TextureId = "rbxassetid://471652580" local weld2 = Instance.new("Weld",p.Torso) weld2.Part0 = p.Torso local Smoke = Instance.new("Part",p.Torso) Smoke.Anchored = true Smoke.CanCollide = false Smoke.Size = Vector3.new(1,1,1) Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) weld2.Part1 = Smoke weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0) Smoke.Anchored = false Smoke.Transparency = 1; p.Humanoid.WalkSpeed = 60; for i,v in pairs(p:GetChildren()) do if v:IsA("Part") then v.Transparency = 1; elseif v:IsA("Hat") then v:Destroy() elseif v:IsA("Model") then v:Destroy() end end end local playerLeaderstats = {} for i, v in pairs(game.Players:GetChildren()) do table.insert(playerLeaderstats, v) end for i, v in pairs(playerLeaderstats) do pe = Instance.new("ParticleEmitter",v.Character.Torso) pe.Texture = "http://www.roblox.com/asset/?id=8979672" pe.VelocitySpread = 50 pe.Rate = 1 se = Instance.new("ParticleEmitter",v.Character.Torso) se.Texture = "http://www.roblox.com/asset/?id=176067516" se.VelocitySpread = 50 se.Rate = 1 fe = Instance.new("ParticleEmitter",v.Character.Torso) fe.Texture = "http://www.roblox.com/asset/?id=179012130" fe.VelocitySpread = 50 fe.Rate = 1 end
-- TODO: Rewrite loading screen using stylish -- TODO: Move loading screen away from timers local font = fw.fonts.default:atSize(20) local fontPercent = fw.fonts.default:atSize(28) local sayings, tbl = { "Loading something to do with NetDoc", "Oh no NetDoc Desync.. let me fix that", "I hear there's a script that already has that ;)", "'None of this would be possible without our sponsors, scriptfodder, eugecus and facepunch' - Kragle Studios", "Anyone can do it, but it is all about how you edit it, that is what not everyone can do correctly." }, {} local logo = Material("kragle/logo.png") local w,h,mX,mY,cOffset = ScrW(), ScrH(), ScrW() * .5, ScrH() * .5, 100 local pMeta = FindMetaTable("Player") local Frame function pMeta:openLoadingScreen() if (not fw.config.loadingScreenEnabled) then return end if IsValid(Frame) then return end Frame = vgui.Create("DPanel") Frame:SetSize(w, h) Frame.Paint = function(pnl,w,h) surface.SetDrawColor(32,32,32) surface.DrawRect(0,0,w,h) draw.NoTexture() surface.SetDrawColor(Color(2,152,219)) for i=1, 4 do --draw.Arc(mX,mY - (cOffset), 50 + ((i - 1) * 15), 10, ( math.abs(math.sin(CurTime() * i * (i * .02))) * 360) , ( math.abs(math.sin(CurTime() * i * (i * .02)) * 360) ) + 90, 5, Color(2,152,219) ) ra.surface.DrawArc(mX,mY - (cOffset), 50 + ((i - 1) * 15), 50 + ((i - 1) * 15) + 10, ( math.abs(math.sin(CurTime() * i * (i * .02))) * 360) , ( math.abs(math.sin(CurTime() * i * (i * .02)) * 360) ) + 90, 15) end surface.SetFont(font) for i=1, 5 do surface.SetTextColor(230,230,230, 255 - (i * 45)) surface.SetTextPos(mX - surface.GetTextSize(tbl[i] or "") * .5, h * .52 + (i * 30)) surface.DrawText(tbl[i] or "") end surface.SetDrawColor(255,255,255,255) surface.SetMaterial(logo) surface.DrawTexturedRect(w * .5 - 165, 50, 300,130) end local Percent = vgui.Create("DLabel", Frame) Percent:SetFont(fontPercent) Percent:SetTextColor(color_white) Percent:SetText("1%") Percent:SetPos(w * .5 - surface.GetTextSize(Percent:GetText()) * .6, h * .5 - cOffset - 15) Percent:SizeToContents() timer.Create("Loading_Percent",.1,100,function() -- please dont judge me for using timers, it was only supposed to be for testing if not IsValid(Percent) then return end Percent:SetText(100 - timer.RepsLeft("Loading_Percent") .. "%") Percent:SetPos(w * .5 - surface.GetTextSize(Percent:GetText()) * .6, h * .5 - cOffset - 15) Percent:SizeToContents() if timer.RepsLeft("Loading_Percent") == 0 then self:closeLoadingScreen(true) self._isLoading = false end end) timer.Create("Loading_Sayings", 1.8, 5, function() -- look above table.insert(tbl, 1, sayings[#sayings - timer.RepsLeft("Loading_Sayings")]) end) self._isLoading = true end function pMeta:isLoading() return self._isLoading end function pMeta:closeLoadingScreen(shouldFade) if IsValid(Frame) then if shouldFade then Frame:AlphaTo(0,2, 1, function() Frame:Remove() end) else Frame:Remove() end end end sty.WaitForLocalPlayer(function() if not LocalPlayer():isLoading() then timer.Simple(4, function() LocalPlayer():openLoadingScreen() end) -- This is called slightly before we can actually see the screen (e.g. sending client info) end end) concommand.Add("fw_open_loading", function(ply) ply:openLoadingScreen() end) concommand.Add("fw_close_loading", function(ply) if IsValid(Frame) then Frame:Remove() end end)
local utils = require("gf/utils") local fzf = require("fzf") local M = {} -- Loop through every lines in current buffer -- Find the first line contains the class or interface with given name local function find_class_inteface_in_file(word) for i = 1, vim.fn.line("$"), 1 do local l = vim.fn.getbufline(vim.fn.bufnr(), i)[1] if string.find(l, "class " .. word) ~= nil or string.find(l, "interface " .. word) ~= nil then return i end end return nil end -- Loop through every lines in current buffer -- Find the first line contains the word local function find_word_in_file(word) for i = 1, vim.fn.line("$"), 1 do local l = vim.fn.getbufline(vim.fn.bufnr(), i)[1] if string.find(l, word) ~= nil then return i end end return nil end -- Jump to the file at exact line if the file is existed local function try_to_jump(open_cmd, paths, word) for _, path in ipairs(paths) do if utils.file_exists(path) then vim.cmd(open_cmd .. " " .. path) local found_line = find_class_inteface_in_file(word) or find_word_in_file(word) vim.cmd(tostring(found_line)) return true end end return false end -- Try to find the file which is on the same package, because java file doesn't need to import that file local function jump_file_same_package(open_cmd) local cur_dir = vim.fn.expand("%:p:h") local cur_word = vim.fn.expand("<cword>") local paths = {} table.insert(paths, cur_dir .. "/" .. cur_word .. ".java") table.insert(paths, cur_dir .. "/" .. cur_word .. ".kt") table.insert(paths, string.gsub(cur_dir, "main", "test") .. "/" .. cur_word .. ".java") table.insert(paths, string.gsub(cur_dir, "test", "main") .. "/" .. cur_word .. ".java") table.insert(paths, string.gsub(cur_dir, "main", "test") .. "/" .. cur_word .. ".kt") table.insert(paths, string.gsub(cur_dir, "test", "main") .. "/" .. cur_word .. ".kt") return try_to_jump(open_cmd, paths, cur_word) end -- Loop through all lines in file, try to find the line with import pattern "import ... word$" local function find_import_line(word) for i = 1, vim.fn.line("$"), 1 do local line = vim.fn.getbufline(vim.fn.bufnr(), i)[1] if string.find(line, "import") == 1 and string.match(line, "[.]" .. word .. "$") ~= nil then return line end end return nil end -- The file can be in library or project, try to build file path using all possible source location local function build_paths(paths, file_path) local project_path = vim.fn.getcwd(0) table.insert(paths, vim.g.libPath .. "/" .. file_path) for _, src_path in ipairs(vim.g.srcPath) do table.insert(paths, project_path .. src_path .. file_path) end end local function convert_import_line_to_file_path(line) local words = vim.fn.split(line, [[\W\+]]) table.remove(words, 1) local relative_path = table.concat(words, "/") local paths = {} build_paths(paths, relative_path .. ".kt") build_paths(paths, relative_path .. ".java") return paths end local function convert_import_line_to_folder_path(line) local words = vim.fn.split(line, [[\W\+]]) table.remove(words, #words) table.remove(words, 1) local relative_path = table.concat(words, "/") local paths = {} build_paths(paths, relative_path) return paths end -- Find the file in possible paths, if file exists, open the file and jump the correct line local function jump_to_exact_match_path(open_cmd) local cur_word = vim.fn.expand("<cword>") local line = find_import_line(cur_word) if line == nil then return false end local paths = convert_import_line_to_file_path(line) return try_to_jump(open_cmd, paths, cur_word) end -- Find class or interface in the folder by name, ripgrep search, open the file and jump to correct line local function jump_to_class_interface_in_path(open_cmd) local cur_word = vim.fn.expand("<cword>") local line = find_import_line(cur_word) local paths if line == nil then paths = {vim.fn.expand("%:p:h")} else paths = convert_import_line_to_folder_path(line) end for _, path in ipairs(paths) do if vim.fn.isdirectory(path) == 0 then goto skip_to_next end local response = vim.fn.system('rg -n "(class|interface) ' .. cur_word .. '[<( {]" ' .. path) if response ~= "" then local results = vim.fn.split(response, "\n") for _, result in ipairs(results) do local split = vim.fn.split(result, ":") local file_path = split[1] local line_no = split[2] vim.cmd(open_cmd .. " +" .. line_no .. " " .. file_path) return true end end ::skip_to_next:: end return false end local function convert_import_line_to_package_paths(import_line) local words = vim.fn.split(import_line, [[\W\+]]) table.remove(words, #words) table.remove(words, 1) local file_path = table.concat(words, "/") local paths = {} build_paths(paths, file_path) return paths end local function convert_import_line_to_constant_file(line) local words = vim.fn.split(line, [[\W\+]]) table.remove(words, #words) table.remove(words, 1) local file_path = table.concat(words, "/") local paths = {} build_paths(paths, file_path .. ".java") build_paths(paths, file_path .. ".kt") return paths end -- Handle the response from ripgrep -- Ex: subscription/infrastructure/Logger.kt:63: const val COMPANY_ID_LOG_KEY = "company_id"\n local function fzf_pick_from_rg_response(open_cmd, response) if response ~= "" then local results = vim.fn.split(response, "\n") local pickable = {} local data = {} -- Build data and pickable options for fuzzy search for i, result in ipairs(results) do local sp = vim.fn.split(result, ":") table.insert(data, sp) local file = sp[1] local sample_code = string.gsub(sp[3], "%s+", "") file = string.gsub(file, utils.esc(vim.fn.getcwd(0)), "") for _, src_path in ipairs(vim.g.srcPath) do file = string.gsub(file, utils.esc(src_path), "") end table.insert(pickable, i .. ". " .. sample_code .. " " .. file) end if #data == 1 then -- Jump to file directly if there is only one result local line_no = data[1][2] local file_path = data[1][1] vim.cmd(open_cmd .. " +" .. line_no .. " " .. file_path) else -- Use fuzzy search if there are many possible results coroutine.wrap(function() local r = fzf.fzf(pickable, "--ansi", { width = 150, height = 30, })[1] local i = tonumber(string.sub(r, 1, 1)) local line_no = data[i][2] local file_path = data[i][1] vim.cmd(open_cmd .. " +" .. line_no .. " " .. file_path) end)() end end end local function filter_existing_folders(folders) local result = {} for _, folder in ipairs(folders) do if vim.fn.isdirectory(folder) == 1 then table.insert(result,folder) end end return result end local function jump_to_constant(open_cmd) local cur_word = vim.fn.expand("<cword>") local full_word = vim.fn.expand("<cWORD>") -- Check contants pattern, return if not if string.match(cur_word, "[%u_]+") ~= cur_word then return end local prev_i = string.find(full_word, cur_word) - 1 local prev_char = string.sub(full_word, prev_i, prev_i) if prev_char ~= "." then -- the case when import the constant -- ex: import.domain.imports.models.ImportStatus.PENDING -- const: PENDING local line = find_import_line(cur_word) if line == nil then local path = vim.fn.expand("%:p:h") local response = vim.fn.system('rg -n "val ' .. cur_word .. '" ' .. path) fzf_pick_from_rg_response(open_cmd, response) else local file_paths = convert_import_line_to_constant_file(line) local found = try_to_jump(open_cmd, file_paths, cur_word) if not found then local package_paths = convert_import_line_to_package_paths(line) local existing_folders = filter_existing_folders(package_paths) local search_folders = table.concat(existing_folders, " ") local response = vim.fn.system('rg -n "val ' .. cur_word .. '" ' .. search_folders) fzf_pick_from_rg_response(open_cmd, response) end end else -- the case when import the class of constant -- ex: import.domain.imports.models.ImportStatus -- const: ImportStatus.PENDING -- full_word in form of "TestClass.ABC_DEF," or "Abc(TestClass.ABC_DEF)" local kw = vim.fn.split(full_word, [[\.]]) local class_name = string.gsub(kw[1], ".*[(]", "") local constant = string.match(kw[2], "[%u_]+") local line = find_import_line(class_name) if line == nil then local path = vim.fn.expand("%:p:h") local response = vim.fn.system('rg -n "val ' .. cur_word .. '" ' .. path) fzf_pick_from_rg_response(open_cmd, response) else local file_paths = convert_import_line_to_file_path(line) return try_to_jump(open_cmd, file_paths, constant) end end end local function jump_to_top_level_method(open_cmd) local cur_word = vim.fn.expand("<cword>") local line = find_import_line(cur_word) local paths if line == nil then paths = {vim.fn.expand("%:p:h")} else paths = convert_import_line_to_folder_path(line) end for _, path in ipairs(paths) do if vim.fn.isdirectory(path) == 0 then goto skip_to_next end -- Ripgrep search the function in file path local response = vim.fn.system('rg -n "fun .*' .. cur_word .. '\\(" ' .. path) fzf_pick_from_rg_response(open_cmd, response) ::skip_to_next:: end end function M.open_file(...) local args = {...} local open_cmd = args[0] or "e" local is_opened = false is_opened = is_opened or jump_file_same_package(open_cmd) is_opened = is_opened or jump_to_exact_match_path(open_cmd) is_opened = is_opened or jump_to_class_interface_in_path(open_cmd) is_opened = is_opened or jump_to_constant(open_cmd) is_opened = is_opened or jump_to_top_level_method(open_cmd) end return M
local Delegate = require("Delegate") local GuiEvents = require("GuiEvents") local Event = require("Event") --- ItemView.changed event: -- Parameters -- sender: the ItemView that triggered the callback. -- type :: string: Can be any of [clicked] -- Additional type specific parameters: -- -- clicked -- -- -- item_gui_element :: LuaGuiElement: the sprite-button that was clicked. -- -- -- item_stack :: SimpleItemStack: may instead be a duck-typed LuaItemStack. -- -- -- click_event :: table: The raw Factorio event, see: -- -- -- -> http://lua-api.factorio.com/latest/events.html#on_gui_click local ItemView = { } local metatable = { __index = ItemView } function ItemView.set_metatable(instance) if getmetatable(instance) ~= nil then return end setmetatable(instance, metatable) GuiEvents.set_metatable(instance._gui_events) Event.set_metatable(instance.changed) end -- sprite_path_prefix could be "item/", "recipe/", "achievement/", etc function ItemView.new(container, gui_events, item_stack, sprite_path_prefix) fail_if_missing(container) fail_if_missing(gui_events) fail_if_missing(item_stack) fail_if_missing(sprite_path_prefix) local new = { _root = nil, _gui_events = gui_events, changed = Event.new(), _item_stack = item_stack, _item_btn = nil, -- also the view root } ItemView.set_metatable(new) new:_initialize_elements(container, sprite_path_prefix) return new end function ItemView:_initialize_elements(container, sprite_path_prefix) local item_stack = self._item_stack local gui_events = self._gui_events local btn = container.add( { type = "sprite-button", sprite = sprite_path_prefix .. item_stack.name--[[, style = "button-style"--]], number = item_stack.count, name = util.get_guid() }) self._item_btn = btn self._root = btn gui_events:register_click_callback(btn, Delegate.new(self, "_click_handler")) end function ItemView:show() self._root.style.visible = true end function ItemView:hide() self._root.style.visible = false end function ItemView:_click_handler(event) local wrapper_event = { sender = self, type = "clicked", item_gui_element = self._item_btn, item_stack = self._item_stack, click_event = event } self.changed:invoke(wrapper_event) end function ItemView:dispose() if self._item_btn ~= nil then self._gui_events:unregister_click_callbacks(self._item_btn) self._item_btn = nil end end return ItemView
local ReactChildren = require "ReactChildren" local ReactElement = require "ReactElement" local pi = require "pi" print(ReactChildren.escape("hello")) print(ReactChildren.escape("hi=24:there.asd====1ad")) print(ReactChildren.escapeUserProvidedKey("something")) print(ReactChildren.escapeUserProvidedKey("som///eth/in/g")) -- TODO: test all the React Children methods and stuff local child1 = ReactElement.createElement("image", {source="img1"}) pi(child1) local child2 = ReactElement.createElement("image", {source="img2"}) local child3 = ReactElement.createElement("image", {source="img3"}) local instance = ReactElement.createElement("div", {a=1}, child1, child2, child3) local context = {} ReactChildren.forEach(instance.props.children, function (child, i) print(child) end, context)
local tinsert = table.insert local tremove = table.remove --- Layers are basically groups of nodes, containing either sprites or other nested layers. Layers are helpful in ordering nodes along the Z-axis. -- Layers are used to build things like parallax, huds, minimaps and so on. -- @module layer -- @alias layer -- @inherit node local layer = {} local layerMT = { __index = layer } local reg = debug.getregistry() reg.Layer = layer setmetatable(layer, { __index = reg.Node }) local lg = love.graphics local lg_push = lg.push local lg_applyTransform = lg.applyTransform local lg_pop = lg.pop --- This is an internal function. -- Please use @{scene.newLayer} or @{layer.newLayer} instead. -- @tparam number x X coordinate -- @tparam number y Y coordinate -- @tparam[opt] table mt Metatable of base object -- @treturn layer New layer -- @see layer:newLayer -- @see scene.newLayer function layer.new(x, y, mt) local t = reg.Node.new(x, y, mt or layerMT) t.list = {} return t end --- Destroys the layer and all of its child nodes. function layer:destroy() self:destroyChildren() self.list = nil reg.Node.destroy(self) end --- Destroys all of the child nodes. function layer:destroyChildren() local list = self.list if list then for i = #list, 1, -1 do local v = list[i] v.parent = nil v:destroy() list[i] = nil end end end --- Creates a new sprite at the given position. -- @tparam number x X-coordinate -- @tparam number y Y-coordinate -- @treturn sprite New sprite object function layer:newSprite(x, y) local c = reg.Sprite.new(x, y) self:insertChild(c) return c end --- Creates a new layer at the given position. -- @tparam number x X-coordinate -- @tparam number y Y-coordinate -- @treturn layer New layer object function layer:newLayer(x, y) local c = reg.Layer.new(x, y) self:insertChild(c) return c end --- This is an internal function. -- Adds a new child node to the layer. -- @tparam node child Child node function layer:insertChild(c) local p = c.parent if p then p:removeChild(c) end c.parent = self tinsert(self.list, c) end --- This is an internal function. -- Removes an existing child node from the layer. -- @tparam node child Child node function layer:removeChild(c) local list = self.list for i = 1, #list do if c == list[i] then c.parent = nil tremove(list, i) break end end end --- Returns a child node based on depth index (could be negative). -- @tparam number index Depth index function layer:getChild(i) i = (i - 1)%#self.list + 1 return self.list[i] end --- Gets the depth index of a child node. -- @tparam node child Child node -- @treturn number Depth index function layer:getChildDepth(c) local list = self.list for i = 1, #list do if list[i] == c then return i end end end --- Sets the depth index of a child node. -- This depth index may shift as node are added, removed or sorted. -- @tparam node child Child node -- @tparam number index Depth index (could be negative) function layer:setChildDepth(c, i) local j = self:getChildDepth(c) if not j then return end local list = self.list i = (i - 1)%#list + 1 if i == j then return end tremove(list, j) tinsert(list, i, c) end --- Sorts the child nodes based on a comparison function. -- If no comparison function is specified, nodes are sorted based on their Y-coordinates. -- This is useful in isometric or overhead games. -- @tparam[opt] function func Comparison function function layer:sort(func) table.sort(self.list, func or self.compareDepth) end --- Removes all child nodes without destroying them. function layer:clear() local list = self.list for i = #list, 1, -1 do list[i].parent = nil list[i] = nil end end --- This is an internal function. -- @see view:draw function layer:draw() if not self.visible then return end local trans = self.transform if self.changed then trans:setTransformation(self.x, self.y, self.r, self.sx, self.sy) self.changed = nil end lg_push("transform") lg_applyTransform(trans) for _, v in ipairs(self.list) do v:draw() end lg_pop() end return layer.new
-- -- Corona Weather - A business style sample app -- -- MIT Licensed -- -- main.lua -- main entry point -- -- The main source of data is Forecast.io's RESTful API. You will need to register with them and get your -- own API key. -- Location data comes from geonames.com and their text file was stripped down to the minimum values and -- inserted into an SQLite3 database. Location data is huge and not practical to download. Geocoding API's -- require network access and are usually rate limited. -- system includes local composer = require( "composer" ) --composer.recycleOnSceneChange = true local widget = require( "widget" ) -- -- widgetExtras -- holds some custom built widgets from Corona SDK tutorials -- local widgetExtras = require( "libs.widget-extras" ) -- -- utility - various handy add on functions -- local utility = require( "libs.utility" ) -- -- myData -- an emtpy table that can be required in multiple modules/scenes -- to allow easy passing of data between modules local myData = require( "classes.mydata" ) -- -- theme -- a data table of colors and font attributes to quickly change -- how the app looks -- local theme = require( "classes.theme" ) -- -- functions to setup the navigation bar at the top and the tabBar at the bottom local UI = require( "classes.ui" ) -- -- Store our API keys for scenes that need them -- -- Go to https://developer.forecast.io to get your own key. myData.forecastIOkey = "" -- Keep the weather API from updating too often, initialize to 0 myData.lastRefresh = 0 -- force a download the first time. -- Once we detect our device/platform record it here when device decisions need to be made myData.platform = "iOS" local function apiKeyOnComplete( event ) if ( event.action == "clicked" ) then local i = event.index if ( i == 1 ) then -- Do nothing; dialog will simply dismiss elseif ( i == 2 ) then -- Open URL if "Learn More" (second button) was clicked system.openURL( "https://developer.forecast.io" ) end end end if myData.forecastIOkey:len() == 0 then native.showAlert( "API Key needed", "Please visit https://developer.forecast.io and get your own API key.", { "Ok", "Learn more" }, apiKeyOnComplete ) end -- -- Detect the device we are on -- This is important because we are going to present a different UI based on the device. -- iOS devices will have a tabBar controller at the bottom. Android will have a hamburger that will slide in -- a menu for instance. if "simulator" == system.getInfo("environment") and "iP" ~= string.sub( system.getInfo("model"), 1, 2 ) then myData.platform = "Android" elseif "device" == system.getInfo("environment") and "Android" == system.getInfo("platformName" ) then myData.platform = "Android" end --Runtime:setCheckGlobals( true ) display.setStatusBar( display.DefaultStatusBar ) if "Android" == myData.platform then -- Select the right widget theme for Android widget.setTheme( "widget_theme_android_holo_dark" ) end -- -- Load saved in settings -- Function to load and save tables is in the utility.lua file -- myData.settings = utility.loadTable("settings.json") -- If we fail to load the table, this must be a first run, or an install after a delete -- so setup up reasonable defaults -- -- In production you would also have a version number stored and if you find an older version -- you can include code to update the users settings with the new required features. -- But we will keep it simple for now. if myData.settings == nil then myData.settings = {} myData.settings.firstTime = true myData.settings.theme = "light" if "Android" == myData.platform then myData.settings.theme = "dark" end myData.settings.tempUnits = "fahrenheit" -- fahrenheit or celsius myData.settings.distanceUnits = "miles" -- miles or kilometers myData.settings.locations = { { name = "Current Location", latitude = 0, longitude = 0, selected = true, noDelete = true }, { name = "Cary, NC", latitude = 35.7789, longitude = -78.8003, postalCode = "27519", selected = false }, { name = "Palo Alto, CA", latitude = 37.4419, longitude = -122.1430, postalCode = "94303", selected = false }, { name = "Austin, TX", latitude = 30.2672, longitude = -97.7431, postalCode = "78701", selected = false } } utility.saveTable(myData.settings, "settings.json") end -- Set the theme to the user's choice or a reasonable first run default theme.setTheme( myData.settings.theme ) -- Setup a reasonable default GPS location. The forecastIO API uses lat, long if #myData.settings.locations > 0 then myData.currentLocation = nil for i = 1, #myData.settings.locations do if myData.settings.locations[i].selected then myData.currentLocation = myData.settings.locations[i].name myData.latitude = myData.settings.locations[i].latitude myData.longitude = myData.settings.locations[i].longitude end end -- if we get here and myData.currentLocation is still nil, there wasn't a selected entry in the list -- The first items should be "Current Location", so grab that default data if myData.currentLocation == nil then myData.currentLocation = myData.settings.locations[1].name myData.latitude = myData.settings.locations[1].latitude myData.longitude = myData.settings.locations[1].longitude end else -- No data at all? Gotta start somewhere. PA seems like a nice place. myData.currentLocation = "Palo Alto, CA" myData.latitude = 37.4419 myData.longitude = -122.1430 end -- -- Set up the navBar controller's hamburger icon -- The navBar controller needs a button object and a handler function -- for it. If the menu is showing, hide it, if its hidden show it. -- UI.createNavBar() if myData.platform == "iOS" then UI.createTabBar() end -- -- Enable location services to populate a default location -- local locationServicesHandler = function( event ) -- Check for error (user may have turned off location services) if ( event.errorCode ) then --native.showAlert( "GPS Location Error", event.errorMessage, {"OK"} ) print( "Location error: " .. tostring( event.errorMessage ) ) else myData.settings.locations[1].latitude = event.latitude myData.settings.locations[1].longitude = event.longitude end end Runtime:addEventListener( "location", locationServicesHandler ) -- -- Other system events -- -- There really are not any scenes to go back to, local function onKeyEvent( event ) local phase = event.phase local keyName = event.keyName print( event.phase, event.keyName ) if ( "back" == keyName and "up" == phase ) then local currentScene = composer.getSceneName( "overlay" ) if currentScene then composer.hideOverlay( "slideRight", 250 ) else native.requestExit() end -- we handled the key event, return true return true end -- we did not handle the key event, let the system know it has to deal with it return false end -- add the key callback -- For now, we only need this for Android. If this gets setup for other platforms, then -- we can add keyboard short cuts for Windows and OS X and controller support for Apple -- and Android TV if "Android" == myData.platform then Runtime:addEventListener( "key", onKeyEvent ) end -- -- handle system events -- -- If we get suspended or exited, make sure to safe our data -- This is a redundant protection because we should be saving our data every time -- we update it except for location changes and using the GPS to determine location -- -- On start up or resume, just to the current Conditions page. -- local function systemEvents(event) print("systemEvent " .. event.type) if event.type == "applicationSuspend" then utility.saveTable( myData.settings, "settings.json" ) elseif event.type == "applicationResume" then if not myData.settings.firstTime then UI.showWeather() end elseif event.type == "applicationExit" then utility.saveTable( myData.settings, "settings.json" ) elseif event.type == "applicationStart" then if myData.settings.firstTime then UI.showLocations() else UI.showWeather() end end return true end if myData.forecastIOkey:len() == 0 then -- not setup, don't start up the app. local warning = display.newText("Please create an API key to run this app", display.contentCenterX, display.contentCenterY, display.contentWidth - 40, 0, native.systemFontBold, 40 ) if UI.tabBar then UI.tabBar.isVisible = false end if UI.navBar then UI.navBar.isVisible = false end else Runtime:addEventListener("system", systemEvents) end
local function softcompare(a,b) return tonumber(a) == tonumber(b) end local function output(exp, got) return string.format("'%s' expected, got '%s'", exp, got) end local dom = require "DOMy" local gui = dom.new() print() print("BEGIN MARKUP TEST") -- Parse Markup gui:import_markup("DOMy/_tests/markup.lua") assert(gui.elements[1].id == nil, output("nil", gui.elements[1].id)) assert(softcompare(gui.elements[1].value, 1), output("1", gui.elements[1].value)) assert(gui.elements[2].id == "two", output("two", gui.elements[2].id)) assert(softcompare(gui.elements[2].value, 2), output("2", gui.elements[2].value)) assert(gui.elements[3].id == nil, output("nil", gui.elements[3].id)) assert(softcompare(gui.elements[3].value, 3), output("3", gui.elements[3].value)) assert(gui.elements[4].id == nil, output("nil", gui.elements[4].id)) assert(softcompare(gui.elements[4].value, 4), output("4", gui.elements[4].value)) assert(gui.elements[5].id == "five", output("five", gui.elements[5].id)) assert(softcompare(gui.elements[5].value, 5), output("5", gui.elements[5].value)) assert(gui.elements[6].id == "five>1", output("five>1", gui.elements[6].id)) assert(gui.elements[6].value == ">1", output(">1", gui.elements[6].value)) assert(gui.elements[7].id == nil, output("nil", gui.elements[7].id)) assert(gui.elements[7].value == ">>1", output(">>1", gui.elements[7].value)) assert(gui.elements[8].id == nil, output("nil", gui.elements[8].id)) assert(gui.elements[8].value == ">>2", output(">>2", gui.elements[8].value)) assert(gui.elements[9].id == nil, output("nil", gui.elements[9].id)) assert(gui.elements[9].value == ">>3", output(">>3", gui.elements[9].value)) assert(gui.elements[10].id == nil, output("nil", gui.elements[10].id)) assert(gui.elements[10].value == ">2", output(">2", gui.elements[10].value)) assert(gui.elements[11].id == nil, output("nil", gui.elements[11].id)) assert(softcompare(gui.elements[11].value, 6), output("6", gui.elements[11].value)) assert(gui.elements[12].id == nil, output("nil", gui.elements[12].id)) assert(gui.elements[12].value == "seven", output("seven", gui.elements[12].value)) assert(gui.elements[13].id == nil, output("nil", gui.elements[13].id)) assert(softcompare(gui.elements[13].value, 8), output("8", gui.elements[13].value)) assert(gui.elements[14].id == nil, output("nil", gui.elements[14].id)) assert(softcompare(gui.elements[14].value, 9), output("9", gui.elements[14].value)) assert(gui.elements[15].id == nil, output("nil", gui.elements[15].id)) assert(softcompare(gui.elements[15].value, 10), output("10", gui.elements[15].value)) print("Passed: Parsed Markup") print("END MARKUP TEST")
local icu = require("justenoughicu") local chardata = require("char-def") SILE.nodeMakers.base = pl.class({ _init = function (self, options) self.contents = {} self.options = options self.token = "" self.lastnode = false -- The whole lasttype logic below was wrong and broken, and confusing. See #687 and #1297 -- self.lasttype = false end, makeToken = function (self) if #self.contents > 0 then coroutine.yield(SILE.shaper:formNnode(self.contents, self.token, self.options)) SU.debug("tokenizer", "Token: "..self.token) self.contents = {} self.token = "" self.lastnode = "nnode" end end, addToken = function (self, char, item) self.token = self.token .. char table.insert(self.contents, item) end, makeGlue = function (self, item) if SILE.settings:get("typesetter.obeyspaces") or self.lastnode ~= "glue" then SU.debug("tokenizer", "Space node") coroutine.yield(SILE.shaper:makeSpaceNode(self.options, item)) end self.lastnode = "glue" end, makePenalty = function (self, p) if self.lastnode ~= "penalty" and self.lastnode ~= "glue" then coroutine.yield( SILE.nodefactory.penalty({ penalty = p or 0 }) ) end self.lastnode = "penalty" end, iterator = function (_, _) SU.error("Abstract function nodemaker:iterator called", true) end, charData = function (_, char) local cp = SU.codepoint(char) if not chardata[cp] then return {} end return chardata[cp] end, isPunctuation = function (self, char) return self.isPunctuationType[self:charData(char).category] end, isSpace = function (self, char) return self.isSpaceType[self:charData(char).linebreak] end, isBreaking = function (self, char) return self.isBreakingType[self:charData(char).linebreak] end, isQuote = function (self, char) return self.isQuoteType[self:charData(char).linebreak] end }) SILE.nodeMakers.unicode = pl.class(SILE.nodeMakers.base) SILE.nodeMakers.unicode.isWordType = { cm = true } SILE.nodeMakers.unicode.isSpaceType = { sp = true } SILE.nodeMakers.unicode.isBreakingType = { ba = true, zw = true } SILE.nodeMakers.unicode.isPunctuationType = { po = true } SILE.nodeMakers.unicode.isQuoteType = {} -- quote linebreak category is ambiguous depending on the language function SILE.nodeMakers.unicode:dealWith (item) local char = item.text -- local cp = SU.codepoint(char) -- local thistype = chardata[cp] and chardata[cp].linebreak if self:isSpace(item.text) then self:makeToken() self:makeGlue(item) elseif self:isBreaking(item.text) then self:addToken(char, item) self:makeToken() self:makePenalty(0) elseif self:isQuote(item.text) then self:addToken(char, item) self:makeToken() -- elseif self.lasttype and (thistype and thistype ~= self.lasttype and not self.isWordType[thistype]) then -- self:makeToken() -- self:addToken(char, item) else self:letterspace() self:addToken(char, item) end -- if not self.isWordType[thistype] then self.lasttype = chardata[cp] and chardata[cp].linebreak end -- self.lasttype = thistype end function SILE.nodeMakers.unicode:handleInitialGlue (items) local i = 1 while i <= #items do local item = items[i] if self:isSpace(item.text) then self:makeGlue(item) else break end i = i + 1 end return i, items end function SILE.nodeMakers.unicode:letterspace () if not SILE.settings:get("document.letterspaceglue") then return end if self.token then self:makeToken() end if self.lastnode and self.lastnode ~= "glue" then local w = SILE.settings:get("document.letterspaceglue").width SU.debug("tokenizer", "Letter space glue: " .. tostring(w)) coroutine.yield(SILE.nodefactory.kern({ width = w })) self.lastnode = "glue" end end function SILE.nodeMakers.unicode.isICUBreakHere (_, chunks, item) return chunks[1] and (item.index >= chunks[1].index) end function SILE.nodeMakers.unicode:handleICUBreak (chunks, item) -- The ICU library has told us there is a breakpoint at -- this index. We need to... local bp = chunks[1] -- ... remove this breakpoint (and any out of order ones) -- from the ICU breakpoints array so that chunks[1] is -- the next index point for comparison against the string... while chunks[1] and item.index >= chunks[1].index do table.remove(chunks, 1) end -- ...decide which kind of breakpoint we have here and -- handle it appropriately. if bp.type == "word" then self:handleWordBreak(item) elseif bp.type == "line" then self:handleLineBreak(item, bp.subtype) end return chunks end function SILE.nodeMakers.unicode:handleWordBreak (item) self:makeToken() if self:isSpace(item.text) then -- Spacing word break self:makeGlue(item) else -- a word break which isn't a space self:addToken(item.text, item) end end function SILE.nodeMakers.unicode:handleLineBreak (item, subtype) -- Because we are in charge of paragraphing, we -- will override space-type line breaks, and treat -- them just as ordinary word spaces. if self:isSpace(item.text) then self:handleWordBreak(item) return end -- But explicit line breaks we will turn into -- soft and hard breaks. self:makeToken() self:makePenalty(subtype == "soft" and 0 or -1000) self:addToken(item.text, item) end function SILE.nodeMakers.unicode:iterator (items) local fulltext = "" for i = 1, #items do fulltext = fulltext .. items[i].text end local chunks = { icu.breakpoints(fulltext, self.options.language) } table.remove(chunks, 1) return coroutine.wrap(function () local i i, self.items = self:handleInitialGlue(items) for j = i, #items do self.i = j self.item = self.items[self.i] if self:isICUBreakHere(chunks, self.item) then chunks = self:handleICUBreak(chunks, self.item) else self:dealWith(self.item) end end self:makeToken() end) end
alaBaseData = { ["xBtn"] = { ["posEx"] = "ABOVE_EDITOBX", ["style"] = "blz", ["scale"] = 1, ["_version"] = 1.07, ["alpha"] = 1, ["pos"] = { "TOPLEFT", -- [1] "ChatFrame1", -- [2] "BOTTOMLEFT", -- [3] 0, -- [4] -6, -- [5] }, }, } alaChatConfig = { ["keyWordColor"] = { 0, -- [1] 1, -- [2] 0, -- [3] }, ["ReadyCheck"] = false, ["shortChannelName"] = false, ["bfWorld_Ignore_BtnSize"] = 20, ["channelBarChannel"] = { true, -- [1] true, -- [2] true, -- [3] true, -- [4] true, -- [5] true, -- [6] true, -- [7] true, -- [8] true, -- [9] true, -- [10] true, -- [11] true, -- [12] true, -- [13] true, -- [14] }, ["_overrideVersion"] = 190921, ["bfWorld_Ignore_Switch"] = false, ["keyWord"] = "", ["level"] = false, ["ColorNameByClass"] = true, ["chatEmote"] = false, ["shamanColor"] = true, ["hyperLinkEnhanced"] = true, ["position"] = "ABOVE_EDITOBX", ["_version"] = 190921, ["scale"] = 1, ["restoreAfterWhisper"] = true, ["barStyle"] = "blz", ["channelBarStyle"] = "CHAR", ["keyWordHighlight"] = false, ["welcomeToGuild"] = false, ["broadCastNewMember"] = false, ["copyTagFormat"] = "#s", ["alpha"] = 1, ["copyTagColor"] = { 0.25, -- [1] 0.25, -- [2] 1, -- [3] }, ["copy"] = false, ["hyperLinkHoverShow"] = true, ["editBoxTab"] = true, ["roll"] = false, ["DBMCountDown"] = false, ["welcometoGuildMsg"] = "欢迎", ["filterQuestAnn"] = false, ["bfWorld_Ignore"] = false, }
local M = {} M.domains = {} function M.add_domain(domain) table.insert(M.domains, domain) end function M.verify_domain() if not html5 then return true end local current_domain = html5.run("location.hostname") print("domain - ", current_domain) for key, value in ipairs(M.domains) do if value == current_domain then return true end end return false end function M.get_current_domain() if html5 then return html5.run("location.hostname") else return "" end end return M
----------------------------------- -- Area: Quicksand Caves -- NPC: qm2 -- Note: Spawns Tribunus VII-I -- !pos -49.944 -0.891 -139.485 208 ----------------------------------- local ID = require("scripts/zones/Quicksand_Caves/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrade(player, npc, trade) if npcUtil.tradeHas(trade, 1190) and npcUtil.popFromQM(player, npc, ID.mob.TRIBUNUS_VII_I) then -- Antican Tag player:confirmTrade() end end function onTrigger(player, npc) player:messageSpecial(ID.text.NOTHING_OUT_OF_ORDINARY) end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) end
local typedefs = require "kong.db.schema.typedefs" -- Grab pluginname from module name local plugin_name = ({...})[1]:match("^kong%.plugins%.([^%.]+)") local schema = { name = plugin_name, fields = { -- the 'fields' array is the top-level entry with fields defined by Kong { consumer = typedefs.no_consumer }, -- this plugin cannot be configured on a consumer (typical for auth plugins) { protocols = typedefs.protocols_http }, { config = { -- The 'config' record is the custom part of the plugin schema type = "record", fields = { -- a standard defined field (typedef), with some customizations { url = { required = true, type = "string"} }, { response = { required = true, default = "table", type = "string"} }, {timeout = { default = 10000, type = "number" }}, {validationUri = { default = '/', type = "string" }}, {keepalive = { default = 60000, type = "number" }}, }, }, }, }, } return schema
local gx = 45 local gy = 45 local gscale = 13 local win = window.new("Game Of Life",gx*gscale,gy*gscale+16) do --win:setMinDimensions(gx*gscale,gy*gscale+16) win:setResizable(false) local grid = {} for i=1,gx do grid[i] = {} for j=1,gy do grid[i][j] = false end end local running = false local lastmx,lastmy = -1,-1 local limt = true local speed = 10 local bench = 10 local floor = math.floor win.callbacks.draw = function() --love.graphics.setBackgroundColor(100,100,100) win:setBackgroundColor(100,100,100) --draw cells for i=1,gx do for j=1,gy do if grid[i][j] then if lastmx == i or lastmy == j then love.graphics.setColor(232,201,0) else love.graphics.setColor(255,251,36) end else if lastmx == i or lastmy == j then love.graphics.setColor(80,80,80) else love.graphics.setColor(100,100,100) end end love.graphics.rectangle("fill",(i-1)*gscale+1,(j-1)*gscale+2,gscale-1,gscale-1) end end --draw grid love.graphics.setColor(50,50,50,255) for i=1,gx-1 do love.graphics.line(i*gscale+1,1,i*gscale+1,gy*gscale) end for i=1,gy do love.graphics.line(1,i*gscale+2,gx*gscale-1,i*gscale+2) end love.graphics.setColor(250,250,250,255) love.graphics.rectangle("fill",0,gy*gscale+2,gx*gscale,14) love.graphics.setColor(0,0,0,255) love.graphics.print(lastmx..","..lastmy,3,gy*gscale+2) love.graphics.print("Max Speed: "..(limt and speed or "∞").."e/s",75,gy*gscale+2) love.graphics.print("Actual Speed: "..(running and floor(bench/2).."e/s" or "Not Running"),200,gy*gscale+2) --love.graphics.print("Running: "..tostring(running),340,gy*gscale+2) end local mpress = false local lastzx,lastzy = -1,-1 win.callbacks.mousepressed = function(x,y,b) local zx,zy = floor(x/gscale)+1,floor(y/gscale)+1 if grid[zx]~= nil and grid[zx][zy] ~= nil then grid[zx][zy] = not grid[zx][zy] lastzx = zx lastzy = zy mpress = true end end win.callbacks.mousereleased = function(x,y,b) mpress = false end win.callbacks.mousemoved = function(x,y) local zx,zy = floor(x/gscale)+1,floor(y/gscale)+1 if zx > gx then zx=gx end if zy > gy then zy=gy end if mpress then if lastzx ~= zx or lastzy ~= zy then if grid[zx]~= nil and grid[zx][zy] ~= nil then grid[zx][zy] = not grid[zx][zy] end end lastzx = zx lastzy = zy end lastmx,lastmy = zx,zy end --[[win.callbacks.resize = function(dx,dy,fw,fh) local maxs = 0 if dx < 0 or dy < 0 then maxs = math.min(fw,fh) else maxs = math.max(fw,fh) end win:setDimensions(maxs,maxs+16) gscale = maxs/gx end]] function getNCount( gxx,gyy ) local count = 0 local gpx = gxx + 2 local gpy = gyy + 2 for i=1,3 do if grid[gpx-i] then for j=1,3 do if grid[gpx-i][gpy-j] then count = count + 1 end end end end if grid[gxx][gyy] then count = count - 1 end return count end local timer = 0 local last = 0 events.registerListener("keypressed",function(key) if screen.hasFocus(win.UID) then if key == "space" then running = not running elseif key == "right" then -- if speed == 10 then speed = 20 -- elseif speed == 5 then speed = 10 end speed = speed + 1 -- timer = 0 last = 0 elseif key == "left" then -- if speed == 10 then speed = 5 -- elseif speed == 20 then speed = 10 end speed = speed - 1 -- timer = 0 last = 0 elseif key == "r" then for i=1,gx do grid[i] = {} for j=1,gy do grid[i][j] = false end end elseif key == "u" then limt = not limt end end end,win.UID) local evolutions = 0 local lastbench = 0 local lastcheckbench = 0 events.registerListener("update",function(upd) if running then timer = timer + upd local proc = floor(timer*(speed)) > last if not limt then proc = true end lastbench = lastbench + upd if floor(lastbench) > lastcheckbench+1 then lastcheckbench = floor(lastbench) bench = evolutions evolutions = 0 end if proc then evolutions = evolutions + 1 local buff = {} for i=1,gx do buff[i] = {} for j=1,gy do local cnt = getNCount(i,j) if grid[i][j] then if cnt < 2 then buff[i][j] = false elseif cnt > 3 then buff[i][j] = false else buff[i][j] = true end elseif cnt == 3 then buff[i][j] = true else buff[i][j] = false end end end for i=1,gx do for j=1,gy do grid[i][j] = buff[i][j] end end last = floor(timer*(speed)) end end end,win.UID) end win:setVisible(true)
UIMenuCheckboxItem = setmetatable({}, UIMenuCheckboxItem) UIMenuCheckboxItem.__index = UIMenuCheckboxItem UIMenuCheckboxItem.__call = function() return "UIMenuItem", "UIMenuCheckboxItem" end function UIMenuCheckboxItem.New(Text, Check, Description) local _UIMenuCheckboxItem = { Base = UIMenuItem.New(Text or "", Description or ""), CheckedSprite = Sprite.New("commonmenu", "shop_box_blank", 410, 95, 50, 50), Checked = tobool(Check), CheckboxEvent = function(menu, item, checked) end, } return setmetatable(_UIMenuCheckboxItem, UIMenuCheckboxItem) end function UIMenuCheckboxItem:SetParentMenu(Menu) if Menu() == "UIMenu" then self.Base.ParentMenu = Menu else return self.Base.ParentMenu end end function UIMenuCheckboxItem:Position(Y) if tonumber(Y) then self.Base:Position(Y) self.CheckedSprite:Position(380 + self.Base._Offset.X + self.Base.ParentMenu.WidthOffset, Y + 138 + self.Base._Offset.Y) end end function UIMenuCheckboxItem:Selected(bool) if bool ~= nil then self.Base._Selected = tobool(bool) else return self.Base._Selected end end function UIMenuCheckboxItem:Hovered(bool) if bool ~= nil then self.Base._Hovered = tobool(bool) else return self.Base._Hovered end end function UIMenuCheckboxItem:Enabled(bool) if bool ~= nil then self.Base._Enabled = tobool(bool) else return self.Base._Enabled end end function UIMenuCheckboxItem:Description(str) if tostring(str) and str ~= nil then self.Base._Description = tostring(str) else return self.Base._Description end end function UIMenuCheckboxItem:Offset(X, Y) if tonumber(X) or tonumber(Y) then if tonumber(X) then self.Base._Offset.X = tonumber(X) end if tonumber(Y) then self.Base._Offset.Y = tonumber(Y) end else return self.Base._Offset end end function UIMenuCheckboxItem:Text(Text) if tostring(Text) and Text ~= nil then self.Base.Text:Text(tostring(Text)) else return self.Base.Text:Text() end end function UIMenuCheckboxItem:SetLeftBadge() error("This item does not support badges") end function UIMenuCheckboxItem:SetRightBadge() error("This item does not support badges") end function UIMenuCheckboxItem:RightLabel() error("This item does not support a right label") end function UIMenuCheckboxItem:Draw() self.Base:Draw() self.CheckedSprite:Position(380 + self.Base._Offset.X + self.Base.ParentMenu.WidthOffset, self.CheckedSprite.Y) if self.Base:Selected() then if self.Checked then self.CheckedSprite.TxtName = "shop_box_tickb" else self.CheckedSprite.TxtName = "shop_box_blankb" end else if self.Checked then self.CheckedSprite.TxtName = "shop_box_tick" else self.CheckedSprite.TxtName = "shop_box_blank" end end self.CheckedSprite:Draw() end
return {'snob','snobisme','snobistisch','snode','snoei','snoeiafval','snoeibeurt','snoeien','snoeier','snoeihard','snoeiheet','snoeihout','snoeiing','snoeikunst','snoeimes','snoeischaar','snoeisel','snoeitang','snoeiwerk','snoek','snoekachtig','snoekbaars','snoekduik','snoeken','snoekenbek','snoekenkop','snoekhengel','snoekkop','snoekshoofd','snoeksprong','snoep','snoepachtig','snoepautomaat','snoepcent','snoepen','snoeper','snoeperig','snoeperij','snoepertje','snoepgoed','snoepig','snoepje','snoepkraam','snoeplust','snoepreis','snoepreisje','snoepster','snoepwinkel','snoepziek','snoepzucht','snoer','snoeren','snoerloos','snoerschakelaar','snoes','snoeshaan','snoet','snoeven','snoever','snoeverig','snoeverij','snoezelen','snoezepoes','snoezig','snok','snokken','snol','snollen','snood','snoodaard','snoodheid','snoof','snooker','snookercentrum','snookeren','snookerspeler','snookertafel','snookertoernooi','snookerzaal','snoot','snor','snorbaard','snorder','snordragend','snorfiets','snorfietser','snorhaar','snorkel','snorkelen','snorken','snorker','snorkerig','snorren','snorrenbaard','snorrenkop','snorrepijperij','snot','snotaap','snoten','snotjongen','snotneus','snotolf','snottebel','snotter','snotteren','snotterig','snottig','snotvalling','snotverkouden','snotziekte','snoven','snowboard','snowboarden','snowboarder','snookersport','snoeioperatie','snoepgraag','snoepjesfabrikant','snoeplustig','snoge','snotlap','snoepfabriek','snoepfabrikant','snoeppot','snoeptrommel','snoepzak','snorscooter','snoeppapier','snoepstok','snoekbroed','snotdoek','snoeks','snoeck','snoeij','snoeijen','snoei','snoodijk','snoeijink','sno','snoeijer','snobistische','snobs','snoder','snoef','snoefde','snoefden','snoeft','snoeide','snoeiden','snoeiers','snoeihete','snoeiingen','snoeimessen','snoeischaren','snoeisels','snoeit','snoeitangen','snoekachtige','snoekbaarzen','snoekenkoppen','snoekhengels','snoeksprongen','snoekt','snoekte','snoekten','snoepachtige','snoepcenten','snoeperige','snoeperiger','snoeperijen','snoeperijtje','snoeperijtjes','snoepers','snoepertjes','snoepfabrikanten','snoepige','snoepjes','snoeppapiertjes','snoepreisjes','snoepsters','snoept','snoepte','snoepten','snoepwinkels','snoepzieke','snoerde','snoerden','snoerend','snoerloze','snoerschakelaars','snoert','snoertje','snoertjes','snoeshanen','snoeten','snoetje','snoetjes','snoeverijen','snoevers','snoezen','snoezige','snoeziger','snoezigst','snoezigste','snokt','snokte','snokten','snolletje','snolletjes','snoodaards','snoodheden','snoodst','snorbaarden','snorde','snorden','snorders','snordragende','snorfietsen','snorharen','snork','snorkerige','snorkers','snorkt','snorkte','snorkten','snorrenbaarden','snorrende','snorrenkoppen','snorretje','snorretjes','snort','snotapen','snotje','snotjes','snotjongens','snotneuzen','snotolven','snottebellen','snotterde','snotterden','snotterige','snotteriger','snottert','snottige','snotvallingen','snowboardt','snoeiharde','snoepwinkeltje','snoeverige','snookercentra','snookerde','snookertoernooien','snookerzalen','snorfietsers','snorkelde','snorkelend','snotterend','snotterende','snowboardde','snowboarders','snowboards','snoepgrage','snookers','snookertafels','snorkels','snoepkramen','snotters','snoekduiken','snoeplustige','snoezepoezen','snoges','snotlappen','snoepautomaten','snoepzakje','snoepzakjes','snotneusje','snoepzakken','snotaapje','snoeppapiertje','snoepwinkeltjes','snookerspelers','snotneusjes','snorhaartjes','snoeptrommeltje','snoeptrommels'}
workspace "VaporEngine" architecture "x64" startproject "Sandbox" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Include directories relative to root folder (solution directory) IncludeDir = {} IncludeDir["GLFW"] = "VaporEngine/vendor/GLFW/include" IncludeDir["Glad"] = "VaporEngine/vendor/Glad/include" IncludeDir["ImGui"] = "VaporEngine/vendor/imgui" group "Dependencies" include "VaporEngine/vendor/GLFW" include "VaporEngine/vendor/Glad" include "VaporEngine/vendor/imgui" group "" project "VaporEngine" location "VaporEngine" kind "SharedLib" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") pchheader "vepch.h" pchsource "VaporEngine/src/vepch.cpp" files { "%{prj.name}/src/**.h", "%{prj.name}/src/**.cpp" } includedirs { "%{prj.name}/src", "%{prj.name}/vendor/spdlog/include", "%{IncludeDir.GLFW}", "%{IncludeDir.Glad}", "%{IncludeDir.ImGui}" } links { "GLFW", "Glad", "ImGui", "opengl32.lib" } filter "system:windows" cppdialect "C++17" staticruntime "Off" systemversion "latest" defines { "VE_BUILD_DLL", "VE_PLATFORM_WINDOWS", "GLFW_INCLUDE_NONE" } postbuildcommands { ("{COPY} %{cfg.buildtarget.relpath} \"../bin/" .. outputdir .. "/Sandbox/\"") } filter "configurations:Debug" defines "VE_DEBUG" runtime "Debug" symbols "On" filter "configurations:Release" defines "VE_RELEASE" runtime "Release" symbols "On" filter "configurations:Dist" defines "VE_DIST" runtime "Release" symbols "On" project "Sandbox" location "Sandbox" kind "ConsoleApp" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") files { "%{prj.name}/src/**.h", "%{prj.name}/src/**.cpp" } includedirs { "VaporEngine/vendor/spdlog/include", "VaporEngine/src" } links { "VaporEngine" } filter "system:windows" cppdialect "C++17" staticruntime "Off" systemversion "latest" defines { "VE_PLATFORM_WINDOWS" } filter "configurations:Debug" defines "VE_DEBUG" runtime "Debug" symbols "On" filter "configurations:Release" defines "VE_RELEASE" runtime "Release" symbols "On" filter "configurations:Dist" defines "VE_DIST" runtime "Release" symbols "On"
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmTemplate() local obj = GUI.fromHandle(_obj_newObject("form")); local self = obj; local sheet = nil; rawset(obj, "_oldSetNodeObjectFunction", rawget(obj, "setNodeObject")); function obj:setNodeObject(nodeObject) sheet = nodeObject; self.sheet = nodeObject; self:_oldSetNodeObjectFunction(nodeObject); end; function obj:setNodeDatabase(nodeObject) self:setNodeObject(nodeObject); end; _gui_assignInitialParentForForm(obj.handle); obj:beginUpdate(); obj:setName("frmTemplate"); obj:setFormType("sheetTemplate"); obj:setDataType("Ambesek.Nefertyne.GURPS"); obj:setTitle("Ficha GURPS 4E"); obj:setAlign("client"); obj:setTheme("dark"); local function isNewVersion(installed, downloaded) local installedVersion = {}; local installedIndex = 0; for i in string.gmatch(installed, "[^%.]+") do installedIndex = installedIndex +1; installedVersion[installedIndex] = i; end local downloadedVersion = {}; local downloadedIndex = 0; for i in string.gmatch(downloaded, "[^%.]+") do downloadedIndex = downloadedIndex +1; downloadedVersion[downloadedIndex] = i; end for i=1, math.min(installedIndex, downloadedIndex), 1 do if (tonumber(installedVersion[i]) or 0) > (tonumber(downloadedVersion[i]) or 0) then return false; elseif (tonumber(installedVersion[i]) or 0) < (tonumber(downloadedVersion[i]) or 0) then return true; end; end; if downloadedIndex > installedIndex then return true; else return false; end; end; obj.popDetails = GUI.fromHandle(_obj_newObject("popup")); obj.popDetails:setParent(obj); obj.popDetails:setName("popDetails"); obj.popDetails:setWidth(250); obj.popDetails:setHeight(250); obj.popDetails:setBackOpacity(0.4); lfm_setPropAsString(obj.popDetails, "autoScopeNode", "false"); obj.label1 = GUI.fromHandle(_obj_newObject("label")); obj.label1:setParent(obj.popDetails); obj.label1:setAlign("top"); obj.label1:setField("title"); obj.label1:setHorzTextAlign("center"); obj.label1:setName("label1"); obj.label1:setFontColor("white"); obj.flowLayout1 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout1:setParent(obj.popDetails); obj.flowLayout1:setAlign("top"); obj.flowLayout1:setAutoHeight(true); obj.flowLayout1:setMaxControlsPerLine(2); obj.flowLayout1:setMargins({bottom=4}); obj.flowLayout1:setHorzAlign("center"); obj.flowLayout1:setName("flowLayout1"); obj.flowLayout1:setVertAlign("leading"); obj.flowPart1 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart1:setParent(obj.flowLayout1); obj.flowPart1:setMinWidth(30); obj.flowPart1:setMaxWidth(400); obj.flowPart1:setHeight(35); obj.flowPart1:setName("flowPart1"); obj.flowPart1:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowPart1:setVertAlign("leading"); obj.label2 = GUI.fromHandle(_obj_newObject("label")); obj.label2:setParent(obj.flowPart1); obj.label2:setAlign("top"); obj.label2:setFontSize(10); obj.label2:setText("CUSTO"); obj.label2:setHorzTextAlign("center"); obj.label2:setWordWrap(true); obj.label2:setTextTrimming("none"); obj.label2:setAutoSize(true); obj.label2:setName("label2"); obj.label2:setFontColor("#D0D0D0"); obj.edit1 = GUI.fromHandle(_obj_newObject("edit")); obj.edit1:setParent(obj.flowPart1); obj.edit1:setAlign("client"); obj.edit1:setField("custo"); obj.edit1:setHorzTextAlign("center"); obj.edit1:setFontSize(12); obj.edit1:setName("edit1"); obj.edit1:setFontColor("white"); obj.textEditor1 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor1:setParent(obj.popDetails); obj.textEditor1:setAlign("client"); obj.textEditor1:setField("descricao"); obj.textEditor1:setName("textEditor1"); obj.dataLink1 = GUI.fromHandle(_obj_newObject("dataLink")); obj.dataLink1:setParent(obj.popDetails); obj.dataLink1:setField("custo"); obj.dataLink1:setName("dataLink1"); function pointCount() if sheet==nil then return end; local pontos = (tonumber(sheet.totalPontos) or 0) - (tonumber(sheet.atributos_st) or 0) - (tonumber(sheet.atributos_ht) or 0) - (tonumber(sheet.atributos_dx) or 0) - (tonumber(sheet.atributos_vt) or 0) - (tonumber(sheet.atributos_iq) or 0) - (tonumber(sheet.atributos_per) or 0) - (tonumber(sheet.atributos_pv) or 0) - (tonumber(sheet.atributos_pf) or 0) - (tonumber(sheet.dodge_cost) or 0) - (tonumber(sheet.atributos_velocidade) or 0) - (tonumber(sheet.atributos_deslocamento) or 0) - (tonumber(sheet.vantagens_pontos) or 0) - (tonumber(sheet.desvantagens_pontos) or 0); local objetos = NDB.getChildNodes(sheet.listaDePericias); local custo = 0; for i=1, #objetos, 1 do custo = custo + (tonumber(objetos[i].pts) or 0); end; pontos = pontos - custo; local objetos = NDB.getChildNodes(sheet.listaDeTecnicas); local custo = 0; for i=1, #objetos, 1 do custo = custo + (tonumber(objetos[i].custo) or 0); end; sheet.custoTecnicas = custo; pontos = pontos - custo; local objetos = NDB.getChildNodes(sheet.listaDeMagias); local custo = 0; for i=1, #objetos, 1 do custo = custo + (tonumber(objetos[i].custo) or 0); end; sheet.custoMagias = custo; pontos = pontos - custo; sheet.pontosRestantes = pontos; end; obj.rectangle1 = GUI.fromHandle(_obj_newObject("rectangle")); obj.rectangle1:setParent(obj); obj.rectangle1:setName("rectangle1"); obj.rectangle1:setAlign("client"); obj.rectangle1:setColor("#40000000"); obj.rectangle1:setXradius(10); obj.rectangle1:setYradius(10); obj.pgcPrincipal = GUI.fromHandle(_obj_newObject("tabControl")); obj.pgcPrincipal:setParent(obj.rectangle1); obj.pgcPrincipal:setAlign("client"); obj.pgcPrincipal:setName("pgcPrincipal"); obj.tab1 = GUI.fromHandle(_obj_newObject("tab")); obj.tab1:setParent(obj.pgcPrincipal); obj.tab1:setTitle("Habilidades"); obj.tab1:setName("tab1"); obj.rectangle2 = GUI.fromHandle(_obj_newObject("rectangle")); obj.rectangle2:setParent(obj.tab1); obj.rectangle2:setName("rectangle2"); obj.rectangle2:setAlign("client"); obj.rectangle2:setColor("#40000000"); obj.rectangle2:setXradius(10); obj.rectangle2:setYradius(10); obj.popSkill = GUI.fromHandle(_obj_newObject("popup")); obj.popSkill:setParent(obj.rectangle2); obj.popSkill:setName("popSkill"); obj.popSkill:setWidth(250); obj.popSkill:setHeight(250); obj.popSkill:setBackOpacity(0.4); lfm_setPropAsString(obj.popSkill, "autoScopeNode", "false"); obj.edit2 = GUI.fromHandle(_obj_newObject("edit")); obj.edit2:setParent(obj.popSkill); obj.edit2:setAlign("top"); obj.edit2:setField("nome"); obj.edit2:setTextPrompt("NOME DA MAGIA"); obj.edit2:setHorzTextAlign("center"); obj.edit2:setName("edit2"); obj.edit2:setFontSize(15); obj.edit2:setFontColor("white"); obj.flowLayout2 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout2:setParent(obj.popSkill); obj.flowLayout2:setAlign("top"); obj.flowLayout2:setAutoHeight(true); obj.flowLayout2:setMaxControlsPerLine(2); obj.flowLayout2:setMargins({bottom=4}); obj.flowLayout2:setHorzAlign("center"); obj.flowLayout2:setName("flowLayout2"); obj.flowLayout2:setVertAlign("leading"); obj.flowPart2 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart2:setParent(obj.flowLayout2); obj.flowPart2:setMinWidth(30); obj.flowPart2:setMaxWidth(400); obj.flowPart2:setHeight(35); obj.flowPart2:setName("flowPart2"); obj.flowPart2:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowPart2:setVertAlign("leading"); obj.label3 = GUI.fromHandle(_obj_newObject("label")); obj.label3:setParent(obj.flowPart2); obj.label3:setAlign("top"); obj.label3:setFontSize(10); obj.label3:setText("TIPO"); obj.label3:setHorzTextAlign("center"); obj.label3:setWordWrap(true); obj.label3:setTextTrimming("none"); obj.label3:setAutoSize(true); obj.label3:setName("label3"); obj.label3:setFontColor("#D0D0D0"); obj.edit3 = GUI.fromHandle(_obj_newObject("edit")); obj.edit3:setParent(obj.flowPart2); obj.edit3:setAlign("client"); obj.edit3:setField("tipo"); obj.edit3:setHorzTextAlign("center"); obj.edit3:setFontSize(12); obj.edit3:setName("edit3"); obj.edit3:setFontColor("white"); obj.flowPart3 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart3:setParent(obj.flowLayout2); obj.flowPart3:setMinWidth(30); obj.flowPart3:setMaxWidth(400); obj.flowPart3:setHeight(35); obj.flowPart3:setName("flowPart3"); obj.flowPart3:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowPart3:setVertAlign("leading"); obj.label4 = GUI.fromHandle(_obj_newObject("label")); obj.label4:setParent(obj.flowPart3); obj.label4:setAlign("top"); obj.label4:setFontSize(10); obj.label4:setText("CUSTO"); obj.label4:setHorzTextAlign("center"); obj.label4:setWordWrap(true); obj.label4:setTextTrimming("none"); obj.label4:setAutoSize(true); obj.label4:setName("label4"); obj.label4:setFontColor("#D0D0D0"); obj.edit4 = GUI.fromHandle(_obj_newObject("edit")); obj.edit4:setParent(obj.flowPart3); obj.edit4:setAlign("client"); obj.edit4:setField("pts"); obj.edit4:setHorzTextAlign("center"); obj.edit4:setFontSize(12); obj.edit4:setName("edit4"); obj.edit4:setFontColor("white"); obj.textEditor2 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor2:setParent(obj.popSkill); obj.textEditor2:setAlign("client"); obj.textEditor2:setField("descricao"); obj.textEditor2:setName("textEditor2"); obj.scrollBox1 = GUI.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox1:setParent(obj.rectangle2); obj.scrollBox1:setAlign("client"); obj.scrollBox1:setName("scrollBox1"); obj.fraFrenteLayoutNew = GUI.fromHandle(_obj_newObject("flowLayout")); obj.fraFrenteLayoutNew:setParent(obj.scrollBox1); obj.fraFrenteLayoutNew:setAlign("top"); obj.fraFrenteLayoutNew:setHeight(500); obj.fraFrenteLayoutNew:setMargins({left=10, right=10, top=10}); obj.fraFrenteLayoutNew:setAutoHeight(true); obj.fraFrenteLayoutNew:setHorzAlign("center"); obj.fraFrenteLayoutNew:setLineSpacing(1); obj.fraFrenteLayoutNew:setName("fraFrenteLayoutNew"); obj.fraFrenteLayoutNew:setMaxControlsPerLine(4); obj.fraFrenteLayoutNew:setStepSizes({310, 420, 640, 760, 1150}); obj.fraFrenteLayoutNew:setMinScaledWidth(150); obj.fraFrenteLayoutNew:setVertAlign("leading"); obj.flowLayout3 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout3:setParent(obj.fraFrenteLayoutNew); obj.flowLayout3:setAutoHeight(true); obj.flowLayout3:setMinScaledWidth(290); obj.flowLayout3:setHorzAlign("center"); obj.flowLayout3:setName("flowLayout3"); obj.flowLayout3:setStepSizes({310, 420, 640, 760, 860, 960, 1150, 1200, 1600}); obj.flowLayout3:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout3:setVertAlign("leading"); obj.flowPart4 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart4:setParent(obj.flowLayout3); obj.flowPart4:setMinWidth(320); obj.flowPart4:setMaxWidth(1600); obj.flowPart4:setFrameStyle("frames/banner/dragon.xml"); obj.flowPart4:setHeight(175); obj.flowPart4:setVertAlign("center"); obj.flowPart4:setAvoidScale(true); obj.flowPart4:setName("flowPart4"); obj.flowPart4:setStepSizes({310, 420, 640, 760, 1150}); obj.flowPart4:setMinScaledWidth(150); obj.flowPart4:setMargins({left=1, right=1, top=2, bottom=2}); obj.layout1 = GUI.fromHandle(_obj_newObject("layout")); obj.layout1:setParent(obj.flowPart4); obj.layout1:setAlign("client"); obj.layout1:setName("layout1"); obj.edit5 = GUI.fromHandle(_obj_newObject("edit")); obj.edit5:setParent(obj.layout1); obj.edit5:setField("nome"); obj.edit5:setFontSize(17); obj.edit5:setAlign("client"); obj.edit5:setName("edit5"); obj.edit5:setFontColor("white"); obj.edit5:setVertTextAlign("center"); obj.edit5:setHorzTextAlign("center"); obj.edit5:setTransparent(true); obj.label5 = GUI.fromHandle(_obj_newObject("label")); obj.label5:setParent(obj.layout1); obj.label5:setAlign("bottom"); obj.label5:setText("NOME DO PERSONAGEM"); obj.label5:setAutoSize(true); obj.label5:setMargins({left=3}); obj.label5:setName("label5"); obj.label5:setFontSize(12); obj.label5:setFontColor("#D0D0D0"); obj.fraUpperGridCaracteristicas = GUI.fromHandle(_obj_newObject("flowLayout")); obj.fraUpperGridCaracteristicas:setParent(obj.flowLayout3); obj.fraUpperGridCaracteristicas:setMinWidth(320); obj.fraUpperGridCaracteristicas:setMaxWidth(1600); obj.fraUpperGridCaracteristicas:setName("fraUpperGridCaracteristicas"); obj.fraUpperGridCaracteristicas:setAvoidScale(true); obj.fraUpperGridCaracteristicas:setFrameStyle("frames/upperInfoGrid/frame.xml"); obj.fraUpperGridCaracteristicas:setAutoHeight(true); obj.fraUpperGridCaracteristicas:setVertAlign("trailing"); obj.fraUpperGridCaracteristicas:setMaxControlsPerLine(4); obj.fraUpperGridCaracteristicas:setStepSizes({310, 420, 640, 760, 1150}); obj.fraUpperGridCaracteristicas:setMinScaledWidth(150); obj.fraUpperGridCaracteristicas:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo1 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo1:setParent(obj.fraUpperGridCaracteristicas); obj.UpperGridCampo1:setHeight(50); obj.UpperGridCampo1:setMinScaledWidth(100); obj.UpperGridCampo1:setMinWidth(100); obj.UpperGridCampo1:setMaxWidth(233); obj.UpperGridCampo1:setMaxScaledWidth(233); obj.UpperGridCampo1:setAvoidScale(true); obj.UpperGridCampo1:setName("UpperGridCampo1"); obj.UpperGridCampo1:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo1:setVertAlign("leading"); obj.edtUpperGridCampo1 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo1:setParent(obj.UpperGridCampo1); obj.edtUpperGridCampo1:setName("edtUpperGridCampo1"); obj.edtUpperGridCampo1:setAlign("top"); obj.edtUpperGridCampo1:setField("olhos"); obj.edtUpperGridCampo1:setFontSize(13); obj.edtUpperGridCampo1:setHeight(30); obj.edtUpperGridCampo1:setTransparent(true); obj.edtUpperGridCampo1:setVertTextAlign("trailing"); obj.edtUpperGridCampo1:setWidth(195); obj.edtUpperGridCampo1:setFontColor("white"); obj.linUpperGridCampo1 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo1:setParent(obj.UpperGridCampo1); obj.linUpperGridCampo1:setName("linUpperGridCampo1"); obj.linUpperGridCampo1:setAlign("top"); obj.linUpperGridCampo1:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo1:setStrokeSize(1); obj.labUpperGridCampo1 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo1:setParent(obj.UpperGridCampo1); obj.labUpperGridCampo1:setName("labUpperGridCampo1"); obj.labUpperGridCampo1:setAlign("top"); obj.labUpperGridCampo1:setText("JOGADOR"); obj.labUpperGridCampo1:setVertTextAlign("leading"); obj.labUpperGridCampo1:setWordWrap(true); obj.labUpperGridCampo1:setTextTrimming("none"); obj.labUpperGridCampo1:setFontSize(12); obj.labUpperGridCampo1:setFontColor("#D0D0D0"); self.UpperGridCampo1:setHeight(self.edtUpperGridCampo1:getHeight() + self.labUpperGridCampo1:getHeight() + self.linUpperGridCampo1:getHeight()); obj.UpperGridCampo2 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo2:setParent(obj.fraUpperGridCaracteristicas); obj.UpperGridCampo2:setHeight(50); obj.UpperGridCampo2:setMinScaledWidth(100); obj.UpperGridCampo2:setMinWidth(100); obj.UpperGridCampo2:setMaxWidth(233); obj.UpperGridCampo2:setMaxScaledWidth(233); obj.UpperGridCampo2:setAvoidScale(true); obj.UpperGridCampo2:setName("UpperGridCampo2"); obj.UpperGridCampo2:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo2:setVertAlign("leading"); obj.edtUpperGridCampo2 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo2:setParent(obj.UpperGridCampo2); obj.edtUpperGridCampo2:setName("edtUpperGridCampo2"); obj.edtUpperGridCampo2:setAlign("top"); obj.edtUpperGridCampo2:setField("pele"); obj.edtUpperGridCampo2:setFontSize(13); obj.edtUpperGridCampo2:setHeight(30); obj.edtUpperGridCampo2:setTransparent(true); obj.edtUpperGridCampo2:setVertTextAlign("trailing"); obj.edtUpperGridCampo2:setWidth(195); obj.edtUpperGridCampo2:setFontColor("white"); obj.linUpperGridCampo2 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo2:setParent(obj.UpperGridCampo2); obj.linUpperGridCampo2:setName("linUpperGridCampo2"); obj.linUpperGridCampo2:setAlign("top"); obj.linUpperGridCampo2:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo2:setStrokeSize(1); obj.labUpperGridCampo2 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo2:setParent(obj.UpperGridCampo2); obj.labUpperGridCampo2:setName("labUpperGridCampo2"); obj.labUpperGridCampo2:setAlign("top"); obj.labUpperGridCampo2:setText("MOD DE TAMANHO"); obj.labUpperGridCampo2:setVertTextAlign("leading"); obj.labUpperGridCampo2:setWordWrap(true); obj.labUpperGridCampo2:setTextTrimming("none"); obj.labUpperGridCampo2:setFontSize(12); obj.labUpperGridCampo2:setFontColor("#D0D0D0"); self.UpperGridCampo2:setHeight(self.edtUpperGridCampo2:getHeight() + self.labUpperGridCampo2:getHeight() + self.linUpperGridCampo2:getHeight()); obj.UpperGridCampo3 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo3:setParent(obj.fraUpperGridCaracteristicas); obj.UpperGridCampo3:setHeight(50); obj.UpperGridCampo3:setMinScaledWidth(100); obj.UpperGridCampo3:setMinWidth(100); obj.UpperGridCampo3:setMaxWidth(233); obj.UpperGridCampo3:setMaxScaledWidth(233); obj.UpperGridCampo3:setAvoidScale(true); obj.UpperGridCampo3:setName("UpperGridCampo3"); obj.UpperGridCampo3:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo3:setVertAlign("leading"); obj.edtUpperGridCampo3 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo3:setParent(obj.UpperGridCampo3); obj.edtUpperGridCampo3:setName("edtUpperGridCampo3"); obj.edtUpperGridCampo3:setAlign("top"); obj.edtUpperGridCampo3:setField("totalPontos"); obj.edtUpperGridCampo3:setFontSize(13); obj.edtUpperGridCampo3:setHeight(30); obj.edtUpperGridCampo3:setTransparent(true); obj.edtUpperGridCampo3:setVertTextAlign("trailing"); obj.edtUpperGridCampo3:setWidth(195); obj.edtUpperGridCampo3:setFontColor("white"); obj.linUpperGridCampo3 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo3:setParent(obj.UpperGridCampo3); obj.linUpperGridCampo3:setName("linUpperGridCampo3"); obj.linUpperGridCampo3:setAlign("top"); obj.linUpperGridCampo3:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo3:setStrokeSize(1); obj.labUpperGridCampo3 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo3:setParent(obj.UpperGridCampo3); obj.labUpperGridCampo3:setName("labUpperGridCampo3"); obj.labUpperGridCampo3:setAlign("top"); obj.labUpperGridCampo3:setText("PONTOS PARA GASTAR"); obj.labUpperGridCampo3:setVertTextAlign("leading"); obj.labUpperGridCampo3:setWordWrap(true); obj.labUpperGridCampo3:setTextTrimming("none"); obj.labUpperGridCampo3:setFontSize(12); obj.labUpperGridCampo3:setFontColor("#D0D0D0"); self.UpperGridCampo3:setHeight(self.edtUpperGridCampo3:getHeight() + self.labUpperGridCampo3:getHeight() + self.linUpperGridCampo3:getHeight()); obj.flowLineBreak1 = GUI.fromHandle(_obj_newObject("flowLineBreak")); obj.flowLineBreak1:setParent(obj.fraUpperGridCaracteristicas); obj.flowLineBreak1:setName("flowLineBreak1"); obj.UpperGridCampo4 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo4:setParent(obj.fraUpperGridCaracteristicas); obj.UpperGridCampo4:setHeight(50); obj.UpperGridCampo4:setMinScaledWidth(100); obj.UpperGridCampo4:setMinWidth(100); obj.UpperGridCampo4:setMaxWidth(233); obj.UpperGridCampo4:setMaxScaledWidth(233); obj.UpperGridCampo4:setAvoidScale(true); obj.UpperGridCampo4:setName("UpperGridCampo4"); obj.UpperGridCampo4:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo4:setVertAlign("leading"); obj.edtUpperGridCampo4 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo4:setParent(obj.UpperGridCampo4); obj.edtUpperGridCampo4:setName("edtUpperGridCampo4"); obj.edtUpperGridCampo4:setAlign("top"); obj.edtUpperGridCampo4:setField("idade"); obj.edtUpperGridCampo4:setFontSize(13); obj.edtUpperGridCampo4:setHeight(30); obj.edtUpperGridCampo4:setTransparent(true); obj.edtUpperGridCampo4:setVertTextAlign("trailing"); obj.edtUpperGridCampo4:setWidth(195); obj.edtUpperGridCampo4:setFontColor("white"); obj.linUpperGridCampo4 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo4:setParent(obj.UpperGridCampo4); obj.linUpperGridCampo4:setName("linUpperGridCampo4"); obj.linUpperGridCampo4:setAlign("top"); obj.linUpperGridCampo4:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo4:setStrokeSize(1); obj.labUpperGridCampo4 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo4:setParent(obj.UpperGridCampo4); obj.labUpperGridCampo4:setName("labUpperGridCampo4"); obj.labUpperGridCampo4:setAlign("top"); obj.labUpperGridCampo4:setText("IDADE"); obj.labUpperGridCampo4:setVertTextAlign("leading"); obj.labUpperGridCampo4:setWordWrap(true); obj.labUpperGridCampo4:setTextTrimming("none"); obj.labUpperGridCampo4:setFontSize(12); obj.labUpperGridCampo4:setFontColor("#D0D0D0"); self.UpperGridCampo4:setHeight(self.edtUpperGridCampo4:getHeight() + self.labUpperGridCampo4:getHeight() + self.linUpperGridCampo4:getHeight()); obj.UpperGridCampo5 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo5:setParent(obj.fraUpperGridCaracteristicas); obj.UpperGridCampo5:setHeight(50); obj.UpperGridCampo5:setMinScaledWidth(100); obj.UpperGridCampo5:setMinWidth(100); obj.UpperGridCampo5:setMaxWidth(233); obj.UpperGridCampo5:setMaxScaledWidth(233); obj.UpperGridCampo5:setAvoidScale(true); obj.UpperGridCampo5:setName("UpperGridCampo5"); obj.UpperGridCampo5:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo5:setVertAlign("leading"); obj.edtUpperGridCampo5 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo5:setParent(obj.UpperGridCampo5); obj.edtUpperGridCampo5:setName("edtUpperGridCampo5"); obj.edtUpperGridCampo5:setAlign("top"); obj.edtUpperGridCampo5:setField("altura"); obj.edtUpperGridCampo5:setFontSize(13); obj.edtUpperGridCampo5:setHeight(30); obj.edtUpperGridCampo5:setTransparent(true); obj.edtUpperGridCampo5:setVertTextAlign("trailing"); obj.edtUpperGridCampo5:setWidth(195); obj.edtUpperGridCampo5:setFontColor("white"); obj.linUpperGridCampo5 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo5:setParent(obj.UpperGridCampo5); obj.linUpperGridCampo5:setName("linUpperGridCampo5"); obj.linUpperGridCampo5:setAlign("top"); obj.linUpperGridCampo5:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo5:setStrokeSize(1); obj.labUpperGridCampo5 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo5:setParent(obj.UpperGridCampo5); obj.labUpperGridCampo5:setName("labUpperGridCampo5"); obj.labUpperGridCampo5:setAlign("top"); obj.labUpperGridCampo5:setText("ALTURA"); obj.labUpperGridCampo5:setVertTextAlign("leading"); obj.labUpperGridCampo5:setWordWrap(true); obj.labUpperGridCampo5:setTextTrimming("none"); obj.labUpperGridCampo5:setFontSize(12); obj.labUpperGridCampo5:setFontColor("#D0D0D0"); self.UpperGridCampo5:setHeight(self.edtUpperGridCampo5:getHeight() + self.labUpperGridCampo5:getHeight() + self.linUpperGridCampo5:getHeight()); obj.UpperGridCampo6 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo6:setParent(obj.fraUpperGridCaracteristicas); obj.UpperGridCampo6:setHeight(50); obj.UpperGridCampo6:setMinScaledWidth(100); obj.UpperGridCampo6:setMinWidth(100); obj.UpperGridCampo6:setMaxWidth(233); obj.UpperGridCampo6:setMaxScaledWidth(233); obj.UpperGridCampo6:setAvoidScale(true); obj.UpperGridCampo6:setName("UpperGridCampo6"); obj.UpperGridCampo6:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo6:setVertAlign("leading"); obj.edtUpperGridCampo6 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo6:setParent(obj.UpperGridCampo6); obj.edtUpperGridCampo6:setName("edtUpperGridCampo6"); obj.edtUpperGridCampo6:setAlign("top"); obj.edtUpperGridCampo6:setField("peso"); obj.edtUpperGridCampo6:setFontSize(13); obj.edtUpperGridCampo6:setHeight(30); obj.edtUpperGridCampo6:setTransparent(true); obj.edtUpperGridCampo6:setVertTextAlign("trailing"); obj.edtUpperGridCampo6:setWidth(195); obj.edtUpperGridCampo6:setFontColor("white"); obj.linUpperGridCampo6 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo6:setParent(obj.UpperGridCampo6); obj.linUpperGridCampo6:setName("linUpperGridCampo6"); obj.linUpperGridCampo6:setAlign("top"); obj.linUpperGridCampo6:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo6:setStrokeSize(1); obj.labUpperGridCampo6 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo6:setParent(obj.UpperGridCampo6); obj.labUpperGridCampo6:setName("labUpperGridCampo6"); obj.labUpperGridCampo6:setAlign("top"); obj.labUpperGridCampo6:setText("PESO"); obj.labUpperGridCampo6:setVertTextAlign("leading"); obj.labUpperGridCampo6:setWordWrap(true); obj.labUpperGridCampo6:setTextTrimming("none"); obj.labUpperGridCampo6:setFontSize(12); obj.labUpperGridCampo6:setFontColor("#D0D0D0"); self.UpperGridCampo6:setHeight(self.edtUpperGridCampo6:getHeight() + self.labUpperGridCampo6:getHeight() + self.linUpperGridCampo6:getHeight()); obj.UpperGridCampo7 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo7:setParent(obj.fraUpperGridCaracteristicas); obj.UpperGridCampo7:setHeight(50); obj.UpperGridCampo7:setMinScaledWidth(100); obj.UpperGridCampo7:setMinWidth(100); obj.UpperGridCampo7:setMaxWidth(233); obj.UpperGridCampo7:setMaxScaledWidth(233); obj.UpperGridCampo7:setAvoidScale(true); obj.UpperGridCampo7:setName("UpperGridCampo7"); obj.UpperGridCampo7:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo7:setVertAlign("leading"); obj.edtUpperGridCampo7 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo7:setParent(obj.UpperGridCampo7); obj.edtUpperGridCampo7:setName("edtUpperGridCampo7"); obj.edtUpperGridCampo7:setAlign("top"); obj.edtUpperGridCampo7:setField("pontosRestantes"); obj.edtUpperGridCampo7:setFontSize(13); obj.edtUpperGridCampo7:setHeight(30); obj.edtUpperGridCampo7:setTransparent(true); obj.edtUpperGridCampo7:setVertTextAlign("trailing"); obj.edtUpperGridCampo7:setWidth(195); obj.edtUpperGridCampo7:setFontColor("white"); obj.linUpperGridCampo7 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo7:setParent(obj.UpperGridCampo7); obj.linUpperGridCampo7:setName("linUpperGridCampo7"); obj.linUpperGridCampo7:setAlign("top"); obj.linUpperGridCampo7:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo7:setStrokeSize(1); obj.labUpperGridCampo7 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo7:setParent(obj.UpperGridCampo7); obj.labUpperGridCampo7:setName("labUpperGridCampo7"); obj.labUpperGridCampo7:setAlign("top"); obj.labUpperGridCampo7:setText("PONTOS RESTANTES"); obj.labUpperGridCampo7:setVertTextAlign("leading"); obj.labUpperGridCampo7:setWordWrap(true); obj.labUpperGridCampo7:setTextTrimming("none"); obj.labUpperGridCampo7:setFontSize(12); obj.labUpperGridCampo7:setFontColor("#D0D0D0"); self.UpperGridCampo7:setHeight(self.edtUpperGridCampo7:getHeight() + self.labUpperGridCampo7:getHeight() + self.linUpperGridCampo7:getHeight()); obj.flowLineBreak2 = GUI.fromHandle(_obj_newObject("flowLineBreak")); obj.flowLineBreak2:setParent(obj.fraFrenteLayoutNew); obj.flowLineBreak2:setName("flowLineBreak2"); obj.flowLayout4 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout4:setParent(obj.fraFrenteLayoutNew); obj.flowLayout4:setAutoHeight(true); obj.flowLayout4:setMinScaledWidth(120); obj.flowLayout4:setMaxScaledWidth(240); obj.flowLayout4:setMargins({right=0}); obj.flowLayout4:setHorzAlign("center"); obj.flowLayout4:setVertAlign("center"); obj.flowLayout4:setMaxControlsPerLine(1); obj.flowLayout4:setFrameStyle("frames/panel1/frameSmall.xml"); obj.flowLayout4:setName("flowLayout4"); obj.flowLayout4:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout5 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout5:setParent(obj.flowLayout4); obj.flowLayout5:setHeight(140); obj.flowLayout5:setMinScaledWidth(120); obj.flowLayout5:setMaxScaledWidth(240); obj.flowLayout5:setHorzAlign("center"); obj.flowLayout5:setMaxControlsPerLine(3); obj.flowLayout5:setName("flowLayout5"); obj.flowLayout5:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout5:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout5:setVertAlign("leading"); obj.flowPart5 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart5:setParent(obj.flowLayout5); obj.flowPart5:setHeight(140); obj.flowPart5:setMinWidth(120); obj.flowPart5:setMaxWidth(120); obj.flowPart5:setMinScaledWidth(120); obj.flowPart5:setMargins({bottom=0}); obj.flowPart5:setFrameStyle("frames/atributeFrame/frame.xml"); obj.flowPart5:setName("flowPart5"); obj.flowPart5:setVertAlign("leading"); obj.layout2 = GUI.fromHandle(_obj_newObject("layout")); obj.layout2:setParent(obj.flowPart5); obj.layout2:setLeft(6); obj.layout2:setTop(12); obj.layout2:setWidth(116); obj.layout2:setHeight(115); obj.layout2:setName("layout2"); obj.edit6 = GUI.fromHandle(_obj_newObject("edit")); obj.edit6:setParent(obj.layout2); obj.edit6:setAlign("top"); obj.edit6:setMargins({left=25, right=30}); obj.edit6:setField("atributos_st"); obj.edit6:setHeight(30); obj.edit6:setType("number"); obj.edit6:setHorzTextAlign("center"); obj.edit6:setVertTextAlign("center"); obj.edit6:setName("edit6"); obj.edit6:setTransparent(true); obj.edit6:setFontSize(15); obj.edit6:setFontColor("white"); obj.edit7 = GUI.fromHandle(_obj_newObject("edit")); obj.edit7:setParent(obj.flowPart5); obj.edit7:setFrameRegion("modificador"); obj.edit7:setField("atributos_mod_st"); obj.edit7:setHorzTextAlign("center"); obj.edit7:setVertTextAlign("center"); obj.edit7:setFontSize(46); lfm_setPropAsString(obj.edit7, "fontStyle", "bold"); obj.edit7:setTransparent(true); obj.edit7:setMin(3); obj.edit7:setName("edit7"); obj.edit7:setFontColor("white"); obj.label6 = GUI.fromHandle(_obj_newObject("label")); obj.label6:setParent(obj.flowPart5); obj.label6:setFrameRegion("titulo"); obj.label6:setText("ST"); obj.label6:setVertTextAlign("center"); obj.label6:setHorzTextAlign("center"); obj.label6:setName("label6"); obj.label6:setFontColor("white"); obj.flowPart6 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart6:setParent(obj.flowLayout5); obj.flowPart6:setStepSizes({105}); obj.flowPart6:setMinScaledWidth(75); obj.flowPart6:setHeight(140); obj.flowPart6:setMargins({top=0}); obj.flowPart6:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart6:setName("flowPart6"); obj.flowPart6:setVertAlign("leading"); obj.label7 = GUI.fromHandle(_obj_newObject("label")); obj.label7:setParent(obj.flowPart6); obj.label7:setAlign("top"); obj.label7:setText("PV"); obj.label7:setHeight(20); obj.label7:setFontSize(9); obj.label7:setWordWrap(true); obj.label7:setHorzTextAlign("center"); obj.label7:setTextTrimming("none"); obj.label7:setName("label7"); obj.label7:setFontColor("white"); obj.edit8 = GUI.fromHandle(_obj_newObject("edit")); obj.edit8:setParent(obj.flowPart6); obj.edit8:setAlign("client"); obj.edit8:setField("atributos_mod_pv"); obj.edit8:setFontSize(30); obj.edit8:setName("edit8"); obj.edit8:setTransparent(true); obj.edit8:setVertTextAlign("center"); obj.edit8:setHorzTextAlign("center"); obj.edit8:setFontColor("white"); obj.flowPart7 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart7:setParent(obj.flowLayout5); obj.flowPart7:setMinWidth(30); obj.flowPart7:setMaxWidth(30); obj.flowPart7:setMargins({top=60}); obj.flowPart7:setHeight(30); obj.flowPart7:setFrameStyle(""); obj.flowPart7:setName("flowPart7"); obj.flowPart7:setVertAlign("leading"); obj.edit9 = GUI.fromHandle(_obj_newObject("edit")); obj.edit9:setParent(obj.flowPart7); obj.edit9:setAlign("left"); obj.edit9:setField("atributos_pv"); obj.edit9:setWidth(30); obj.edit9:setHorzTextAlign("center"); obj.edit9:setTransparent(true); obj.edit9:setName("edit9"); obj.edit9:setFontSize(15); obj.edit9:setFontColor("white"); obj.flowLayout6 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout6:setParent(obj.flowLayout4); obj.flowLayout6:setHeight(140); obj.flowLayout6:setMinScaledWidth(120); obj.flowLayout6:setMaxScaledWidth(240); obj.flowLayout6:setHorzAlign("center"); obj.flowLayout6:setMaxControlsPerLine(3); obj.flowLayout6:setName("flowLayout6"); obj.flowLayout6:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout6:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout6:setVertAlign("leading"); obj.flowPart8 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart8:setParent(obj.flowLayout6); obj.flowPart8:setHeight(140); obj.flowPart8:setMinWidth(120); obj.flowPart8:setMaxWidth(120); obj.flowPart8:setMinScaledWidth(120); obj.flowPart8:setMargins({bottom=0}); obj.flowPart8:setFrameStyle("frames/atributeFrame/frame.xml"); obj.flowPart8:setName("flowPart8"); obj.flowPart8:setVertAlign("leading"); obj.layout3 = GUI.fromHandle(_obj_newObject("layout")); obj.layout3:setParent(obj.flowPart8); obj.layout3:setLeft(6); obj.layout3:setTop(12); obj.layout3:setWidth(116); obj.layout3:setHeight(115); obj.layout3:setName("layout3"); obj.edit10 = GUI.fromHandle(_obj_newObject("edit")); obj.edit10:setParent(obj.layout3); obj.edit10:setAlign("top"); obj.edit10:setMargins({left=25, right=30}); obj.edit10:setField("atributos_dx"); obj.edit10:setHeight(30); obj.edit10:setType("number"); obj.edit10:setHorzTextAlign("center"); obj.edit10:setVertTextAlign("center"); obj.edit10:setName("edit10"); obj.edit10:setTransparent(true); obj.edit10:setFontSize(15); obj.edit10:setFontColor("white"); obj.edit11 = GUI.fromHandle(_obj_newObject("edit")); obj.edit11:setParent(obj.flowPart8); obj.edit11:setFrameRegion("modificador"); obj.edit11:setField("atributos_mod_dx"); obj.edit11:setHorzTextAlign("center"); obj.edit11:setVertTextAlign("center"); obj.edit11:setFontSize(46); lfm_setPropAsString(obj.edit11, "fontStyle", "bold"); obj.edit11:setTransparent(true); obj.edit11:setMin(3); obj.edit11:setName("edit11"); obj.edit11:setFontColor("white"); obj.label8 = GUI.fromHandle(_obj_newObject("label")); obj.label8:setParent(obj.flowPart8); obj.label8:setFrameRegion("titulo"); obj.label8:setText("DX"); obj.label8:setVertTextAlign("center"); obj.label8:setHorzTextAlign("center"); obj.label8:setName("label8"); obj.label8:setFontColor("white"); obj.flowPart9 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart9:setParent(obj.flowLayout6); obj.flowPart9:setStepSizes({105}); obj.flowPart9:setMinScaledWidth(75); obj.flowPart9:setHeight(140); obj.flowPart9:setMargins({top=0}); obj.flowPart9:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart9:setName("flowPart9"); obj.flowPart9:setVertAlign("leading"); obj.label9 = GUI.fromHandle(_obj_newObject("label")); obj.label9:setParent(obj.flowPart9); obj.label9:setAlign("top"); obj.label9:setText("Vontade"); obj.label9:setHeight(20); obj.label9:setFontSize(9); obj.label9:setWordWrap(true); obj.label9:setHorzTextAlign("center"); obj.label9:setTextTrimming("none"); obj.label9:setName("label9"); obj.label9:setFontColor("white"); obj.edit12 = GUI.fromHandle(_obj_newObject("edit")); obj.edit12:setParent(obj.flowPart9); obj.edit12:setAlign("client"); obj.edit12:setField("atributos_mod_vt"); obj.edit12:setFontSize(30); obj.edit12:setName("edit12"); obj.edit12:setTransparent(true); obj.edit12:setVertTextAlign("center"); obj.edit12:setHorzTextAlign("center"); obj.edit12:setFontColor("white"); obj.flowPart10 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart10:setParent(obj.flowLayout6); obj.flowPart10:setMinWidth(30); obj.flowPart10:setMaxWidth(30); obj.flowPart10:setMargins({top=60}); obj.flowPart10:setHeight(30); obj.flowPart10:setFrameStyle(""); obj.flowPart10:setName("flowPart10"); obj.flowPart10:setVertAlign("leading"); obj.edit13 = GUI.fromHandle(_obj_newObject("edit")); obj.edit13:setParent(obj.flowPart10); obj.edit13:setAlign("left"); obj.edit13:setField("atributos_vt"); obj.edit13:setWidth(30); obj.edit13:setHorzTextAlign("center"); obj.edit13:setTransparent(true); obj.edit13:setName("edit13"); obj.edit13:setFontSize(15); obj.edit13:setFontColor("white"); obj.flowLayout7 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout7:setParent(obj.flowLayout4); obj.flowLayout7:setHeight(140); obj.flowLayout7:setMinScaledWidth(120); obj.flowLayout7:setMaxScaledWidth(240); obj.flowLayout7:setHorzAlign("center"); obj.flowLayout7:setMaxControlsPerLine(3); obj.flowLayout7:setName("flowLayout7"); obj.flowLayout7:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout7:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout7:setVertAlign("leading"); obj.flowPart11 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart11:setParent(obj.flowLayout7); obj.flowPart11:setHeight(140); obj.flowPart11:setMinWidth(120); obj.flowPart11:setMaxWidth(120); obj.flowPart11:setMinScaledWidth(120); obj.flowPart11:setMargins({bottom=0}); obj.flowPart11:setFrameStyle("frames/atributeFrame/frame.xml"); obj.flowPart11:setName("flowPart11"); obj.flowPart11:setVertAlign("leading"); obj.layout4 = GUI.fromHandle(_obj_newObject("layout")); obj.layout4:setParent(obj.flowPart11); obj.layout4:setLeft(6); obj.layout4:setTop(12); obj.layout4:setWidth(116); obj.layout4:setHeight(115); obj.layout4:setName("layout4"); obj.edit14 = GUI.fromHandle(_obj_newObject("edit")); obj.edit14:setParent(obj.layout4); obj.edit14:setAlign("top"); obj.edit14:setMargins({left=25, right=30}); obj.edit14:setField("atributos_iq"); obj.edit14:setHeight(30); obj.edit14:setType("number"); obj.edit14:setHorzTextAlign("center"); obj.edit14:setVertTextAlign("center"); obj.edit14:setName("edit14"); obj.edit14:setTransparent(true); obj.edit14:setFontSize(15); obj.edit14:setFontColor("white"); obj.edit15 = GUI.fromHandle(_obj_newObject("edit")); obj.edit15:setParent(obj.flowPart11); obj.edit15:setFrameRegion("modificador"); obj.edit15:setField("atributos_mod_iq"); obj.edit15:setHorzTextAlign("center"); obj.edit15:setVertTextAlign("center"); obj.edit15:setFontSize(46); lfm_setPropAsString(obj.edit15, "fontStyle", "bold"); obj.edit15:setTransparent(true); obj.edit15:setMin(3); obj.edit15:setName("edit15"); obj.edit15:setFontColor("white"); obj.label10 = GUI.fromHandle(_obj_newObject("label")); obj.label10:setParent(obj.flowPart11); obj.label10:setFrameRegion("titulo"); obj.label10:setText("IQ"); obj.label10:setVertTextAlign("center"); obj.label10:setHorzTextAlign("center"); obj.label10:setName("label10"); obj.label10:setFontColor("white"); obj.flowPart12 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart12:setParent(obj.flowLayout7); obj.flowPart12:setStepSizes({105}); obj.flowPart12:setMinScaledWidth(75); obj.flowPart12:setHeight(140); obj.flowPart12:setMargins({top=0}); obj.flowPart12:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart12:setName("flowPart12"); obj.flowPart12:setVertAlign("leading"); obj.label11 = GUI.fromHandle(_obj_newObject("label")); obj.label11:setParent(obj.flowPart12); obj.label11:setAlign("top"); obj.label11:setText("Percepção"); obj.label11:setHeight(20); obj.label11:setFontSize(9); obj.label11:setWordWrap(true); obj.label11:setHorzTextAlign("center"); obj.label11:setTextTrimming("none"); obj.label11:setName("label11"); obj.label11:setFontColor("white"); obj.edit16 = GUI.fromHandle(_obj_newObject("edit")); obj.edit16:setParent(obj.flowPart12); obj.edit16:setAlign("client"); obj.edit16:setField("atributos_mod_per"); obj.edit16:setFontSize(30); obj.edit16:setName("edit16"); obj.edit16:setTransparent(true); obj.edit16:setVertTextAlign("center"); obj.edit16:setHorzTextAlign("center"); obj.edit16:setFontColor("white"); obj.flowPart13 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart13:setParent(obj.flowLayout7); obj.flowPart13:setMinWidth(30); obj.flowPart13:setMaxWidth(30); obj.flowPart13:setMargins({top=60}); obj.flowPart13:setHeight(30); obj.flowPart13:setFrameStyle(""); obj.flowPart13:setName("flowPart13"); obj.flowPart13:setVertAlign("leading"); obj.edit17 = GUI.fromHandle(_obj_newObject("edit")); obj.edit17:setParent(obj.flowPart13); obj.edit17:setAlign("left"); obj.edit17:setField("atributos_per"); obj.edit17:setWidth(30); obj.edit17:setHorzTextAlign("center"); obj.edit17:setTransparent(true); obj.edit17:setName("edit17"); obj.edit17:setFontSize(15); obj.edit17:setFontColor("white"); obj.flowLayout8 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout8:setParent(obj.flowLayout4); obj.flowLayout8:setHeight(140); obj.flowLayout8:setMinScaledWidth(120); obj.flowLayout8:setMaxScaledWidth(240); obj.flowLayout8:setHorzAlign("center"); obj.flowLayout8:setMaxControlsPerLine(3); obj.flowLayout8:setName("flowLayout8"); obj.flowLayout8:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout8:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout8:setVertAlign("leading"); obj.flowPart14 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart14:setParent(obj.flowLayout8); obj.flowPart14:setHeight(140); obj.flowPart14:setMinWidth(120); obj.flowPart14:setMaxWidth(120); obj.flowPart14:setMinScaledWidth(120); obj.flowPart14:setMargins({bottom=0}); obj.flowPart14:setFrameStyle("frames/atributeFrame/frame.xml"); obj.flowPart14:setName("flowPart14"); obj.flowPart14:setVertAlign("leading"); obj.layout5 = GUI.fromHandle(_obj_newObject("layout")); obj.layout5:setParent(obj.flowPart14); obj.layout5:setLeft(6); obj.layout5:setTop(12); obj.layout5:setWidth(116); obj.layout5:setHeight(115); obj.layout5:setName("layout5"); obj.edit18 = GUI.fromHandle(_obj_newObject("edit")); obj.edit18:setParent(obj.layout5); obj.edit18:setAlign("top"); obj.edit18:setMargins({left=25, right=30}); obj.edit18:setField("atributos_ht"); obj.edit18:setHeight(30); obj.edit18:setType("number"); obj.edit18:setHorzTextAlign("center"); obj.edit18:setVertTextAlign("center"); obj.edit18:setName("edit18"); obj.edit18:setTransparent(true); obj.edit18:setFontSize(15); obj.edit18:setFontColor("white"); obj.edit19 = GUI.fromHandle(_obj_newObject("edit")); obj.edit19:setParent(obj.flowPart14); obj.edit19:setFrameRegion("modificador"); obj.edit19:setField("atributos_mod_ht"); obj.edit19:setHorzTextAlign("center"); obj.edit19:setVertTextAlign("center"); obj.edit19:setFontSize(46); lfm_setPropAsString(obj.edit19, "fontStyle", "bold"); obj.edit19:setTransparent(true); obj.edit19:setMin(3); obj.edit19:setName("edit19"); obj.edit19:setFontColor("white"); obj.label12 = GUI.fromHandle(_obj_newObject("label")); obj.label12:setParent(obj.flowPart14); obj.label12:setFrameRegion("titulo"); obj.label12:setText("HT"); obj.label12:setVertTextAlign("center"); obj.label12:setHorzTextAlign("center"); obj.label12:setName("label12"); obj.label12:setFontColor("white"); obj.flowPart15 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart15:setParent(obj.flowLayout8); obj.flowPart15:setStepSizes({105}); obj.flowPart15:setMinScaledWidth(75); obj.flowPart15:setHeight(140); obj.flowPart15:setMargins({top=0}); obj.flowPart15:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart15:setName("flowPart15"); obj.flowPart15:setVertAlign("leading"); obj.label13 = GUI.fromHandle(_obj_newObject("label")); obj.label13:setParent(obj.flowPart15); obj.label13:setAlign("top"); obj.label13:setText("PF"); obj.label13:setHeight(20); obj.label13:setFontSize(9); obj.label13:setWordWrap(true); obj.label13:setHorzTextAlign("center"); obj.label13:setTextTrimming("none"); obj.label13:setName("label13"); obj.label13:setFontColor("white"); obj.edit20 = GUI.fromHandle(_obj_newObject("edit")); obj.edit20:setParent(obj.flowPart15); obj.edit20:setAlign("client"); obj.edit20:setField("atributos_mod_pf"); obj.edit20:setFontSize(30); obj.edit20:setName("edit20"); obj.edit20:setTransparent(true); obj.edit20:setVertTextAlign("center"); obj.edit20:setHorzTextAlign("center"); obj.edit20:setFontColor("white"); obj.flowPart16 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart16:setParent(obj.flowLayout8); obj.flowPart16:setMinWidth(30); obj.flowPart16:setMaxWidth(30); obj.flowPart16:setMargins({top=60}); obj.flowPart16:setHeight(30); obj.flowPart16:setFrameStyle(""); obj.flowPart16:setName("flowPart16"); obj.flowPart16:setVertAlign("leading"); obj.edit21 = GUI.fromHandle(_obj_newObject("edit")); obj.edit21:setParent(obj.flowPart16); obj.edit21:setAlign("left"); obj.edit21:setField("atributos_pf"); obj.edit21:setWidth(30); obj.edit21:setHorzTextAlign("center"); obj.edit21:setTransparent(true); obj.edit21:setName("edit21"); obj.edit21:setFontSize(15); obj.edit21:setFontColor("white"); obj.dataLink2 = GUI.fromHandle(_obj_newObject("dataLink")); obj.dataLink2:setParent(obj.fraFrenteLayoutNew); obj.dataLink2:setFields({'atributos_st','atributos_ht','atributos_dx','atributos_vt','atributos_iq','atributos_per','atributos_velocidade','atributos_deslocamento','dodge_cost'}); obj.dataLink2:setDefaultValues({'0','0','0','0','0','0','0','0','0'}); obj.dataLink2:setName("dataLink2"); obj.dataLink3 = GUI.fromHandle(_obj_newObject("dataLink")); obj.dataLink3:setParent(obj.fraFrenteLayoutNew); obj.dataLink3:setFields({'atributos_mod_st','atributos_mod_dx','atributos_mod_iq','atributos_mod_ht','atributos_mod_vt','atributos_mod_per'}); obj.dataLink3:setDefaultValues({10,10,10,10,10,10}); obj.dataLink3:setName("dataLink3"); obj.flowLayout9 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout9:setParent(obj.fraFrenteLayoutNew); obj.flowLayout9:setAutoHeight(true); obj.flowLayout9:setMinScaledWidth(290); obj.flowLayout9:setMargins({right=10}); obj.flowLayout9:setHorzAlign("center"); obj.flowLayout9:setMaxControlsPerLine(1); obj.flowLayout9:setName("flowLayout9"); obj.flowLayout9:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout9:setVertAlign("leading"); obj.flowLayout10 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout10:setParent(obj.flowLayout9); obj.flowLayout10:setAutoHeight(true); obj.flowLayout10:setMinScaledWidth(290); obj.flowLayout10:setHorzAlign("center"); obj.flowLayout10:setMaxControlsPerLine(3); obj.flowLayout10:setFrameStyle("frames/panel1/frame.xml"); obj.flowLayout10:setName("flowLayout10"); obj.flowLayout10:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout10:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout10:setVertAlign("leading"); obj.flowPart17 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart17:setParent(obj.flowLayout10); obj.flowPart17:setStepSizes({105}); obj.flowPart17:setMinScaledWidth(75); obj.flowPart17:setHeight(120); obj.flowPart17:setMargins({top=0}); obj.flowPart17:setFrameStyle("frames/shield/frame.xml"); obj.flowPart17:setName("flowPart17"); obj.flowPart17:setVertAlign("leading"); obj.label14 = GUI.fromHandle(_obj_newObject("label")); obj.label14:setParent(obj.flowPart17); obj.label14:setAlign("top"); obj.label14:setText("Defesa"); obj.label14:setHeight(20); obj.label14:setFontSize(9); obj.label14:setWordWrap(true); obj.label14:setHorzTextAlign("center"); obj.label14:setTextTrimming("none"); obj.label14:setName("label14"); obj.label14:setFontColor("white"); obj.edit22 = GUI.fromHandle(_obj_newObject("edit")); obj.edit22:setParent(obj.flowPart17); obj.edit22:setAlign("client"); obj.edit22:setField("a"); obj.edit22:setFontSize(30); obj.edit22:setName("edit22"); obj.edit22:setTransparent(true); obj.edit22:setVertTextAlign("center"); obj.edit22:setHorzTextAlign("center"); obj.edit22:setFontColor("white"); obj.flowPart18 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart18:setParent(obj.flowLayout10); obj.flowPart18:setStepSizes({105}); obj.flowPart18:setMinScaledWidth(75); obj.flowPart18:setHeight(120); obj.flowPart18:setMargins({top=0}); obj.flowPart18:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart18:setName("flowPart18"); obj.flowPart18:setVertAlign("leading"); obj.label15 = GUI.fromHandle(_obj_newObject("label")); obj.label15:setParent(obj.flowPart18); obj.label15:setAlign("top"); obj.label15:setText("Dano GeB"); obj.label15:setHeight(20); obj.label15:setFontSize(9); obj.label15:setWordWrap(true); obj.label15:setHorzTextAlign("center"); obj.label15:setTextTrimming("none"); obj.label15:setName("label15"); obj.label15:setFontColor("white"); obj.edit23 = GUI.fromHandle(_obj_newObject("edit")); obj.edit23:setParent(obj.flowPart18); obj.edit23:setAlign("client"); obj.edit23:setField("gdb"); obj.edit23:setFontSize(30); obj.edit23:setName("edit23"); obj.edit23:setTransparent(true); obj.edit23:setVertTextAlign("center"); obj.edit23:setHorzTextAlign("center"); obj.edit23:setFontColor("white"); obj.flowPart19 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart19:setParent(obj.flowLayout10); obj.flowPart19:setStepSizes({105}); obj.flowPart19:setMinScaledWidth(75); obj.flowPart19:setHeight(120); obj.flowPart19:setMargins({top=0}); obj.flowPart19:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart19:setName("flowPart19"); obj.flowPart19:setVertAlign("leading"); obj.label16 = GUI.fromHandle(_obj_newObject("label")); obj.label16:setParent(obj.flowPart19); obj.label16:setAlign("top"); obj.label16:setText("Dano GdP"); obj.label16:setHeight(20); obj.label16:setFontSize(9); obj.label16:setWordWrap(true); obj.label16:setHorzTextAlign("center"); obj.label16:setTextTrimming("none"); obj.label16:setName("label16"); obj.label16:setFontColor("white"); obj.edit24 = GUI.fromHandle(_obj_newObject("edit")); obj.edit24:setParent(obj.flowPart19); obj.edit24:setAlign("client"); obj.edit24:setField("gdp"); obj.edit24:setFontSize(30); obj.edit24:setName("edit24"); obj.edit24:setTransparent(true); obj.edit24:setVertTextAlign("center"); obj.edit24:setHorzTextAlign("center"); obj.edit24:setFontColor("white"); obj.flowLayout11 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout11:setParent(obj.flowLayout9); obj.flowLayout11:setAutoHeight(true); obj.flowLayout11:setMinScaledWidth(290); obj.flowLayout11:setHorzAlign("center"); obj.flowLayout11:setMaxControlsPerLine(2); obj.flowLayout11:setFrameStyle("frames/panel1/frame.xml"); obj.flowLayout11:setName("flowLayout11"); obj.flowLayout11:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout11:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout11:setVertAlign("leading"); obj.UpperGridCampo8 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo8:setParent(obj.flowLayout11); obj.UpperGridCampo8:setHeight(50); obj.UpperGridCampo8:setMinScaledWidth(100); obj.UpperGridCampo8:setMinWidth(100); obj.UpperGridCampo8:setMaxWidth(233); obj.UpperGridCampo8:setMaxScaledWidth(233); obj.UpperGridCampo8:setAvoidScale(true); obj.UpperGridCampo8:setName("UpperGridCampo8"); obj.UpperGridCampo8:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo8:setVertAlign("leading"); obj.edtUpperGridCampo8 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo8:setParent(obj.UpperGridCampo8); obj.edtUpperGridCampo8:setName("edtUpperGridCampo8"); obj.edtUpperGridCampo8:setAlign("top"); obj.edtUpperGridCampo8:setField("rdCabeca"); obj.edtUpperGridCampo8:setFontSize(13); obj.edtUpperGridCampo8:setHeight(30); obj.edtUpperGridCampo8:setTransparent(true); obj.edtUpperGridCampo8:setVertTextAlign("trailing"); obj.edtUpperGridCampo8:setWidth(195); obj.edtUpperGridCampo8:setFontColor("white"); obj.linUpperGridCampo8 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo8:setParent(obj.UpperGridCampo8); obj.linUpperGridCampo8:setName("linUpperGridCampo8"); obj.linUpperGridCampo8:setAlign("top"); obj.linUpperGridCampo8:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo8:setStrokeSize(1); obj.labUpperGridCampo8 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo8:setParent(obj.UpperGridCampo8); obj.labUpperGridCampo8:setName("labUpperGridCampo8"); obj.labUpperGridCampo8:setAlign("top"); obj.labUpperGridCampo8:setText("Cabeça"); obj.labUpperGridCampo8:setVertTextAlign("leading"); obj.labUpperGridCampo8:setWordWrap(true); obj.labUpperGridCampo8:setTextTrimming("none"); obj.labUpperGridCampo8:setFontSize(12); obj.labUpperGridCampo8:setFontColor("#D0D0D0"); self.UpperGridCampo8:setHeight(self.edtUpperGridCampo8:getHeight() + self.labUpperGridCampo8:getHeight() + self.linUpperGridCampo8:getHeight()); obj.UpperGridCampo9 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo9:setParent(obj.flowLayout11); obj.UpperGridCampo9:setHeight(50); obj.UpperGridCampo9:setMinScaledWidth(100); obj.UpperGridCampo9:setMinWidth(100); obj.UpperGridCampo9:setMaxWidth(233); obj.UpperGridCampo9:setMaxScaledWidth(233); obj.UpperGridCampo9:setAvoidScale(true); obj.UpperGridCampo9:setName("UpperGridCampo9"); obj.UpperGridCampo9:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo9:setVertAlign("leading"); obj.edtUpperGridCampo9 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo9:setParent(obj.UpperGridCampo9); obj.edtUpperGridCampo9:setName("edtUpperGridCampo9"); obj.edtUpperGridCampo9:setAlign("top"); obj.edtUpperGridCampo9:setField("rdMaos"); obj.edtUpperGridCampo9:setFontSize(13); obj.edtUpperGridCampo9:setHeight(30); obj.edtUpperGridCampo9:setTransparent(true); obj.edtUpperGridCampo9:setVertTextAlign("trailing"); obj.edtUpperGridCampo9:setWidth(195); obj.edtUpperGridCampo9:setFontColor("white"); obj.linUpperGridCampo9 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo9:setParent(obj.UpperGridCampo9); obj.linUpperGridCampo9:setName("linUpperGridCampo9"); obj.linUpperGridCampo9:setAlign("top"); obj.linUpperGridCampo9:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo9:setStrokeSize(1); obj.labUpperGridCampo9 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo9:setParent(obj.UpperGridCampo9); obj.labUpperGridCampo9:setName("labUpperGridCampo9"); obj.labUpperGridCampo9:setAlign("top"); obj.labUpperGridCampo9:setText("Mãos"); obj.labUpperGridCampo9:setVertTextAlign("leading"); obj.labUpperGridCampo9:setWordWrap(true); obj.labUpperGridCampo9:setTextTrimming("none"); obj.labUpperGridCampo9:setFontSize(12); obj.labUpperGridCampo9:setFontColor("#D0D0D0"); self.UpperGridCampo9:setHeight(self.edtUpperGridCampo9:getHeight() + self.labUpperGridCampo9:getHeight() + self.linUpperGridCampo9:getHeight()); obj.UpperGridCampo10 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo10:setParent(obj.flowLayout11); obj.UpperGridCampo10:setHeight(50); obj.UpperGridCampo10:setMinScaledWidth(100); obj.UpperGridCampo10:setMinWidth(100); obj.UpperGridCampo10:setMaxWidth(233); obj.UpperGridCampo10:setMaxScaledWidth(233); obj.UpperGridCampo10:setAvoidScale(true); obj.UpperGridCampo10:setName("UpperGridCampo10"); obj.UpperGridCampo10:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo10:setVertAlign("leading"); obj.edtUpperGridCampo10 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo10:setParent(obj.UpperGridCampo10); obj.edtUpperGridCampo10:setName("edtUpperGridCampo10"); obj.edtUpperGridCampo10:setAlign("top"); obj.edtUpperGridCampo10:setField("rdTronco"); obj.edtUpperGridCampo10:setFontSize(13); obj.edtUpperGridCampo10:setHeight(30); obj.edtUpperGridCampo10:setTransparent(true); obj.edtUpperGridCampo10:setVertTextAlign("trailing"); obj.edtUpperGridCampo10:setWidth(195); obj.edtUpperGridCampo10:setFontColor("white"); obj.linUpperGridCampo10 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo10:setParent(obj.UpperGridCampo10); obj.linUpperGridCampo10:setName("linUpperGridCampo10"); obj.linUpperGridCampo10:setAlign("top"); obj.linUpperGridCampo10:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo10:setStrokeSize(1); obj.labUpperGridCampo10 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo10:setParent(obj.UpperGridCampo10); obj.labUpperGridCampo10:setName("labUpperGridCampo10"); obj.labUpperGridCampo10:setAlign("top"); obj.labUpperGridCampo10:setText("Tronco"); obj.labUpperGridCampo10:setVertTextAlign("leading"); obj.labUpperGridCampo10:setWordWrap(true); obj.labUpperGridCampo10:setTextTrimming("none"); obj.labUpperGridCampo10:setFontSize(12); obj.labUpperGridCampo10:setFontColor("#D0D0D0"); self.UpperGridCampo10:setHeight(self.edtUpperGridCampo10:getHeight() + self.labUpperGridCampo10:getHeight() + self.linUpperGridCampo10:getHeight()); obj.UpperGridCampo11 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo11:setParent(obj.flowLayout11); obj.UpperGridCampo11:setHeight(50); obj.UpperGridCampo11:setMinScaledWidth(100); obj.UpperGridCampo11:setMinWidth(100); obj.UpperGridCampo11:setMaxWidth(233); obj.UpperGridCampo11:setMaxScaledWidth(233); obj.UpperGridCampo11:setAvoidScale(true); obj.UpperGridCampo11:setName("UpperGridCampo11"); obj.UpperGridCampo11:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo11:setVertAlign("leading"); obj.edtUpperGridCampo11 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo11:setParent(obj.UpperGridCampo11); obj.edtUpperGridCampo11:setName("edtUpperGridCampo11"); obj.edtUpperGridCampo11:setAlign("top"); obj.edtUpperGridCampo11:setField("rdPernas"); obj.edtUpperGridCampo11:setFontSize(13); obj.edtUpperGridCampo11:setHeight(30); obj.edtUpperGridCampo11:setTransparent(true); obj.edtUpperGridCampo11:setVertTextAlign("trailing"); obj.edtUpperGridCampo11:setWidth(195); obj.edtUpperGridCampo11:setFontColor("white"); obj.linUpperGridCampo11 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo11:setParent(obj.UpperGridCampo11); obj.linUpperGridCampo11:setName("linUpperGridCampo11"); obj.linUpperGridCampo11:setAlign("top"); obj.linUpperGridCampo11:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo11:setStrokeSize(1); obj.labUpperGridCampo11 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo11:setParent(obj.UpperGridCampo11); obj.labUpperGridCampo11:setName("labUpperGridCampo11"); obj.labUpperGridCampo11:setAlign("top"); obj.labUpperGridCampo11:setText("Pernas"); obj.labUpperGridCampo11:setVertTextAlign("leading"); obj.labUpperGridCampo11:setWordWrap(true); obj.labUpperGridCampo11:setTextTrimming("none"); obj.labUpperGridCampo11:setFontSize(12); obj.labUpperGridCampo11:setFontColor("#D0D0D0"); self.UpperGridCampo11:setHeight(self.edtUpperGridCampo11:getHeight() + self.labUpperGridCampo11:getHeight() + self.linUpperGridCampo11:getHeight()); obj.UpperGridCampo12 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo12:setParent(obj.flowLayout11); obj.UpperGridCampo12:setHeight(50); obj.UpperGridCampo12:setMinScaledWidth(100); obj.UpperGridCampo12:setMinWidth(100); obj.UpperGridCampo12:setMaxWidth(233); obj.UpperGridCampo12:setMaxScaledWidth(233); obj.UpperGridCampo12:setAvoidScale(true); obj.UpperGridCampo12:setName("UpperGridCampo12"); obj.UpperGridCampo12:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo12:setVertAlign("leading"); obj.edtUpperGridCampo12 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo12:setParent(obj.UpperGridCampo12); obj.edtUpperGridCampo12:setName("edtUpperGridCampo12"); obj.edtUpperGridCampo12:setAlign("top"); obj.edtUpperGridCampo12:setField("rdBracos"); obj.edtUpperGridCampo12:setFontSize(13); obj.edtUpperGridCampo12:setHeight(30); obj.edtUpperGridCampo12:setTransparent(true); obj.edtUpperGridCampo12:setVertTextAlign("trailing"); obj.edtUpperGridCampo12:setWidth(195); obj.edtUpperGridCampo12:setFontColor("white"); obj.linUpperGridCampo12 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo12:setParent(obj.UpperGridCampo12); obj.linUpperGridCampo12:setName("linUpperGridCampo12"); obj.linUpperGridCampo12:setAlign("top"); obj.linUpperGridCampo12:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo12:setStrokeSize(1); obj.labUpperGridCampo12 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo12:setParent(obj.UpperGridCampo12); obj.labUpperGridCampo12:setName("labUpperGridCampo12"); obj.labUpperGridCampo12:setAlign("top"); obj.labUpperGridCampo12:setText("Braços"); obj.labUpperGridCampo12:setVertTextAlign("leading"); obj.labUpperGridCampo12:setWordWrap(true); obj.labUpperGridCampo12:setTextTrimming("none"); obj.labUpperGridCampo12:setFontSize(12); obj.labUpperGridCampo12:setFontColor("#D0D0D0"); self.UpperGridCampo12:setHeight(self.edtUpperGridCampo12:getHeight() + self.labUpperGridCampo12:getHeight() + self.linUpperGridCampo12:getHeight()); obj.UpperGridCampo13 = GUI.fromHandle(_obj_newObject("flowPart")); obj.UpperGridCampo13:setParent(obj.flowLayout11); obj.UpperGridCampo13:setHeight(50); obj.UpperGridCampo13:setMinScaledWidth(100); obj.UpperGridCampo13:setMinWidth(100); obj.UpperGridCampo13:setMaxWidth(233); obj.UpperGridCampo13:setMaxScaledWidth(233); obj.UpperGridCampo13:setAvoidScale(true); obj.UpperGridCampo13:setName("UpperGridCampo13"); obj.UpperGridCampo13:setMargins({left=1, right=1, top=2, bottom=2}); obj.UpperGridCampo13:setVertAlign("leading"); obj.edtUpperGridCampo13 = GUI.fromHandle(_obj_newObject("edit")); obj.edtUpperGridCampo13:setParent(obj.UpperGridCampo13); obj.edtUpperGridCampo13:setName("edtUpperGridCampo13"); obj.edtUpperGridCampo13:setAlign("top"); obj.edtUpperGridCampo13:setField("rdPes"); obj.edtUpperGridCampo13:setFontSize(13); obj.edtUpperGridCampo13:setHeight(30); obj.edtUpperGridCampo13:setTransparent(true); obj.edtUpperGridCampo13:setVertTextAlign("trailing"); obj.edtUpperGridCampo13:setWidth(195); obj.edtUpperGridCampo13:setFontColor("white"); obj.linUpperGridCampo13 = GUI.fromHandle(_obj_newObject("horzLine")); obj.linUpperGridCampo13:setParent(obj.UpperGridCampo13); obj.linUpperGridCampo13:setName("linUpperGridCampo13"); obj.linUpperGridCampo13:setAlign("top"); obj.linUpperGridCampo13:setStrokeColor("#FFFFFF50"); obj.linUpperGridCampo13:setStrokeSize(1); obj.labUpperGridCampo13 = GUI.fromHandle(_obj_newObject("label")); obj.labUpperGridCampo13:setParent(obj.UpperGridCampo13); obj.labUpperGridCampo13:setName("labUpperGridCampo13"); obj.labUpperGridCampo13:setAlign("top"); obj.labUpperGridCampo13:setText("Pés"); obj.labUpperGridCampo13:setVertTextAlign("leading"); obj.labUpperGridCampo13:setWordWrap(true); obj.labUpperGridCampo13:setTextTrimming("none"); obj.labUpperGridCampo13:setFontSize(12); obj.labUpperGridCampo13:setFontColor("#D0D0D0"); self.UpperGridCampo13:setHeight(self.edtUpperGridCampo13:getHeight() + self.labUpperGridCampo13:getHeight() + self.linUpperGridCampo13:getHeight()); obj.label17 = GUI.fromHandle(_obj_newObject("label")); obj.label17:setParent(obj.flowLayout11); obj.label17:setAlign("bottom"); obj.label17:setText("RESISTÊNCIA A DANO"); obj.label17:setHeight(20); obj.label17:setFontSize(11); obj.label17:setWordWrap(true); obj.label17:setHorzTextAlign("center"); obj.label17:setTextTrimming("none"); obj.label17:setName("label17"); obj.label17:setFontColor("white"); obj.flowLayout12 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout12:setParent(obj.flowLayout9); obj.flowLayout12:setAutoHeight(true); obj.flowLayout12:setMinScaledWidth(290); obj.flowLayout12:setHorzAlign("center"); obj.flowLayout12:setMaxControlsPerLine(3); obj.flowLayout12:setFrameStyle("frames/panel1/frame.xml"); obj.flowLayout12:setName("flowLayout12"); obj.flowLayout12:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout12:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout12:setVertAlign("leading"); obj.flowPart20 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart20:setParent(obj.flowLayout12); obj.flowPart20:setStepSizes({105}); obj.flowPart20:setMinScaledWidth(75); obj.flowPart20:setHeight(120); obj.flowPart20:setMargins({top=0}); obj.flowPart20:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart20:setName("flowPart20"); obj.flowPart20:setVertAlign("leading"); obj.label18 = GUI.fromHandle(_obj_newObject("label")); obj.label18:setParent(obj.flowPart20); obj.label18:setAlign("top"); obj.label18:setText("Esquiva"); obj.label18:setHeight(20); obj.label18:setFontSize(9); obj.label18:setWordWrap(true); obj.label18:setHorzTextAlign("center"); obj.label18:setTextTrimming("none"); obj.label18:setName("label18"); obj.label18:setFontColor("white"); obj.edit25 = GUI.fromHandle(_obj_newObject("edit")); obj.edit25:setParent(obj.flowPart20); obj.edit25:setAlign("client"); obj.edit25:setField("dodge"); obj.edit25:setFontSize(30); obj.edit25:setName("edit25"); obj.edit25:setTransparent(true); obj.edit25:setVertTextAlign("center"); obj.edit25:setHorzTextAlign("center"); obj.edit25:setFontColor("white"); obj.flowPart21 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart21:setParent(obj.flowLayout12); obj.flowPart21:setStepSizes({105}); obj.flowPart21:setMinScaledWidth(75); obj.flowPart21:setHeight(120); obj.flowPart21:setMargins({top=0}); obj.flowPart21:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart21:setName("flowPart21"); obj.flowPart21:setVertAlign("leading"); obj.label19 = GUI.fromHandle(_obj_newObject("label")); obj.label19:setParent(obj.flowPart21); obj.label19:setAlign("top"); obj.label19:setText("Vel Base"); obj.label19:setHeight(20); obj.label19:setFontSize(9); obj.label19:setWordWrap(true); obj.label19:setHorzTextAlign("center"); obj.label19:setTextTrimming("none"); obj.label19:setName("label19"); obj.label19:setFontColor("white"); obj.edit26 = GUI.fromHandle(_obj_newObject("edit")); obj.edit26:setParent(obj.flowPart21); obj.edit26:setAlign("client"); obj.edit26:setField("atributos_mod_velocidade"); obj.edit26:setFontSize(30); obj.edit26:setName("edit26"); obj.edit26:setTransparent(true); obj.edit26:setVertTextAlign("center"); obj.edit26:setHorzTextAlign("center"); obj.edit26:setFontColor("white"); obj.flowPart22 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart22:setParent(obj.flowLayout12); obj.flowPart22:setStepSizes({105}); obj.flowPart22:setMinScaledWidth(75); obj.flowPart22:setHeight(120); obj.flowPart22:setMargins({top=0}); obj.flowPart22:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart22:setName("flowPart22"); obj.flowPart22:setVertAlign("leading"); obj.label20 = GUI.fromHandle(_obj_newObject("label")); obj.label20:setParent(obj.flowPart22); obj.label20:setAlign("top"); obj.label20:setText("Desl Base"); obj.label20:setHeight(20); obj.label20:setFontSize(9); obj.label20:setWordWrap(true); obj.label20:setHorzTextAlign("center"); obj.label20:setTextTrimming("none"); obj.label20:setName("label20"); obj.label20:setFontColor("white"); obj.edit27 = GUI.fromHandle(_obj_newObject("edit")); obj.edit27:setParent(obj.flowPart22); obj.edit27:setAlign("client"); obj.edit27:setField("atributos_mod_deslocamento"); obj.edit27:setFontSize(30); obj.edit27:setName("edit27"); obj.edit27:setTransparent(true); obj.edit27:setVertTextAlign("center"); obj.edit27:setHorzTextAlign("center"); obj.edit27:setFontColor("white"); obj.flowPart23 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart23:setParent(obj.flowLayout12); obj.flowPart23:setMinWidth(80); obj.flowPart23:setMaxWidth(160); obj.flowPart23:setMargins({top=10, left=15}); obj.flowPart23:setHeight(20); obj.flowPart23:setFrameStyle(""); obj.flowPart23:setName("flowPart23"); obj.flowPart23:setVertAlign("leading"); obj.edit28 = GUI.fromHandle(_obj_newObject("edit")); obj.edit28:setParent(obj.flowPart23); obj.edit28:setAlign("left"); obj.edit28:setField("dodge_cost"); obj.edit28:setWidth(50); obj.edit28:setHorzTextAlign("center"); obj.edit28:setTransparent(true); obj.edit28:setName("edit28"); obj.edit28:setFontSize(15); obj.edit28:setFontColor("white"); obj.flowPart24 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart24:setParent(obj.flowLayout12); obj.flowPart24:setMinWidth(80); obj.flowPart24:setMaxWidth(160); obj.flowPart24:setMargins({top=10,left=15}); obj.flowPart24:setHeight(20); obj.flowPart24:setFrameStyle(""); obj.flowPart24:setName("flowPart24"); obj.flowPart24:setVertAlign("leading"); obj.edit29 = GUI.fromHandle(_obj_newObject("edit")); obj.edit29:setParent(obj.flowPart24); obj.edit29:setAlign("left"); obj.edit29:setField("atributos_velocidade"); obj.edit29:setWidth(50); obj.edit29:setHorzTextAlign("center"); obj.edit29:setTransparent(true); obj.edit29:setName("edit29"); obj.edit29:setFontSize(15); obj.edit29:setFontColor("white"); obj.flowPart25 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart25:setParent(obj.flowLayout12); obj.flowPart25:setMinWidth(80); obj.flowPart25:setMaxWidth(160); obj.flowPart25:setMargins({top=10,left=15}); obj.flowPart25:setHeight(20); obj.flowPart25:setFrameStyle(""); obj.flowPart25:setName("flowPart25"); obj.flowPart25:setVertAlign("leading"); obj.edit30 = GUI.fromHandle(_obj_newObject("edit")); obj.edit30:setParent(obj.flowPart25); obj.edit30:setAlign("left"); obj.edit30:setField("atributos_deslocamento"); obj.edit30:setWidth(50); obj.edit30:setHorzTextAlign("center"); obj.edit30:setTransparent(true); obj.edit30:setName("edit30"); obj.edit30:setFontSize(15); obj.edit30:setFontColor("white"); obj.label21 = GUI.fromHandle(_obj_newObject("label")); obj.label21:setParent(obj.flowLayout12); obj.label21:setAlign("bottom"); obj.label21:setText("MOBILIDADE"); obj.label21:setHeight(20); obj.label21:setFontSize(11); obj.label21:setWordWrap(true); obj.label21:setHorzTextAlign("center"); obj.label21:setMargins({bottom=10}); obj.label21:setTextTrimming("none"); obj.label21:setName("label21"); obj.label21:setFontColor("white"); obj.flowLayout13 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout13:setParent(obj.fraFrenteLayoutNew); obj.flowLayout13:setAutoHeight(true); obj.flowLayout13:setMinScaledWidth(290); obj.flowLayout13:setHorzAlign("center"); obj.flowLayout13:setName("flowLayout13"); obj.flowLayout13:setStepSizes({310, 420, 640, 760, 1150}); obj.flowLayout13:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout13:setVertAlign("leading"); obj.flowPart26 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart26:setParent(obj.flowLayout13); obj.flowPart26:setMinWidth(280); obj.flowPart26:setMaxWidth(800); obj.flowPart26:setMargins({top=10}); obj.flowPart26:setHeight(64); obj.flowPart26:setFrameStyle("frames/posCaptionEdit2/frame.xml"); obj.flowPart26:setName("flowPart26"); obj.flowPart26:setVertAlign("leading"); obj.edit31 = GUI.fromHandle(_obj_newObject("edit")); obj.edit31:setParent(obj.flowPart26); obj.edit31:setAlign("left"); obj.edit31:setField("nt_total"); obj.edit31:setWidth(65); obj.edit31:setName("edit31"); obj.edit31:setTransparent(true); obj.edit31:setVertTextAlign("center"); obj.edit31:setHorzTextAlign("center"); obj.edit31:setFontSize(15); obj.edit31:setFontColor("white"); obj.label22 = GUI.fromHandle(_obj_newObject("label")); obj.label22:setParent(obj.flowPart26); obj.label22:setAlign("client"); obj.label22:setText("Nível Tecnológico"); obj.label22:setMargins({left=10}); obj.label22:setHorzTextAlign("center"); obj.label22:setName("label22"); obj.label22:setFontSize(12); obj.label22:setFontColor("#D0D0D0"); obj.flowLineBreak3 = GUI.fromHandle(_obj_newObject("flowLineBreak")); obj.flowLineBreak3:setParent(obj.flowLayout13); obj.flowLineBreak3:setName("flowLineBreak3"); obj.flowPart27 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart27:setParent(obj.flowLayout13); obj.flowPart27:setHeight(500); obj.flowPart27:setFrameStyle("frames/panel5/frame.xml"); obj.flowPart27:setMargins({left = 4, right = 4}); obj.flowPart27:setName("flowPart27"); obj.flowPart27:setStepSizes({}); obj.flowPart27:setMinWidth(300); obj.flowPart27:setMaxWidth(1600); obj.flowPart27:setMinScaledWidth(300); obj.flowPart27:setVertAlign("leading"); obj.layout6 = GUI.fromHandle(_obj_newObject("layout")); obj.layout6:setParent(obj.flowPart27); obj.layout6:setAlign("top"); obj.layout6:setHeight(25); obj.layout6:setName("layout6"); obj.label23 = GUI.fromHandle(_obj_newObject("label")); obj.label23:setParent(obj.layout6); obj.label23:setAlign("top"); obj.label23:setAutoSize(true); obj.label23:setText("PERÍCIAS"); obj.label23:setFontSize(12); obj.label23:setVertTextAlign("center"); obj.label23:setHorzTextAlign("center"); lfm_setPropAsString(obj.label23, "fontStyle", "bold"); obj.label23:setName("label23"); obj.label23:setFontColor("white"); obj.button1 = GUI.fromHandle(_obj_newObject("button")); obj.button1:setParent(obj.layout6); obj.button1:setAlign("left"); obj.button1:setText("+"); obj.button1:setWidth(25); obj.button1:setHint("Adiciona uma perícia."); obj.button1:setHorzTextAlign("center"); obj.button1:setMargins({top=-10}); obj.button1:setName("button1"); obj.rclSkillsNew = GUI.fromHandle(_obj_newObject("recordList")); obj.rclSkillsNew:setParent(obj.flowPart27); obj.rclSkillsNew:setAlign("client"); obj.rclSkillsNew:setName("rclSkillsNew"); obj.rclSkillsNew:setField("listaDePericias"); obj.rclSkillsNew:setTemplateForm("frmSkillItem"); obj.rclSkillsNew:setLayout("vertical"); obj.dataLink4 = GUI.fromHandle(_obj_newObject("dataLink")); obj.dataLink4:setParent(obj.flowLayout13); obj.dataLink4:setFields({'totalPontos', 'atributos_st', 'atributos_ht', 'atributos_dx', 'atributos_vt', 'atributos_iq', 'atributos_per', 'atributos_pv', 'atributos_pf', 'atributos_velocidade', 'atributos_deslocamento','dodge_cost'}); obj.dataLink4:setName("dataLink4"); obj.tab2 = GUI.fromHandle(_obj_newObject("tab")); obj.tab2:setParent(obj.pgcPrincipal); obj.tab2:setTitle("Características"); obj.tab2:setName("tab2"); obj.rectangle3 = GUI.fromHandle(_obj_newObject("rectangle")); obj.rectangle3:setParent(obj.tab2); obj.rectangle3:setName("rectangle3"); obj.rectangle3:setAlign("client"); obj.rectangle3:setColor("#40000000"); obj.rectangle3:setXradius(10); obj.rectangle3:setYradius(10); obj.scrollBox2 = GUI.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox2:setParent(obj.rectangle3); obj.scrollBox2:setAlign("client"); obj.scrollBox2:setName("scrollBox2"); obj.fraCaracteristicasLayout = GUI.fromHandle(_obj_newObject("flowLayout")); obj.fraCaracteristicasLayout:setParent(obj.scrollBox2); obj.fraCaracteristicasLayout:setAlign("top"); obj.fraCaracteristicasLayout:setHeight(500); obj.fraCaracteristicasLayout:setMargins({left=10, right=10, top=10}); obj.fraCaracteristicasLayout:setAutoHeight(true); obj.fraCaracteristicasLayout:setHorzAlign("center"); obj.fraCaracteristicasLayout:setLineSpacing(3); obj.fraCaracteristicasLayout:setName("fraCaracteristicasLayout"); obj.fraCaracteristicasLayout:setStepSizes({310, 420, 640, 760, 1150}); obj.fraCaracteristicasLayout:setMinScaledWidth(150); obj.fraCaracteristicasLayout:setVertAlign("leading"); obj.flowLayout14 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout14:setParent(obj.fraCaracteristicasLayout); obj.flowLayout14:setAutoHeight(true); obj.flowLayout14:setMinScaledWidth(290); obj.flowLayout14:setHorzAlign("center"); obj.flowLayout14:setLineSpacing(10); obj.flowLayout14:setName("flowLayout14"); obj.flowLayout14:setStepSizes({310, 420, 640, 760, 860, 960, 1150, 1200, 1600}); obj.flowLayout14:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowLayout14:setVertAlign("leading"); obj.flowLayout15 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout15:setParent(obj.flowLayout14); obj.flowLayout15:setMaxControlsPerLine(1); obj.flowLayout15:setAutoHeight(true); obj.flowLayout15:setLineSpacing(10); obj.flowLayout15:setMargins({left = 4, right = 4}); obj.flowLayout15:setName("flowLayout15"); obj.flowLayout15:setStepSizes({}); obj.flowLayout15:setMinWidth(300); obj.flowLayout15:setMaxWidth(1600); obj.flowLayout15:setMinScaledWidth(300); obj.flowLayout15:setVertAlign("leading"); obj.flowPart28 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart28:setParent(obj.flowLayout15); obj.flowPart28:setHeight(390); obj.flowPart28:setFrameStyle("frames/panel5/frame.xml"); obj.flowPart28:setMargins({left = 0, right = 4}); obj.flowPart28:setName("flowPart28"); obj.flowPart28:setStepSizes({}); obj.flowPart28:setMinWidth(300); obj.flowPart28:setMaxWidth(1600); obj.flowPart28:setMinScaledWidth(300); obj.flowPart28:setVertAlign("leading"); obj.image1 = GUI.fromHandle(_obj_newObject("image")); obj.image1:setParent(obj.flowPart28); obj.image1:setAlign("client"); obj.image1:setStyle("autoFit"); obj.image1:setField("imagens.aparencia"); obj.image1:setMargins({top=2}); obj.image1:setEditable(true); lfm_setPropAsString(obj.image1, "animate", "true"); obj.image1:setName("image1"); obj.label24 = GUI.fromHandle(_obj_newObject("label")); obj.label24:setParent(obj.flowPart28); obj.label24:setAlign("bottom"); obj.label24:setAutoSize(true); obj.label24:setText("APARÊNCIA"); obj.label24:setFontSize(12); obj.label24:setVertTextAlign("center"); obj.label24:setHorzTextAlign("center"); lfm_setPropAsString(obj.label24, "fontStyle", "bold"); obj.label24:setName("label24"); obj.label24:setFontColor("white"); obj.flowPart29 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart29:setParent(obj.flowLayout15); obj.flowPart29:setHeight(115); obj.flowPart29:setFrameStyle("frames/panel5/frame.xml"); obj.flowPart29:setMargins({left = 4, right = 0}); obj.flowPart29:setName("flowPart29"); obj.flowPart29:setStepSizes({}); obj.flowPart29:setMinWidth(300); obj.flowPart29:setMaxWidth(1600); obj.flowPart29:setMinScaledWidth(300); obj.flowPart29:setVertAlign("leading"); obj.textEditor3 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor3:setParent(obj.flowPart29); obj.textEditor3:setAlign("client"); obj.textEditor3:setField("reacao"); obj.textEditor3:setMargins({top=2}); obj.textEditor3:setFontSize(16); obj.textEditor3:setName("textEditor3"); obj.textEditor3:setTransparent(true); obj.label25 = GUI.fromHandle(_obj_newObject("label")); obj.label25:setParent(obj.flowPart29); obj.label25:setAlign("bottom"); obj.label25:setAutoSize(true); obj.label25:setText("IDIOMAS"); obj.label25:setFontSize(12); obj.label25:setVertTextAlign("center"); obj.label25:setHorzTextAlign("center"); lfm_setPropAsString(obj.label25, "fontStyle", "bold"); obj.label25:setName("label25"); obj.label25:setFontColor("white"); obj.flowLayout16 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout16:setParent(obj.flowLayout14); obj.flowLayout16:setMaxControlsPerLine(1); obj.flowLayout16:setAutoHeight(true); obj.flowLayout16:setLineSpacing(10); obj.flowLayout16:setMargins({left=4, right=4}); obj.flowLayout16:setName("flowLayout16"); obj.flowLayout16:setStepSizes({}); obj.flowLayout16:setMinWidth(300); obj.flowLayout16:setMaxWidth(1600); obj.flowLayout16:setMinScaledWidth(300); obj.flowLayout16:setVertAlign("leading"); obj.flowPart30 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart30:setParent(obj.flowLayout16); obj.flowPart30:setHeight(140); obj.flowPart30:setFrameStyle("frames/panel5/topPanel.xml"); obj.flowPart30:setMargins({left = 4, right = 4}); obj.flowPart30:setName("flowPart30"); obj.flowPart30:setStepSizes({}); obj.flowPart30:setMinWidth(300); obj.flowPart30:setMaxWidth(1600); obj.flowPart30:setMinScaledWidth(300); obj.flowPart30:setVertAlign("leading"); obj.textEditor4 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor4:setParent(obj.flowPart30); obj.textEditor4:setAlign("client"); obj.textEditor4:setField("tracosPersonalidade"); obj.textEditor4:setMargins({top=2}); obj.textEditor4:setFontSize(16); obj.textEditor4:setName("textEditor4"); obj.textEditor4:setTransparent(true); obj.label26 = GUI.fromHandle(_obj_newObject("label")); obj.label26:setParent(obj.flowPart30); obj.label26:setAlign("bottom"); obj.label26:setAutoSize(true); obj.label26:setText("TRAÇOS DE PERSONALIDADE"); obj.label26:setFontSize(12); obj.label26:setVertTextAlign("center"); obj.label26:setHorzTextAlign("center"); lfm_setPropAsString(obj.label26, "fontStyle", "bold"); obj.label26:setName("label26"); obj.label26:setFontColor("white"); obj.flowPart31 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart31:setParent(obj.flowLayout16); obj.flowPart31:setHeight(115); obj.flowPart31:setFrameStyle("frames/panel5/centerPanel.xml"); obj.flowPart31:setMargins({left = 4, right = 4}); obj.flowPart31:setName("flowPart31"); obj.flowPart31:setStepSizes({}); obj.flowPart31:setMinWidth(300); obj.flowPart31:setMaxWidth(1600); obj.flowPart31:setMinScaledWidth(300); obj.flowPart31:setVertAlign("leading"); obj.textEditor5 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor5:setParent(obj.flowPart31); obj.textEditor5:setAlign("client"); obj.textEditor5:setField("qualidades"); obj.textEditor5:setMargins({top=2}); obj.textEditor5:setFontSize(16); obj.textEditor5:setName("textEditor5"); obj.textEditor5:setTransparent(true); obj.label27 = GUI.fromHandle(_obj_newObject("label")); obj.label27:setParent(obj.flowPart31); obj.label27:setAlign("bottom"); obj.label27:setAutoSize(true); obj.label27:setText("QUALIDADES"); obj.label27:setFontSize(12); obj.label27:setVertTextAlign("center"); obj.label27:setHorzTextAlign("center"); lfm_setPropAsString(obj.label27, "fontStyle", "bold"); obj.label27:setName("label27"); obj.label27:setFontColor("white"); obj.flowPart32 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart32:setParent(obj.flowLayout16); obj.flowPart32:setHeight(115); obj.flowPart32:setFrameStyle("frames/panel5/centerPanel.xml"); obj.flowPart32:setMargins({left = 4, right = 4}); obj.flowPart32:setName("flowPart32"); obj.flowPart32:setStepSizes({}); obj.flowPart32:setMinWidth(300); obj.flowPart32:setMaxWidth(1600); obj.flowPart32:setMinScaledWidth(300); obj.flowPart32:setVertAlign("leading"); obj.textEditor6 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor6:setParent(obj.flowPart32); obj.textEditor6:setAlign("client"); obj.textEditor6:setField("peculiaridades"); obj.textEditor6:setMargins({top=2}); obj.textEditor6:setFontSize(16); obj.textEditor6:setName("textEditor6"); obj.textEditor6:setTransparent(true); obj.label28 = GUI.fromHandle(_obj_newObject("label")); obj.label28:setParent(obj.flowPart32); obj.label28:setAlign("bottom"); obj.label28:setAutoSize(true); obj.label28:setText("PECULIARIDADES"); obj.label28:setFontSize(12); obj.label28:setVertTextAlign("center"); obj.label28:setHorzTextAlign("center"); lfm_setPropAsString(obj.label28, "fontStyle", "bold"); obj.label28:setName("label28"); obj.label28:setFontColor("white"); obj.flowPart33 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart33:setParent(obj.flowLayout16); obj.flowPart33:setHeight(115); obj.flowPart33:setFrameStyle("frames/panel5/bottomPanel.xml"); obj.flowPart33:setMargins({left = 4, right = 4}); obj.flowPart33:setName("flowPart33"); obj.flowPart33:setStepSizes({}); obj.flowPart33:setMinWidth(300); obj.flowPart33:setMaxWidth(1600); obj.flowPart33:setMinScaledWidth(300); obj.flowPart33:setVertAlign("leading"); obj.textEditor7 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor7:setParent(obj.flowPart33); obj.textEditor7:setAlign("client"); obj.textEditor7:setField("vinculos"); obj.textEditor7:setMargins({top=2}); obj.textEditor7:setFontSize(16); obj.textEditor7:setName("textEditor7"); obj.textEditor7:setTransparent(true); obj.label29 = GUI.fromHandle(_obj_newObject("label")); obj.label29:setParent(obj.flowPart33); obj.label29:setAlign("bottom"); obj.label29:setAutoSize(true); obj.label29:setText("FAMILIARIDADES CULTURAIS"); obj.label29:setFontSize(12); obj.label29:setVertTextAlign("center"); obj.label29:setHorzTextAlign("center"); lfm_setPropAsString(obj.label29, "fontStyle", "bold"); obj.label29:setName("label29"); obj.label29:setFontColor("white"); obj.flowPart34 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart34:setParent(obj.flowLayout14); obj.flowPart34:setHeight(515); obj.flowPart34:setFrameStyle("frames/panel5/frame.xml"); obj.flowPart34:setMargins({left = 4, right = 4}); obj.flowPart34:setName("flowPart34"); obj.flowPart34:setStepSizes({}); obj.flowPart34:setMinWidth(300); obj.flowPart34:setMaxWidth(1600); obj.flowPart34:setMinScaledWidth(300); obj.flowPart34:setVertAlign("leading"); obj.button2 = GUI.fromHandle(_obj_newObject("button")); obj.button2:setParent(obj.flowPart34); obj.button2:setMargins({top=5,bottom=5}); obj.button2:setAlign("top"); obj.button2:setText("Vantagens"); obj.button2:setWidth(250); obj.button2:setName("button2"); obj.button3 = GUI.fromHandle(_obj_newObject("button")); obj.button3:setParent(obj.flowPart34); obj.button3:setMargins({top=5,bottom=5}); obj.button3:setAlign("top"); obj.button3:setText("Desvantagens"); obj.button3:setWidth(250); obj.button3:setName("button3"); obj.dataLink5 = GUI.fromHandle(_obj_newObject("dataLink")); obj.dataLink5:setParent(obj.flowPart34); obj.dataLink5:setFields({'vantagens_pontos', 'desvantagens_pontos'}); obj.dataLink5:setName("dataLink5"); obj.textEditor8 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor8:setParent(obj.flowPart34); obj.textEditor8:setAlign("client"); obj.textEditor8:setField("caracteristicasETracoes"); obj.textEditor8:setMargins({top=2}); obj.textEditor8:setFontSize(16); obj.textEditor8:setName("textEditor8"); obj.textEditor8:setTransparent(true); obj.label30 = GUI.fromHandle(_obj_newObject("label")); obj.label30:setParent(obj.flowPart34); obj.label30:setAlign("bottom"); obj.label30:setAutoSize(true); obj.label30:setText("CARACTERÍSTICAS E TRAÇOS"); obj.label30:setFontSize(12); obj.label30:setVertTextAlign("center"); obj.label30:setHorzTextAlign("center"); lfm_setPropAsString(obj.label30, "fontStyle", "bold"); obj.label30:setName("label30"); obj.label30:setFontColor("white"); obj.flowLineBreak4 = GUI.fromHandle(_obj_newObject("flowLineBreak")); obj.flowLineBreak4:setParent(obj.fraCaracteristicasLayout); obj.flowLineBreak4:setName("flowLineBreak4"); obj.flowLayout17 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout17:setParent(obj.fraCaracteristicasLayout); obj.flowLayout17:setAutoHeight(true); obj.flowLayout17:setMinScaledWidth(290); obj.flowLayout17:setHorzAlign("center"); obj.flowLayout17:setLineSpacing(10); obj.flowLayout17:setMargins({top=5}); obj.flowLayout17:setName("flowLayout17"); obj.flowLayout17:setStepSizes({310, 420, 640, 760, 860, 960, 1150, 1200, 1600}); obj.flowLayout17:setVertAlign("leading"); obj.fraAliadosOrganizacoes = GUI.fromHandle(_obj_newObject("flowLayout")); obj.fraAliadosOrganizacoes:setParent(obj.flowLayout17); obj.fraAliadosOrganizacoes:setName("fraAliadosOrganizacoes"); obj.fraAliadosOrganizacoes:setAutoHeight(true); obj.fraAliadosOrganizacoes:setFrameStyle("frames/panel5/frame.xml"); obj.fraAliadosOrganizacoes:setMargins({left = 4, right = 4}); obj.fraAliadosOrganizacoes:setHorzAlign("center"); obj.fraAliadosOrganizacoes:setStepSizes({310, 420, 640, 760, 1150}); obj.fraAliadosOrganizacoes:setMinScaledWidth(150); obj.fraAliadosOrganizacoes:setVertAlign("leading"); obj.prtAliados = GUI.fromHandle(_obj_newObject("flowPart")); obj.prtAliados:setParent(obj.fraAliadosOrganizacoes); obj.prtAliados:setName("prtAliados"); obj.prtAliados:setMinWidth(300); obj.prtAliados:setMaxWidth(1600); obj.prtAliados:setMinScaledWidth(290); obj.prtAliados:setHeight(420); obj.prtAliados:setAvoidScale(true); obj.prtAliados:setMargins({left=1, right=1, top=2, bottom=2}); obj.prtAliados:setVertAlign("leading"); obj.textEditor9 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor9:setParent(obj.prtAliados); obj.textEditor9:setAlign("client"); obj.textEditor9:setField("aliados.aliadosEOrganizacoes"); obj.textEditor9:setMargins({top=2, left=4, right=4}); obj.textEditor9:setFontSize(16); obj.textEditor9:setName("textEditor9"); obj.textEditor9:setTransparent(true); obj.prtFaccao = GUI.fromHandle(_obj_newObject("flowPart")); obj.prtFaccao:setParent(obj.fraAliadosOrganizacoes); obj.prtFaccao:setName("prtFaccao"); obj.prtFaccao:setStepSizes({260, 310}); obj.prtFaccao:setMaxScaledWidth(310); obj.prtFaccao:setAvoidScale(true); obj.prtFaccao:setHeight(350); obj.prtFaccao:setFrameStyle("frames/panel4transp/frame.xml"); obj.prtFaccao:setMargins({left=4, right=4, bottom=4, top=4}); obj.prtFaccao:setMinScaledWidth(300); obj.prtFaccao:setVertAlign("leading"); obj.label31 = GUI.fromHandle(_obj_newObject("label")); obj.label31:setParent(obj.prtFaccao); obj.label31:setAlign("top"); obj.label31:setHorzTextAlign("leading"); obj.label31:setText("FACÇÃO"); obj.label31:setFontSize(11); obj.label31:setFontColor("gray"); obj.label31:setMargins({left=4, right=4}); obj.label31:setName("label31"); obj.edit32 = GUI.fromHandle(_obj_newObject("edit")); obj.edit32:setParent(obj.prtFaccao); obj.edit32:setAlign("top"); obj.edit32:setField("aliados.faccao.nome"); obj.edit32:setMargins({left=4, right=4}); obj.edit32:setName("edit32"); obj.edit32:setFontSize(15); obj.edit32:setFontColor("white"); obj.image2 = GUI.fromHandle(_obj_newObject("image")); obj.image2:setParent(obj.prtFaccao); obj.image2:setAlign("client"); obj.image2:setField("aliados.faccao.simbolo"); obj.image2:setEditable(true); obj.image2:setStyle("autoFit"); obj.image2:setMargins({left=4, right=4}); obj.image2:setName("image2"); obj.label32 = GUI.fromHandle(_obj_newObject("label")); obj.label32:setParent(obj.prtFaccao); obj.label32:setAlign("bottom"); obj.label32:setAutoSize(true); obj.label32:setText("SÍMBOLO DA FACÇÃO"); obj.label32:setFontSize(12); obj.label32:setVertTextAlign("center"); obj.label32:setHorzTextAlign("center"); lfm_setPropAsString(obj.label32, "fontStyle", "bold"); obj.label32:setName("label32"); obj.label32:setFontColor("white"); obj.flowLineBreak5 = GUI.fromHandle(_obj_newObject("flowLineBreak")); obj.flowLineBreak5:setParent(obj.fraAliadosOrganizacoes); obj.flowLineBreak5:setName("flowLineBreak5"); obj.flowPart35 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart35:setParent(obj.fraAliadosOrganizacoes); obj.flowPart35:setMinWidth(200); obj.flowPart35:setMaxWidth(1800); obj.flowPart35:setHeight(16); obj.flowPart35:setName("flowPart35"); obj.flowPart35:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowPart35:setVertAlign("leading"); obj.label33 = GUI.fromHandle(_obj_newObject("label")); obj.label33:setParent(obj.flowPart35); obj.label33:setAlign("client"); obj.label33:setAutoSize(true); obj.label33:setText("ALIADOS E ORGANIZAÇÕES"); obj.label33:setFontSize(12); obj.label33:setVertTextAlign("center"); obj.label33:setHorzTextAlign("center"); lfm_setPropAsString(obj.label33, "fontStyle", "bold"); obj.label33:setName("label33"); obj.label33:setFontColor("white"); obj.flowPart36 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart36:setParent(obj.flowLayout17); obj.flowPart36:setHeight(515); obj.flowPart36:setFrameStyle("frames/panel5/frame.xml"); obj.flowPart36:setMargins({left = 4, right = 4}); obj.flowPart36:setAdjustHeightToLine(true); obj.flowPart36:setName("flowPart36"); obj.flowPart36:setStepSizes({310, 420, 640, 760, 1150}); obj.flowPart36:setMinScaledWidth(150); obj.flowPart36:setVertAlign("leading"); obj.textEditor10 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor10:setParent(obj.flowPart36); obj.textEditor10:setAlign("client"); obj.textEditor10:setField("historia.texto"); obj.textEditor10:setMargins({top=2}); obj.textEditor10:setFontSize(16); obj.textEditor10:setName("textEditor10"); obj.textEditor10:setTransparent(true); obj.label34 = GUI.fromHandle(_obj_newObject("label")); obj.label34:setParent(obj.flowPart36); obj.label34:setAlign("bottom"); obj.label34:setAutoSize(true); obj.label34:setText("HISTÓRIA"); obj.label34:setFontSize(12); obj.label34:setVertTextAlign("center"); obj.label34:setHorzTextAlign("center"); lfm_setPropAsString(obj.label34, "fontStyle", "bold"); obj.label34:setName("label34"); obj.label34:setFontColor("white"); obj.tab3 = GUI.fromHandle(_obj_newObject("tab")); obj.tab3:setParent(obj.pgcPrincipal); obj.tab3:setTitle("Equipamento"); obj.tab3:setName("tab3"); obj.rectangle4 = GUI.fromHandle(_obj_newObject("rectangle")); obj.rectangle4:setParent(obj.tab3); obj.rectangle4:setName("rectangle4"); obj.rectangle4:setAlign("client"); obj.rectangle4:setColor("#40000000"); obj.rectangle4:setXradius(10); obj.rectangle4:setYradius(10); local function recalcularTamanhoEquipsEAtaques_() end; local function recalcularTamanhoEquipsDefesa_() end; local function recalcularTamanhoEquipsEAtaques() self.flwPartEquipAtack.height = self.rclEquips.height + self.labEquipAtackTit.height + self.layEquipAtackBottom.height + self.flwPartEquipAtack.padding.top + self.flwPartEquipAtack.padding.bottom + 7; end; local function recalcularTamanhoEquipsDefesa() self.flwPartEquipDefense.height = self.rclEquipsDefense.height + self.labEquipDefense.height + self.layEquipDefenseBottom.height + self.flwPartEquipDefense.padding.top + self.flwPartEquipDefense.padding.bottom + 7; end; obj.popBag = GUI.fromHandle(_obj_newObject("popup")); obj.popBag:setParent(obj.rectangle4); obj.popBag:setName("popBag"); obj.popBag:setWidth(250); obj.popBag:setHeight(250); obj.popBag:setBackOpacity(0.4); obj.edit33 = GUI.fromHandle(_obj_newObject("edit")); obj.edit33:setParent(obj.popBag); obj.edit33:setAlign("top"); obj.edit33:setField("nome"); obj.edit33:setHorzTextAlign("center"); obj.edit33:setName("edit33"); obj.edit33:setFontSize(15); obj.edit33:setFontColor("white"); obj.flowLayout18 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout18:setParent(obj.popBag); obj.flowLayout18:setAlign("top"); obj.flowLayout18:setAutoHeight(true); obj.flowLayout18:setMaxControlsPerLine(2); obj.flowLayout18:setMargins({bottom=4}); obj.flowLayout18:setHorzAlign("center"); obj.flowLayout18:setName("flowLayout18"); obj.flowLayout18:setVertAlign("leading"); obj.flowPart37 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart37:setParent(obj.flowLayout18); obj.flowPart37:setMinWidth(30); obj.flowPart37:setMaxWidth(400); obj.flowPart37:setHeight(35); obj.flowPart37:setName("flowPart37"); obj.flowPart37:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowPart37:setVertAlign("leading"); obj.label35 = GUI.fromHandle(_obj_newObject("label")); obj.label35:setParent(obj.flowPart37); obj.label35:setAlign("top"); obj.label35:setFontSize(10); obj.label35:setText("PESO"); obj.label35:setHorzTextAlign("center"); obj.label35:setWordWrap(true); obj.label35:setTextTrimming("none"); obj.label35:setAutoSize(true); obj.label35:setName("label35"); obj.label35:setFontColor("#D0D0D0"); obj.edit34 = GUI.fromHandle(_obj_newObject("edit")); obj.edit34:setParent(obj.flowPart37); obj.edit34:setAlign("client"); obj.edit34:setField("peso"); obj.edit34:setHorzTextAlign("center"); obj.edit34:setFontSize(12); obj.edit34:setName("edit34"); obj.edit34:setFontColor("white"); obj.flowPart38 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart38:setParent(obj.flowLayout18); obj.flowPart38:setMinWidth(30); obj.flowPart38:setMaxWidth(400); obj.flowPart38:setHeight(35); obj.flowPart38:setName("flowPart38"); obj.flowPart38:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowPart38:setVertAlign("leading"); obj.label36 = GUI.fromHandle(_obj_newObject("label")); obj.label36:setParent(obj.flowPart38); obj.label36:setAlign("top"); obj.label36:setFontSize(10); obj.label36:setText("CUSTO"); obj.label36:setHorzTextAlign("center"); obj.label36:setWordWrap(true); obj.label36:setTextTrimming("none"); obj.label36:setAutoSize(true); obj.label36:setName("label36"); obj.label36:setFontColor("#D0D0D0"); obj.edit35 = GUI.fromHandle(_obj_newObject("edit")); obj.edit35:setParent(obj.flowPart38); obj.edit35:setAlign("client"); obj.edit35:setField("custo"); obj.edit35:setHorzTextAlign("center"); obj.edit35:setFontSize(12); obj.edit35:setName("edit35"); obj.edit35:setFontColor("white"); obj.textEditor11 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor11:setParent(obj.popBag); obj.textEditor11:setAlign("client"); obj.textEditor11:setField("descricao"); obj.textEditor11:setName("textEditor11"); obj.scrollBox3 = GUI.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox3:setParent(obj.rectangle4); obj.scrollBox3:setAlign("client"); obj.scrollBox3:setName("scrollBox3"); obj.fraEquipamentoLayout = GUI.fromHandle(_obj_newObject("flowLayout")); obj.fraEquipamentoLayout:setParent(obj.scrollBox3); obj.fraEquipamentoLayout:setAlign("top"); obj.fraEquipamentoLayout:setHeight(500); obj.fraEquipamentoLayout:setMargins({left=10, right=10, top=10}); obj.fraEquipamentoLayout:setAutoHeight(true); obj.fraEquipamentoLayout:setHorzAlign("center"); obj.fraEquipamentoLayout:setLineSpacing(3); obj.fraEquipamentoLayout:setName("fraEquipamentoLayout"); obj.fraEquipamentoLayout:setStepSizes({310, 420, 640, 760, 1150}); obj.fraEquipamentoLayout:setMinScaledWidth(150); obj.fraEquipamentoLayout:setVertAlign("leading"); obj.flwPartEquipAtack = GUI.fromHandle(_obj_newObject("flowPart")); obj.flwPartEquipAtack:setParent(obj.fraEquipamentoLayout); obj.flwPartEquipAtack:setName("flwPartEquipAtack"); obj.flwPartEquipAtack:setHeight(500); obj.flwPartEquipAtack:setFrameStyle("frames/panel5/frame.xml"); obj.flwPartEquipAtack:setMinScaledWidth(290); obj.flwPartEquipAtack:setStepSizes({310, 420, 640, 760, 1150}); obj.flwPartEquipAtack:setMargins({left=1, right=1, top=2, bottom=2}); obj.flwPartEquipAtack:setVertAlign("leading"); obj.labEquipAtackTit = GUI.fromHandle(_obj_newObject("label")); obj.labEquipAtackTit:setParent(obj.flwPartEquipAtack); obj.labEquipAtackTit:setName("labEquipAtackTit"); obj.labEquipAtackTit:setAlign("top"); obj.labEquipAtackTit:setAutoSize(true); obj.labEquipAtackTit:setText("EQUIPAMENTOS E ATAQUES"); obj.labEquipAtackTit:setFontSize(12); obj.labEquipAtackTit:setVertTextAlign("center"); obj.labEquipAtackTit:setHorzTextAlign("center"); lfm_setPropAsString(obj.labEquipAtackTit, "fontStyle", "bold"); obj.labEquipAtackTit:setFontColor("white"); obj.rclEquips = GUI.fromHandle(_obj_newObject("recordList")); obj.rclEquips:setParent(obj.flwPartEquipAtack); obj.rclEquips:setName("rclEquips"); obj.rclEquips:setAlign("top"); obj.rclEquips:setField("equipamentos.ataques"); obj.rclEquips:setTemplateForm("frmEquipamentoItem"); obj.rclEquips:setAutoHeight(true); obj.rclEquips:setMinHeight(5); obj.rclEquips:setMinQt(1); obj.rclEquips:setHitTest(false); obj.layEquipAtackBottom = GUI.fromHandle(_obj_newObject("layout")); obj.layEquipAtackBottom:setParent(obj.flwPartEquipAtack); obj.layEquipAtackBottom:setName("layEquipAtackBottom"); obj.layEquipAtackBottom:setAlign("top"); obj.layEquipAtackBottom:setHeight(40); obj.btnEquipAtackNew = GUI.fromHandle(_obj_newObject("button")); obj.btnEquipAtackNew:setParent(obj.layEquipAtackBottom); obj.btnEquipAtackNew:setName("btnEquipAtackNew"); obj.btnEquipAtackNew:setAlign("left"); obj.btnEquipAtackNew:setText("Novo Item"); obj.btnEquipAtackNew:setWidth(160); obj.btnEquipAtackNew:setMargins({top=4, bottom=4}); obj.flowLineBreak6 = GUI.fromHandle(_obj_newObject("flowLineBreak")); obj.flowLineBreak6:setParent(obj.fraEquipamentoLayout); obj.flowLineBreak6:setName("flowLineBreak6"); obj.flwPartEquipDefense = GUI.fromHandle(_obj_newObject("flowPart")); obj.flwPartEquipDefense:setParent(obj.fraEquipamentoLayout); obj.flwPartEquipDefense:setName("flwPartEquipDefense"); obj.flwPartEquipDefense:setHeight(500); obj.flwPartEquipDefense:setFrameStyle("frames/panel5/frame.xml"); obj.flwPartEquipDefense:setMinScaledWidth(290); obj.flwPartEquipDefense:setStepSizes({310, 420, 640, 760, 1150}); obj.flwPartEquipDefense:setMargins({left=1, right=1, top=2, bottom=2}); obj.flwPartEquipDefense:setVertAlign("leading"); obj.labEquipDefense = GUI.fromHandle(_obj_newObject("label")); obj.labEquipDefense:setParent(obj.flwPartEquipDefense); obj.labEquipDefense:setName("labEquipDefense"); obj.labEquipDefense:setAlign("top"); obj.labEquipDefense:setAutoSize(true); obj.labEquipDefense:setText("EQUIPAMENTOS DE DEFESA"); obj.labEquipDefense:setFontSize(12); obj.labEquipDefense:setVertTextAlign("center"); obj.labEquipDefense:setHorzTextAlign("center"); lfm_setPropAsString(obj.labEquipDefense, "fontStyle", "bold"); obj.labEquipDefense:setFontColor("white"); obj.rclEquipsDefense = GUI.fromHandle(_obj_newObject("recordList")); obj.rclEquipsDefense:setParent(obj.flwPartEquipDefense); obj.rclEquipsDefense:setName("rclEquipsDefense"); obj.rclEquipsDefense:setAlign("top"); obj.rclEquipsDefense:setField("equipamentos.defesas"); obj.rclEquipsDefense:setTemplateForm("frmEquipamentoItemDefesa"); obj.rclEquipsDefense:setAutoHeight(true); obj.rclEquipsDefense:setMinHeight(5); obj.rclEquipsDefense:setMinQt(1); obj.rclEquipsDefense:setHitTest(false); obj.layEquipDefenseBottom = GUI.fromHandle(_obj_newObject("layout")); obj.layEquipDefenseBottom:setParent(obj.flwPartEquipDefense); obj.layEquipDefenseBottom:setName("layEquipDefenseBottom"); obj.layEquipDefenseBottom:setAlign("top"); obj.layEquipDefenseBottom:setHeight(40); obj.btnEquipDefenseNew = GUI.fromHandle(_obj_newObject("button")); obj.btnEquipDefenseNew:setParent(obj.layEquipDefenseBottom); obj.btnEquipDefenseNew:setName("btnEquipDefenseNew"); obj.btnEquipDefenseNew:setAlign("left"); obj.btnEquipDefenseNew:setText("Novo Item"); obj.btnEquipDefenseNew:setWidth(160); obj.btnEquipDefenseNew:setMargins({top=4, bottom=4}); obj.flowLineBreak7 = GUI.fromHandle(_obj_newObject("flowLineBreak")); obj.flowLineBreak7:setParent(obj.fraEquipamentoLayout); obj.flowLineBreak7:setName("flowLineBreak7"); obj.flowPart39 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart39:setParent(obj.fraEquipamentoLayout); obj.flowPart39:setHeight(500); obj.flowPart39:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart39:setMinScaledWidth(290); obj.flowPart39:setName("flowPart39"); obj.flowPart39:setStepSizes({310, 420, 640, 760, 1150}); obj.flowPart39:setMargins({left=1, right=1, top=2, bottom=2}); obj.flowPart39:setVertAlign("leading"); obj.flowLayout19 = GUI.fromHandle(_obj_newObject("flowLayout")); obj.flowLayout19:setParent(obj.flowPart39); obj.flowLayout19:setAlign("left"); obj.flowLayout19:setWidth(120); obj.flowLayout19:setMargins({left=10, right=10, top=10}); obj.flowLayout19:setHorzAlign("center"); obj.flowLayout19:setLineSpacing(3); obj.flowLayout19:setName("flowLayout19"); obj.flowLayout19:setVertAlign("leading"); obj.flowPart40 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart40:setParent(obj.flowLayout19); obj.flowPart40:setAvoidScale(true); obj.flowPart40:setStepSizes({120}); obj.flowPart40:setMinScaledWidth(120); obj.flowPart40:setMargins({top=5}); obj.flowPart40:setHeight(145); obj.flowPart40:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart40:setName("flowPart40"); obj.flowPart40:setVertAlign("leading"); obj.label37 = GUI.fromHandle(_obj_newObject("label")); obj.label37:setParent(obj.flowPart40); obj.label37:setAlign("top"); obj.label37:setText("Carga Base"); obj.label37:setHeight(20); obj.label37:setFontSize(9); obj.label37:setWordWrap(true); obj.label37:setHorzTextAlign("center"); obj.label37:setTextTrimming("none"); obj.label37:setName("label37"); obj.label37:setFontColor("white"); obj.edit36 = GUI.fromHandle(_obj_newObject("edit")); obj.edit36:setParent(obj.flowPart40); obj.edit36:setAlign("client"); obj.edit36:setField("carga"); obj.edit36:setFontSize(30); obj.edit36:setName("edit36"); obj.edit36:setTransparent(true); obj.edit36:setVertTextAlign("center"); obj.edit36:setHorzTextAlign("center"); obj.edit36:setFontColor("white"); obj.flowPart41 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart41:setParent(obj.flowLayout19); obj.flowPart41:setAvoidScale(true); obj.flowPart41:setStepSizes({120}); obj.flowPart41:setMinScaledWidth(120); obj.flowPart41:setMargins({top=5}); obj.flowPart41:setHeight(145); obj.flowPart41:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart41:setName("flowPart41"); obj.flowPart41:setVertAlign("leading"); obj.label38 = GUI.fromHandle(_obj_newObject("label")); obj.label38:setParent(obj.flowPart41); obj.label38:setLeft(15); obj.label38:setTop(10); obj.label38:setWidth(90); obj.label38:setHeight(25); obj.label38:setField("bc_0"); obj.label38:setFontSize(10); obj.label38:setWordWrap(true); obj.label38:setHorzTextAlign("center"); obj.label38:setTextTrimming("none"); obj.label38:setName("label38"); obj.label38:setFontColor("white"); obj.label39 = GUI.fromHandle(_obj_newObject("label")); obj.label39:setParent(obj.flowPart41); obj.label39:setLeft(15); obj.label39:setTop(35); obj.label39:setWidth(90); obj.label39:setHeight(25); obj.label39:setField("bc_1"); obj.label39:setFontSize(10); obj.label39:setWordWrap(true); obj.label39:setHorzTextAlign("center"); obj.label39:setTextTrimming("none"); obj.label39:setName("label39"); obj.label39:setFontColor("white"); obj.label40 = GUI.fromHandle(_obj_newObject("label")); obj.label40:setParent(obj.flowPart41); obj.label40:setLeft(15); obj.label40:setTop(60); obj.label40:setWidth(90); obj.label40:setHeight(25); obj.label40:setField("bc_2"); obj.label40:setFontSize(10); obj.label40:setWordWrap(true); obj.label40:setHorzTextAlign("center"); obj.label40:setTextTrimming("none"); obj.label40:setName("label40"); obj.label40:setFontColor("white"); obj.label41 = GUI.fromHandle(_obj_newObject("label")); obj.label41:setParent(obj.flowPart41); obj.label41:setLeft(15); obj.label41:setTop(85); obj.label41:setWidth(90); obj.label41:setHeight(25); obj.label41:setField("bc_3"); obj.label41:setFontSize(10); obj.label41:setWordWrap(true); obj.label41:setHorzTextAlign("center"); obj.label41:setTextTrimming("none"); obj.label41:setName("label41"); obj.label41:setFontColor("white"); obj.label42 = GUI.fromHandle(_obj_newObject("label")); obj.label42:setParent(obj.flowPart41); obj.label42:setLeft(15); obj.label42:setTop(110); obj.label42:setWidth(90); obj.label42:setHeight(25); obj.label42:setField("bc_4"); obj.label42:setFontSize(10); obj.label42:setWordWrap(true); obj.label42:setHorzTextAlign("center"); obj.label42:setTextTrimming("none"); obj.label42:setName("label42"); obj.label42:setFontColor("white"); obj.dataLink6 = GUI.fromHandle(_obj_newObject("dataLink")); obj.dataLink6:setParent(obj.flowLayout19); obj.dataLink6:setField("carga"); obj.dataLink6:setName("dataLink6"); obj.flowPart42 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart42:setParent(obj.flowLayout19); obj.flowPart42:setAvoidScale(true); obj.flowPart42:setStepSizes({120}); obj.flowPart42:setMinScaledWidth(120); obj.flowPart42:setMargins({top=5}); obj.flowPart42:setHeight(145); obj.flowPart42:setFrameStyle("frames/panel4transp/frame.xml"); obj.flowPart42:setName("flowPart42"); obj.flowPart42:setVertAlign("leading"); obj.label43 = GUI.fromHandle(_obj_newObject("label")); obj.label43:setParent(obj.flowPart42); obj.label43:setLeft(15); obj.label43:setTop(10); obj.label43:setWidth(90); obj.label43:setHeight(25); obj.label43:setField("db_0"); obj.label43:setFontSize(10); obj.label43:setWordWrap(true); obj.label43:setHorzTextAlign("center"); obj.label43:setTextTrimming("none"); obj.label43:setName("label43"); obj.label43:setFontColor("white"); obj.label44 = GUI.fromHandle(_obj_newObject("label")); obj.label44:setParent(obj.flowPart42); obj.label44:setLeft(15); obj.label44:setTop(35); obj.label44:setWidth(90); obj.label44:setHeight(25); obj.label44:setField("db_1"); obj.label44:setFontSize(10); obj.label44:setWordWrap(true); obj.label44:setHorzTextAlign("center"); obj.label44:setTextTrimming("none"); obj.label44:setName("label44"); obj.label44:setFontColor("white"); obj.label45 = GUI.fromHandle(_obj_newObject("label")); obj.label45:setParent(obj.flowPart42); obj.label45:setLeft(15); obj.label45:setTop(60); obj.label45:setWidth(90); obj.label45:setHeight(25); obj.label45:setField("db_2"); obj.label45:setFontSize(10); obj.label45:setWordWrap(true); obj.label45:setHorzTextAlign("center"); obj.label45:setTextTrimming("none"); obj.label45:setName("label45"); obj.label45:setFontColor("white"); obj.label46 = GUI.fromHandle(_obj_newObject("label")); obj.label46:setParent(obj.flowPart42); obj.label46:setLeft(15); obj.label46:setTop(85); obj.label46:setWidth(90); obj.label46:setHeight(25); obj.label46:setField("db_3"); obj.label46:setFontSize(10); obj.label46:setWordWrap(true); obj.label46:setHorzTextAlign("center"); obj.label46:setTextTrimming("none"); obj.label46:setName("label46"); obj.label46:setFontColor("white"); obj.label47 = GUI.fromHandle(_obj_newObject("label")); obj.label47:setParent(obj.flowPart42); obj.label47:setLeft(15); obj.label47:setTop(110); obj.label47:setWidth(90); obj.label47:setHeight(25); obj.label47:setField("db_4"); obj.label47:setFontSize(10); obj.label47:setWordWrap(true); obj.label47:setHorzTextAlign("center"); obj.label47:setTextTrimming("none"); obj.label47:setName("label47"); obj.label47:setFontColor("white"); obj.dataLink7 = GUI.fromHandle(_obj_newObject("dataLink")); obj.dataLink7:setParent(obj.flowLayout19); obj.dataLink7:setField("atributos_mod_deslocamento"); obj.dataLink7:setName("dataLink7"); obj.flowPart43 = GUI.fromHandle(_obj_newObject("flowPart")); obj.flowPart43:setParent(obj.flowPart39); obj.flowPart43:setAlign("client"); obj.flowPart43:setHeight(600); obj.flowPart43:setFrameStyle("frames/panel5/frame.xml"); obj.flowPart43:setMargins({left = 4, right = 4}); obj.flowPart43:setName("flowPart43"); obj.flowPart43:setStepSizes({}); obj.flowPart43:setMinWidth(300); obj.flowPart43:setMaxWidth(1600); obj.flowPart43:setMinScaledWidth(300); obj.flowPart43:setVertAlign("leading"); obj.layout7 = GUI.fromHandle(_obj_newObject("layout")); obj.layout7:setParent(obj.flowPart43); obj.layout7:setAlign("top"); obj.layout7:setHeight(25); obj.layout7:setName("layout7"); obj.label48 = GUI.fromHandle(_obj_newObject("label")); obj.label48:setParent(obj.layout7); obj.label48:setAlign("top"); obj.label48:setAutoSize(true); obj.label48:setText("EQUIPAMENTOS E OBJETOS"); obj.label48:setFontSize(12); obj.label48:setVertTextAlign("center"); obj.label48:setHorzTextAlign("center"); lfm_setPropAsString(obj.label48, "fontStyle", "bold"); obj.label48:setName("label48"); obj.label48:setFontColor("white"); obj.button4 = GUI.fromHandle(_obj_newObject("button")); obj.button4:setParent(obj.layout7); obj.button4:setAlign("left"); obj.button4:setText("+"); obj.button4:setWidth(25); obj.button4:setHint(""); obj.button4:setHorzTextAlign("center"); obj.button4:setMargins({top=-10}); obj.button4:setName("button4"); obj.rclEquipments = GUI.fromHandle(_obj_newObject("recordList")); obj.rclEquipments:setParent(obj.flowPart43); obj.rclEquipments:setAlign("client"); obj.rclEquipments:setName("rclEquipments"); obj.rclEquipments:setField("listaDeEquipamentos"); obj.rclEquipments:setTemplateForm("frmBackpackItem"); obj.rclEquipments:setLayout("vertical"); obj.flowLineBreak8 = GUI.fromHandle(_obj_newObject("flowLineBreak")); obj.flowLineBreak8:setParent(obj.fraEquipamentoLayout); obj.flowLineBreak8:setName("flowLineBreak8"); obj.tab4 = GUI.fromHandle(_obj_newObject("tab")); obj.tab4:setParent(obj.pgcPrincipal); obj.tab4:setTitle("Anotações"); obj.tab4:setName("tab4"); obj.frmBlank = GUI.fromHandle(_obj_newObject("form")); obj.frmBlank:setParent(obj.tab4); obj.frmBlank:setName("frmBlank"); obj.frmBlank:setAlign("client"); obj.scrollBox4 = GUI.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox4:setParent(obj.frmBlank); obj.scrollBox4:setAlign("client"); obj.scrollBox4:setName("scrollBox4"); obj.textEditor12 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor12:setParent(obj.scrollBox4); obj.textEditor12:setAlign("client"); obj.textEditor12:setField("anotacoesLivres"); obj.textEditor12:setName("textEditor12"); obj.tab5 = GUI.fromHandle(_obj_newObject("tab")); obj.tab5:setParent(obj.pgcPrincipal); obj.tab5:setTitle("Creditos"); obj.tab5:setName("tab5"); obj.frmTemplateCreditos = GUI.fromHandle(_obj_newObject("form")); obj.frmTemplateCreditos:setParent(obj.tab5); obj.frmTemplateCreditos:setName("frmTemplateCreditos"); obj.frmTemplateCreditos:setAlign("client"); obj.rectangle5 = GUI.fromHandle(_obj_newObject("rectangle")); obj.rectangle5:setParent(obj.frmTemplateCreditos); obj.rectangle5:setName("rectangle5"); obj.rectangle5:setAlign("client"); obj.rectangle5:setColor("#40000000"); obj.rectangle5:setXradius(10); obj.rectangle5:setYradius(10); obj.scrollBox5 = GUI.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox5:setParent(obj.rectangle5); obj.scrollBox5:setAlign("client"); obj.scrollBox5:setName("scrollBox5"); obj.image3 = GUI.fromHandle(_obj_newObject("image")); obj.image3:setParent(obj.scrollBox5); obj.image3:setLeft(0); obj.image3:setTop(0); obj.image3:setWidth(500); obj.image3:setHeight(345); obj.image3:setStyle("autoFit"); obj.image3:setSRC("/GURPS4E/images/GURPS4E.png"); obj.image3:setName("image3"); obj.image4 = GUI.fromHandle(_obj_newObject("image")); obj.image4:setParent(obj.scrollBox5); obj.image4:setLeft(550); obj.image4:setTop(0); obj.image4:setWidth(250); obj.image4:setHeight(250); obj.image4:setStyle("autoFit"); obj.image4:setSRC("/GURPS4E/images/RPGmeister.jpg"); obj.image4:setName("image4"); obj.label49 = GUI.fromHandle(_obj_newObject("label")); obj.label49:setParent(obj.scrollBox5); obj.label49:setLeft(850); obj.label49:setTop(275); obj.label49:setWidth(250); obj.label49:setHeight(20); obj.label49:setText("Anotações do Mestre"); obj.label49:setHorzTextAlign("center"); obj.label49:setName("label49"); obj.label49:setFontColor("white"); obj.textEditor13 = GUI.fromHandle(_obj_newObject("textEditor")); obj.textEditor13:setParent(obj.scrollBox5); obj.textEditor13:setLeft(850); obj.textEditor13:setTop(300); obj.textEditor13:setWidth(250); obj.textEditor13:setHeight(250); obj.textEditor13:setField("anotacoesMestre"); obj.textEditor13:setName("textEditor13"); obj.layout8 = GUI.fromHandle(_obj_newObject("layout")); obj.layout8:setParent(obj.scrollBox5); obj.layout8:setLeft(150); obj.layout8:setTop(250); obj.layout8:setWidth(200); obj.layout8:setHeight(160); obj.layout8:setName("layout8"); obj.rectangle6 = GUI.fromHandle(_obj_newObject("rectangle")); obj.rectangle6:setParent(obj.layout8); obj.rectangle6:setAlign("client"); obj.rectangle6:setColor("black"); obj.rectangle6:setXradius(5); obj.rectangle6:setYradius(15); obj.rectangle6:setCornerType("round"); obj.rectangle6:setName("rectangle6"); obj.label50 = GUI.fromHandle(_obj_newObject("label")); obj.label50:setParent(obj.layout8); obj.label50:setLeft(0); obj.label50:setTop(10); obj.label50:setWidth(200); obj.label50:setHeight(20); obj.label50:setText("Programador: Vinny (Ambesek)"); obj.label50:setHorzTextAlign("center"); obj.label50:setName("label50"); obj.label50:setFontColor("white"); obj.label51 = GUI.fromHandle(_obj_newObject("label")); obj.label51:setParent(obj.layout8); obj.label51:setLeft(0); obj.label51:setTop(35); obj.label51:setWidth(200); obj.label51:setHeight(20); obj.label51:setText("Consultor: rexLiterate"); obj.label51:setHorzTextAlign("center"); obj.label51:setName("label51"); obj.label51:setFontColor("white"); obj.label52 = GUI.fromHandle(_obj_newObject("label")); obj.label52:setParent(obj.scrollBox5); obj.label52:setLeft(555); obj.label52:setTop(300); obj.label52:setWidth(200); obj.label52:setHeight(20); obj.label52:setText("Versão Atual: "); obj.label52:setHorzTextAlign("center"); obj.label52:setField("versionInstalled"); obj.label52:setName("label52"); obj.label52:setFontColor("white"); obj.label53 = GUI.fromHandle(_obj_newObject("label")); obj.label53:setParent(obj.scrollBox5); obj.label53:setLeft(555); obj.label53:setTop(325); obj.label53:setWidth(200); obj.label53:setHeight(20); obj.label53:setText("Sua Versão: "); obj.label53:setHorzTextAlign("center"); obj.label53:setField("versionDownloaded"); obj.label53:setName("label53"); obj.label53:setFontColor("white"); obj.button5 = GUI.fromHandle(_obj_newObject("button")); obj.button5:setParent(obj.scrollBox5); obj.button5:setLeft(555); obj.button5:setTop(350); obj.button5:setWidth(100); obj.button5:setText("Change Log"); obj.button5:setName("button5"); obj.button6 = GUI.fromHandle(_obj_newObject("button")); obj.button6:setParent(obj.scrollBox5); obj.button6:setLeft(667); obj.button6:setTop(350); obj.button6:setWidth(100); obj.button6:setText("Atualizar"); obj.button6:setName("button6"); obj.label54 = GUI.fromHandle(_obj_newObject("label")); obj.label54:setParent(obj.scrollBox5); obj.label54:setLeft(555); obj.label54:setTop(400); obj.label54:setWidth(200); obj.label54:setHeight(20); obj.label54:setText("Conheça as Mesas:"); obj.label54:setName("label54"); obj.label54:setFontColor("white"); obj.button7 = GUI.fromHandle(_obj_newObject("button")); obj.button7:setParent(obj.scrollBox5); obj.button7:setLeft(555); obj.button7:setTop(425); obj.button7:setWidth(100); obj.button7:setText("RPGmeister"); obj.button7:setName("button7"); obj._e_event0 = obj:addEventListener("onNodeReady", function (_) Internet.download("https://github.com/rrpgfirecast/firecast/blob/master/Plugins/Sheets/Ficha%20GURPS%204E/output/Ficha%20GURPS%204E.rpk?raw=true", function(stream, contentType) local info = Firecast.Plugins.getRPKDetails(stream); sheet.versionDownloaded = "VERSÃO DISPONÍVEL: " .. info.version; local installed = Firecast.Plugins.getInstalledPlugins(); local myself; for i=1, #installed, 1 do if installed[i].moduleId == info.moduleId then myself = installed[i]; sheet.versionInstalled = "VERSÃO INSTALADA: " .. installed[i].version; end; end; if sheet.noUpdate==true then return end; if myself~= nil and isNewVersion(myself.version, info.version) then Dialogs.choose("Há uma nova versão (" .. info.version .. ") do plugin de GURPS 4E. Deseja instalar?",{"Sim", "Não", "Não perguntar novamente."}, function(selected, selectedIndex, selectedText) if selected and selectedIndex == 1 then GUI.openInBrowser('https://github.com/rrpgfirecast/firecast/blob/master/Plugins/Sheets/Ficha%20GURPS%204E/output/Ficha%20GURPS%204E.rpk?raw=true'); elseif selected and selectedIndex == 3 then sheet.noUpdate = true; end; end); end; end, function (errorMsg) --showMessage(errorMsg); end, function (downloaded, total) -- esta função será chamada constantemente. -- dividir "downloaded" por "total" lhe dará uma porcentagem do download. end, "checkForModification"); end, obj); obj._e_event1 = obj.dataLink1:addEventListener("onChange", function (_, field, oldValue, newValue) if sheet==nil then return end; if sheet.arquetipo ~= nil then sheet.arquetipo_pontos = sheet.arquetipo.custo; end; if sheet.advantages ~= nil then sheet.vantagens_pontos = sheet.advantages.custo; end; if sheet.disadvantages ~= nil then sheet.desvantagens_pontos = sheet.disadvantages.custo; end; if sheet.familiaridades ~= nil then sheet.familiaridade_cultural = sheet.familiaridades.custo; end; if sheet.idiomas ~= nil then sheet.idiomas_pontos = sheet.idiomas.custo; end; end, obj); obj._e_event2 = obj.button1:addEventListener("onClick", function (_) self.rclSkillsNew:append(); end, obj); obj._e_event3 = obj.rclSkillsNew:addEventListener("onCompare", function (_, nodeA, nodeB) return Utils.compareStringPtBr(nodeA.nome, nodeB.nome); end, obj); obj._e_event4 = obj.dataLink4:addEventListener("onChange", function (_, field, oldValue, newValue) pointCount(); end, obj); obj._e_event5 = obj.button2:addEventListener("onClick", function (_) local pop = self:findControlByName("popDetails"); if sheet.advantages == nil then sheet.advantages = {}; sheet.advantages.title = "Vantagens"; else sheet.advantages.title = "Vantagens"; end; if pop ~= nil then pop:setNodeObject(sheet.advantages); pop:showPopupEx("center", self); elseif sheet.advantages == nil then showMessage(sheet.advantages); else showMessage("Ops, bug.. nao encontrei o popup para exibir"); end; end, obj); obj._e_event6 = obj.button3:addEventListener("onClick", function (_) local pop = self:findControlByName("popDetails"); if sheet.disadvantages == nil then sheet.disadvantages = {}; sheet.disadvantages.title = "Desvantagens"; else sheet.disadvantages.title = "Desvantagens"; end; if pop ~= nil then pop:setNodeObject(sheet.disadvantages); pop:showPopupEx("center", self); elseif sheet.disadvantages == nil then showMessage(sheet.disadvantages); else showMessage("Ops, bug.. nao encontrei o popup para exibir"); end; end, obj); obj._e_event7 = obj.dataLink5:addEventListener("onChange", function (_, field, oldValue, newValue) pointCount(); end, obj); obj._e_event8 = obj.fraAliadosOrganizacoes:addEventListener("onBeforeLayoutCalc", function (_) if self.fraAliadosOrganizacoes:getWidth() <= 500 then self.prtAliados:setHeight(200); self.prtFaccao:setHeight(200); else self.prtAliados:setHeight(420); self.prtFaccao:setHeight(350); end; end, obj); obj._e_event9 = obj.labEquipAtackTit:addEventListener("onResize", function (_) recalcularTamanhoEquipsEAtaques(); end, obj); obj._e_event10 = obj.rclEquips:addEventListener("onResize", function (_) recalcularTamanhoEquipsEAtaques(); end, obj); obj._e_event11 = obj.rclEquips:addEventListener("onCompare", function (_, nodeA, nodeB) return Utils.compareStringPtBr(nodeA.nome, nodeB.nome); end, obj); obj._e_event12 = obj.btnEquipAtackNew:addEventListener("onClick", function (_) self.rclEquips:append(); end, obj); obj._e_event13 = obj.labEquipDefense:addEventListener("onResize", function (_) recalcularTamanhoEquipsDefesa(); end, obj); obj._e_event14 = obj.rclEquipsDefense:addEventListener("onResize", function (_) recalcularTamanhoEquipsDefesa(); end, obj); obj._e_event15 = obj.btnEquipDefenseNew:addEventListener("onClick", function (_) self.rclEquipsDefense:append(); end, obj); obj._e_event16 = obj.dataLink6:addEventListener("onChange", function (_, field, oldValue, newValue) if sheet==nil then return end; local carga = tonumber(sheet.carga) or 0; sheet.bc_0 = "Nenhuma (BC): " .. (carga); sheet.bc_1 = "Leve (BCx2): " .. (carga*2); sheet.bc_2 = "Média (BCx3): " .. (carga*3); sheet.bc_3 = "Pesada (BCx6): " .. (carga*6); sheet.bc_4 = "Muito Pesada (BCx10): " .. (carga*10); end, obj); obj._e_event17 = obj.dataLink7:addEventListener("onChange", function (_, field, oldValue, newValue) if sheet==nil then return end; local velocidade = tonumber(sheet.atributos_mod_deslocamento) or 0; sheet.db_0 = "DBx1: " .. (velocidade); sheet.db_1 = "DBx0,8: " .. math.floor(velocidade*0.8); sheet.db_2 = "DBx0,6: " .. math.floor(velocidade*0.6); sheet.db_3 = "DBx0,4: " .. math.floor(velocidade*0.4); sheet.db_4 = "DBx0,2: " .. math.floor(velocidade*0.2); end, obj); obj._e_event18 = obj.button4:addEventListener("onClick", function (_) self.rclEquipments:append(); end, obj); obj._e_event19 = obj.rclEquipments:addEventListener("onCompare", function (_, nodeA, nodeB) return Utils.compareStringPtBr(nodeA.nome, nodeB.nome); end, obj); obj._e_event20 = obj.button5:addEventListener("onClick", function (_) GUI.openInBrowser('https://github.com/rrpgfirecast/firecast/blob/master/Plugins/Sheets/Ficha%20GURPS%204E/README.md') end, obj); obj._e_event21 = obj.button6:addEventListener("onClick", function (_) GUI.openInBrowser('https://github.com/rrpgfirecast/firecast/blob/master/Plugins/Sheets/Ficha%20GURPS%204E/output/Ficha%20GURPS%204E.rpk?raw=true') end, obj); obj._e_event22 = obj.button7:addEventListener("onClick", function (_) GUI.openInBrowser('http://firecast.rrpg.com.br:90/a?a=pagRWEMesaInfo.actInfoMesa&mesaid=64070'); end, obj); function obj:_releaseEvents() __o_rrpgObjs.removeEventListenerById(self._e_event22); __o_rrpgObjs.removeEventListenerById(self._e_event21); __o_rrpgObjs.removeEventListenerById(self._e_event20); __o_rrpgObjs.removeEventListenerById(self._e_event19); __o_rrpgObjs.removeEventListenerById(self._e_event18); __o_rrpgObjs.removeEventListenerById(self._e_event17); __o_rrpgObjs.removeEventListenerById(self._e_event16); __o_rrpgObjs.removeEventListenerById(self._e_event15); __o_rrpgObjs.removeEventListenerById(self._e_event14); __o_rrpgObjs.removeEventListenerById(self._e_event13); __o_rrpgObjs.removeEventListenerById(self._e_event12); __o_rrpgObjs.removeEventListenerById(self._e_event11); __o_rrpgObjs.removeEventListenerById(self._e_event10); __o_rrpgObjs.removeEventListenerById(self._e_event9); __o_rrpgObjs.removeEventListenerById(self._e_event8); __o_rrpgObjs.removeEventListenerById(self._e_event7); __o_rrpgObjs.removeEventListenerById(self._e_event6); __o_rrpgObjs.removeEventListenerById(self._e_event5); __o_rrpgObjs.removeEventListenerById(self._e_event4); __o_rrpgObjs.removeEventListenerById(self._e_event3); __o_rrpgObjs.removeEventListenerById(self._e_event2); __o_rrpgObjs.removeEventListenerById(self._e_event1); __o_rrpgObjs.removeEventListenerById(self._e_event0); end; obj._oldLFMDestroy = obj.destroy; function obj:destroy() self:_releaseEvents(); if (self.handle ~= 0) and (self.setNodeDatabase ~= nil) then self:setNodeDatabase(nil); end; if self.linUpperGridCampo1 ~= nil then self.linUpperGridCampo1:destroy(); self.linUpperGridCampo1 = nil; end; if self.label14 ~= nil then self.label14:destroy(); self.label14 = nil; end; if self.labUpperGridCampo2 ~= nil then self.labUpperGridCampo2:destroy(); self.labUpperGridCampo2 = nil; end; if self.flowPart33 ~= nil then self.flowPart33:destroy(); self.flowPart33 = nil; end; if self.edit36 ~= nil then self.edit36:destroy(); self.edit36 = nil; end; if self.edit9 ~= nil then self.edit9:destroy(); self.edit9 = nil; end; if self.label40 ~= nil then self.label40:destroy(); self.label40 = nil; end; if self.edit33 ~= nil then self.edit33:destroy(); self.edit33 = nil; end; if self.UpperGridCampo1 ~= nil then self.UpperGridCampo1:destroy(); self.UpperGridCampo1 = nil; end; if self.dataLink4 ~= nil then self.dataLink4:destroy(); self.dataLink4 = nil; end; if self.labUpperGridCampo13 ~= nil then self.labUpperGridCampo13:destroy(); self.labUpperGridCampo13 = nil; end; if self.edit29 ~= nil then self.edit29:destroy(); self.edit29 = nil; end; if self.layEquipAtackBottom ~= nil then self.layEquipAtackBottom:destroy(); self.layEquipAtackBottom = nil; end; if self.labUpperGridCampo1 ~= nil then self.labUpperGridCampo1:destroy(); self.labUpperGridCampo1 = nil; end; if self.edit28 ~= nil then self.edit28:destroy(); self.edit28 = nil; end; if self.flowLayout13 ~= nil then self.flowLayout13:destroy(); self.flowLayout13 = nil; end; if self.flowPart32 ~= nil then self.flowPart32:destroy(); self.flowPart32 = nil; end; if self.flowLayout19 ~= nil then self.flowLayout19:destroy(); self.flowLayout19 = nil; end; if self.label43 ~= nil then self.label43:destroy(); self.label43 = nil; end; if self.linUpperGridCampo8 ~= nil then self.linUpperGridCampo8:destroy(); self.linUpperGridCampo8 = nil; end; if self.flowPart42 ~= nil then self.flowPart42:destroy(); self.flowPart42 = nil; end; if self.flowLayout1 ~= nil then self.flowLayout1:destroy(); self.flowLayout1 = nil; end; if self.UpperGridCampo4 ~= nil then self.UpperGridCampo4:destroy(); self.UpperGridCampo4 = nil; end; if self.flowPart13 ~= nil then self.flowPart13:destroy(); self.flowPart13 = nil; end; if self.label45 ~= nil then self.label45:destroy(); self.label45 = nil; end; if self.flowPart1 ~= nil then self.flowPart1:destroy(); self.flowPart1 = nil; end; if self.flowLineBreak7 ~= nil then self.flowLineBreak7:destroy(); self.flowLineBreak7 = nil; end; if self.UpperGridCampo13 ~= nil then self.UpperGridCampo13:destroy(); self.UpperGridCampo13 = nil; end; if self.flowLayout5 ~= nil then self.flowLayout5:destroy(); self.flowLayout5 = nil; end; if self.label22 ~= nil then self.label22:destroy(); self.label22 = nil; end; if self.button2 ~= nil then self.button2:destroy(); self.button2 = nil; end; if self.prtAliados ~= nil then self.prtAliados:destroy(); self.prtAliados = nil; end; if self.linUpperGridCampo9 ~= nil then self.linUpperGridCampo9:destroy(); self.linUpperGridCampo9 = nil; end; if self.label35 ~= nil then self.label35:destroy(); self.label35 = nil; end; if self.label13 ~= nil then self.label13:destroy(); self.label13 = nil; end; if self.rclEquips ~= nil then self.rclEquips:destroy(); self.rclEquips = nil; end; if self.layout8 ~= nil then self.layout8:destroy(); self.layout8 = nil; end; if self.label27 ~= nil then self.label27:destroy(); self.label27 = nil; end; if self.flowPart25 ~= nil then self.flowPart25:destroy(); self.flowPart25 = nil; end; if self.frmBlank ~= nil then self.frmBlank:destroy(); self.frmBlank = nil; end; if self.edtUpperGridCampo5 ~= nil then self.edtUpperGridCampo5:destroy(); self.edtUpperGridCampo5 = nil; end; if self.rectangle5 ~= nil then self.rectangle5:destroy(); self.rectangle5 = nil; end; if self.flowPart19 ~= nil then self.flowPart19:destroy(); self.flowPart19 = nil; end; if self.flowPart16 ~= nil then self.flowPart16:destroy(); self.flowPart16 = nil; end; if self.button1 ~= nil then self.button1:destroy(); self.button1 = nil; end; if self.flwPartEquipAtack ~= nil then self.flwPartEquipAtack:destroy(); self.flwPartEquipAtack = nil; end; if self.linUpperGridCampo7 ~= nil then self.linUpperGridCampo7:destroy(); self.linUpperGridCampo7 = nil; end; if self.label8 ~= nil then self.label8:destroy(); self.label8 = nil; end; if self.edit26 ~= nil then self.edit26:destroy(); self.edit26 = nil; end; if self.flowLayout16 ~= nil then self.flowLayout16:destroy(); self.flowLayout16 = nil; end; if self.edit11 ~= nil then self.edit11:destroy(); self.edit11 = nil; end; if self.edit19 ~= nil then self.edit19:destroy(); self.edit19 = nil; end; if self.image1 ~= nil then self.image1:destroy(); self.image1 = nil; end; if self.label31 ~= nil then self.label31:destroy(); self.label31 = nil; end; if self.edit34 ~= nil then self.edit34:destroy(); self.edit34 = nil; end; if self.labUpperGridCampo11 ~= nil then self.labUpperGridCampo11:destroy(); self.labUpperGridCampo11 = nil; end; if self.edit5 ~= nil then self.edit5:destroy(); self.edit5 = nil; end; if self.label34 ~= nil then self.label34:destroy(); self.label34 = nil; end; if self.label15 ~= nil then self.label15:destroy(); self.label15 = nil; end; if self.flowPart38 ~= nil then self.flowPart38:destroy(); self.flowPart38 = nil; end; if self.label41 ~= nil then self.label41:destroy(); self.label41 = nil; end; if self.label49 ~= nil then self.label49:destroy(); self.label49 = nil; end; if self.scrollBox2 ~= nil then self.scrollBox2:destroy(); self.scrollBox2 = nil; end; if self.tab5 ~= nil then self.tab5:destroy(); self.tab5 = nil; end; if self.label12 ~= nil then self.label12:destroy(); self.label12 = nil; end; if self.fraCaracteristicasLayout ~= nil then self.fraCaracteristicasLayout:destroy(); self.fraCaracteristicasLayout = nil; end; if self.flowLineBreak6 ~= nil then self.flowLineBreak6:destroy(); self.flowLineBreak6 = nil; end; if self.labUpperGridCampo5 ~= nil then self.labUpperGridCampo5:destroy(); self.labUpperGridCampo5 = nil; end; if self.linUpperGridCampo5 ~= nil then self.linUpperGridCampo5:destroy(); self.linUpperGridCampo5 = nil; end; if self.textEditor5 ~= nil then self.textEditor5:destroy(); self.textEditor5 = nil; end; if self.flowPart34 ~= nil then self.flowPart34:destroy(); self.flowPart34 = nil; end; if self.label16 ~= nil then self.label16:destroy(); self.label16 = nil; end; if self.flowPart20 ~= nil then self.flowPart20:destroy(); self.flowPart20 = nil; end; if self.textEditor7 ~= nil then self.textEditor7:destroy(); self.textEditor7 = nil; end; if self.label52 ~= nil then self.label52:destroy(); self.label52 = nil; end; if self.edit10 ~= nil then self.edit10:destroy(); self.edit10 = nil; end; if self.edit16 ~= nil then self.edit16:destroy(); self.edit16 = nil; end; if self.edit31 ~= nil then self.edit31:destroy(); self.edit31 = nil; end; if self.label47 ~= nil then self.label47:destroy(); self.label47 = nil; end; if self.edit1 ~= nil then self.edit1:destroy(); self.edit1 = nil; end; if self.label48 ~= nil then self.label48:destroy(); self.label48 = nil; end; if self.flowPart43 ~= nil then self.flowPart43:destroy(); self.flowPart43 = nil; end; if self.button4 ~= nil then self.button4:destroy(); self.button4 = nil; end; if self.labUpperGridCampo9 ~= nil then self.labUpperGridCampo9:destroy(); self.labUpperGridCampo9 = nil; end; if self.textEditor4 ~= nil then self.textEditor4:destroy(); self.textEditor4 = nil; end; if self.label1 ~= nil then self.label1:destroy(); self.label1 = nil; end; if self.layout4 ~= nil then self.layout4:destroy(); self.layout4 = nil; end; if self.image3 ~= nil then self.image3:destroy(); self.image3 = nil; end; if self.button7 ~= nil then self.button7:destroy(); self.button7 = nil; end; if self.fraUpperGridCaracteristicas ~= nil then self.fraUpperGridCaracteristicas:destroy(); self.fraUpperGridCaracteristicas = nil; end; if self.flowLineBreak5 ~= nil then self.flowLineBreak5:destroy(); self.flowLineBreak5 = nil; end; if self.flowPart22 ~= nil then self.flowPart22:destroy(); self.flowPart22 = nil; end; if self.flowPart5 ~= nil then self.flowPart5:destroy(); self.flowPart5 = nil; end; if self.flowPart9 ~= nil then self.flowPart9:destroy(); self.flowPart9 = nil; end; if self.edtUpperGridCampo9 ~= nil then self.edtUpperGridCampo9:destroy(); self.edtUpperGridCampo9 = nil; end; if self.layout5 ~= nil then self.layout5:destroy(); self.layout5 = nil; end; if self.edtUpperGridCampo3 ~= nil then self.edtUpperGridCampo3:destroy(); self.edtUpperGridCampo3 = nil; end; if self.edit23 ~= nil then self.edit23:destroy(); self.edit23 = nil; end; if self.dataLink3 ~= nil then self.dataLink3:destroy(); self.dataLink3 = nil; end; if self.flowPart29 ~= nil then self.flowPart29:destroy(); self.flowPart29 = nil; end; if self.label29 ~= nil then self.label29:destroy(); self.label29 = nil; end; if self.popBag ~= nil then self.popBag:destroy(); self.popBag = nil; end; if self.flowLayout14 ~= nil then self.flowLayout14:destroy(); self.flowLayout14 = nil; end; if self.rectangle2 ~= nil then self.rectangle2:destroy(); self.rectangle2 = nil; end; if self.UpperGridCampo3 ~= nil then self.UpperGridCampo3:destroy(); self.UpperGridCampo3 = nil; end; if self.dataLink7 ~= nil then self.dataLink7:destroy(); self.dataLink7 = nil; end; if self.frmTemplateCreditos ~= nil then self.frmTemplateCreditos:destroy(); self.frmTemplateCreditos = nil; end; if self.label21 ~= nil then self.label21:destroy(); self.label21 = nil; end; if self.rectangle6 ~= nil then self.rectangle6:destroy(); self.rectangle6 = nil; end; if self.linUpperGridCampo2 ~= nil then self.linUpperGridCampo2:destroy(); self.linUpperGridCampo2 = nil; end; if self.flowPart6 ~= nil then self.flowPart6:destroy(); self.flowPart6 = nil; end; if self.textEditor6 ~= nil then self.textEditor6:destroy(); self.textEditor6 = nil; end; if self.dataLink2 ~= nil then self.dataLink2:destroy(); self.dataLink2 = nil; end; if self.label30 ~= nil then self.label30:destroy(); self.label30 = nil; end; if self.dataLink6 ~= nil then self.dataLink6:destroy(); self.dataLink6 = nil; end; if self.label19 ~= nil then self.label19:destroy(); self.label19 = nil; end; if self.flowPart39 ~= nil then self.flowPart39:destroy(); self.flowPart39 = nil; end; if self.flowPart26 ~= nil then self.flowPart26:destroy(); self.flowPart26 = nil; end; if self.textEditor12 ~= nil then self.textEditor12:destroy(); self.textEditor12 = nil; end; if self.label51 ~= nil then self.label51:destroy(); self.label51 = nil; end; if self.flowPart23 ~= nil then self.flowPart23:destroy(); self.flowPart23 = nil; end; if self.label54 ~= nil then self.label54:destroy(); self.label54 = nil; end; if self.labUpperGridCampo10 ~= nil then self.labUpperGridCampo10:destroy(); self.labUpperGridCampo10 = nil; end; if self.scrollBox3 ~= nil then self.scrollBox3:destroy(); self.scrollBox3 = nil; end; if self.textEditor1 ~= nil then self.textEditor1:destroy(); self.textEditor1 = nil; end; if self.flowPart28 ~= nil then self.flowPart28:destroy(); self.flowPart28 = nil; end; if self.flowLayout6 ~= nil then self.flowLayout6:destroy(); self.flowLayout6 = nil; end; if self.pgcPrincipal ~= nil then self.pgcPrincipal:destroy(); self.pgcPrincipal = nil; end; if self.edit6 ~= nil then self.edit6:destroy(); self.edit6 = nil; end; if self.flowPart41 ~= nil then self.flowPart41:destroy(); self.flowPart41 = nil; end; if self.linUpperGridCampo4 ~= nil then self.linUpperGridCampo4:destroy(); self.linUpperGridCampo4 = nil; end; if self.flowPart30 ~= nil then self.flowPart30:destroy(); self.flowPart30 = nil; end; if self.btnEquipAtackNew ~= nil then self.btnEquipAtackNew:destroy(); self.btnEquipAtackNew = nil; end; if self.label18 ~= nil then self.label18:destroy(); self.label18 = nil; end; if self.label2 ~= nil then self.label2:destroy(); self.label2 = nil; end; if self.textEditor8 ~= nil then self.textEditor8:destroy(); self.textEditor8 = nil; end; if self.edit3 ~= nil then self.edit3:destroy(); self.edit3 = nil; end; if self.label38 ~= nil then self.label38:destroy(); self.label38 = nil; end; if self.edit27 ~= nil then self.edit27:destroy(); self.edit27 = nil; end; if self.linUpperGridCampo11 ~= nil then self.linUpperGridCampo11:destroy(); self.linUpperGridCampo11 = nil; end; if self.scrollBox5 ~= nil then self.scrollBox5:destroy(); self.scrollBox5 = nil; end; if self.UpperGridCampo6 ~= nil then self.UpperGridCampo6:destroy(); self.UpperGridCampo6 = nil; end; if self.edit18 ~= nil then self.edit18:destroy(); self.edit18 = nil; end; if self.flowLineBreak2 ~= nil then self.flowLineBreak2:destroy(); self.flowLineBreak2 = nil; end; if self.edit25 ~= nil then self.edit25:destroy(); self.edit25 = nil; end; if self.rclSkillsNew ~= nil then self.rclSkillsNew:destroy(); self.rclSkillsNew = nil; end; if self.scrollBox1 ~= nil then self.scrollBox1:destroy(); self.scrollBox1 = nil; end; if self.flowPart15 ~= nil then self.flowPart15:destroy(); self.flowPart15 = nil; end; if self.flowLayout8 ~= nil then self.flowLayout8:destroy(); self.flowLayout8 = nil; end; if self.edtUpperGridCampo4 ~= nil then self.edtUpperGridCampo4:destroy(); self.edtUpperGridCampo4 = nil; end; if self.UpperGridCampo5 ~= nil then self.UpperGridCampo5:destroy(); self.UpperGridCampo5 = nil; end; if self.edtUpperGridCampo13 ~= nil then self.edtUpperGridCampo13:destroy(); self.edtUpperGridCampo13 = nil; end; if self.layout7 ~= nil then self.layout7:destroy(); self.layout7 = nil; end; if self.label33 ~= nil then self.label33:destroy(); self.label33 = nil; end; if self.UpperGridCampo10 ~= nil then self.UpperGridCampo10:destroy(); self.UpperGridCampo10 = nil; end; if self.flowPart14 ~= nil then self.flowPart14:destroy(); self.flowPart14 = nil; end; if self.flowPart8 ~= nil then self.flowPart8:destroy(); self.flowPart8 = nil; end; if self.tab3 ~= nil then self.tab3:destroy(); self.tab3 = nil; end; if self.label44 ~= nil then self.label44:destroy(); self.label44 = nil; end; if self.flowPart10 ~= nil then self.flowPart10:destroy(); self.flowPart10 = nil; end; if self.UpperGridCampo11 ~= nil then self.UpperGridCampo11:destroy(); self.UpperGridCampo11 = nil; end; if self.textEditor13 ~= nil then self.textEditor13:destroy(); self.textEditor13 = nil; end; if self.textEditor9 ~= nil then self.textEditor9:destroy(); self.textEditor9 = nil; end; if self.flowLayout3 ~= nil then self.flowLayout3:destroy(); self.flowLayout3 = nil; end; if self.labUpperGridCampo12 ~= nil then self.labUpperGridCampo12:destroy(); self.labUpperGridCampo12 = nil; end; if self.edit7 ~= nil then self.edit7:destroy(); self.edit7 = nil; end; if self.flowPart7 ~= nil then self.flowPart7:destroy(); self.flowPart7 = nil; end; if self.textEditor3 ~= nil then self.textEditor3:destroy(); self.textEditor3 = nil; end; if self.edit12 ~= nil then self.edit12:destroy(); self.edit12 = nil; end; if self.flowLayout18 ~= nil then self.flowLayout18:destroy(); self.flowLayout18 = nil; end; if self.flowPart40 ~= nil then self.flowPart40:destroy(); self.flowPart40 = nil; end; if self.edit35 ~= nil then self.edit35:destroy(); self.edit35 = nil; end; if self.label26 ~= nil then self.label26:destroy(); self.label26 = nil; end; if self.edtUpperGridCampo8 ~= nil then self.edtUpperGridCampo8:destroy(); self.edtUpperGridCampo8 = nil; end; if self.linUpperGridCampo13 ~= nil then self.linUpperGridCampo13:destroy(); self.linUpperGridCampo13 = nil; end; if self.edtUpperGridCampo2 ~= nil then self.edtUpperGridCampo2:destroy(); self.edtUpperGridCampo2 = nil; end; if self.flowLayout12 ~= nil then self.flowLayout12:destroy(); self.flowLayout12 = nil; end; if self.flowPart2 ~= nil then self.flowPart2:destroy(); self.flowPart2 = nil; end; if self.label23 ~= nil then self.label23:destroy(); self.label23 = nil; end; if self.flowLayout15 ~= nil then self.flowLayout15:destroy(); self.flowLayout15 = nil; end; if self.flowPart18 ~= nil then self.flowPart18:destroy(); self.flowPart18 = nil; end; if self.layout3 ~= nil then self.layout3:destroy(); self.layout3 = nil; end; if self.label24 ~= nil then self.label24:destroy(); self.label24 = nil; end; if self.dataLink5 ~= nil then self.dataLink5:destroy(); self.dataLink5 = nil; end; if self.image2 ~= nil then self.image2:destroy(); self.image2 = nil; end; if self.label32 ~= nil then self.label32:destroy(); self.label32 = nil; end; if self.layout1 ~= nil then self.layout1:destroy(); self.layout1 = nil; end; if self.tab2 ~= nil then self.tab2:destroy(); self.tab2 = nil; end; if self.rectangle1 ~= nil then self.rectangle1:destroy(); self.rectangle1 = nil; end; if self.rclEquipsDefense ~= nil then self.rclEquipsDefense:destroy(); self.rclEquipsDefense = nil; end; if self.edit24 ~= nil then self.edit24:destroy(); self.edit24 = nil; end; if self.labEquipAtackTit ~= nil then self.labEquipAtackTit:destroy(); self.labEquipAtackTit = nil; end; if self.flowPart31 ~= nil then self.flowPart31:destroy(); self.flowPart31 = nil; end; if self.rclEquipments ~= nil then self.rclEquipments:destroy(); self.rclEquipments = nil; end; if self.popSkill ~= nil then self.popSkill:destroy(); self.popSkill = nil; end; if self.edit14 ~= nil then self.edit14:destroy(); self.edit14 = nil; end; if self.UpperGridCampo8 ~= nil then self.UpperGridCampo8:destroy(); self.UpperGridCampo8 = nil; end; if self.edit4 ~= nil then self.edit4:destroy(); self.edit4 = nil; end; if self.labUpperGridCampo8 ~= nil then self.labUpperGridCampo8:destroy(); self.labUpperGridCampo8 = nil; end; if self.label4 ~= nil then self.label4:destroy(); self.label4 = nil; end; if self.fraFrenteLayoutNew ~= nil then self.fraFrenteLayoutNew:destroy(); self.fraFrenteLayoutNew = nil; end; if self.label6 ~= nil then self.label6:destroy(); self.label6 = nil; end; if self.linUpperGridCampo12 ~= nil then self.linUpperGridCampo12:destroy(); self.linUpperGridCampo12 = nil; end; if self.UpperGridCampo7 ~= nil then self.UpperGridCampo7:destroy(); self.UpperGridCampo7 = nil; end; if self.textEditor11 ~= nil then self.textEditor11:destroy(); self.textEditor11 = nil; end; if self.fraAliadosOrganizacoes ~= nil then self.fraAliadosOrganizacoes:destroy(); self.fraAliadosOrganizacoes = nil; end; if self.textEditor2 ~= nil then self.textEditor2:destroy(); self.textEditor2 = nil; end; if self.flowPart12 ~= nil then self.flowPart12:destroy(); self.flowPart12 = nil; end; if self.label37 ~= nil then self.label37:destroy(); self.label37 = nil; end; if self.btnEquipDefenseNew ~= nil then self.btnEquipDefenseNew:destroy(); self.btnEquipDefenseNew = nil; end; if self.flowPart35 ~= nil then self.flowPart35:destroy(); self.flowPart35 = nil; end; if self.edit8 ~= nil then self.edit8:destroy(); self.edit8 = nil; end; if self.flowLayout7 ~= nil then self.flowLayout7:destroy(); self.flowLayout7 = nil; end; if self.edtUpperGridCampo11 ~= nil then self.edtUpperGridCampo11:destroy(); self.edtUpperGridCampo11 = nil; end; if self.flowPart4 ~= nil then self.flowPart4:destroy(); self.flowPart4 = nil; end; if self.fraEquipamentoLayout ~= nil then self.fraEquipamentoLayout:destroy(); self.fraEquipamentoLayout = nil; end; if self.flowLayout9 ~= nil then self.flowLayout9:destroy(); self.flowLayout9 = nil; end; if self.flowLayout10 ~= nil then self.flowLayout10:destroy(); self.flowLayout10 = nil; end; if self.edit2 ~= nil then self.edit2:destroy(); self.edit2 = nil; end; if self.label9 ~= nil then self.label9:destroy(); self.label9 = nil; end; if self.label28 ~= nil then self.label28:destroy(); self.label28 = nil; end; if self.flowLayout17 ~= nil then self.flowLayout17:destroy(); self.flowLayout17 = nil; end; if self.labEquipDefense ~= nil then self.labEquipDefense:destroy(); self.labEquipDefense = nil; end; if self.label53 ~= nil then self.label53:destroy(); self.label53 = nil; end; if self.flowLineBreak1 ~= nil then self.flowLineBreak1:destroy(); self.flowLineBreak1 = nil; end; if self.flwPartEquipDefense ~= nil then self.flwPartEquipDefense:destroy(); self.flwPartEquipDefense = nil; end; if self.edit30 ~= nil then self.edit30:destroy(); self.edit30 = nil; end; if self.labUpperGridCampo7 ~= nil then self.labUpperGridCampo7:destroy(); self.labUpperGridCampo7 = nil; end; if self.edit21 ~= nil then self.edit21:destroy(); self.edit21 = nil; end; if self.tab4 ~= nil then self.tab4:destroy(); self.tab4 = nil; end; if self.button3 ~= nil then self.button3:destroy(); self.button3 = nil; end; if self.label42 ~= nil then self.label42:destroy(); self.label42 = nil; end; if self.labUpperGridCampo4 ~= nil then self.labUpperGridCampo4:destroy(); self.labUpperGridCampo4 = nil; end; if self.labUpperGridCampo3 ~= nil then self.labUpperGridCampo3:destroy(); self.labUpperGridCampo3 = nil; end; if self.flowLineBreak3 ~= nil then self.flowLineBreak3:destroy(); self.flowLineBreak3 = nil; end; if self.flowLayout11 ~= nil then self.flowLayout11:destroy(); self.flowLayout11 = nil; end; if self.label17 ~= nil then self.label17:destroy(); self.label17 = nil; end; if self.layEquipDefenseBottom ~= nil then self.layEquipDefenseBottom:destroy(); self.layEquipDefenseBottom = nil; end; if self.prtFaccao ~= nil then self.prtFaccao:destroy(); self.prtFaccao = nil; end; if self.flowLayout4 ~= nil then self.flowLayout4:destroy(); self.flowLayout4 = nil; end; if self.edit13 ~= nil then self.edit13:destroy(); self.edit13 = nil; end; if self.flowPart11 ~= nil then self.flowPart11:destroy(); self.flowPart11 = nil; end; if self.dataLink1 ~= nil then self.dataLink1:destroy(); self.dataLink1 = nil; end; if self.edtUpperGridCampo10 ~= nil then self.edtUpperGridCampo10:destroy(); self.edtUpperGridCampo10 = nil; end; if self.edtUpperGridCampo7 ~= nil then self.edtUpperGridCampo7:destroy(); self.edtUpperGridCampo7 = nil; end; if self.popDetails ~= nil then self.popDetails:destroy(); self.popDetails = nil; end; if self.flowPart36 ~= nil then self.flowPart36:destroy(); self.flowPart36 = nil; end; if self.label36 ~= nil then self.label36:destroy(); self.label36 = nil; end; if self.button6 ~= nil then self.button6:destroy(); self.button6 = nil; end; if self.rectangle3 ~= nil then self.rectangle3:destroy(); self.rectangle3 = nil; end; if self.button5 ~= nil then self.button5:destroy(); self.button5 = nil; end; if self.edtUpperGridCampo6 ~= nil then self.edtUpperGridCampo6:destroy(); self.edtUpperGridCampo6 = nil; end; if self.flowLayout2 ~= nil then self.flowLayout2:destroy(); self.flowLayout2 = nil; end; if self.textEditor10 ~= nil then self.textEditor10:destroy(); self.textEditor10 = nil; end; if self.label10 ~= nil then self.label10:destroy(); self.label10 = nil; end; if self.edit17 ~= nil then self.edit17:destroy(); self.edit17 = nil; end; if self.linUpperGridCampo10 ~= nil then self.linUpperGridCampo10:destroy(); self.linUpperGridCampo10 = nil; end; if self.layout2 ~= nil then self.layout2:destroy(); self.layout2 = nil; end; if self.linUpperGridCampo6 ~= nil then self.linUpperGridCampo6:destroy(); self.linUpperGridCampo6 = nil; end; if self.labUpperGridCampo6 ~= nil then self.labUpperGridCampo6:destroy(); self.labUpperGridCampo6 = nil; end; if self.flowPart17 ~= nil then self.flowPart17:destroy(); self.flowPart17 = nil; end; if self.label46 ~= nil then self.label46:destroy(); self.label46 = nil; end; if self.UpperGridCampo12 ~= nil then self.UpperGridCampo12:destroy(); self.UpperGridCampo12 = nil; end; if self.flowLineBreak8 ~= nil then self.flowLineBreak8:destroy(); self.flowLineBreak8 = nil; end; if self.label39 ~= nil then self.label39:destroy(); self.label39 = nil; end; if self.flowPart3 ~= nil then self.flowPart3:destroy(); self.flowPart3 = nil; end; if self.flowPart27 ~= nil then self.flowPart27:destroy(); self.flowPart27 = nil; end; if self.edit15 ~= nil then self.edit15:destroy(); self.edit15 = nil; end; if self.label11 ~= nil then self.label11:destroy(); self.label11 = nil; end; if self.label3 ~= nil then self.label3:destroy(); self.label3 = nil; end; if self.label20 ~= nil then self.label20:destroy(); self.label20 = nil; end; if self.flowPart37 ~= nil then self.flowPart37:destroy(); self.flowPart37 = nil; end; if self.UpperGridCampo2 ~= nil then self.UpperGridCampo2:destroy(); self.UpperGridCampo2 = nil; end; if self.label25 ~= nil then self.label25:destroy(); self.label25 = nil; end; if self.label7 ~= nil then self.label7:destroy(); self.label7 = nil; end; if self.UpperGridCampo9 ~= nil then self.UpperGridCampo9:destroy(); self.UpperGridCampo9 = nil; end; if self.label50 ~= nil then self.label50:destroy(); self.label50 = nil; end; if self.linUpperGridCampo3 ~= nil then self.linUpperGridCampo3:destroy(); self.linUpperGridCampo3 = nil; end; if self.flowPart21 ~= nil then self.flowPart21:destroy(); self.flowPart21 = nil; end; if self.edit22 ~= nil then self.edit22:destroy(); self.edit22 = nil; end; if self.label5 ~= nil then self.label5:destroy(); self.label5 = nil; end; if self.layout6 ~= nil then self.layout6:destroy(); self.layout6 = nil; end; if self.scrollBox4 ~= nil then self.scrollBox4:destroy(); self.scrollBox4 = nil; end; if self.rectangle4 ~= nil then self.rectangle4:destroy(); self.rectangle4 = nil; end; if self.image4 ~= nil then self.image4:destroy(); self.image4 = nil; end; if self.edit32 ~= nil then self.edit32:destroy(); self.edit32 = nil; end; if self.tab1 ~= nil then self.tab1:destroy(); self.tab1 = nil; end; if self.flowLineBreak4 ~= nil then self.flowLineBreak4:destroy(); self.flowLineBreak4 = nil; end; if self.edtUpperGridCampo12 ~= nil then self.edtUpperGridCampo12:destroy(); self.edtUpperGridCampo12 = nil; end; if self.edtUpperGridCampo1 ~= nil then self.edtUpperGridCampo1:destroy(); self.edtUpperGridCampo1 = nil; end; if self.flowPart24 ~= nil then self.flowPart24:destroy(); self.flowPart24 = nil; end; if self.edit20 ~= nil then self.edit20:destroy(); self.edit20 = nil; end; self:_oldLFMDestroy(); end; obj:endUpdate(); return obj; end; function newfrmTemplate() local retObj = nil; __o_rrpgObjs.beginObjectsLoading(); __o_Utils.tryFinally( function() retObj = constructNew_frmTemplate(); end, function() __o_rrpgObjs.endObjectsLoading(); end); assert(retObj ~= nil); return retObj; end; local _frmTemplate = { newEditor = newfrmTemplate, new = newfrmTemplate, name = "frmTemplate", dataType = "Ambesek.Nefertyne.GURPS", formType = "sheetTemplate", formComponentName = "form", title = "Ficha GURPS 4E", description=""}; frmTemplate = _frmTemplate; Firecast.registrarForm(_frmTemplate); Firecast.registrarDataType(_frmTemplate); return _frmTemplate;
ModLoader.SetupFileHook( "lua/Marine.lua", "lua/WeaponSwitch/Marine.lua", "post" ) ModLoader.SetupFileHook( "lua/Player.lua", "lua/WeaponSwitch/Player.lua", "post" ) ModLoader.SetupFileHook( "lua/Marine_Server.lua", "lua/WeaponSwitch/Marine_Server.lua", "post" ) ModLoader.SetupFileHook( "lua/MarineBuy_Client.lua", "lua/WeaponSwitch/MarineBuy_Client.lua", "post" ) ModLoader.SetupFileHook( "lua/Player_Client.lua", "lua/WeaponSwitch/Player_Client.lua", "post" ) ModLoader.SetupFileHook( "lua/Weapons/Marine/Axe.lua", "lua/WeaponSwitch/Axe.lua", "post" ) ModLoader.SetupFileHook( "lua/Weapons/Marine/Welder.lua", "lua/WeaponSwitch/Welder.lua", "post" ) ModLoader.SetupFileHook( "lua/AmmoPack.lua", "lua/WeaponSwitch/AmmoPack.lua", "post" ) ModLoader.SetupFileHook( "lua/DropPack.lua", "lua/WeaponSwitch/DropPack.lua", "post" ) ModLoader.SetupFileHook( "lua/Hud/GUIInventory.lua", "lua/WeaponSwitch/GUIInventory.lua", "post" ) ModLoader.SetupFileHook( "lua/MarineActionFinderMixin.lua", "lua/WeaponSwitch/MarineActionFinderMixin.lua", "replace" ) -- TODO: move this dependancy out of WeaponSwitch somehow to prevent duplication ModLoader.SetupFileHook( "lua/Entity.lua", "lua/WeaponSwitch/Entity.lua", "post" )
-- power/gen.lua local me = microexpansion -- [register node] Fuel Fired Generator me.register_node("fuel_fired_generator", { description = "Fuel-Fired Generator", tiles = { "machine_sides", "machine_sides", "machine_sides", "machine_sides", "machine_sides", "fuelgen_front", }, recipe = { { 1, { { "default:steel_ingot", "default:furnace", "default:steel_ingot" }, {"default:steel_ingot", "microexpansion:machine_casing", "default:steel_ingot" }, { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, }, } }, groups = { cracky = 1, me_connect = 1, }, connect_sides = "machine", paramtype2 = "facedir", status = "no", }) -- [register node] Super Smelter me.register_node("super_smelter", { description = "Super Smelter", tiles = { "machine_sides", "machine_sides", "machine_sides", "machine_sides", "machine_sides", "super_smelter_front", }, recipe = { { 1, { { "default:furnace", "default:furnace", "default:furnace" }, { "default:steel_ingot", "microexpansion:machine_casing", "default:steel_ingot" }, { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }, }, }, }, groups = { cracky = 1, me_connect = 1, }, connect_sides = "machine", paramtype2 = "facedir", status = "no", }) -- [register item] Geothermal Generator me.register_node("geo_generator", { description = "Geothermal Generator", tiles = { "machine_sides", "machine_sides", "machine_sides", "machine_sides", "machine_sides", "geogen_front", }, groups = { cracky = 1, me_connect = 1, }, connect_sides = "machine", paramtype2 = "facedir", status = "no", })
--***************************************************************************** --* _______ __ --* |_ _| |--.----.---.-.--.--.--.-----.-----. --* | | | | _| _ | | | | |__ --| --* |___| |__|__|__| |___._|________|__|__|_____| --* ______ --* | __ \.-----.--.--.-----.-----.-----.-----. --* | <| -__| | | -__| | _ | -__| --* |___|__||_____|\___/|_____|__|__|___ |_____| --* |_____| --* --* @Author: [EaWX]Pox --* @Date: 2020-12-23 --* @Project: Empire at War Expanded --* @Filename: GalacticConquest.lua --* @License: MIT --***************************************************************************** require("deepcore/std/class") require("deepcore/galaxy/GalacticEvents") require("deepcore/galaxy/Planet") ---@class GalacticConquest GalacticConquest = class() ---@param planet_factory? fun(planet_name: string): Planet function GalacticConquest:new(planet_factory) self.HumanPlayer = Find_Player("local") ---@private ---@type table<string, table<string, Planet>> self.Planets_By_Faction = {} ---@private ---@type table<string, number> self.Number_Of_Owned_Planets_By_Faction = {} ---@type table<string, Planet> self.Planets = {} planet_factory = planet_factory or function(planet_name) return Planet(planet_name) end self:initialize_galactic_state(planet_factory) self.Events = { PlanetOwnerChanged = PlanetOwnerChangedEvent(self.Planets), GalacticProductionStarted = ProductionStartedEvent(self.Planets), GalacticProductionFinished = ProductionFinishedEvent(self.Planets), GalacticProductionCanceled = ProductionCanceledEvent(self.Planets), GalacticHeroKilled = GalacticHeroKilledEvent(), TacticalBattleEnded = TacticalBattleEndedEvent() } self.Events.PlanetOwnerChanged:attach_listener(self.update_faction_planet_ownerships, self) end ---@param faction PlayerObject function GalacticConquest:get_all_planets_by_faction(faction) local faction_name = faction.Get_Faction_Name() return self.Planets_By_Faction[faction_name] or {} end ---@param faction PlayerObject function GalacticConquest:get_number_of_planets_owned_by_faction(faction) local faction_name = faction.Get_Faction_Name() return self.Number_Of_Owned_Planets_By_Faction[faction_name] or 0 end ---@private function GalacticConquest:initialize_galactic_state(planet_factory) local all_planets = FindPlanet.Get_All_Planets() for _, planet in ipairs(all_planets) do local planet_name = planet.Get_Type().Get_Name() local planet_object = planet_factory(planet_name, self.HumanPlayer) local owner_name = planet_object:get_owner().Get_Faction_Name() self.Planets[planet_name] = planet_object self:add_planet_to_faction_table(planet_object) self:increase_owned_planet_count_for_faction(owner_name) end end ---@private ---@param planet Planet function GalacticConquest:add_planet_to_faction_table(planet) local planet_owner_name = planet:get_owner().Get_Faction_Name() local faction_planet_lookup = self.Planets_By_Faction[planet_owner_name] if not faction_planet_lookup then self.Planets_By_Faction[planet_owner_name] = {} faction_planet_lookup = self.Planets_By_Faction[planet_owner_name] end faction_planet_lookup[planet:get_name()] = planet end ---@private ---@param faction_name string function GalacticConquest:increase_owned_planet_count_for_faction(faction_name) if not self.Number_Of_Owned_Planets_By_Faction[faction_name] then self.Number_Of_Owned_Planets_By_Faction[faction_name] = 0 end self.Number_Of_Owned_Planets_By_Faction[faction_name] = self.Number_Of_Owned_Planets_By_Faction[faction_name] + 1 end ---@private ---@param planet Planet ---@param new_owner_name string ---@param old_owner_name string function GalacticConquest:update_faction_planet_ownerships(planet, new_owner_name, old_owner_name) self:remove_planet_from_previous_owner_tables(planet, old_owner_name) self:add_planet_to_faction_table(planet) self:increase_owned_planet_count_for_faction(new_owner_name) end ---@private ---@param planet Planet ---@param old_owner_name string function GalacticConquest:remove_planet_from_previous_owner_tables(planet, old_owner_name) if self.Planets_By_Faction[old_owner_name] then self.Planets_By_Faction[old_owner_name][planet:get_name()] = nil end if self.Number_Of_Owned_Planets_By_Faction[old_owner_name] then self.Number_Of_Owned_Planets_By_Faction[old_owner_name] = self.Number_Of_Owned_Planets_By_Faction[old_owner_name] - 1 end end return GalacticConquest
disk = string.rep ('\0', 1024*1024) -- Lua strings are indexed from 1, which is crazy. This is a -- sane substring function. function disk_sub (n, len) return disk:sub (n+1, n+len) end function open (readonly) return 1 end function get_size (h) return disk:len() end function pread (h, count, offset) return disk_sub(offset, count) end function pwrite (h, buf, offset) -- There's no built-in mutable string type, so this is going -- to be very inefficient. local count = buf:len() local end_len = disk:len() - (offset+count) disk = disk_sub(0, offset) .. buf .. disk_sub(offset+count, end_len) end
local unit = {} function unit:Convert(tab, val, from, to) val = isnumber(tab[from]) and val * tab[from] or tab[from].From(val) return isnumber(tab[to]) and val / tab[to] or tab[to].To(val) end unit.Length = { -- Default unit: Meter -- Source u = 0.01905, su = 0.3048, -- Skybox unit cu = 0.2286, -- Character unit -- Metric mm = 0.001, cm = 0.01, m = 1, km = 1000, -- Imperial ["in"] = 0.0254, ft = 0.3048, yd = 0.9144, mi = 1609.344 } function unit:ConvertLength(val, from, to) return self:Convert(self.Length, val, from, to) end unit.Temperature = { -- Default unit: Kelvin -- Metric C = { From = function(val) return val + 273.15 end, To = function(val) return val - 273.15 end }, K = 1, -- Imperial F = { From = function(val) return (val - 32) * (5 / 9) + 273.15 end, To = function(val) return (val - 273.15) * (9 / 5) + 32 end } } function unit:ConvertTemperature(val, from, to) return self:Convert(self.Temperature, val, from, to) end unit.Mass = { -- Default unit: Kilogram -- Metric mg = 0.000001, g = 0.001, kg = 1, t = 1000, -- Imperial lb = 0.45359237 } function unit:ConvertMass(val, from, to) return self:Convert(self.Mass, val, from, to) end TankLib.Unit = unit
------------------------------------------------------------------------------- -- LISTENER by Tammya-MoonGuard (2017) -- -- This is the name resolver for XRP users. ------------------------------------------------------------------------------- local Main = ListenerAddon local L = Main.Locale ------------------------------------------------------------------------------- -- This one is actually really small isn't it? Cool! -- local function Resolve( name ) local color = nil local ch = xrp.characters.byName[ name ] if ch and not ch.hide then local icname = ch.fields.NA or name -- get trp color code color = icname:match( "^|c(%x%x%x%x%x%x%x%x)" ) icname = xrp.Strip( icname ) return icname, nil, nil, color end return name end ------------------------------------------------------------------------------- -- Our register function. -- local function Init() -- xrp exists if they're using XRP. if xrp then return Resolve end end table.insert( Main.name_resolvers, Init )
--- DamageInstance class. -- @classmod invokation.dota2.DamageInstance local class = require("pl.class") local M = class() --- Constructor. -- @tparam Unit victim Victim unit instance -- @tparam number amount Damage amount -- @tparam[opt] Unit attacker Attacker unit instance -- @tparam[opt] Ability inflictor Inflictor ability instance function M:_init(victim, amount, attacker, inflictor) self.victim = victim self.amount = amount self.attacker = attacker self.inflictor = inflictor self.category = inflictor and DOTA_DAMAGE_CATEGORY_SPELL or DOTA_DAMAGE_CATEGORY_ATTACK end --- Returns the victim unit name. -- @treturn string Victim unit name function M:VictimName() return self.victim.name end --- Returns the attacker unit name if it exists. -- @treturn ?string Attacker unit name function M:AttackerName() return self.attacker and self.attacker.name end --- Returns the player owner of the attacker unit if it exists. -- @treturn ?CDOTAPlayer Attacker player owner function M:AttackerPlayerOwner() return self.attacker and self.attacker:GetPlayerOwner() end --- Returns the inflictor ability name if it exists. -- @treturn ?string Inflictor ability name function M:InflictorName() return self.inflictor and self.inflictor.name end return M
require("utils/lib_loader") LOG_ENABLED = false ALLOWED_BP_OPTIONS = { "EVENT_BP50", "EVENT_BPMAX" } FINAL_WAVE_SKILL = true MUS_PAUSE = 0.1 MUS_HOLD = 0 MUSA_PAUSE = 5 MUSA_HOLD = 0.3 if LOG_ENABLED then log("\n\n\nbegin script logging:") end ------------------------------- -- Options for Aid Request Select -- ------------------------------- local aid_request_sel = function() return retry(magonia_aid_requests_tap_request(1))(0) end ------------------------------- -- Options for Unit Select -- ------------------------------- local function unit_sel_attack1() act_once(magonia_boss_unit_select_tap_unit(2))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack1, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_unit(3))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack1, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_unit(4))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack1, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_attack)(MUSA_PAUSE, MUSA_HOLD) return magonia_execute_boss_battle() end) end) end) end local function unit_sel_attack2() act_once(magonia_boss_unit_select_tap_unit(3))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack2, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_unit(4))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack2, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_unit(5))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack2, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_attack)(MUSA_PAUSE, MUSA_HOLD) return magonia_execute_boss_battle() end) end) end) end local function unit_sel_attack3() act_once(magonia_boss_unit_select_tap_unit(3))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack3, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_unit(4))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack3, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_unit(6))(MUS_PAUSE, MUS_HOLD) return magonia_boss_unit_select_with_insufficient_bp_check(ALLOWED_BP_OPTIONS, unit_sel_attack3, magonia_execute_boss_battle)(function() act_once(magonia_boss_unit_select_tap_attack)(MUSA_PAUSE, MUSA_HOLD) return magonia_execute_boss_battle() end) end) end) end local exec_battle = function() unit_sel_attack1() if magonia_boss_unit_select() then unit_sel_attack2() if magonia_boss_unit_select() then unit_sel_attack3() end end end function execute_with(aid_request_sel) return function(k) retry(magonia_home_tap_aid_requests)(2) if not magonia_aid_requests_available() then retry(magonia_aid_requests_tap_home)(1) return k() end local function k2() aid_request_sel() while not magonia_boss_unit_select() do if magonia_aid_requests_battle_finished() then retry(magonia_aid_requests_battle_finished_tap_confirm)(2) return k2() end if LOG_ENABLED then log("tapped aid request but not yet magonia_boss_unit_select") end end return magonia_conduct_boss_battle(exec_battle)(function() magonia_boss_battle_complete_confirm_rewards() return k() end) end return k2() end end local execute = execute_with(aid_request_sel) local function main() return execute(main) end main()
--[[ -- added by passion @ 2021/12/17 19:30:36 -- UIChangeServer视图层 -- 注意: -- 1、成员变量最好预先在__init函数声明,提高代码可读性 -- 2、OnEnable函数每次在窗口打开时调用,直接刷新 -- 3、组件命名参考代码规范 --]] local UIChangeServerView = BaseClass("UIChangeServerView", UIBaseView) local base = UIBaseView local ServerListItem = require("UI.UIChangeServer.Component.UIServerListWrapItem") local ServerInfoItem = require("UI.UIChangeServer.Component.UIServerInfoWrapItem") local ServerList_content_Path="ServerList/ServerListViewport/ServerListContent" local ServerInfo_content_Path="ServerInfo/ServerInfoViewport/ServerInfoContent" local Close_Button_Path = "Close" local function OnCreate(self) base.OnCreate(self) self.ServerList_content=self:AddComponent(UIWrapGroup,ServerList_content_Path,ServerListItem) self.ServerInfo_content=self:AddComponent(UIWrapGroup,ServerInfo_content_Path,ServerInfoItem) self.Close_Button = self:AddComponent(UIButton,Close_Button_Path) self.Close_Button:SetOnClick(self,function() self.ctrl:CloseWindow() end) -- 窗口生命周期内保持的成员变量放这 end local function FreshServerList(self) end local function FreshServerInfo(self) end -- 打开 local function OnEnable(self) base.OnEnable(self) -- 窗口关闭时可以清理的成员变量放这 end -- 关闭 local function OnDestroy(self) base.OnDestroy(self) -- 清理成员变量 end UIChangeServerView.OnCreate = OnCreate UIChangeServerView.OnEnable = OnEnable UIChangeServerView.OnDestroy = OnDestroy UIChangeServerView.FreshServerList = FreshServerList UIChangeServerView.FreshServerInfo = FreshServerInfo return UIChangeServerView
--package.path = package.path..";/lib/rest/?.lua" package.path = package.path..";lib/external/?.lua" package.path = package.path..";lib/userinterface/?.lua" package.path = package.path..";lib/rest/?.lua" package.path = package.path..";lib/error/?.lua" package.path = package.path..";scripts/?.lua" --require("error_handling") if require("main") ~= true then error("rest_use.lua not found. you must create one it is the entry point for your application.") end
-- usb_wcid.lua -- _______ _____ _______ -- |__ __| | __ \__ __| -- | | ___ ___ _ __ _ _| | | | | | -- | |/ _ \/ _ \ '_ \| | | | | | | | | -- | | __/ __/ | | | |_| | |__| | | | -- |_|\___|\___|_| |_|\__, |_____/ |_| -- __/ | -- |___/ -- -- TeenyDT - GUI and command line tool to generate USB descriptors and drivers -- -- Copyright (c) 2019 XToolBox - admin@xtoolbox.org -- www.tusb.org -- -- 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. --[[ Windows compatible ID related descriptors visit https://github.com/xtoolbox/TeenyUSB/wiki/WCID-Device for more info --]] require("usb_desc_base") function MSOSString(vendorCode) vendorCode = vendorCode or 1 local desc = CreateDescriptor({ { bLength = DUMMY }, { bDescriptorType = STRING_DESCRIPTOR_TYPE }, { wcChar_7 = "MSFT100" }, { bVendorCode = vendorCode }, { bReserved = 0 }, }, {varData = varData}, "MS OS string descriptor") return desc end function WCIDFunction(bInterface, CID, subCID) CID = CID or "" subCID = subCID or "" assert(#CID<9, "Compatible ID too long >> " .. CID) assert(#subCID<9, "sub Compatible ID too long >> " .. subCID) CID = CID .. string.rep("\x00", 8-#CID) subCID = subCID .. string.rep("\x00", 8-#subCID) local desc = CreateDescriptor({ {bFirstInterfaceNumber = bInterface }, {bReserved = 1 }, {cCID_8 = CID }, {cSubCID_8 = subCID }, {bReserved_6 = "" }, }, {}, "WCID function descriptor") return desc end function WCIDDescriptor(param) local desc = CreateDescriptor({ {dwLength = TotalLength }, {bcdVersion = 0x100 }, {wIndex = 4 }, {bCount = #param }, {bReserved_7 = "" }, }, param, "WCID descriptor") return desc end REG_SZ = 1 REG_EXPAND_SZ = 2 REG_BINARY = 3 REG_DWORD_LITTLE_ENDIAN = 4 REG_DWORD_BIG_ENDIAN = 5 REG_LINK = 6 REG_MULTI_SZ = 7 function uniLength(str) local r = 0 local i = 1 while i<=#str do if str:byte(i) < 0x80 then r = r + 2 i = i + 1 else i = i + 2 r = r + 2 end end return r end function RegProptery(type, name, data) local nameLen = uniLength(name) local dataLen = uniLength(data) local desc = CreateDescriptor({ { dwSize = TotalLength }, { dwPropertyDataType = type }, { wPropertyNameLength = nameLen }, { ["wcName_" .. (nameLen/2 | 0)] = name }, { dwPropertyDataLength = dataLen }, { ["wcData_" .. (dataLen/2 | 0)] = data }, }, {}, "registry propter descriptor") return desc end function RegSZ(name, data) assert(type(data) == "string", "Reg SZ data must be string") if name:byte(#name) ~= 0 then name = name .. "\x00" end if data:byte(#data) ~= 0 then data = data .. "\x00" end return RegProptery(REG_SZ, name , data) end function RegMultiSZ(name, data) local r = "" assert(type(data) == "table", "Reg Multi SZ data must be string") if name:byte(#name) ~= 0 then name = name .. "\x00" end for i,v in ipairs(data) do assert(type(v) == "string", "Reg SZ data must be string") if v:byte(#v) ~= 0 then v = v .. "\x00" end r = r .. v end r = r .. "\x00" return RegProptery(REG_MULTI_SZ, name , r) end function WCIDRegValue(name, data) if type(data) == "table" then return RegMultiSZ(name ,data) else return RegSZ(name, data) end end function WCIDProperty(param) local desc = CreateDescriptor({ {dwLength = TotalLength }, {bcdVersion = 0x100 }, {wIndex = 0x05 }, {wCount = #param }, }, param, "WCID property descriptor") return desc end function isWCID(v) return v.type == "WinUSB" or v.type == "RNDIS" end function MakeWinUSB(dev, extDesc) local min = 0xff for i,v in ipairs(dev.extDesc) do if isWCID(v) and v.interface.content.bInterfaceNumber < min then min = v.interface.content.bInterfaceNumber end end if extDesc.interface.content.bInterfaceNumber == min then -- this is the first WinUSB interface, output them assert(dev.content.bcdUSB>= 0x200, "WinUSB require USB version >= 2.00") if dev.content.bcdUSB > 0x200 then return OutputWinUSB20Info(dev) end return OutputWinUSBInfo(dev) end return "" end function WinUSB(guid) return { type = "WinUSB", data = guid, handler = MakeWinUSB, } end function RNDIS(subCID) return { type = "RNDIS", handler = MakeWinUSB, subCID = subCID, } end function GetWinUSBInterface(dev) local r = {} for i=1,dev.children[1].content.bNumInterfaces do r[i] = {} end for i,v in ipairs(dev.extDesc) do if isWCID(v) then r[v.interface.content.bInterfaceNumber + 1] = v end end return r end function OutputWinUSBInfo(dev) local r = "" local genCode = BeginGenCode(dev) r = r .. genCode({ BODY = Ident( descToString(MSOSString("WCID_VENDOR_CODE")) ) },[[ ////////////////////////////////////////////////////// ///// WCID descripors ////////////////////////////////////////////////////// #if defined(HAS_WCID) // Define WCID os string descriptor #ifndef WCID_MSOS_STRING #define WCID_MSOS_STRING #define WCID_STRING_DESCRIPTOR_MSOS_STR "MSFT100" #define WCID_STRING_DESCRIPTOR_MSOS_SIZE (18) WEAK __ALIGN_BEGIN const uint8_t WCID_StringDescriptor_MSOS [18] __ALIGN_END = { $(BODY)}; #endif // WCID_MSOS_STRING ]]) local funcs = {} local properties = "" local ifs = GetWinUSBInterface(dev) for i,v in ipairs(ifs) do if v.type == "WinUSB" then funcs[#funcs+1] = WCIDFunction(v.interface.content.bInterfaceNumber, "WINUSB") local prop = WCIDProperty{ WCIDRegValue("DeviceInterfaceGUID", v.data or "{1D4B2365-4749-48EA-B38A-7C6FDDDD7E26}"), } r = r .. genCode({ SIZE = fieldValue(prop, "dwLength"), ID = (i-1), BODY = Ident( descToString(prop, true) ) }, [[ #define $(PREFIX)IF$(ID)_WCID_PROPERTIES_SIZE ($(SIZE)) WEAK __ALIGN_BEGIN const uint8_t $(PREFIX)IF$(ID)_WCIDProperties [$(SIZE)] __ALIGN_END = { $(BODY)}; ]]) properties = properties .. genCode({ID = (i-1),}, "$(PREFIX)IF$(ID)_WCIDProperties,\n") elseif v.type == "RNDIS" then funcs[#funcs+1] = WCIDFunction(v.interface.content.bInterfaceNumber, "RNDIS", v.subCID) properties = properties .. "0, // No WCID in Interface " ..(i-1) .."\n" else properties = properties .. "0, // No WCID in Interface " ..(i-1) .."\n" end end local wcidDesc = WCIDDescriptor(funcs) r = r .. genCode({ SIZE = fieldValue(wcidDesc, "dwLength"), BODY = Ident( descToString(wcidDesc, true) ) },[[ #define $(PREFIX)WCID_DESCRIPTOR_SIZE ($(SIZE)) WEAK __ALIGN_BEGIN const uint8_t $(PREFIX)WCIDDescriptor [$(SIZE)] __ALIGN_END = { $(BODY)}; ]]) r = r .. genCode({ SIZE = #ifs, BODY = Ident( properties ) },[[ #define $(PREFIX)WCID_PROPERTIES_SIZE ($(SIZE)) WEAK __ALIGN_BEGIN const desc_t $(PREFIX)WCIDProperties[ $(PREFIX)WCID_PROPERTIES_SIZE ] __ALIGN_END = { $(BODY)}; ]]) r = r .. [[ #endif // #if defined(HAS_WCID) ]] return r end
--[[ Copyright 2020 Manticore Games, Inc. 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. --]] local propObject = script:GetCustomProperty("Object"):WaitForObject() local propRotation = script:GetCustomProperty("Rotation") local propSpeed = script:GetCustomProperty("Speed") local propWorldLocal = script:GetCustomProperty("WorldLocal") propObject:RotateContinuous(propRotation, propSpeed, propWorldLocal)
local table = require "luv.table" local TestCase = require "luv.dev.unittest".TestCase module(...) return TestCase:extend{ __tag = ...; testSplit = function (self) self.assertEquals(table.ijoin({"abc";"def";"";"234";"false"}), "abcdef234false") self.assertEquals(table.join({"abc";"def";"";"234";"false"}, "||"), "abc||def||||234||false") self.assertEquals(table.join({}, "+"), "") end }
local error_handler = require("lua_schema.error_handler"); local URI = require("uri"); local stringx = require("pl.stringx"); local xmlua = require("xmlua") local basic_stuff = require("lua_schema.basic_stuff"); local elem_code_generator = require("lua_schema.elem_code_generator"); local facets = require("lua_schema.facets"); local codegen_eh_cache = require("lua_schema.codegen_eh_cache"); local type_code_generator = {}; local get_schema_type_name = function(typedef) local tns = typedef:get_target_name_space(); return '{'..tns..'}'..typedef.name; end local get_is_valid_func = function(typedef) if (typedef:get_typedef_type() == 'S') then return basic_stuff.simple_is_valid; else if (typedef:get_typedef_content_type() == 'S') then return basic_stuff.complex_type_simple_content_is_valid; else return basic_stuff.complex_type_is_valid; end end end local get_to_xmlua_func = function(typedef) if (typedef:get_typedef_type() == 'S') then return basic_stuff.simple_to_xmlua; else if (typedef:get_typedef_content_type() == 'S') then return basic_stuff.complex_type_simple_content_to_xmlua; else return basic_stuff.struct_to_xmlua; end end end local get_to_unsd_func = function(typedef) if (typedef:get_typedef_content_type() == 'S') then return basic_stuff.simple_get_unique_namespaces_declared; else return basic_stuff.complex_get_unique_namespaces_declared; end end local get_type_handler = function(typedef, dh, content_type) if (content_type ~= 'S') then return dh; end local s = typedef:get_typedef_primary_bi_type(); local th = basic_stuff.get_type_handler(s.ns, s.name..'_handler'); return th; end local get_typedef_attr_decls = function(typedef) return(elem_code_generator.get_attr_decls(typedef:get_typedef_attr_decls())); end type_code_generator.get_element_handler = function(typedef, to_generate_names, global) local element_handler = nil; element_handler = codegen_eh_cache.get('T:'..get_schema_type_name(typedef)); element_handler = codegen_eh_cache.get(get_schema_type_name(typedef)); if (element_handler ~= nil) then return element_handler; end; element_handler = {}; if (global) then codegen_eh_cache.add('T:'..get_schema_type_name(typedef), element_handler); end local content_type = typedef:get_typedef_content_type(); local element_type = typedef:get_typedef_type(); do element_handler.get_attributes = basic_stuff.get_attributes; element_handler.is_valid = get_is_valid_func(typedef); element_handler.to_xmlua = get_to_xmlua_func(typedef); element_handler.get_unique_namespaces_declared = get_to_unsd_func(typedef); element_handler.parse_xml = basic_stuff.parse_xml; elem_code_generator.get_type_handler_and_base(typedef, to_generate_names, element_handler); end do element_handler.properties = {}; local props = element_handler.properties; props.element_type = typedef:get_typedef_type(); props.content_type = typedef:get_typedef_content_type(); props.schema_type = get_schema_type_name(typedef); props.q_name = {}; local tns = typedef:get_target_name_space(); if (tns == nil) then tns = ''; end props.q_name.ns = tns; props.q_name.local_name = typedef.name; props.attr = get_typedef_attr_decls(typedef); if (content_type ~= 'S') then props.attr.attr_wildcard = typedef.attr_wildcard; local model = typedef:get_typedef_content_model(); elem_code_generator.prepare_generated_names(model); props.content_model = elem_code_generator.get_content_model(model); props.content_fsa_properties = elem_code_generator.get_content_fsa_properties(model, props.content_model); props.subelement_properties = elem_code_generator.get_subelement_properties(model); props.generated_subelements = elem_code_generator.get_generated_subelements(props) props.declared_subelements = elem_code_generator.get_declared_subelements(model); props.bi_type = {}; else local simple_type_props = typedef:get_typedef_simpletype_dtls(); props.bi_type = typedef:get_typedef_primary_bi_type(); props.bi_type.id = simple_type_props.built_in_type_id; --[[ --In case of simple base is populated by elem_code_generator.get_type_handler_and_base --]] element_handler.local_facets = facets.massage_local_facets(simple_type_props.local_facets, element_handler.type_handler.datatype, element_handler.type_handler.type_name); element_handler.facets = facets.massage_local_facets(simple_type_props.facets, element_handler.type_handler.datatype, element_handler.type_handler.type_name); element_handler.type_of_simple = simple_type_props.type_of_simple; end --element_handler.properties = props; end return element_handler; end type_code_generator.put_element_handler_code = function(eh_name, element_handler, indent) if (indent == nil) then indent = '' end local code = ''; local properties = element_handler.properties; if (element_handler.properties.content_type == 'S') then local ns = element_handler.base.ns; local name = element_handler.base.name; code = code..eh_name..'.super_element_content_type = '..elem_code_generator.get_type_handler_code(ns, name).. ';\n\n'; code = code..eh_name..'.type_of_simple = \''..element_handler.type_of_simple.. '\';\n\n'; code = code..elem_code_generator.put_union_or_list_code(eh_name, element_handler, indent..' '); end code = code..indent..'do\n'; code = code..indent..' '..eh_name..'.properties = {};\n'; code = code..indent..' '..eh_name..'.properties.element_type = \''..properties.element_type..'\';\n'; code = code..indent..' '..eh_name..'.properties.content_type = \''..properties.content_type..'\';\n'; code = code..indent..' '..eh_name..'.properties.schema_type = \''..properties.schema_type..'\';\n'; code = code..indent..' '..eh_name..'.properties.q_name = {};\n'; code = code..indent..' '..eh_name..'.properties.q_name.ns = \''..properties.q_name.ns..'\'\n'; code = code..indent..' '..eh_name..'.properties.q_name.local_name = \''..properties.q_name.local_name..'\'\n'; if (element_handler.properties.content_type == 'S') then code = code..indent..' '..eh_name..'.properties.bi_type = {};\n'; code = code..indent..' '..eh_name..'.properties.bi_type.ns = \''..properties.bi_type.ns..'\';\n'; code = code..indent..' '..eh_name..'.properties.bi_type.name = \''..properties.bi_type.name..'\';\n'; code = code..indent..' '..eh_name..'.properties.bi_type.id = \''..properties.bi_type.id..'\';\n'; end code = code..'\n'; code = code..indent..' -- No particle properties for a typedef\n\n'; if (properties.attr ~= nil) then code = code..indent..' '..eh_name..'.properties.attr = {};\n'; code = code..elem_code_generator.get_attr_code(eh_name..'.properties.attr', element_handler, indent..' '); if (properties.attr.attr_wildcard ~= nil) then code = code..indent..' '..eh_name..'.properties.attr.attr_wildcard = {};\n'; code = code..indent..' '..eh_name.. '.properties.attr.attr_wildcard.any = '..properties.attr.attr_wildcard.any..';\n'; code = code..indent..' '..eh_name.. '.properties.attr.attr_wildcard.process_contents = '..properties.attr.attr_wildcard.process_contents..';\n'; code = code..indent..' '..eh_name..'.properties.attr.attr_wildcard.ns_set = {};\n'; for n,v in pairs(properties.attr.attr_wildcard.ns_set) do code = code..indent..' '..eh_name..'.properties.attr.attr_wildcard.ns_set.'..n..' = \''..v..'\';\n'; end code = code..indent..' '..eh_name..'.properties.attr.attr_wildcard.neg_ns_set = {};\n'; for n,v in pairs(properties.attr.attr_wildcard.neg_ns_set) do code = code..indent..' '..eh_name..'.properties.attr.attr_wildcard.neg_ns_set.'..n..' = \''..v..'\';\n'; end end else code = code..indent..' '..eh_name..'.properties.attr = nil;\n'; end code = code..indent..'end\n\n'; if (element_handler.properties.content_type ~= 'S') then -- Content model local content_model = element_handler.properties.content_model; code = code..'-- '..eh_name..'.properties.content_model\n'; code = code..indent..'do\n'; code = code..indent..' '..eh_name..'.properties.content_model = {\n'; code = code..elem_code_generator.put_content_model_code(element_handler.properties.content_model, indent..' '); code = code..indent..' };\n'; code = code..indent..'end\n\n'; -- Content FSA properties local content_fsa_properties = element_handler.properties.content_fsa_properties; code = code..'-- '..eh_name..'.properties.content_fsa_properties\n'; code = code..indent..'do\n'; code = code..indent..' '..eh_name..'.properties.content_fsa_properties = {\n'; code = code..elem_code_generator.put_content_fsa_properties_code(content_fsa_properties, content_model, indent..' '); code = code..indent..' };\n'; code = code..indent..'end\n\n'; -- Declared subelements code = code..indent..'do\n'; code = code..indent..' '..eh_name..'.properties.declared_subelements = {\n'; for i,v in ipairs(element_handler.properties.declared_subelements) do if (i~=1) then code = code..indent..' ,'; else code = code..indent..' '; end code = code..'\''..v..'\'\n'; end code = code..indent..' };\n'; code = code..indent..'end\n\n'; -- Subelement properties code = code..indent..'do\n'; code = code..indent..' '..eh_name..'.properties.subelement_properties = {};\n'; code = code..elem_code_generator.put_subelement_properties_code(eh_name..'.properties.subelement_properties', properties.subelement_properties, indent..' '); code = code..indent..'end\n\n'; -- Generated subelements code = code..indent..'do\n'; local sep_name = eh_name..'.properties.subelement_properties'; code = code..indent..' '..eh_name..'.properties.generated_subelements = {\n'; local flg = true; local lhs = ''; local rhs = ''; local generated_name = ''; for i,v in ipairs(element_handler.properties.content_fsa_properties) do if (v.symbol_type == 'element') then generated_name = element_handler.properties.subelement_properties[v.generated_symbol_name].particle_properties.generated_name; lhs = '[\''..generated_name..'\']'; rhs = sep_name..'[\''..v.generated_symbol_name..'\']'; if (flg) then code = code..indent..' '..lhs..' = '..rhs..'\n'; flg = false; else code = code..indent..' ,'..lhs..' = '..rhs..'\n'; end elseif (v.symbol_type == 'cm_begin' and v.max_occurs ~= 1) then generated_name = v.generated_symbol_name; lhs = '[\''..generated_name..'\']'; if (flg) then code = code..indent..' '..lhs..' = '..'{}'..'\n'; flg = false; else code = code..indent..' ,'..lhs..' = '..'{}'..'\n'; end end end code = code..indent..' };\n'; code = code..indent..'end\n\n'; else code = code..indent..'-- Simple type properties\n'; code = code..indent..'do\n'; code = code..indent..' '..eh_name..'.base = {};\n'; code = code..indent..' '..eh_name..'.base.ns = \'' ..element_handler.base.ns..'\';\n';; code = code..indent..' '..eh_name..'.base.name = \'' ..element_handler.base.name..'\';\n';; local local_facets = element_handler.local_facets; code = code..indent..' '..eh_name..'.local_facets = {};\n'; code = elem_code_generator.gen_code_copy_facets(code, indent..' '..eh_name..'.local_facets', local_facets); code = code..indent..' '..eh_name..'.facets = basic_stuff.inherit_facets('..eh_name..');\n' code = code..indent..'end\n\n'; end code = code..indent..'do\n'; if (properties.content_type ~= 'S') then code = code..indent..' '..eh_name..'.type_handler = '..eh_name..';\n'; else local ns = properties.bi_type.ns; local name = properties.bi_type.name; if (element_handler.type_of_simple == 'A') then code = code..indent..' '..eh_name..'.type_handler = '..elem_code_generator.get_type_handler_code(ns, name)..';\n'; elseif (element_handler.type_of_simple == 'U') then code = code..indent..' '..eh_name..'.type_handler = ' ..elem_code_generator.get_oth_type_handler_code(elem_code_generator.get_union_type_handler_str())..';\n'; else code = code..indent..' '..eh_name..'.type_handler = ' ..elem_code_generator.get_oth_type_handler_code(elem_code_generator.get_list_type_handler_str())..';\n'; end end code = code..indent..' '..eh_name..'.get_attributes = basic_stuff.get_attributes;\n' code = code..indent..' '..eh_name..'.is_valid = '..elem_code_generator.get_is_valid_func_name(properties.element_type, properties.content_type)..';\n'; code = code..indent..' '..eh_name..'.to_xmlua = '..elem_code_generator.get_to_xmlua_func_name(properties.element_type, properties.content_type)..';\n'; code = code..indent..' '..eh_name..'.get_unique_namespaces_declared = '..elem_code_generator.get_to_unsd_func_name(properties.content_type)..';\n'; code = code..indent..' '..eh_name..'.parse_xml = basic_stuff.parse_xml\n'; code = code..indent..'end\n\n'; return code; end type_code_generator.gen_lua_schema_code_from_typedef = function(typedef, indent) if (indent == nil) then indent = '' end local code = ''; local eh_name = 'element_handler'; local element_handler = type_code_generator.get_element_handler(typedef, true, true); code = code..'local basic_stuff = require("lua_schema.basic_stuff");\n'; code = code..'local eh_cache = require("lua_schema.eh_cache");\n'; code = code..'\n'; code = code..'local '..eh_name..' = {};\n'; code = code..eh_name..'.__name__ = \''..typedef:get_name()..'\';\n'; code = code..'\n'; code = code..indent..'local mt = { __index = element_handler; };\n'; code = code..indent..'local _factory = {};\n'; code = code..'\n'; code = code..indent..'function _factory:new_instance_as_global_element(global_element_properties)\n'; code = code..indent..' return basic_stuff.instantiate_type_as_doc_root(mt, global_element_properties);\n'; code = code..indent..'end\n'; code = code..'\n'; code = code..'function _factory:new_instance_as_local_element(local_element_properties)\n'; code = code..indent..' return basic_stuff.instantiate_type_as_local_element(mt, local_element_properties);\n'; code = code..indent..'end\n'; code = code..'\n'; code = code..'function _factory:instantiate()\n'; code = code..indent..' local o = {};\n'; code = code..indent..' local o = setmetatable(o,mt);\n'; code = code..indent..' return(o);\n'; code = code..indent..'end\n'; code = code..'\n'; local type_name = '{'..element_handler.properties.q_name.ns..'}'..element_handler.properties.q_name.local_name; code = code..'eh_cache.add(\''..type_name..'\', _factory);\n'; code = code..'\n'; code = code..'\n'; code = code..type_code_generator.put_element_handler_code(eh_name, element_handler, indent) code = code..'\n\nreturn _factory;\n'; local path_parts = elem_code_generator.get_package_name_parts(typedef:get_target_name_space()); local local_path = '.'; for _, v in ipairs(path_parts) do local_path = local_path..'/'..v; local command = 'test ! -d '..local_path..' && mkdir '..local_path; os.execute(command); end local file_path = local_path..'/'..typedef:get_name()..'.lua' local file = io.open(file_path, "w+"); file:write(code); file:close(); return; end return type_code_generator;
local camera = require('plugin.camera') local widget = require('widget') display.setDefault('background', 1, 1, 1) -- Camera settings. local useFrontCamera = true local desiredWidth = 640 local desiredHeight = 480 local countdownSeconds = 5 -- Preview rectangle. local view = display.newRect(display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight) -- Face silhouette image. local outline = display.newImage('outline.png', display.contentCenterX, display.contentCenterY) local scale = 0.8 * display.contentWidth / outline.width outline:scale(scale, scale) -- Countdown timer label. local countdownLabel = display.newText{text = '', x = display.contentCenterX, y = 20, fontSize = 40, font = native.systemFontBold} countdownLabel:setFillColor(0.2, 0.8, 0.2, 1) -- Local stuff. local isPreviewing = false local captureTimer = nil local cameraTexture = nil local shouldInvalidate = true -- Display camera images when they become available or clear things up when camera closes. Runtime:addEventListener('enterFrame', function() if isPreviewing then if not cameraTexture then -- Query if camera has an image ready. cameraTexture = camera.newTexture() if cameraTexture then -- Got first camera image. -- Setup preview rectange. view.fill = { type = 'image', filename = cameraTexture.filename, baseDir = cameraTexture.baseDir } local width, height = camera.getSize() print('Camera size:', width, height) view.width = width view.height = height local scale = math.min(display.contentWidth / width, display.contentHeight / height) view.xScale = (useFrontCamera and -1 or 1) * scale -- Mirror preview if using the front camera. view.yScale = scale end else -- Update image from the camera. -- Reduce FPS by half. if shouldInvalidate then cameraTexture:invalidate() shouldInvalidate = false else shouldInvalidate = true end end else if cameraTexture then -- Clear texture when camera closes. cameraTexture:releaseSelf() cameraTexture = nil view.fill = {0} end end end) -- Save photo to the media library in original size and without mirroring. local function capturePhoto() local photo = display.newImage(cameraTexture.filename, cameraTexture.baseDir, 0, 2 * display.contentHeight) photo.anchorY = 0 local filename = 'photo.png' display.save(photo, {filename = filename, baseDir = system.TemporaryDirectory, captureOffscreenArea = true}) media.save(filename, system.TemporaryDirectory) photo:removeSelf() end --[[ Possible orientations: 'portrait' 'landscapeLeft' 'portraitUpsideDown' 'landscapeRight' ]] -- Start the camera. local function startPreviewing() -- Get available resolutions for the camera. local supportedSizes = camera.getSupportedSizes(useFrontCamera) if not supportedSizes then print('Camera is not available.') return end -- Find the best matching resolution. local optimalWidth, optimalHeight = 0, 0 local optimalDiff = nil for i = 1, #supportedSizes do local size = supportedSizes[i] local w, h = size[1], size[2] print('Supported resolution: ' .. tostring(w) .. 'x' .. tostring(h)) local diff = math.pow(desiredWidth - w, 2) + math.pow(desiredHeight - h, 2) if not optimalDiff or diff < optimalDiff then optimalWidth, optimalHeight = w, h optimalDiff = diff end end print('Picked resolution: ' .. tostring(optimalWidth) .. 'x' .. tostring(optimalHeight)) local systemOrientation = system.orientation -- Adjust for iOS specific orientations. if systemOrientation == 'faceUp' or systemOrientation == 'faceDown' then systemOrientation = 'portrait' end -- Start the camera. It will ask for a permission first. camera.start({ width = optimalWidth, height = optimalHeight, orientation = system.orientation, useFrontCamera = useFrontCamera }) isPreviewing = true end -- Stop the camera. local function stopPreviewing() if isPreviewing then camera.stop() end isPreviewing = false end -- Start/stop button. local w, h = display.contentWidth * 0.4, 50 widget.newButton{ x = display.contentCenterX, y = display.contentHeight - 20, width = w, height = h, label = 'Start / Stop', onRelease = function() if not isPreviewing then startPreviewing() -- Start the countdown to make a photo. countdownLabel.text = tostring(countdownSeconds) captureTimer = timer.performWithDelay(1000, function(event) countdownLabel.text = tostring(countdownSeconds - event.count) if event.count == countdownSeconds then captureTimer = nil capturePhoto() countdownLabel.text = '' stopPreviewing() end end, countdownSeconds) else if captureTimer then timer.cancel(captureTimer) captureTimer = nil countdownLabel.text = '' end stopPreviewing() end end }
require "ui.nzluabaseviewclass" NZLuaSimpleViewClass = Inherit(NZLuaBaseViewClass) function NZLuaSimpleViewClass:Ctor( ) if not self.m_DestroyDelegate then self.m_DestroyDelegate = self.DestroyEvent self.m_HasRelease = false assert(self.m_DestroyDelegate) self.m_DestroyDelegate:Add(InsCallBack(self.OnDestroyEvent, self)) self.m_InitEvent = self.InitEvent self.m_InitEvent:Add(InsCallBack(self.OnInitEvent, self)) self.m_InitedEvent = self.InitedEvent self.m_InitedEvent:Add(InsCallBack(self.OnInitedEvent, self)) end end function NZLuaSimpleViewClass:Destroy( ) self:RemoveFromViewport() if self.m_Parent then self.m_Parent:ChildWidgetDestroy(self) end end function NZLuaSimpleViewClass:OnInitEvent( ) end function NZLuaSimpleViewClass:OnDestroyEvent( ) end function NZLuaSimpleViewClass:OnInitedEvent( ) end return NZLuaSimpleViewClass
object_mobile_smuggler_fence_jalen = object_mobile_shared_smuggler_fence_jalen:new { } ObjectTemplates:addTemplate(object_mobile_smuggler_fence_jalen, "object/mobile/smuggler_fence_jalen.iff")
--- alle Rohstoffe ResourceType = { Clay = 11, ClayRaw = 12, Faith = 17, Gold = 1, GoldRaw = 2, Iron = 7, IronRaw = 8, Knowledge = 16, Silver = 3, SilverRaw = 4, Stone = 5, StoneRaw = 6, Sulfur = 9, SulfurRaw = 10, WeatherEnergy = 15, Wood = 13, WoodRaw = 14, }
ITEM.name = "Shovel" ITEM.description= "An old, rusty shovel." ITEM.longdesc = "This very old field shovel has seen better days. The handle is rusted, and it's too light to fight with. This doesn't undermine it's ability as a tool, however, as it's very easy to hide your personal belongings in the zone, out of sight for other stalkers." ITEM.model = "models/lostsignalproject/items/misc/shovel.mdl" ITEM.width = 3 ITEM.height = 1 ITEM.flag = "A" ITEM.weight = 2.600 ITEM.quantity = 40 ITEM.price = 3500 ITEM.exRender = true ITEM.iconCam = { pos = Vector(-1, 0, 200), ang = Angle(90, 90, 0), fov = 11, } function ITEM:OnInstanced(invID, x, y) if (!self:GetData("quantity")) then self:SetData("quantity", self.quantity) end end
----------------------------------------- -- ID: 4349 -- Item: Bunny Ball -- Food Effect: 240Min, All Races ----------------------------------------- -- Health 10 -- Strength 2 -- Vitality 2 -- Intelligence -1 -- Attack % 30 (cap 30) -- Ranged ATT % 30 (cap 30) ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onItemCheck(target) local result = 0 if target:hasStatusEffect(tpz.effect.FOOD) or target:hasStatusEffect(tpz.effect.FIELD_SUPPORT_FOOD) then result = tpz.msg.basic.IS_FULL end return result end function onItemUse(target) target:addStatusEffect(tpz.effect.FOOD, 0, 0, 14400, 4349) end function onEffectGain(target, effect) target:addMod(tpz.mod.HP, 10) target:addMod(tpz.mod.STR, 2) target:addMod(tpz.mod.VIT, 2) target:addMod(tpz.mod.INT, -1) target:addMod(tpz.mod.FOOD_ATTP, 30) target:addMod(tpz.mod.FOOD_ATT_CAP, 30) target:addMod(tpz.mod.FOOD_RATTP, 30) target:addMod(tpz.mod.FOOD_RATT_CAP, 30) end function onEffectLose(target, effect) target:delMod(tpz.mod.HP, 10) target:delMod(tpz.mod.STR, 2) target:delMod(tpz.mod.VIT, 2) target:delMod(tpz.mod.INT, -1) target:delMod(tpz.mod.FOOD_ATTP, 30) target:delMod(tpz.mod.FOOD_ATT_CAP, 30) target:delMod(tpz.mod.FOOD_RATTP, 30) target:delMod(tpz.mod.FOOD_RATT_CAP, 30) end
---------------------------------< -- Application Connecter -- c_connect.lua --[[-----------------------------< This file is used for connecting the Application Manager and the applications themselves together. This file must be used at every application in order to make it work well. Server-side services are always running when the resource is started. Client-side services are will only run when the user is logged in and has the Application installed. Client-side files will be downloaded directly when the Application is installed. The already-downloaded files will be updated when it differs with the servers' on the load. --]]-----------------------------< -- Exports ---------------------------------< g_ResourceRoot = getResourceRootElement(getThisResource()) local files = {} local services = {} local alias = nil local icon = nil local isLoaded = false local filesReady = 0 local servucesReady = 0 local Revision = 1 addEventHandler("onClientResourceStart", g_ResourceRoot, function(resource) data = xmlLoadFile("data.xml") nodes = xmlNodeGetChildren(data) for i,node in ipairs(nodes) do if (xmlNodeGetName(node) == "file") then value = xmlNodeGetValue(node) table.insert(files,value) end if (xmlNodeGetName(node) == "service") then value = xmlNodeGetValue(node) table.insert(services,value) end if (xmlNodeGetName(node) == "alias") then value = xmlNodeGetValue(node) alias = value end if (xmlNodeGetName(node) == "icon") then value = xmlNodeGetValue(node) icon = value end end xmlUnloadFile(data) loadServices() end ) function loadServices() for _,service in ipairs(services) do triggerServerEvent("onRequestServiceDownload", g_ResourceRoot,getLocalPlayer(), service) end end function loadApplication() updateFiles() isLoaded = true end function openApplication() if(isLoaded == false) then loadApplication() end if filesReady ~= true then setTimer(function() openApplication() end,1000,1) return end local filename = "@:BB_AppManager/Versions.xml" local node = xmlLoadFile(filename) if node then local resourceName = getResourceName(getThisResource()) local childNode = xmlFindChild(node, resourceName, 0) or xmlCreateChild(node, resourceName) local version = tonumber(xmlNodeGetAttribute(childNode, "version")) if type(version) == "number" then if version < Revision then exports.BB_Notify:Notify("Files of the application are outdated,\nrejoin to update.", 2, "Error", 5000) xmlUnloadFile(node) return end else exports.BB_Notify:Notify("#FF0000Error: APP_XML_Load_Failure\n#FFFFFFCan't open #FF9900"..alias.."#FFFFFF, look at the \n#FF9900Getting Started App#FFFFFF to find out how\nto fix this.", 4, "Error", 5000) end else return end main() end function closeApplication() closeAPP() triggerEvent("onAppClose", g_ResourceRoot) return true end function liveTileUpdate(tile,mode) if not filesReady then return false end updateTile(tile,mode) end function isStillUpdating() if filesReady == true then return false else return true end end function giveMeDetails() return alias, icon end ---------------------------------< -- File updater ---------------------------------< function updateFiles() local filename = "@:BB_AppManager/Versions.xml" local node = xmlLoadFile(filename) or xmlCreateFile(filename, "Apps") if node then local resourceName = getResourceName(getThisResource()) local childNode = xmlFindChild(node, resourceName, 0) or xmlCreateChild(node, resourceName) local version = tonumber(xmlNodeGetAttribute(childNode, "version")) if type(version) ~= "number" then xmlNodeSetAttribute(childNode, "version", Revision) xmlSaveFile(node) end xmlUnloadFile(node) else return end for _,file in pairs(files) do updateFile(file) end end function updateFile(filename) triggerServerEvent("onRequestChecksumOfFile", g_ResourceRoot, getLocalPlayer(), filename) end addEvent("onClientRequestChecksumOfFile",true) addEventHandler("onClientRequestChecksumOfFile",g_ResourceRoot, function(checksumA,filename) local file = fileExists(filename) and fileOpen(filename) or fileCreate(filename) local buffer = "" while not fileIsEOF(file) do buffer = buffer..fileRead(file, 500) end fileClose(file) checksumB = sha256(buffer) if checksumA ~= checksumB then downloadFileAgain(filename) else if string.sub(filename, -4) == ".lua" then local lcall,err = loadstring(buffer) if(lcall == nil) then outputDebugString(err,1) else lcall() end end sendNotification() end end ) function downloadFileAgain(filename) triggerServerEvent("onRequestDownload", g_ResourceRoot,getLocalPlayer(), filename) end addEvent("onClientDownloaded", true) addEventHandler("onClientDownloaded", g_ResourceRoot, function(buffer, filename) local file = fileOpen(filename) if not file then file = fileCreate(filename) else fileClose(file) fileDelete(filename) file = fileCreate(filename) end fileWrite(file, buffer) fileClose(file) if string.sub(filename, -4) == ".lua" then local lcall,err = loadstring(buffer) if(lcall == nil) then outputDebugString(err,1) else lcall() end end sendNotification() end ) addEvent("onClientDownloadedService", true) addEventHandler("onClientDownloadedService", g_ResourceRoot, function(buffer, filename) if string.sub(filename, -4) == ".lua" then local lcall,err = loadstring(buffer) if(lcall == nil) then outputDebugString(err,1) else lcall() end end sendServiceNotification() end ) function sendNotification() filesReady = filesReady+1 if filesReady == #files then triggerEvent("onClientFilesAreAllDownloaded", g_ResourceRoot) filesReady = true end end function sendServiceNotification() servicesReady = filesReady+1 if servicesReady == #services then triggerEvent("onServiceStart", g_ResourceRoot) servicesReady = true end end
local af = Def.ActorFrame{} -- illuminated af[#af+1] = LoadActor("./scene-lit.jpg")..{ InitCommand=function(self) self:diffuse(0,0,0,0) end, ShowCommand=function(self) self:sleep(5):accelerate(4.5):diffuse(1,1,1,1):sleep(5):queuecommand("Hide") end, HideCommand=function(self) self:visible(false) end } -- dark af[#af+1] = LoadActor("./scene-dark.jpg")..{ InitCommand=function(self) self:diffusealpha(0) end, ShowCommand=function(self) self:sleep(12):accelerate(1.333):diffusealpha(1):smooth(15):diffuse(0.25,0.25,0.35,0.75) end, } -- descending moon af[#af+1] = LoadActor("./moon.png")..{ InitCommand=function(self) self:valign(1):y(-350):zoom(0.8):diffusealpha(0) end, ShowCommand=function(self) self:sleep(11):linear(18):diffusealpha(1):y(-240) end } -- trees af[#af+1] = LoadActor("./trees1.png")..{ InitCommand=function(self) self:diffuse(0,0,0,0) end, ShowCommand=function(self) self:sleep(9):smooth(1.666):diffuse(1,1,1,0.5):smooth(10):diffuse(0.7,0.7,0.7,0.4) end, } af[#af+1] = LoadActor("./trees2.png")..{ InitCommand=function(self) self:diffuse(0,0,0,0) end, ShowCommand=function(self) self:sleep(9):smooth(2.333):diffuse(1,1,1,0.5):smooth(10):diffuse(0.7,0.7,0.7,0.4) end, } for i=1,3 do -------------------------------------- -- initial stars, slow fade in af[#af+1] = LoadActor("./stars" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0):zoom(1):rotationz(180):x(50) end, ShowCommand=function(self) self:sleep(0.5*(i-1)) :smooth(5):diffusealpha(0.6) :diffuseshift():effectperiod(3.5+i):effectoffset(3-i):effectcolor1(1,1,1,0.75):effectcolor2(1,1,1,0) :sleep(4):decelerate(1.333):diffusealpha(0) end, } af[#af+1] = LoadActor("./stars" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0):zoom(1):rotationz(180):x(50) end, ShowCommand=function(self) self:sleep(0.5*(i-1)) :smooth(5):diffusealpha(0.5) :pulse():effectperiod(4+i):effectoffset(3-i):effectmagnitude(1.025,1,1) :sleep(4):decelerate(1.333):diffusealpha(0) end } -------------------------------------- -- second stars, smaller, green-blue af[#af+1] = LoadActor("./stars" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0):zoom(0.7):rotationx(180):xy(-250,-50) end, ShowCommand=function(self) self:sleep(4 + 0.5*(i-1)) :decelerate(3.333):diffusealpha(0.6) :diffuseshift():effectperiod(3.5+i):effectoffset(3-i):effectcolor1(1,1,1,0):effectcolor2(0.6,1,1,1) end, } af[#af+1] = LoadActor("./stars" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0):zoom(0.7):rotationx(180):xy(-250,-50) end, ShowCommand=function(self) self:sleep(4 + 0.5*(i-1)) :decelerate(3.333):diffusealpha(0.5) :pulse():effectperiod(4+i):effectoffset(3-i):effectmagnitude(1.025,1,1) end } -------------------------------------- -- third stars, smaller, red-blue af[#af+1] = LoadActor("./stars" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0):zoom(1.1):rotationz(90):x(200) end, ShowCommand=function(self) self:sleep(6 + 0.5*(i-1)) :smooth(2):diffusealpha(0.6) :diffuseshift():effectperiod(3.5+i):effectoffset(3-i):effectcolor1(1,1,1,0):effectcolor2(1,0.85,1,1) :sleep(1):decelerate(1.333):diffusealpha(0) end, } af[#af+1] = LoadActor("./stars" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0):zoom(0.7):rotationz(45):x(-200) end, ShowCommand=function(self) self:sleep(6 + 0.5*(i-1)) :smooth(2):diffusealpha(0.5) :pulse():effectperiod(4+i):effectoffset(3-i):effectmagnitude(1.025,1,1) :sleep(1):decelerate(1.333):diffusealpha(0) end } -------------------------------------- -- last stars, full size af[#af+1] = LoadActor("./stars" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0) end, ShowCommand=function(self) self:sleep(8 + (0.5*(i-1))) :decelerate(2):diffusealpha(0.6) :diffuseshift():effectperiod(3+i):effectoffset(3-i):effectcolor1(1,1,1,1):effectcolor2(1,1,1,0) end, } af[#af+1] = LoadActor("./stars" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0) end, ShowCommand=function(self) self:sleep(9 + (0.5*(i-1))) :decelerate(2):diffusealpha(0.5) :pulse():effectperiod(4+i):effectoffset(3-i):effectmagnitude(1.025,1,1) end } end for i=1,3 do af[#af+1] = LoadActor("./person" .. i .. ".png")..{ InitCommand=function(self) self:diffusealpha(0) end, ShowCommand=function(self) self:sleep(12 + (6*(i-1))):smooth(1):diffusealpha(1):sleep(4):smooth(1):diffusealpha(0) end, } end return af
local mysql = require "kong.custom_plugins.apirouter.mysql" local redis = require "kong.custom_plugins.apirouter.redis" local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local get_headers = ngx.req.get_headers local fmt = string.format local get_limit_key = function(api_id, date, uid) return fmt("apirouter:limit:%s:%s:%s", api_id, date, uid) end local get_total_key = function(date, uid) return fmt("apirouter:limit:total:%s:%s", date, uid) end local ApiRouterHandler = BasePlugin:extend() ApiRouterHandler.PRIORITY = 3000 local KEY_PREFIX = "apirouter" function ApiRouterHandler:new() ApiRouterHandler.super.new(self, "apirouter") end function ApiRouterHandler:init_worker() ApiRouterHandler.super.init_worker(self) end function ApiRouterHandler:certificate() ApiRouterHandler.super.certificate(self) end function ApiRouterHandler:rewrite() ApiRouterHandler.super.rewrite(self) end function ApiRouterHandler:access(conf) ApiRouterHandler.super.access(self) -- get token from header[user-key] local token = get_headers()[conf.key_names] if token == nil or token == "" then ngx.log(ngx.ERR, "[apirouter] token can't be nil.") return responses.send(403, "API Access Forbidden") end -- verify token by redis & mysql local key = KEY_PREFIX .. "_" .. token local ok, result, err = redis:get(conf, key) if err then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) return responses.send(503, "Service Unavailable - RT") end local current_date = os.date("%Y%m%d") local api_id = ngx.ctx.api.name -- ngx.ctx.api.id local count_key, total_key if not ok or ok == false or tostring(result) == "userdata: NULL" then local sql = "select user_id from t_user_api where api_token = '" .. token .. "'" local ok, user_table, sqlstate = mysql:query(conf, sql) if ok == false then ngx.log(ngx.ERR, "[apirouter] access mysql failed: ", tostring(user_table)) return responses.send(503, "Service Unavailable - MQ") end if not user_table or table.getn(user_table) ~= 1 or not user_table[1]["user_id"] then ngx.log(ngx.ERR, "[apirouter] get token failed: ", token) return responses.send(401, "Token Unauthorized") else local uid = user_table[1]["user_id"] count_key = get_limit_key(api_id,current_date,uid) total_key = get_total_key(current_date,uid) -- TODO set redis key local ok, result, err = redis:set(conf, key, uid) if not ok or ok == false then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) end end else local uid = tostring(result) count_key = get_limit_key(api_id,current_date,uid) total_key = get_total_key(current_date,uid) end -- TODO check total limit 2000 local ok, count = self:check_total_limit(conf, total_key) if not ok or ok == false then ngx.log(ngx.ERR, "[apirouter] check total limit failed: ", tostring(count)) return responses.send(503, "Service Unavailable - RL") end local times = tonumber(count) if (times >= 2000) then ngx.log(ngx.ERR, "[apirouter] api invoke times limited: ", token) return responses.send(430, "API Total Request Limited") end -- TODO check api limit 500 local ok, count = self:check_apicall_limit(conf, count_key) if not ok or ok == false then ngx.log(ngx.ERR, "[apirouter] check limit failed: ", tostring(count)) return responses.send(503, "Service Unavailable - RL") end local times = tonumber(count) if (times >= conf.limit_times) then ngx.log(ngx.ERR, "[apirouter] api invoke times limited: ", token) return responses.send(429, "API Request Limited") end self:increase_count(conf, count_key, total_key) end function ApiRouterHandler:increase_count(conf, count_key, total_key) local ok, count, err = redis:get(conf, count_key) if err then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) return responses.send(503, "Service Unavailable - RL") end local count_value = tostring(count) if (count_value == "userdata: NULL") then local ok, result, err = redis:set(conf, count_key, 1) if not ok or ok == false then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) end else local ok, result, err = redis:set(conf, count_key, tonumber(count) + 1) if not ok or ok == false then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) end end local ok, count, err = redis:get(conf, total_key) if err then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) return responses.send(503, "Service Unavailable - RL") end local count_value = tostring(count) if (count_value == "userdata: NULL") then local ok, result, err = redis:set(conf, total_key, 1) if not ok or ok == false then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) end else local ok, result, err = redis:set(conf, total_key, tonumber(count) + 1) if not ok or ok == false then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) end end end function ApiRouterHandler:check_total_limit(conf, total_key) local ok, count, err = redis:get(conf, total_key) if err then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) return false, "http internal server error" end local count_value = tostring(count) if not count_value then return true, "0" end if (count_value ~= "userdata: NULL") then return true, count_value end return true, "0" end function ApiRouterHandler:check_apicall_limit(conf, count_key) local ok, count, err = redis:get(conf, count_key) if err then ngx.log(ngx.ERR, "[apirouter] access redis failed: ", tostring(err)) return false, "http internal server error" end local count_value = tostring(count) if not count_value then return true, "0" end if (count_value ~= "userdata: NULL") then return true, count_value end return true, "0" end function ApiRouterHandler:header_filter() ApiRouterHandler.super.header_filter(self) end function ApiRouterHandler:body_filter() ApiRouterHandler.super.body_filter(self) end function ApiRouterHandler:log() ApiRouterHandler.super.log(self) end return ApiRouterHandler
-- This file is part of the MAZE project -- Licensing information can be found in the LICENSE file -- (C) 2013 The MAZE project. All rights reserved. ------------------------------------------------------------------------------- local light_count = 0 local object_count = 0 local finish_spawned = false local keys_spawned = 0 local player = nil ------------------------------------------------------------------------------- function spawn_pillar(x, y) local pillar = scene.create("object") pillar.model = "pillar" pillar.position = vec3(x * 5, 0, y * 5) pillar.box = box(vec3(-0.75, 0.0, -0.75), vec3(1.5, 4.0, 1.5)) pillar.shadow_caster = true pillar.collider = true object_count = object_count + 1 end ------------------------------------------------------------------------------- function spawn_wall(x, y, o) local wall = scene.create("object") wall.model = "wall" wall.shadow_caster = true wall.collider = true if o then wall.position = vec3(x * 5, 0.0, y * 5 + 2.5) wall.rotation = vec3(0.0, 90.0, 0.0) wall.box = box(vec3(-0.5, 0.0, -2.5), vec3(1.0, 4.0, 5.0)) else wall.position = vec3(x * 5 + 2.5, 0.0, y * 5) wall.rotation = vec3(0.0, 0.0, 0.0) wall.box = box(vec3(-2.5, 0.0, -0.5), vec3(5.0, 4.0, 1.0)) end object_count = object_count + 1 end ------------------------------------------------------------------------------- function spawn_door(x, y, o) local door = scene.create("object") door.model = "gate" door.useable = true door.collider = true door.shadow_caster = true door.use_text = "Open" if math.floor(math.random() * 10) % 2 == 1 then local light = scene.create("light") light.type = "point" light.diffuse = vec3(0.88, 0.54, 0.13) light.specular = vec3(0.88, 0.34, 0.13) light.radius = 5.0 if o then light.position = vec3(x * 5 - 0.5, 2.0, y * 5 + 2.5) else light.position = vec3(x * 5 + 2.5, 2.0, y * 5 - 0.5) end light_count = light_count + 1 end local door_open = false if o then door.position = vec3(x * 5, 0.0, y * 5 + 1.5) door.rotation = vec3(0.0, 90.0, 0.0) door.box = box(vec3(-0.2, 0.0, 0.0), vec3(0.4, 2.3, 2.0)) else door.position = vec3(x * 5 + 3.5, 0.0, y * 5) door.rotation = vec3(0.0, 0.0, 0.0) door.box = box(vec3(-2.0, 0.0, -0.2), vec3(2.0, 2.3, 0.4)) end door.on_use = function () door.useable = false door.collider = false door:play_sound("gate") if o then door.position = vec3(x * 5, 0.0, y * 5 + 1.5) door.rotation = vec3(0.0, 0.0, 0.0) door.box = box(vec3(-2.0, 0.0, -0.2), vec3(2.0, 2.0, 0.4)) else door.position = vec3(x * 5 + 3.5, 0.0, y * 5) door.rotation = vec3(0.0, 90.0, 0.0) door.box = box(vec3(-0.2, 0.0, 0.0), vec3(0.4, 2.0, 2.0)) end end local wall = scene.create("object") wall.model = "wall_gate" wall.shadow_caster = true wall.collider = true if o then wall.position = vec3(x * 5, 0.0, y * 5 + 2.5) wall.rotation = vec3(0.0, 90.0, 0.0) wall.box = box(vec3(-1.0, 0.0, -2.5), vec3(2.0, 4.0, 5.0)) else wall.position = vec3(x * 5 + 2.5, 0.0, y * 5) wall.rotation = vec3(0.0, 0.0, 0.0) wall.box = box(vec3(-2.5, 0.0, -1.0), vec3(5.0, 4.0, 2.0)) end object_count = object_count + 2 end ------------------------------------------------------------------------------- function spawn_finish(x, y) if finish_spawned then return end x = 0 y = 0 finish_spawned = true local finish = scene.create("object") finish.model = "finish" finish.shadow_caster = true finish.collider = true finish.box = box(vec3(-0.4, 0.0, -0.4), vec3(1.0, 1.0, 1.0)) finish.position = vec3(x * 5.0 + 2.5, 0.0, y * 5.0 + 2.5) finish.useable = true finish.use_text = "Next Level" finish.on_use = function () scene.delete() on_world_init() player.position = vec3(2.5, 3.0, 2.5) player.keys = 0 end local light = scene.create("light") light.type = "spot" light.diffuse = vec3(1.0, 1.0, 1.0) light.specular = vec3(1.0, 1.0, 1.0) light.direction = vec3(0.0, -1.0, 0.0) light.radius = 5.0 light.shadow_caster = true light.position = vec3(x * 5 + 2.5, 3.25, y * 5 + 2.5) end ------------------------------------------------------------------------------- function on_world_init() player = scene.get("player", "player") finish_spawned = false object_count = 0 light_count = 0 -- Place walls for x = 0, 20 do for y = 0, 20 do local id = math.floor(math.random() * 100) % 5 if (x == 0 or x == 20 or id == 0) and y < 20 then spawn_wall(x, y, true) end if (y == 0 or y == 20 or id == 0) and x < 20 then spawn_wall(x, y, false) end if (x ~= 0 and x ~= 20 and id == 1) and y < 20 then spawn_door(x, y, true) end if (y ~= 0 and y ~= 20 and id == 1) and x < 20 then spawn_door(x, y, false) end object_count = object_count + 1 end end -- Place powerups for x = 0, 19 do for y = 0, 19 do local id = math.floor(math.random() * 100) % 3 if id == 1 then local coin = scene.create("object") coin.model = "coin" coin.position = vec3(x * 5 + 2.5, 1.0, y * 5 + 2.5) coin.box = box(vec3(-0.5, -0.5, -0.5), vec3(1.0, 1.0, 1.0)) coin.shadow_caster = true coin.pickable = true coin.on_pick = function (ent) player.coins = player.coins + 1 player:play_sound('coin') coin:delete() if player.coins >= (keys_spawned + 1) * 10 then local kx = math.floor(math.random() * 100) % 20 local ky = math.floor(math.random() * 100) % 20 local key = scene.create("object") local light = scene.create("light") keys_spawned = keys_spawned + 1 key.model = "key" key.position = vec3(kx * 5 + 2.5, 1.0, ky * 5 + 2.5) key.box = box(vec3(-0.25, -0.25, -0.25), vec3(0.5, 0.5, 0.5)) key.shadow_caster = true key.pickable = true light.type = "point" light.diffuse = vec3(1.0, 1.0, 1.0) light.specular = vec3(0.88, 0.34, 0.13) light.direction = vec3(0.0, -1.0, 0.0) light.radius = 2.0 light.position = vec3(kx * 5 + 2.75, 1.25, ky * 5 + 2.75) key.on_pick = function (ent) player.keys = player.keys + 1 player:play_sound('coin') key:delete() light:delete() if player.keys >= 3 then spawn_finish( math.floor(math.random() * 100) % 20, math.floor(math.random() * 100) % 20 ) end end key.on_update = function (t, dt) key.rotation = vec3(0.0, t / 15.0 + (x * 20 + y), 0.0) end end end coin.on_update = function (t, dt) coin.rotation = vec3(0.0, t / 15.0 + (x * 20 + y), 0.0) end end end end -- Plasty mobs for x = 0, 1 do local mob = scene.create("char", "mob_" .. x) mob.model = "monster" mob.shadow_caster = true mob.position = vec3(2.5, 0.0, 2.5) mob.box = box(vec3(-1.0, 0.0, -1.0), vec3(2.0, 2.5, 2.0)) end -- Place pillars on corners for x = 0, 20 do for y = 0, 20 do spawn_pillar(x, y) end end -- Print statistics print("Object count: " .. object_count) print("Light count: " .. light_count) end function on_world_update(t, dt) end
--[[JungleTrainRadio by Foul Play | Version 1.4.1]] --[[ function() end --A function for() do --A loop while() do --A loop if then --A statment else --A condiction elseif then --A condiction a = nil --A var a ~= b -- Relational Operator a == b --Relational Operator a > b -- Relational Operator a < b -- Relational Operator a => b -- Relational Operator a <= b -- Relational Operator a + b = c --Add maths a - b = c --Subtract maths a / b = c --Divide maths a * b = c --Multiply maths a = {} --A Table ]] AddCSLuaFile() DEFINE_BASECLASS( "base_anim" ) cleanup.Register( "JungleTrain Radio" ) --Registers for the entity to be cleaned up by Admins and clients. ENT.PrintName = "JungleTrain Radio" --The name of the entity in the Spawn Menu. ENT.Author = "Nathan Binks" --The author of the entity in the Spawn Menu. ENT.Information = "A spawnable internet radio entity." --Information about the entity in the Spawn Menu. ENT.Category = "JungleTrain Radio" --The Category where its going to be stored in the Spawn Menu. ENT.Spawnable = true --Makes it Spawnable by Clients. ENT.AdminOnly = false --Make it so non-admins can spawn it in. ENT.RenderGroup = RENDERGROUP_TRANSLUCENT --TODO: Add information about what it does. local a = { a = nil, b = nil } --Table for channels and radios. local b = "http://jungletrain.net/128kbps.pls" --URL for the station. CreateClientConVar( "jtr_enable", "1", true, false, "Enable or disable JungleTrain radios stream. DEFAULT 1" ) --Option to pause the stream. CreateClientConVar( "jtr_debug", "0", false, false, "Enable debugging for JungleTrainRadio. DEFAULT 0" ) --Option to enabled the debugging. CreateClientConVar( "jtr_volume", "100", true, false, "Change the volume of the streams for JungleTrain radios. DEFAULT 100" ) --Option to change volume of the stream. local function jtrCreateSound( ent ) --[[Since 'sound.PlayURL' is client side only, we use a if statment to make sure it isn't run on the server.]] if ( CLIENT ) then if ( IsValid( ent ) ) then sound.PlayURL( b, "3d", function( station ) --If valid then add the IGModAudioChannel to the table. if ( IsValid( station ) ) then if ( a[ ent:EntIndex() ] == nil ) then a[ ent:EntIndex() ] = { a = ent, b = station } -- Add the station to the 'b' value. if ( GetConVar( "jtr_debug" ):GetInt() >= 1 ) then print( "jtrCreateSound() | " .. ent:EntIndex() .. " | " .. ent:GetClass() .. " | Created Channel | " .. tostring( a[ ent:EntIndex() ].b ) ) --Debugging. PrintTable( a ) --Debugging. end end else LocalPlayer():ChatPrint( "Invalid URL!" ) --Make sure that the URL is valid. end end ) end end end local function jtrManageSound() --[[Since 'sound.PlayURL' is client side only, we use a if statment to make sure it isn't run on the server.]] if ( CLIENT ) then --Run through the table. for k, v in pairs( a ) do --Make sure that both the entity and stream is valid. if ( v.a:IsValid() and v.b:IsValid() ) then --[[If the player is 750 hammer units away then pause the stream to make sure the player doesn't hear it across the map and pause the steam if "jtr_enable" is set to 0. Set the volume to whatever "jtr_volume" is set to, Clamp it and divide by 100 to get decimal numbers because of SetVolume() only goes from 0 to 1.]] if ( v.a:GetPos():Distance( LocalPlayer():GetPos() ) >= 750 and GetConVar( "jtr_enable" ):GetInt() >= 1 ) then v.b:Pause() if ( GetConVar( "jtr_debug" ):GetInt() >= 1 ) then print( "jtrManageSound() | ".. v.a:EntIndex() .. v.a:GetClass() .. tostring( v.b ) .." | Line 76-81 | I'm Paused!" ) --Debugging end elseif ( v.a:GetPos():Distance( LocalPlayer():GetPos() ) < 750 and GetConVar( "jtr_enable" ):GetInt() >= 1 ) then v.b:Play() v.b:SetVolume( math.Clamp( GetConVar( "jtr_volume" ):GetInt(), 0, 100 ) / 100 ) elseif ( GetConVar( "jtr_enable" ):GetInt() <= 1 ) then v.b:Pause() if ( GetConVar( "jtr_debug" ):GetInt() >= 1 ) then print( "jtrManageSound() | ".. v.a:EntIndex() .. v.a:GetClass() .. tostring( v.b ) .." | Line 83-88 | I'm Paused!" ) --Debugging end end v.b:SetPos( v.a:GetPos() ) --Set the stream position in the world to the radio's position in the world. --If the entity is valid but the stream isn't then make the key in the table nil. elseif ( v.a:IsValid() and not v.b:IsValid() ) then if ( GetConVar( "jtr_debug" ):GetInt() >= 1 ) then PrintTable( a ) print( "jtrManageSound() | Line 101-111 | stream(s) isn't valid!" ) --Debugging end v.a:Remove() a[ k ] = nil PrintTable( a ) --If the entity isn't valid but the stream is valid then stop the stream and make the key nil. elseif ( not v.a:IsValid() and v.b:IsValid() ) then if ( GetConVar( "jtr_debug" ):GetInt() >= 1 ) then PrintTable( a ) print( "jtrManageSound() | Line 112-121 | radio(s) isn't valid!" ) --Debugging end v.b:Stop() a[ k ] = nil PrintTable( a ) end end end end timer.Create( "jtrManageSound", .1, 0, function() jtrManageSound() end ) function ENT:SetupDataTables() self:NetworkVar( "Int", 0, "price" ) --The price of the entity in the F4 Menu in DarkRP. self:NetworkVar( "Entity", 1, "owning_ent" ) --Sets the owner of the entity when spawned by clients to them. end function ENT:SpawnFunction( ply, tr, ClassName ) if ( not tr.Hit ) then return end --If trace doesn't hit something then don't spawn. local SpawnPos = tr.HitPos + tr.HitNormal * 16 --Spawn in the air. local ent = ents.Create( ClassName ) --Create the entity. ent:SetPos( SpawnPos ) --Spawn it where you are looking at. ent:Spawn() --Spawn the entity. ent:Activate() --Activate the entity. ent:PhysWake() --Makes the entity fall to the ground. ply:AddCleanup( "JungleTrain Radio", ent ) return ent --Return the entity. end function ENT:Initialize() self:SetModel( "models/props_lab/citizenradio.mdl" ) --Set the model ingame. --Enables Physics on Client. self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) jtrCreateSound( self ) --Run the function to create the stream. if ( SERVER ) then self:PhysicsInit( SOLID_VPHYSICS ) --Only use this Physics on server side or the Physgun beam will fuck up. end end --Since we won't be using the entity for anything yet, make Use return nothing and do nothing. function ENT:Use() return end --Call this function when the entity gets removed. function ENT:OnRemove() end --This is for incase the console commands are set to low or high. function ENT:Think() end --https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/entities/sent_ball.lua#L149 if ( SERVER ) then return end -- We do NOT want to execute anything below in this FILE on SERVER --Test function (WIP) hook.Add("PopulateToolMenu", "JungleTrainRadioOptions", function() --Local function for adding gui stuff to the spawn menu. local function Settings(pnl) --[[This shouldn't be called but I haven't found a way for adding panels to the spawn menu anyother way.]] local panel = pnl:AddControl( "CheckBox", { Label = "Enable", Command = "jtr_enable" } ) panel:SetValue( GetConVarNumber( "jtr_enable" ) ) --Set the value. --[[This shouldn't be called but I haven't found a way for adding panels to the spawn menu anyother way.]] local panel = pnl:AddControl( "Slider", { Label = "Volume", Type = "Integer", Command = "jtr_volume", Min = "0", Max = "100" } ) panel:SetValue( GetConVarNumber( "jtr_volume" ) ) --Set the value. --[[This shouldn't be called but I haven't found a way for adding panels to the spawn menu anyother way.]] local panel = pnl:AddControl( "CheckBox", { Label = "Debug", Command = "jtr_debug" } ) panel:SetValue( GetConVarNumber( "jtr_debug" ) ) --Set the value. end spawnmenu.AddToolMenuOption("Options", "JungleTrain Radio", "JungleTrain Radio", "Settings", "", "", Settings) end) language.Add( "Cleanup_JungleTrain Radio", "JungleTrain Radios" ) --Sets what it says in the cleanup menu in the Spawn Menu. language.Add( "Cleaned_JungleTrain Radio", "Cleaned up JungleTrain Radios" ) --Sets what it says when the entity gets cleaned. function ENT:Draw() self:DrawModel() --Draw the model. local logo = Material("radio_jtr/jungletrain_net_final_wb_60.png") --The load for the radio station. local Pos = self:GetPos() --Get the position of the entity. local Ang = self:GetAngles() --Get the angles of the entity. Ang:RotateAroundAxis(Ang:Up(), 90) --Rotate Around Axis Z. Ang:RotateAroundAxis(Ang:Forward(), 90) --Rotate Around Axis Y. --Display the logo on the entity. --If the local player is less then 750 Hammer Units away then display the logo. if (self:GetPos():Distance(LocalPlayer():GetPos())) <= 750 then --Start the cam. cam.Start3D2D(Pos + Ang:Up() * 8.6 + Ang:Right() * -21.6, Ang, 0.11) surface.SetMaterial(logo) --Set the material to the logo. surface.SetDrawColor(Color(255, 255, 255, 255)) --Set the colour of the logo. surface.DrawTexturedRect(-55, 57, 158, 35) --Draw the logo. --End the cam. cam.End3D2D() end end
#!/usr/bin/env tarantool box.cfg{ listen = 3302, wal_mode = 'none' } -- Add test runner library location to lua search path package.cpath = 'target/debug/?.so;' .. package.cpath -- Prepare config json = require('json') cfg = json.encode({bench = true}) -- Run tests local test_main = require('libtarantool_module_test_runner') local exit_code = test_main(cfg) os.exit(exit_code)
local ReactTypeOfWork = require "ReactTypeOfWork" local HostComponent = ReactTypeOfWork.HostComponent local function getParent(inst) repeat inst = inst["return"] -- TODO: If this is a HostRoot we might want to bail out. -- That is depending on if we want nested subtrees (layers) to bubble -- events to their parent. We could also go through parentNode on the -- host node but that wouldn't work for React Native and doesn't let us -- do the portal feature. until not (inst and inst.tag ~= HostComponent) if inst then return inst end return nil end -- Return the lowest common ancestor of A and B, or null if they are in -- different trees. local function getLowestCommonAncestor(instA, instB) local depthA = 0 local tempA = instA while tempA do depthA = depthA + 1 tempA = getParent(tempA) end local depthB = 0 local tempB = instB while tempB do depthB = depthB + 1 tempB = getParent(tempB) end -- If A is deeper, crawl up while depthA - depthB > 0 do instA = getParent(instA) depthA = depthA - 1 end -- If B is deeper, crawl up while depthB - depthA > 0 do instB = getParent(instB) depthB = depthB - 1 end -- Walk in lockstep until we find a match local depth = depthA while depth > 0 do if instA == instB or instA == instB.alternate then return instA end instA = getParent(instA) instB = getParent(instB) end return nil end -- Return if A is an ancestor of B local function isAncestor(instA, instB) while instB do if instA == instB or instA == instB.alternate then return true end instB = getParent(instB) end return false end -- Return the parent instance of the passed-in instance local function getParentInstance(inst) return getParent(inst) end -- Simulates the traversal of a two-phase, capture/bubble event dispatch local function traverseTwoPhase(inst, fn, arg) local path = {} while inst do table.insert(path, inst) inst = getParent(inst) end local i = #path while i > 0 do fn(path[i], "captured", arg) i = i - 1 end i = 1 while i <= path.length do fn(path[i], "bubbled", arg) i = i + 1 end end -- Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that -- should would receive a `mouseEnter` or `mouseLeave` event. -- -- Does not invoke the callback on the nearest common ancestor because nothing -- "entered" or "left" that element. local function traverseEnterLeave(from, to, fn, argFrom, argTo) local common = from and to and getLowestCommonAncestor(from, to) or nil local pathFrom = {} while true do if not from then break end if from == common then break end local alternate = from.alternate if alternate ~= nil and alternate == common then break end table.insert(pathFrom, from) from = getParent(from) end local pathTo = {} while true do if not to then break end if to == common then break end local alternate = to.alternate if alternate ~= nil and alternate == common then break end table.insert(pathTo, to) to = getParent(to) end for i, item in ipairs(pathFrom) do fn(item, "bubbled", argFrom) end local i = #pathTo while i > 0 do fn(pathTo[i], "captured", argTo) i = i - 1 end end return { traverseEnterLeave = traverseEnterLeave, getLowestCommonAncestor = getLowestCommonAncestor, isAncestor = isAncestor, getParentInstance = getParentInstance, traverseTwoPhase = traverseTwoPhase }
object_tangible_storyteller_prop_pr_ch9_exar_kun_column_complete = object_tangible_storyteller_prop_shared_pr_ch9_exar_kun_column_complete:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_ch9_exar_kun_column_complete, "object/tangible/storyteller/prop/pr_ch9_exar_kun_column_complete.iff")
[ [ "[-1096.6074 -8376.4287 -11889.499]", "[-1029.2598 -8300.9541 -11889.5615]", "[-719.4922 -7892.1626 -11889.5889]", "[-442.0692 -7460.3481 -11889.5996]", "[-139.6663 -7042.0884 -11889.6768]", "[194.9994 -6649.8872 -11889.6387]", "[553.7519 -6279.3921 -11889.6338]", "[921.8335 -5920.5068 -11889.5361]", "[1291.8401 -5563.2876 -11889.4727]", "[1661.0477 -5207.6382 -11889.3369]", "[2036.4531 -4844.3442 -11889.583]", "[2411.6409 -4482.6802 -11889.4434]", "[2786.2896 -4121.9272 -11889.46]", "[3159.7939 -3760.6028 -11889.4639]", "[3532.5203 -3401.2236 -11889.3818]", "[3902.6375 -3043.4844 -11889.4385]", "[4281.7749 -2677.8044 -11889.5107]", "[4658.5176 -2313.4211 -11889.46]", "[5032.1685 -1951.6207 -11889.4053]", "[5403.8379 -1593.7009 -11889.4736]", "[5783.1982 -1227.0143 -11889.5254]", "[6156.4351 -867.1202 -11889.2607]", "[6537.1025 -499.2715 -11889.2842]", "[6913.0356 -136.9785 -11889.249]", "[7282.8604 220.4503 -11889.3086]", "[7659.8682 585.9918 -11889.2363]", "[8032.4678 944.4391 -11889.2363]", "[8410.1318 1309.1621 -11884.7559]", "[8779.5498 1665.0957 -11880.1123]", "[9150.4404 2023.3118 -11871.1338]", "[9524.168 2384.2427 -11862.0078]", "[9898.6992 2745.989 -11848.3154]", "[10273.3076 3108.2769 -11834.1895]", "[10645.8135 3468.054 -11816.2773]", "[11016.8389 3825.4543 -11797.8086]", "[11397.4805 4193.3755 -11774.6973]", "[11772.9697 4556.1465 -11751.1113]", "[12142.3213 4912.8115 -11724.1699]", "[12516.0771 5273.7944 -11696.1318]", "[12891.7314 5636.7017 -11664.041]", "[13266.2461 6000.9707 -11631.3223]", "[13614.4736 6379.9429 -11600.9248]", "[13936.0928 6791.7666 -11569.6318]", "[14216.1348 7232.8291 -11538.6924]", "[14438.5361 7698.7153 -11508.8486]", "[14590.7246 8190.7617 -11481.083]", "[14661.1133 8701.0195 -11455.8906]", "[14665.1592 9212.8291 -11429.3184]", "[14666.376 9728.374 -11402.0518]", "[14666.7402 10239.7725 -11376.5244]", "[14667.6348 10752.04 -11359.9473]", "[14667.7354 11271.7188 -11352.0361]", "[14663.5918 11792.5146 -11351.3926]", "[14625.9033 12308.1699 -11350.9854]", "[14545.666 12824.373 -11352.2373]", "[14411.4863 13334.7178 -11352.1064]", "[14219.4805 13811.0303 -11351.626]", "[13958.999 14256.6279 -11351.4824]", "[13627.9834 14653.6768 -11351.2295]", "[13241.8047 15005.9756 -11351.8721]", "[12826.4512 15331.3887 -11352.0283]", "[12393.2363 15606.9375 -11351.9707]", "[11928.582 15833.9756 -11351.4707]", "[11433.2705 15994.9033 -11351.6016]", "[10915.8193 16074.5928 -11351.4619]", "[10389.6426 16080.9932 -11351.5635]", "[9875.2158 16080.9258 -11351.5166]", "[9351.7646 16081.1045 -11351.5508]", "[8818.8389 16080.207 -11351.5537]", "[8299.3291 16080.3857 -11351.5166]", "[7770.8262 16080.4424 -11351.498]", "[7256.9673 16080.4668 -11351.4883]", "[6734.5835 16080.4814 -11351.4844]", "[6203.9365 16080.6924 -11351.4219]", "[5688.9302 16081.4766 -11351.4053]", "[5166.21 16080.2793 -11351.4971]", "[4635.5249 16081.2529 -11351.4541]", "[4122.2339 16081.1484 -11351.4229]", "[3601.5227 16081.1357 -11351.4033]", "[3073.0488 16081.1387 -11351.3926]", "[2537.2075 16080.9805 -11351.2461]", "[1998.9559 16080.0928 -11343.3545]", "[1486.5038 16080.665 -11326.5977]", "[950.9434 16080.8604 -11299.9287]", "[419.6567 16080.5771 -11272.0576]", "[-107.7735 16081.2686 -11244.4609]", "[-631.209 16080.3301 -11217.0156]", "[-1150.8995 16081.0771 -11189.7539]", "[-1666.5239 16081.0996 -11162.7158]", "[-2178.2473 16081.0537 -11135.8906]", "[-2711.0867 16081.0361 -11107.9629]", "[-3242.0066 16081.0234 -11085.999]", "[-3771.8267 16081.1289 -11071.8682]", "[-4292.9175 16080.625 -11068.417]", "[-4823.5791 16080.5723 -11063.7412]", "[-5359.729 16080.5586 -11058.96]", "[-5876.7505 16080.624 -11054.5039]", "[-6401.1064 16077.752 -11051.4346]", "[-6925.0986 16047.1895 -11052.6328]", "[-7450.7554 15973.7109 -11052.1191]", "[-7971.605 15844.1182 -11052.3379]", "[-8450.1631 15661.0215 -11052.3535]", "[-8900.1348 15409.9043 -11052.1006]", "[-9303.2158 15088.2217 -11051.4736]", "[-9657.4795 14707.7168 -11052.5391]", "[-9982.8809 14299.2529 -11051.4297]", "[-10273.3369 13861.75 -11052.3926]", "[-10511.8252 13388.5723 -11052.6855]", "[-10682.165 12885.7734 -11052.4766]", "[-10769.9668 12360.5049 -11051.751]", "[-10778.0127 11824.7031 -11050.874]", "[-10778.2627 11311.0557 -11050.8076]", "[-10777.8213 10790.8721 -11050.8164]", "[-10778.415 10263.5771 -11051.1064]", "[-10777.6709 9729.623 -11051.167]", "[-10777.4111 9190.126 -11051.2813]", "[-10777.7109 8674.8818 -11051.2324]", "[-10788.0371 7986.4717 -11064.7578]", "[-10786.6719 7472.7407 -11064.7637]", "[-10784.6719 6959.2954 -11064.7529]", "[-10785.3545 6446.7212 -11064.9678]" ], [ "[-1301.0675 -822.9005 -14471.2686]", "[-1021.6826 -391.4329 -14471.2568]", "[-725.9218 34.8555 -14471.2588]", "[-400.6446 433.0515 -14471.3008]", "[-44.915 810.4982 -14471.1699]", "[322.0415 1170.218 -14471.1475]", "[694.6635 1530.0837 -14471.0762]", "[1065.2837 1887.1775 -14471.0166]", "[1435.3472 2244.9009 -14471.2734]", "[1807.1578 2603.8567 -14471.1318]", "[2182.0835 2966.3303 -14471.0615]", "[2552.7441 3323.2998 -14471.1191]", "[2925.2729 3683.332 -14471.1172]", "[3299.6252 4045.561 -14471.1201]", "[3676.4968 4409.2441 -14471.0674]", "[4053.7795 4773.2539 -14471.0947]", "[4422.1655 5129.54 -14471.0801]", "[4791.2124 5485.8037 -14471.1211]", "[5160.2148 5842.2144 -14471.0332]", "[5529.3267 6197.6558 -14471.1162]", "[5906.5151 6563.311 -14471.1279]", "[6283.5366 6926.0522 -14471.1309]", "[6657.9629 7287.7354 -14471.1387]", "[7030.1689 7648.0381 -14471.1172]", "[7400.5015 8006.0566 -14471.1318]", "[7780.0674 8371.4209 -14471.1299]", "[8156.4014 8734.8213 -14471.1172]", "[8528.7666 9095.6074 -14471.1152]", "[8837.5127 9393.2695 -14471.0205]" ], [ "[8592.4248 9523.374 -14471.0205]", "[8516.7344 9450.7559 -14471.0215]", "[8148.042 9093.9004 -14471.0898]", "[7774.9541 8734.5547 -14471.0391]", "[7403.061 8375.7529 -14471.0977]", "[7034.4248 8018.3809 -14471.041]", "[6661.5791 7658.9233 -14471.0615]", "[6290.6807 7300.749 -14471.043]", "[5921.7002 6945.0464 -14471.0947]", "[5552.6787 6587.3569 -14471.0449]", "[5180.2192 6228.7358 -14471.0664]", "[4812.0034 5872.9287 -14471.0518]", "[4442.0552 5516.2188 -14471.0732]", "[4071.7275 5158.3193 -14471.0488]", "[3700.8965 4799.6558 -14471.0176]", "[3330.261 4441.1987 -14471.0527]", "[2959.4207 4083.9268 -14471.1299]", "[2590.4021 3727.5632 -14471.0586]", "[2216.0178 3366.0837 -14471.1543]", "[1844.9911 3006.8352 -14471.0488]", "[1468.342 2644.7974 -14471.1152]", "[1098.7977 2287.1895 -14471.248]", "[727.6743 1927.9264 -14471.1377]", "[355.6832 1569.4531 -14471.1084]", "[-18.4495 1209.657 -14471.2109]", "[-398.3868 857.1781 -14471.1885]", "[-797.5797 524.4246 -14471.2305]", "[-1220.7805 225.0996 -14471.3369]", "[-1663.9082 -42.981 -14471.2764]", "[-1885.85 -191.3851 -14471.2764]" ], [ "[-1374.9716 -7361.1548 -11902.6797]", "[-1229.1376 -7259.2256 -11902.6797]", "[-773.1816 -7006.2974 -11902.3945]", "[-335.9274 -6715.9038 -11902.4707]", "[62.5817 -6390.4316 -11902.7412]", "[445.9476 -6034.1382 -11902.541]", "[817.4315 -5672.0625 -11902.6182]", "[1192.9025 -5305.8784 -11902.043]", "[1567.8807 -4943.1392 -11902.5977]", "[1942.5303 -4583.979 -11902.6992]", "[2314.0808 -4224.0947 -11902.7217]", "[2684.0027 -3864.1533 -11902.585]", "[3054.7217 -3506.3901 -11902.7236]", "[3425.9871 -3150.6135 -11902.6885]", "[3794.5144 -2793.4685 -11902.5967]", "[4163.0044 -2437.6538 -11902.665]", "[4541.0952 -2072.1199 -11902.7305]", "[4918.6733 -1708.0316 -11902.6816]", "[5295.2275 -1344.8105 -11902.5654]", "[5669.9072 -981.1694 -11902.7109]", "[6044.499 -619.9952 -11902.168]", "[6418.1133 -260.515 -11902.4912]", "[6789.4683 99.0142 -11902.374]", "[7160.4561 457.3929 -11902.4971]", "[7530.1011 815.5298 -11902.5127]", "[7900.3809 1171.4904 -11902.5879]", "[8279.3174 1536.2766 -11898.0127]", "[8654.4609 1897.0938 -11892.9453]", "[9031.335 2262.9565 -11883.3711]", "[9403.7021 2622.5881 -11873.9307]", "[9782.3184 2986.7551 -11859.8994]", "[10155.9189 3346.7815 -11845.8398]", "[10530.9492 3711.4556 -11826.8389]", "[10900.2861 4068.5874 -11808.2314]", "[11268.7979 4424.5781 -11785.2627]", "[11643.4941 4785.8779 -11761.8154]", "[12020.376 5149.6016 -11733.6357]", "[12397.4453 5514.0176 -11705.4209]", "[12751.8926 5895.6392 -11672.752]", "[13067.5059 6303.2759 -11641.5449]", "[13344.9238 6747.6372 -11610.3174]", "[13563.292 7218.605 -11580.8271]", "[13709.9326 7713.103 -11553.1211]", "[13773.9219 8223.5684 -11528.6914]", "[13759.7988 8737.2588 -11502.9785]", "[13755.2002 9248.5635 -11475.2617]", "[13756.75 9773.5947 -11448.458]", "[13757.2441 10288.041 -11432.3096]", "[13758.1689 10813.9893 -11425.5615]", "[13755.957 11330.6152 -11426.4395]", "[13720.0166 11854.4395 -11427.4082]", "[13636.8779 12363.7422 -11427.4902]", "[13501.9922 12862.3145 -11427.3623]", "[13303.0391 13347.3008 -11427.5605]", "[13033.5801 13795.1221 -11427.3887]", "[12694.2803 14188.7461 -11427.2559]", "[12305.9336 14527.8711 -11427.6016]", "[11887.9365 14849.9365 -11427.458]", "[11443.749 15131.6563 -11427.4893]", "[10970.5098 15357.5322 -11427.4531]", "[10472.2734 15514.1582 -11427.4092]", "[9957.5215 15585.1328 -11427.418]", "[9441.5127 15577.3398 -11422.2256]", "[8914.5293 15570.7783 -11411.4521]", "[8391.9053 15570.4961 -11402.083]", "[7874.9985 15568.8652 -11393.0547]", "[7348.8027 15570.5459 -11383.7021]", "[6828.793 15569.0859 -11374.6387]", "[6315.415 15570.1855 -11368.8379]", "[5790.7651 15571.3213 -11364.8047]", "[5265.7725 15570.5791 -11363.8174]", "[4751.9937 15570.1016 -11364.4717]", "[4231.7568 15570.8164 -11364.5391]", "[3704.3679 15570.2109 -11364.5322]", "[3185.6091 15570.543 -11364.5713]", "[2659.708 15570.5703 -11364.5654]", "[2144.6448 15570.123 -11358.9531]", "[1629.2306 15569.6719 -11342.7725]", "[1106.1035 15570.084 -11316.6729]", "[584.8401 15570.333 -11287.8125]", "[69.9473 15570.2852 -11260.7432]", "[-448.5496 15569.4512 -11233.4561]", "[-963.8104 15570.293 -11206.5215]", "[-1476.5673 15569.6514 -11179.6582]", "[-2001.6868 15569.7881 -11152.1367]", "[-2525.0447 15569.8418 -11124.7021]", "[-3049.3806 15569.3379 -11099.1299]", "[-3564.2976 15570.4004 -11085.1191]", "[-4076.7048 15570.1992 -11079.8936]", "[-4592.1128 15569.5107 -11077.0303]", "[-5111.7432 15569.5068 -11072.1475]", "[-5625.4854 15569.4697 -11067.9121]", "[-6148.4331 15570.1465 -11063.2021]", "[-6665.2041 15546.8418 -11063.8711]", "[-7173.9917 15477.3262 -11064.5293]", "[-7685.9897 15354.5205 -11064.75]", "[-8177.2686 15171.377 -11064.6045]", "[-8635.0381 14921.6221 -11064.2646]", "[-9043.0811 14602.9482 -11064.3477]", "[-9391.0488 14225.8809 -11064.2998]", "[-9717.3916 13819.8145 -11064.5371]", "[-10010.043 13383.1328 -11064.373]", "[-10251.5313 12919.7295 -11064.585]", "[-10426.9365 12432.9902 -11064.6553]", "[-10525.9375 11923.3643 -11064.4258]", "[-10535.2158 11403.377 -11064.3184]", "[-10523.6816 10887.7285 -11064.7031]", "[-10523.3613 10372.9121 -11064.6543]", "[-10521.665 9857.8447 -11064.5996]", "[-10523.5342 9342.7725 -11064.6045]", "[-10522.4609 8829.9336 -11064.583]", "[-10523.3252 8645.9307 -11064.623]", "[-10520.3936 7978.2378 -11064.9404]", "[-10520.7324 7463.4604 -11064.9805]", "[-10520.0146 6950.3149 -11064.9658]", "[-10518.8457 6428.3921 -11065.0742]" ], [ "[-4753.7988 -15202.8506 -13558.3535]", "[-4855.9429 -15192.8174 -13558.2734]", "[-5358.6099 -15093.4785 -13558.2305]", "[-5861.7285 -14975.9707 -13558.5996]", "[-6367.5361 -14869.0117 -13558.3115]", "[-6871.7178 -14763.7119 -13558.6602]", "[-7376.3931 -14653.8516 -13558.6289]", "[-7880.7422 -14545.9766 -13558.5049]", "[-8160.5547 -14499.001 -13558.3779]" ], [ "[1944.7765 -10077.5176 -12514.3955]", "[2044.8452 -10070.4531 -12514.376]", "[2551.4492 -9982.1318 -12514.5752]", "[3052.0659 -9858.8516 -12514.502]", "[3558.6885 -9763.1895 -12514.5889]", "[4073.7231 -9726.4287 -12514.4883]", "[4586.1787 -9733.8428 -12514.1475]", "[5104.6689 -9738.9063 -12514.4834]", "[5620.7085 -9737.3965 -12514.4004]", "[6136.2026 -9738.4834 -12514.4746]", "[6653.9272 -9738.0117 -12514.0596]", "[7170.2329 -9734.9941 -12514.4502]", "[7679.4673 -9681.8438 -12514.2285]", "[8181.2993 -9578.1475 -12514.5352]", "[8682.1855 -9459.5215 -12514.5752]", "[9025.2314 -9398.6973 -12514.4824]" ], [ "[-15536.9844 -6926.3198 -9837.0508]", "[-15527.6826 -7026.5249 -9837.293]", "[-15431.0273 -7531.2861 -9836.9658]", "[-15306.4668 -8029.7339 -9836.7832]", "[-15195.6016 -8532.7959 -9836.8672]", "[-15083.4746 -9033.8164 -9836.8369]", "[-14972.5156 -9535.3975 -9837.0879]", "[-14870.3027 -10037.667 -9837.3408]", "[-14866.1689 -10066.0703 -9837.1895]" ], [ "[7752.8647 9230.459 -14474.2275]", "[7679.8511 9161.083 -14474.0732]", "[7307.1348 8801.1445 -14474.0615]", "[6933.9102 8440.7666 -14474.082]", "[6556.4722 8076.3105 -14474.0723]", "[6185.9346 7717.5059 -14474.1787]", "[5812.2603 7356.8184 -14474.1455]", "[5436.9614 6995.3062 -14473.8057]", "[5067.9063 6638.5938 -14474.1299]", "[4696.7612 6280.3013 -14474.127]", "[4326.2207 5922.5425 -14474.1172]", "[3944.6267 5554.1533 -14474.1064]", "[3565.5571 5187.98 -14474.1221]", "[3196.8188 4830.4922 -14474.1318]", "[2827.1201 4474.8779 -14474.2041]", "[2458.2856 4119.7598 -14474.0771]", "[2077.9758 3750.908 -14474.2041]", "[1697.2311 3383.782 -14474.1416]", "[1317.5023 3016.8867 -14474.1328]", "[938.2512 2650.7253 -14474.1328]", "[558.6698 2286.1797 -14474.1445]", "[181.413 1919.5269 -14474.2949]", "[-199.0461 1553.9447 -14474.1543]", "[-580.1202 1185.9521 -14474.4727]", "[-948.2872 828.4092 -14474.291]", "[-1319.9756 469.142 -14474.5078]", "[-1699.3237 105.5238 -14474.2324]", "[-2071.7026 -255.1464 -14473.791]", "[-2446.4856 -616.7551 -14474.0244]", "[-2828.1626 -984.2014 -14474.8467]", "[-3204.3784 -1349.9519 -14474.4463]", "[-3585.5854 -1716.1904 -14474.9482]", "[-3965.3811 -2083.042 -14474.8379]", "[-4344.4292 -2449.2959 -14474.7227]", "[-4722.7119 -2815.551 -14474.9004]", "[-5101.0161 -3180.8259 -14474.832]", "[-5479.3013 -3545.2451 -14474.9707]", "[-5856.1401 -3910.1687 -14474.6426]", "[-6233.231 -4273.8892 -14474.8877]", "[-6609.6909 -4637.2275 -14474.7305]", "[-6985.5703 -5000.0254 -14474.9326]", "[-7360.791 -5362.2817 -14474.8203]", "[-7735.2715 -5724.0723 -14474.6309]", "[-8109.3188 -6085.3164 -14474.6875]", "[-8482.4834 -6446.5996 -14474.8486]", "[-8855.8105 -6806.9268 -14475.2949]", "[-9228.8467 -7166.5952 -14475.1338]", "[-9600.6934 -7526.7383 -14475.2139]", "[-9972.1621 -7886.3218 -14475.2266]", "[-10326.3652 -8261.1035 -14475.1182]", "[-10644.71 -8665.6211 -14475.1016]", "[-10919.1221 -9099.9424 -14475.3711]", "[-11153.8828 -9579.7383 -14474.7422]", "[-11316.4268 -10087.2842 -14475.2705]", "[-11391.791 -10613.0488 -14474.8945]", "[-11382.1826 -11141.6475 -14474.707]", "[-11377.2949 -11666.0283 -14475.2334]", "[-11373.8838 -12189.3428 -14475.1172]", "[-11338.1777 -12710.1016 -14474.8281]", "[-11257.8818 -13224.5684 -14474.9004]", "[-11119.959 -13725.2402 -14474.4434]", "[-10921.3867 -14203.291 -14475.3955]", "[-10653.915 -14644.8447 -14475.0537]", "[-10314.8984 -15032.2197 -14474.7354]", "[-9915.0918 -15352.7188 -14474.8291]", "[-9450.4453 -15609.4238 -14474.9297]", "[-8955.3662 -15791.9688 -14474.7637]", "[-8444.3789 -15911.835 -14475.2383]", "[-7926.3091 -15979.5244 -14474.9268]", "[-7406.3755 -16006.126 -14475.1777]", "[-6887.2393 -16000.7861 -14475.2617]", "[-6369.5288 -15997.9678 -14475.2012]", "[-5852.7441 -15996.8984 -14475.1699]", "[-5336.6602 -15997.6143 -14475.1699]", "[-4821.2832 -15998.2119 -14475.0693]", "[-4306.606 -15997.4482 -14475.1865]", "[-3792.6038 -15997.1279 -14475.3857]", "[-3279.3254 -15997.4707 -14475.123]", "[-2766.7009 -15998.4502 -14475.2246]", "[-2234.3442 -15997.8574 -14475.0576]", "[-1722.1154 -15997.6582 -14475.2871]", "[-1208.5048 -15997.0654 -14475.0605]", "[-693.2826 -15996.5117 -14475.1982]", "[-176.2735 -15998.8506 -14474.8721]", "[344.9021 -15996.9033 -14475.167]", "[872.8647 -15997.3564 -14475.0625]", "[1388.6444 -15998.3857 -14475.124]", "[1919.4612 -15997.7646 -14474.9258]", "[2446.5425 -15998.0508 -14474.9287]", "[2965.3972 -15996.3896 -14475.1025]", "[3497.1821 -15997.6914 -14475.1592]", "[4015.5549 -15997.9141 -14475.0732]", "[4543.8979 -15996.2969 -14475.2559]", "[5081.2188 -15998.9082 -14474.999]", "[5600.9473 -15996.5313 -14475.209]", "[6127.9575 -15998.3643 -14475.1484]", "[6661.2363 -15996.8223 -14470.1025]", "[7198.2383 -15998.8389 -14464.915]", "[7734.7266 -15996.0146 -14454.5537]", "[8267.7373 -15998.6494 -14444.8379]", "[8796.4502 -15996.9902 -14435.5371]", "[9320.6328 -15998.9512 -14425.4678]", "[9840.2383 -15999.2139 -14417.7441]", "[10355.3545 -15997.166 -14408.4727]", "[10891.582 -15998.3779 -14399.4805]", "[11422.6113 -15998.1426 -14388.7129]", "[11946.4395 -15960.708 -14379.9014]", "[12459.4053 -15877.2617 -14370.3242]", "[12955.0625 -15740.3438 -14359.7578]", "[13445.8125 -15536.0879 -14348.6338]", "[13893.3604 -15262.1396 -14337.5781]", "[14282.3809 -14920.8789 -14326.6787]", "[14641.8359 -14528.9912 -14317.4141]", "[14970.6445 -14121.4102 -14308.8613]", "[15255.7705 -13689.8955 -14300.4326]", "[15493.7148 -13212.6357 -14291.5986]", "[15658.0078 -12712.4375 -14283.3145]", "[15736.6162 -12198.6094 -14276.0352]", "[15728.1953 -11686.2783 -14268.2861]", "[15722.7607 -11163.4141 -14258.4727]", "[15718.6025 -10648.1221 -14249.9219]", "[15719.2178 -10119.7354 -14240.3018]", "[15721.2002 -9598.9365 -14231.3643]", "[15719.4648 -9085.8564 -14222.4219]", "[15720.748 -8561.0059 -14213.6768]", "[15722.0205 -8044.0679 -14204.5283]", "[15720.0283 -7516.2598 -14195.4082]", "[15720.958 -6996.8813 -14186.4043]", "[15720.2178 -6467.917 -14177.0605]", "[15719.6592 -5948.0107 -14168.1035]", "[15719.8125 -5419.2739 -14163.1904]", "[15721.4785 -4898.5327 -14159.1934]", "[15722.7695 -4383.6348 -14159.25]", "[15720.873 -3855.3447 -14159.499]", "[15720.043 -3328.7788 -14159.5801]", "[15720.7666 -2804.9189 -14159.8594]", "[15721.3232 -2289.1763 -14159.9668]", "[15720.6982 -1774.9607 -14159.9492]", "[15721.5107 -1260.4655 -14159.6104]", "[15721.2461 -743.3938 -14159.8545]", "[15721.0088 -223.0152 -14160.0752]", "[15720.7539 301.7385 -14159.8838]", "[15721.668 821.3655 -14160.0137]", "[15722.3682 1343.3534 -14159.8887]", "[15720.5723 1865.3021 -14160.083]", "[15720.5791 2380.0913 -14159.8975]", "[15720.4238 2901.5942 -14159.623]", "[15720.2383 3421.7585 -14159.8027]", "[15721.9697 3934.4089 -14156.2656]", "[15719.418 4459.1089 -14150.9111]", "[15721.3232 4993.418 -14142.1592]", "[15719.9883 5510.5303 -14132.3799]", "[15721.3975 6034.1953 -14127.8232]", "[15719.29 6564.0586 -14124.1143]", "[15721.1855 7076.1694 -14129.2979]", "[15719.5195 7596.1514 -14135.1572]", "[15721.3301 8125.1621 -14140.4229]", "[15699.6152 8661.166 -14137.8037]", "[15661.3232 9173.5918 -14138.2939]", "[15598.9385 9684.6787 -14138.4053]", "[15515.999 10191.7197 -14138.376]", "[15406.7725 10692.9932 -14138.2432]", "[15262.8057 11211.9863 -14138.5391]", "[15085.8271 11719.4434 -14138.5234]", "[14874.3418 12212.5908 -14138.4385]", "[14625.1094 12686.7744 -14138.3301]", "[14338.7344 13138.2402 -14138.2998]", "[14014.0137 13561.7061 -14138.5664]", "[13653.1064 13953.1016 -14138.3623]", "[13258.6982 14309.0488 -14138.5205]", "[12834.8818 14627.2295 -14138.3115]", "[12386.0107 14906.666 -14138.3545]", "[11916.6328 15147.3447 -14138.4229]", "[11432.0264 15352.6113 -14138.5342]", "[10935.4922 15523.835 -14138.2266]", "[10429.8545 15662.1758 -14138.4658]", "[9918.3037 15772.0088 -14138.4453]", "[9402.7393 15855.8809 -14138.4277]", "[8884.7852 15916.5195 -14138.3525]", "[8365.3857 15955.1699 -14138.0527]", "[7845.6309 15975.2344 -14138.4287]", "[7326.2246 15976.8916 -14137.7119]", "[6808.0073 15973.6494 -14137.8887]", "[6291.0459 15973.9648 -14138.4375]", "[5774.7192 15973.4014 -14138.0244]", "[5259.7983 15973.8838 -14133.042]", "[4745.8472 15973.7646 -14127.7402]", "[4233.5674 15973.0537 -14117.7305]", "[3696.55 15973.9854 -14108.3408]", "[3160.376 15973.627 -14098.9844]", "[2624.2969 15973.5664 -14089.665]", "[2109.877 15973.6484 -14080.2871]", "[1584.1443 15973.8428 -14070.583]", "[1047.144 15973.6387 -14061.6553]", "[527.1212 15974.1797 -14052.0156]", "[-1.6598 15972.3311 -14043.5342]", "[-538.0715 15974.5098 -14034.0146]", "[-1053.5635 15972.4775 -14025.1172]", "[-1575.3357 15973.168 -14015.8867]", "[-2103.2197 15974.3799 -14006.9297]", "[-2636.1619 15973.0264 -13996.3428]", "[-3174.1714 15973.6348 -13987.9082]", "[-3687.1921 15973.7402 -13979.0859]", "[-4204.6152 15973.5898 -13970.1133]", "[-4726.4897 15973.5732 -13963.9795]", "[-5253.2373 15974.0664 -13960.2627]", "[-5785.0347 15973.9414 -13959.082]", "[-6322.5303 15974 -13959.7734]", "[-6864.2793 15970.1729 -13959.3008]", "[-7375.7603 15945.373 -13959.4287]", "[-7886.0674 15899.2402 -13959.7061]", "[-8425.0713 15827.3672 -13959.5303]", "[-8958.7676 15729.4512 -13959.4053]", "[-9485.5107 15602.3984 -13959.2256]", "[-10002.7881 15443.5283 -13958.9863]", "[-10507.3838 15250.3457 -13959.502]", "[-10995.8311 15021.4756 -13959.1875]", "[-11463.2256 14753.9355 -13959.2832]", "[-11905.5195 14448.3945 -13959.5879]", "[-12317.1221 14104.1445 -13959.2607]", "[-12695.0205 13724.7139 -13959.5586]", "[-13035.3701 13312.8916 -13959.751]", "[-13336.9609 12873.2705 -13959.6162]", "[-13599.21 12410.4141 -13959.4463]", "[-13823.9053 11929.5732 -13958.8086]", "[-14011.7158 11434.2471 -13959.2891]", "[-14167.2627 10929.0039 -13959.4219]", "[-14291.6123 10416.1904 -13959.4961]", "[-14388.3877 9898.2979 -13959.5439]", "[-14460.0996 9377.1709 -13959.4619]", "[-14509.166 8854.1738 -13959.6797]", "[-14538.0381 8330.3652 -13959.4658]", "[-14547.3428 7806.4639 -13959.6846]", "[-14543.3486 7283.1553 -13959.917]", "[-14541.9043 6760.4004 -13959.8418]", "[-14542.4463 6238.1553 -13959.8848]", "[-14542.3096 5716.7061 -13959.6904]", "[-14540.3721 5196.2451 -13960.2041]", "[-14542.4453 4676.396 -13959.957]", "[-14540.7549 4157.0386 -13960.3447]", "[-14542.2041 3638.1714 -13959.8994]", "[-14540.8496 3119.7566 -13960.2939]", "[-14542.2939 2601.8721 -13960.0332]", "[-14541.1973 2084.436 -13959.8184]", "[-14541.2754 1567.4969 -13960.1689]", "[-14541.9365 1051.0488 -13960.2959]", "[-14540.6504 535.5281 -13955.4375]", "[-14542.9922 21.2811 -13950.5889]", "[-14540.5576 -520.3055 -13940.5049]", "[-14542.1328 -1058.6567 -13930.5908]", "[-14540.6572 -1593.5688 -13915.8838]", "[-14542.3037 -2125.9158 -13901.3076]", "[-14540.46 -2654.4744 -13881.75]", "[-14541.9883 -3179.2236 -13862.6279]", "[-14541.1797 -3699.1685 -13838.6289]", "[-14541.5273 -4214.2041 -13815.9277]", "[-14541.8477 -4751.9683 -13792.4639]", "[-14541.7012 -5283.8184 -13769.2451]", "[-14541.7275 -5809.6631 -13745.9023]", "[-14541.6621 -6329.8438 -13723.5596]", "[-14541.3164 -6844.3584 -13701.2158]", "[-14541.7246 -7379.8618 -13677.7129]", "[-14541.9863 -7909.4238 -13654.8203]", "[-14542.2109 -8433.2031 -13634.3389]", "[-14541.2588 -8952.2197 -13617.1816]", "[-14540.6533 -9467.2412 -13602.0322]", "[-14542.6992 -9979.5029 -13589.459]", "[-14540.8516 -10515.1563 -13578.4492]", "[-14542.125 -11048.3652 -13569.627]", "[-14536.583 -11577.4746 -13566.5645]", "[-14485.2881 -12100.4883 -13567.7793]", "[-14386.3281 -12613.6162 -13568.4023]", "[-14229.2139 -13110.2197 -13568.2168]", "[-14007.5488 -13580.0439 -13568.0674]", "[-13713.8135 -14007.4014 -13568.1289]", "[-13350.7246 -14375.8047 -13568.0293]", "[-12950.4766 -14660.166 -13568.0234]", "[-12490.0039 -14886.7266 -13568.0059]", "[-11982.1123 -15053.5322 -13567.8701]", "[-11459.3467 -15157.7695 -13567.9229]", "[-10929.8096 -15213.2461 -13568.0195]", "[-10397.2363 -15227.5078 -13567.9238]", "[-9864.4541 -15218.373 -13568.1016]", "[-9330.7666 -15218.3945 -13568.249]", "[-8795.9355 -15217.9736 -13568.1035]", "[-8259.8984 -15216.8965 -13568.168]", "[-7747.1001 -15217.3574 -13568.0879]", "[-7233.3345 -15217.4521 -13568.1758]", "[-6719.7344 -15218.0156 -13562.6563]", "[-6183.79 -15217.4482 -13557.8008]", "[-5650.3276 -15216.9902 -13558.4766]", "[-5118.3662 -15217.1104 -13559.2734]", "[-4587.0713 -15217.8047 -13558.5352]", "[-4056.4626 -15219.4141 -13558.4795]", "[-3527.0942 -15217.3525 -13559.1055]", "[-2999.2432 -15218.9688 -13558.2754]", "[-2472.2612 -15216.8818 -13559.2266]", "[-1946.1885 -15218.3164 -13558.8564]", "[-1421.8518 -15217.4268 -13559.1162]", "[-905.776 -15218.8047 -13559.0605]", "[-381.856 -15217.0098 -13559.0215]", "[145.8204 -15218.5225 -13559.2461]", "[676.6475 -15218.2666 -13559.1318]", "[1190.0017 -15217.248 -13559.2354]", "[1707.202 -15217.6553 -13559.0156]", "[2227.8508 -15217.043 -13559.2988]", "[2751.8867 -15218.6904 -13558.9219]", "[3279.063 -15218.1211 -13559.1963]", "[3791.6638 -15209.2021 -13560.3135]", "[4302.1885 -15130.0303 -13560.1094]", "[4796.4849 -14973.8984 -13560.2568]", "[5301.126 -14830.2207 -13560.1025]", "[5805.3823 -14692.6758 -13560.123]", "[6307.4966 -14553.9922 -13560.2568]", "[6819.9204 -14480.7061 -13559.957]", "[7337.0801 -14483.4473 -13559.8945]", "[7852.4351 -14473.3271 -13558.543]", "[8368.5713 -14435.8184 -13557.3496]", "[8888.9111 -14378.4355 -13556.5479]", "[9406.5898 -14296.0791 -13555.7891]", "[9918.2402 -14187.5918 -13555.3633]", "[10426.1992 -14050.7549 -13554.6211]", "[10912.2314 -13888.1768 -13553.6387]", "[11402.4121 -13688.7529 -13553.4199]", "[11868.498 -13456.0674 -13552.6621]", "[12324.4395 -13182.1758 -13552.6572]", "[12746.1865 -12879.9668 -13552.3838]", "[13145.0508 -12535.4365 -13552.5068]", "[13517.5615 -12152.1748 -13552.4658]", "[13846.54 -11747.8867 -13552.3027]", "[14138.959 -11318.3564 -13552.2295]", "[14392.9268 -10870.7861 -13552.7598]", "[14619.7998 -10389.9141 -13553.3564]", "[14806.6123 -9905.6182 -13554.1484]", "[14965.6064 -9398.4131 -13554.7881]", "[15089.918 -8899.2129 -13555.375]", "[15190.0371 -8384.9521 -13555.9707]", "[15265.8242 -7857.0376 -13557.1025]", "[15319.6563 -7317.6489 -13557.8789]", "[15350.2979 -6799.0996 -13558.8027]", "[15362.7178 -6272.5811 -13559.8623]", "[15360.0635 -5739.3813 -13557.3955]", "[15357.6084 -5200.6538 -13551.458]", "[15363.2617 -4657.147 -13546.9395]", "[15405.1045 -4143.5405 -13542.3418]", "[15492.3135 -3632.04 -13539.8291]", "[15546.5059 -3112.8 -13547.9775]", "[15548.7451 -2586.1296 -13552.1904]", "[15541.2559 -2055.5637 -13545.7852]", "[15540.6621 -1520.8274 -13539.1279]", "[15541.5674 -984.1422 -13529.2031]", "[15539.9395 -445.5355 -13519.2422]", "[15541.8623 94.238 -13503.6367]", "[15539.8955 633.8644 -13487.0215]", "[15541.6064 1173.3601 -13474.5791]", "[15540.9619 1712.3079 -13459.4482]", "[15540.1846 2249.7056 -13446.583]", "[15541.8545 2783.7222 -13431.9971]", "[15540.7734 3313.7251 -13418.374]", "[15540.5547 3839.5046 -13404.3848]", "[15542.2578 4361.0684 -13390.915]", "[15539.4922 4878.1826 -13377.3271]", "[15541.209 5390.8682 -13363.5225]", "[15542.0195 5931.2388 -13354.2021]", "[15540.7754 6467.5371 -13345.0693]", "[15541.5742 7000.2183 -13335.8877]", "[15541.3252 7529.1782 -13326.3682]", "[15540.2734 8054.5928 -13322.2969]", "[15540.5605 8576.6992 -13317.4141]", "[15541.6992 9096.2461 -13312.5039]", "[15539.6348 9613.5049 -13308.2197]", "[15525.5576 10127.25 -13299.4336]", "[15455.0928 10662.9238 -13288.9434]", "[15333.5723 11183.999 -13279.7393]", "[15150.1436 11682.5283 -13270.9639]", "[14898.5 12145.9277 -13263.0273]", "[14575.7334 12558.0596 -13255.374]", "[14199.333 12914.1484 -13248.1006]", "[13811.0469 13288.959 -13237.6641]", "[13432.5029 13666.5537 -13228.9395]", "[13060.3418 14039.9004 -13218.9443]", "[12687.3301 14399.5244 -13210.0869]", "[12266.6279 14733.1572 -13200.2402]", "[11822.3291 15020.3057 -13191.4756]", "[11351.8623 15250.8281 -13183.0615]", "[10858.6914 15412.3486 -13175.1904]", "[10350.7715 15492.8281 -13167.6992]", "[9816.1152 15488.6553 -13160.2842]", "[9289.6387 15478.498 -13150.8398]", "[8768.499 15476.2939 -13144.1182]", "[8252.0166 15478.4736 -13140.3008]", "[7739.3032 15478.792 -13139.1338]", "[7204.8564 15478.9502 -13139.1113]", "[6671.769 15479.0898 -13139.2676]", "[6139.2524 15477.9824 -13139.1152]", "[5607.3291 15479.1611 -13139.3125]", "[5075.9561 15479.3115 -13139.0684]", "[4545.7568 15478.083 -13133.8838]", "[4017.8037 15478.5508 -13126.7334]", "[3493.748 15478.9238 -13122.3057]", "[2973.7012 15485.6016 -13118.7764]", "[2456.136 15481.626 -13119.8125]", "[1940.1393 15484.3359 -13120.2852]", "[1425.8748 15452.1641 -13119.8418]", "[917.6937 15371.7783 -13119.9414]", "[413.6202 15277.0654 -13120.1045]", "[-113.2231 15183.0996 -13119.9434]", "[-638.803 15089.6289 -13115.9521]", "[-1162.5496 14997.6045 -13110.7451]", "[-1683.5869 14906.8203 -13105.9355]", "[-2200.7542 14815.1025 -13101.4854]", "[-2714.5762 14722.9658 -13101.4287]", "[-3226.6499 14633.6729 -13102.3691]", "[-3737.5608 14545.0645 -13101.9082]", "[-4247.3481 14453.8896 -13102.3164]", "[-4757.3623 14363.0293 -13102.3037]", "[-5268.8252 14274.0137 -13102.1904]", "[-5781.2974 14183.4561 -13102.1396]", "[-6295.7568 14092.6641 -13102.1104]", "[-6814.5059 14001.4033 -13102.4434]", "[-7338.3467 13909.6426 -13102.084]", "[-7845.3555 13819.2832 -13102.4287]", "[-8359.5469 13728.7891 -13103.0107]", "[-8879.8311 13636.0342 -13103.7637]", "[-9406.5869 13544.6875 -13103.2451]", "[-9910.5957 13453.8027 -13100.4873]", "[-10428.8242 13327.5635 -13102.3379]", "[-10927.7715 13158.7949 -13101.8125]", "[-11410.498 12951.2334 -13102.165]", "[-11874.5371 12707.624 -13102.0195]", "[-12322.0898 12437.5693 -13102.498]", "[-12741.2129 12126.7441 -13101.9912]", "[-13139.9736 11792.8438 -13101.7188]", "[-13509.3818 11428.1504 -13102.126]", "[-13851.0586 11039.2061 -13101.9248]", "[-14163.416 10628.3262 -13101.7783]", "[-14437.6621 10192.541 -13101.9268]", "[-14694.4219 9748.2549 -13102.1729]", "[-14911.7471 9284.2002 -13102.3223]", "[-15107.9844 8787.4307 -13102.166]", "[-15272.2773 8280.5703 -13102.1494]", "[-15393.9854 7762.3555 -13102.3252]", "[-15477.5186 7236.394 -13101.7881]", "[-15516.459 6705.0234 -13101.9658]", "[-15530.4082 6171.2563 -13102.3398]", "[-15545.8076 5657.3569 -13102.084]", "[-15561.6631 5139.2607 -13102.1475]", "[-15580.6084 4615.4189 -13102.2061]", "[-15593.8867 4078.8457 -13102.2559]", "[-15609.6709 3544.3689 -13102.0742]", "[-15617.6299 3016.9446 -13101.9961]", "[-15627.2373 2479.2588 -13102.1621]", "[-15629.1396 1965.7324 -13102.0107]", "[-15635.5322 1452.8058 -13102.2021]", "[-15632.7295 940.3804 -13102.2266]", "[-15634.1758 401.5858 -13102.0508]", "[-15602.333 -135.6078 -13101.9248]", "[-15518.542 -666.2125 -13101.9229]", "[-15418.6191 -1192.248 -13102.1602]", "[-15312.4971 -1715.3601 -13097.4912]", "[-15156.1943 -2223.4915 -13091.6748]", "[-14954.1768 -2711.5989 -13088.3291]", "[-14696.3887 -3169.6282 -13083.5371]", "[-14378.5273 -3583.9822 -13079.5146]", "[-14000.5713 -3940.1255 -13075.5615]", "[-13570.9658 -4225.3145 -13069.5303]", "[-13104.0752 -4485.4897 -13059.4453]", "[-12622.1006 -4701.8164 -13050.3721]", "[-12127.4619 -4867.7622 -13041.6426]", "[-11618.7061 -4961.4268 -13032.9043]", "[-11105.9033 -4978.3169 -13025.2939]", "[-10577.2256 -4904.8608 -13018.9385]", "[-10059.2637 -4794.2012 -13009.6533]", "[-9539.2773 -4702.269 -12999.5664]", "[-9019.7891 -4611.877 -12984.7373]", "[-8500.665 -4518.8452 -12969.5371]", "[-7982.6724 -4430.2793 -12950.3838]", "[-7467.6689 -4338.7339 -12930.1533]", "[-6956.4531 -4248.8892 -12906.5723]", "[-6450.0674 -4158.582 -12883.9756]", "[-5925.3003 -4066.7715 -12860.7754]", "[-5406.1577 -3975.1362 -12837.7256]", "[-4891.4233 -3884.3086 -12814.9043]", "[-4380.9185 -3794.0154 -12792.1035]", "[-3874.3005 -3703.3479 -12769.7051]", "[-3349.5112 -3610.4678 -12746.7744]", "[-2827.7283 -3519.6936 -12723.2656]", "[-2309.4756 -3426.894 -12700.6318]", "[-1793.7799 -3335.3315 -12677.5371]", "[-1281.0906 -3244.533 -12654.8086]", "[-770.9093 -3154.9172 -12631.835]", "[-262.5565 -3063.5842 -12613.4131]", "[246.0063 -2974.5251 -12595.833]", "[755.7522 -2884.4058 -12581.752]", "[1267.8618 -2793.4939 -12568.6309]", "[1782.998 -2701.7329 -12555.0068]", "[2300.8704 -2609.3467 -12541.3398]", "[2822.0029 -2516.2432 -12531.6885]", "[3347.4541 -2424.0879 -12523.0254]", "[3855.5776 -2332.1304 -12518.5283]", "[4369.2939 -2242.2205 -12514.7197]", "[4888.9282 -2149.6543 -12514.3262]", "[5397.2891 -2061.9307 -12515.3203]", "[5923.1147 -1966.9138 -12515.1113]", "[6441.0718 -1876.7169 -12515.1191]", "[6946.3076 -1784.8077 -12514.9785]", "[7463.2686 -1695.3116 -12515.0781]", "[7990.292 -1602.0807 -12514.9268]", "[8500.2305 -1512.4888 -12515.1514]", "[9017.8799 -1419.4827 -12515.2969]", "[9543.8018 -1328.4519 -12513.7432]", "[10075.2891 -1232.0299 -12515.125]", "[10582.3145 -1144.5017 -12514.8057]", "[11094.4883 -1092.5875 -12514.3779]", "[11608.0928 -1085.9818 -12513.8447]", "[12145.3984 -1138.7422 -12515.5127]", "[12669.3096 -1258.5804 -12514.625]", "[13165.8574 -1461.1117 -12515.0957]", "[13617.7764 -1747.4624 -12514.9092]", "[13969.7393 -2070.3662 -12515.1592]", "[14297.416 -2488.7595 -12514.9082]", "[14558.124 -2949.1301 -12514.8896]", "[14758.5879 -3436.2971 -12515.5322]", "[14909.7646 -3938.8735 -12514.8535]", "[15020.1201 -4450.3413 -12515.0078]", "[15095.3125 -4966.4448 -12515.2031]", "[15131.8623 -5485.2954 -12514.5801]", "[15123.4473 -6003.0249 -12515.5752]", "[15057.0664 -6513.9272 -12515.1953]", "[14926.0791 -7010.2485 -12514.4492]", "[14718.043 -7478.9238 -12514.8447]", "[14416.668 -7924.9194 -12515.4941]", "[14079.9209 -8271.3965 -12515.1045]", "[13650.2461 -8589.0068 -12515.1689]", "[13180.9961 -8838.9346 -12514.8662]", "[12688.0557 -9030.7939 -12514.9824]", "[12181.1357 -9174.7646 -12514.9932]", "[11666.2236 -9278.4609 -12515.0244]", "[11147.8945 -9352.7061 -12515.2061]", "[10627.2783 -9398.6064 -12515.1162]", "[10105.2715 -9394.8242 -12515.0352]", "[9585.3271 -9388.4521 -12515.334]", "[9066.207 -9387.876 -12514.6035]", "[8547.7188 -9388.7744 -12515.291]", "[8029.9985 -9387.5615 -12515.4033]", "[7512.9233 -9388.7432 -12515.1621]", "[6996.2798 -9387.4736 -12515.457]", "[6480.1626 -9389.0342 -12514.8857]", "[5964.8438 -9387.6191 -12515.1396]", "[5450.062 -9387.9639 -12515.0332]", "[4935.8027 -9387.5801 -12515.0557]", "[4421.9888 -9386.9209 -12515.1816]", "[3908.7 -9388.4707 -12515.1553]", "[3395.9238 -9387.6973 -12515.125]", "[2883.6042 -9387.7119 -12515.1172]", "[2346.2397 -9388.4258 -12515.1309]", "[1809.3672 -9388.2881 -12514.9336]", "[1273.0156 -9387.8779 -12515.0176]", "[737.1964 -9387.6826 -12515.1377]", "[202.0915 -9388.0898 -12513.7627]", "[-331.4434 -9387.6035 -12514.9375]", "[-863.5466 -9387.9023 -12514.9941]", "[-1394.8921 -9389.0918 -12514.7764]", "[-1925.7726 -9388.7373 -12515.6709]", "[-2456.0063 -9386.9492 -12515.1563]", "[-2985.7073 -9388.7178 -12515.3076]", "[-3514.8831 -9389.0156 -12515.2881]", "[-4043.4998 -9388.7725 -12515.249]", "[-4571.6055 -9387.4873 -12515.4697]", "[-5099.1201 -9389.4521 -12515.4385]", "[-5626.1206 -9388.3281 -12515.5732]", "[-6152.5732 -9387.874 -12515.5264]", "[-6678.4717 -9388.752 -12515.6299]", "[-7203.8501 -9389.623 -12515.4756]", "[-7728.5698 -9387.9951 -12515.1006]", "[-8252.5322 -9388.209 -12518.0107]", "[-8776.8086 -9386.6025 -12524.1309]", "[-9301.8613 -9386.0225 -12529.7559]", "[-9828.8389 -9386.4248 -12541.3047]", "[-10358.5127 -9385.3291 -12552.2314]", "[-10892.8936 -9386.9453 -12567.6807]", "[-11405.8398 -9375.5693 -12576.0566]", "[-11862.2412 -9282.2451 -12582.5615]", "[-12346.0762 -9095.9492 -12590.5225]", "[-12799.5703 -8845.9277 -12599.3838]", "[-13225.3271 -8550.0781 -12607.9971]", "[-13624.5029 -8216.3574 -12617.3223]", "[-14000.417 -7853.6074 -12626.5791]", "[-14322.6123 -7438.3599 -12639.1904]", "[-14519.4697 -7063.5649 -12648.083]", "[-14698.2295 -6564.3525 -12660.0098]", "[-14816.1396 -6046.1309 -12670.6611]", "[-14880.7783 -5516.5518 -12681.2734]", "[-14905.0947 -4981.7715 -12690.3662]", "[-14895.96 -4444.1934 -12697.9336]", "[-14896.293 -3931.9026 -12701.3018]", "[-14893.9229 -3418.6711 -12703.0645]", "[-14896.0547 -2905.6628 -12701.9434]", "[-14895.5703 -2366.9829 -12695.9531]", "[-14896.8535 -1831.1714 -12684.6611]", "[-14893.7422 -1299.3365 -12675.335]", "[-14894.7588 -772.3258 -12665.7666]", "[-14893.8955 -249.7981 -12657.2373]", "[-14894.001 268.3173 -12647.6709]", "[-14893.8379 781.7863 -12638.9707]", "[-14893.8672 1316.173 -12629.5381]", "[-14892.3154 1845.1565 -12620.1309]", "[-14893.1182 2368.9512 -12610.9082]", "[-14893.2188 2887.8101 -12602.0459]", "[-14894.6729 3401.8713 -12593.1504]", "[-14893.2363 3935.3101 -12583.7803]", "[-14893.123 4463.5054 -12574.541]", "[-14893.5693 4986.5142 -12565.4053]", "[-14893.5752 5504.2632 -12556.4482]", "[-14893.3203 6017.2729 -12552.4189]", "[-14893.1143 6549.4463 -12548.5674]", "[-14881.5479 7078.9634 -12549.9453]", "[-14848.3896 7605.7246 -12549.9844]", "[-14791.5361 8129.8081 -12550.3516]", "[-14712.9678 8650.2529 -12549.9902]", "[-14608.4766 9164.9844 -12549.7754]", "[-14475.5615 9671.9375 -12549.9756]", "[-14312.8623 10169.4063 -12550.0781]", "[-14117.3145 10655.4775 -12549.9238]", "[-13886.042 11126.1494 -12549.835]", "[-13617.4873 11577.3066 -12549.6475]", "[-13310.7676 12006.1709 -12550.2148]", "[-12963.3506 12408.25 -12549.7959]", "[-12595.7051 12765.71 -12550.2832]", "[-12192.418 13092.415 -12549.9727]", "[-11757.4678 13386.3965 -12550.0957]", "[-11293.998 13644.9805 -12549.9961]", "[-10807.1182 13869.291 -12549.7881]", "[-10323.4775 14050.7227 -12550.1064]", "[-9824.6719 14201.9219 -12550.2461]", "[-9313.6699 14324.667 -12549.9873]", "[-8792.543 14421.1123 -12550.0176]", "[-8262.9355 14492.0488 -12549.5596]", "[-7752.124 14538.6162 -12549.6943]", "[-7236.3677 14566.3828 -12549.7344]", "[-6716.3105 14575.5977 -12549.877]", "[-6193.272 14573.0508 -12546.4756]", "[-5667.7236 14571.0586 -12540.9912]", "[-5140.5 14572.5283 -12532.6543]", "[-4612.5669 14570.8027 -12522.5107]", "[-4084.5945 14572.4268 -12513.752]", "[-3556.7549 14571.4736 -12504.3555]", "[-3029.0664 14571.1494 -12495.5459]", "[-2498.8582 14571.8203 -12486.1318]", "[-1985.313 14571.25 -12477.3408]", "[-1462.2484 14571.4775 -12467.9072]", "[-930.0685 14571.2402 -12458.4697]", "[-390.4333 14571.5498 -12449.2422]", "[127.7111 14572.0215 -12440.3848]", "[652.3852 14570.7559 -12431.1445]", "[1182.9016 14572.0645 -12422.083]", "[1719.1672 14571.3633 -12412.4473]", "[2260.8645 14571.2402 -12403.2461]", "[2776.9734 14572.2627 -12394.2188]", "[3297.4771 14571.083 -12385.1172]", "[3821.9177 14571.9512 -12375.3535]", "[4348.9551 14571.4131 -12366.6758]", "[4875.5063 14571.3291 -12358.4609]", "[5401.4141 14572.6973 -12356.1846]", "[5924.3545 14570.1982 -12349.166]", "[6444.6328 14572.4844 -12338.9355]", "[6961.7695 14571.7891 -12329.75]", "[7475.626 14570.3779 -12320.7949]", "[8015.9375 14572.5576 -12309.1025]", "[8551.7246 14571.4561 -12294.1768]", "[9082.1143 14572.1973 -12277.1514]", "[9606.3467 14572.5879 -12258.0674]", "[10124.1953 14571.6738 -12242.6709]", "[10663.7041 14572.4004 -12228.6563]", "[11196.4434 14571.4473 -12223.1777]", "[11724.4209 14540.2822 -12225.832]", "[12244.3984 14457.9014 -12225.0088]", "[12750.1826 14320.5088 -12224.7715]", "[13233.3799 14122.7266 -12225.7432]", "[13678.0479 13851.1143 -12225.3428]", "[14068.8652 13510.0684 -12225.7734]", "[14376.1074 13128.6963 -12225.9561]", "[14627.9893 12679.2754 -12225.9111]", "[14809.7227 12200.0439 -12225.9717]", "[14937.0049 11678.4072 -12226.2969]", "[15008.3301 11148.5947 -12225.7744]", "[15036.7852 10616.6123 -12226.0645]", "[15030.2783 10085.1875 -12225.5205]", "[15002.9063 9556.2979 -12225.2676]", "[14929.498 9245.8613 -12226.5645]", "[14745.1201 8751.041 -12226.2607]", "[14491.9258 8291.252 -12226.7715]", "[14196.7461 7862.4702 -12225.8643]", "[13864.0146 7464.2661 -12226.3408]", "[13506.0293 7091.2666 -12225.9893]", "[13128.3721 6739.9194 -12227.8018]", "[12759.1123 6382.2217 -12227.1816]", "[12388.8389 6026.9956 -12225.3105]", "[12004.6914 5653.8169 -12211.5723]", "[11621.9121 5285.5381 -12198.707]", "[11244.7803 4921.9492 -12178.375]", "[10872.7656 4562.4541 -12159.8516]", "[10487.5625 4190.7422 -12141.2852]", "[10106.4658 3822.9478 -12122.6484]", "[9729.8174 3457.384 -12104.4941]", "[9355.2422 3095.0417 -12086.2568]", "[8981.5811 2735.6995 -12068.0957]", "[8610.0898 2378.0007 -12050.1123]", "[8241.7959 2020.5507 -12032.3037]", "[7858.2661 1649.2701 -12013.8457]", "[7475.7813 1280.2142 -11995.0713]", "[7094.6743 912.7808 -11977.0273]", "[6716.0796 545.7496 -11958.1777]", "[6338.106 180.3418 -11943.6016]", "[5959.1177 -183.1582 -11930.1885]", "[5582.085 -549.8748 -11920.3525]", "[5201.6475 -915.4913 -11911.6934]", "[4820.6606 -1285.3691 -11906.6992]", "[4448.7798 -1642.7998 -11902.6006]", "[4067.334 -2014.6777 -11902.375]", "[3689.7214 -2376.6897 -11902.8936]", "[3303.8435 -2750.1272 -11902.9404]", "[2927.7222 -3113.6357 -11902.7676]", "[2542.3389 -3482.7896 -11902.6133]", "[2171.5364 -3842.1733 -11902.9033]", "[1796.5836 -4205.6821 -11902.8438]", "[1419.1952 -4570.1797 -11902.6152]", "[1040.906 -4933.7427 -11902.792]", "[663.3719 -5297.3262 -11903.3887]", "[287.6692 -5662.0952 -11903.4355]", "[-89.2654 -6024.8696 -11903.7666]", "[-465.1132 -6388.0557 -11903.5186]", "[-839.948 -6751.2622 -11903.6074]", "[-1215.0536 -7113.2241 -11903.1719]", "[-1590.6531 -7473.9595 -11902.7129]", "[-1963.8722 -7835.5513 -11903.5469]", "[-2334.2151 -8191.4897 -11903.918]", "[-2714.8035 -8559.3057 -11903.0166]", "[-3085.2905 -8915.6748 -11904.1387]", "[-3461.3958 -9281.8262 -11903.3291]", "[-3837.7744 -9643.3125 -11903.6035]", "[-4212.5122 -10005.6943 -11903.501]", "[-4587.186 -10367.0566 -11903.6035]", "[-4960.7412 -10728.4814 -11903.5205]", "[-5332.875 -11089.9092 -11903.502]", "[-5706.6855 -11448.6484 -11903.1729]", "[-6079.6416 -11807.5654 -11903.5049]", "[-6450.3311 -12167.6963 -11903.3818]", "[-6821.9712 -12525.335 -11903.4883]", "[-7192.5996 -12882.8252 -11903.1797]", "[-7561.5776 -13240.9033 -11903.6836]", "[-7931.1274 -13597.5986 -11903.1914]", "[-8300.5439 -13953.6797 -11903.3779]", "[-8669.4512 -14309.0967 -11903.2676]", "[-9066.4512 -14667.7334 -11903.0068]", "[-9356.9307 -14847.9629 -11903.1924]", "[-9845.5234 -15064.6729 -11903.5137]", "[-10357.0908 -15208.1807 -11902.8184]", "[-10877.3037 -15298.2598 -11903.3926]", "[-11400.9072 -15342.7412 -11902.8516]", "[-11924.1436 -15348.7656 -11903.0908]", "[-12442.0586 -15280.8027 -11903.1846]", "[-12871.7617 -15144.3164 -11903.1113]", "[-13339.1807 -14919.1904 -11903.5469]", "[-13775.2148 -14644.8184 -11903.0117]", "[-14180.874 -14330.8223 -11903.1885]", "[-14576.6172 -13972.4141 -11903.6064]", "[-14939.1445 -13583.3047 -11902.5244]", "[-15153.0439 -13252.5205 -11903.0781]", "[-15373.7119 -12771.1963 -11903.4814]", "[-15523.2607 -12265.9443 -11903.4141]", "[-15616.625 -11750.8086 -11903.3262]", "[-15665.3447 -11232.2412 -11903.1387]", "[-15675.9805 -10713.166 -11903.3008]", "[-15668.6816 -10195.7861 -11903.1514]", "[-15669.2734 -9679.6729 -11903.3926]", "[-15668.1309 -9164.7676 -11903.1973]", "[-15668.2217 -8650.7412 -11903.2764]", "[-15667.793 -8138.2739 -11898.083]", "[-15667.8965 -7605.8633 -11892.5068]", "[-15669.1396 -7078.4497 -11882.6279]", "[-15667.6797 -6556.2188 -11872.9141]", "[-15668.3398 -6041.1255 -11858.8027]", "[-15666.9336 -5513.0513 -11843.9854]", "[-15669.2764 -4995.8013 -11825.1074]", "[-15668.4648 -4470.2402 -11805.9033]", "[-15667.875 -3940.3936 -11781.6904]", "[-15668.2461 -3426.7908 -11758.959]", "[-15667.6025 -2910.7397 -11736.6582]", "[-15667.7373 -2393.6997 -11714.0068]", "[-15667.75 -1876.4653 -11691.5947]", "[-15667.9941 -1353.0654 -11668.3594]", "[-15669.0117 -827.8546 -11645.6182]", "[-15668.4414 -309.3492 -11622.4482]", "[-15668.6924 216.829 -11599.9824]", "[-15668.5859 745.637 -11576.6143]", "[-15668.2559 1275.3364 -11553.752]", "[-15667.7764 1802.5229 -11530.6602]", "[-15668.3125 2327.739 -11507.7344]", "[-15668.999 2846.967 -11487.7412]", "[-15668.3438 3378.9814 -11470.0986]", "[-15668.3115 3899.1265 -11455.0439]", "[-15667.5996 4429.4326 -11441.667]", "[-15668.4922 4945.2324 -11431.1279]", "[-15668.623 5470.4438 -11422.5654]", "[-15668.9717 6004.8501 -11415.3477]", "[-15666.9443 6522.6421 -11408.6631]", "[-15664.2539 7049.0537 -11409.1035]", "[-15636.7217 7584.3018 -11410.2041]", "[-15589.4512 8099.6992 -11411.8086]", "[-15520.1621 8620.6777 -11412.1221]", "[-15421.8076 9144.9404 -11413.5361]", "[-15295.2139 9670.3594 -11414.2607]", "[-15141.7744 10165.2861 -11415.001]", "[-14955.5078 10655.2666 -11415.8564]", "[-14730.0811 11134.8457 -11415.9961]", "[-14464.2783 11599.4023 -11416.6631]", "[-14155.5186 12042.6455 -11416.7529]", "[-13824.4834 12436.7305 -11417.3047]", "[-13456.0527 12802.0234 -11416.6465]", "[-13052.4434 13134.1455 -11416.9365]", "[-12619.1611 13430.0596 -11416.5664]", "[-12160.9551 13687.9404 -11416.3164]", "[-11684.7881 13908.4268 -11415.9102]", "[-11194.957 14092.9727 -11415.0303]", "[-10695.2354 14244.2939 -11414.1699]", "[-10188.5713 14365.5723 -11413.5137]", "[-9677.3008 14459.7832 -11412.6533]", "[-9163.1914 14528.4385 -11411.582]", "[-8647.6934 14575.2656 -11410.7393]", "[-8132.0132 14602.1084 -11409.5879]", "[-7616.9932 14611.2334 -11409.1338]", "[-7103.3398 14606.9063 -11404.6201]", "[-6561.5649 14606.4395 -11399.5146]", "[-6022.667 14604.9531 -11390.0479]", "[-5486.7813 14605.9492 -11380.209]", "[-4954.9604 14604.999 -11365.6719]", "[-4427.9238 14606.1289 -11352.084]", "[-3906.8403 14605.4121 -11333.1299]", "[-3391.7698 14604.5264 -11314.6816]", "[-2856.1572 14606.1416 -11290.3887]", "[-2329.2639 14605.1406 -11266.5371]", "[-1811.7866 14605.2344 -11244.3613]", "[-1277.0618 14606.3398 -11221.0791]", "[-752.4542 14605.5615 -11197.9365]", "[-238.5429 14606.1631 -11174.6328]", "[289.8942 14606.0313 -11152.3994]", "[806.7358 14606.2578 -11129.7061]", "[1336.3077 14605.5205 -11107.0479]", "[1854.2751 14605.1855 -11083.8467]", "[2384.4763 14606.332 -11061.3975]", "[2903.3418 14605.0996 -11038.3945]", "[3435.6948 14605.9385 -11015.4756]", "[3959.7942 14606.3584 -10991.8408]", "[4478.417 14607.1875 -10969.5918]", "[5003.0439 14605.7256 -10946.4365]", "[5520.481 14604.8076 -10923.5176]", "[6050.1543 14606.4453 -10902.6602]", "[6567.1836 14603.9521 -10885.6514]", "[7093.6143 14604.8564 -10869.8096]", "[7629.7207 14605.4277 -10856.8516]", "[8149.9253 14605.458 -10846.6162]", "[8679.1611 14604.749 -10837.4395]", "[9191.5049 14605.2139 -10830.5518]", "[9712.0195 14604.1885 -10824.4121]", "[10238.4238 14605.9561 -10823.4131]", "[10772.1582 14604.1855 -10823.127]", "[11287.0459 14604.2637 -10824.2139]", "[11809.3291 14603.6689 -10824.0088]", "[12338.626 14593.9053 -10825.2695]", "[12872.2949 14532.5039 -10827.0459]", "[13374.9678 14423.7881 -10829.9502]", "[13863.3652 14252.2627 -10831.2109]", "[14322.9795 14011.6504 -10831.8652]", "[14732.3896 13694.1143 -10832.4092]", "[15039.7373 13353.874 -10832.5332]", "[15322.3105 12901.0264 -10831.8867]", "[15519.4326 12426.0127 -10830.5156]", "[15654.375 11919.2002 -10828.6914]", "[15732.9453 11409.29 -10827.0566]", "[15769.0811 10875.4131 -10824.748]", "[15767.4707 10344.5273 -10821.9404]", "[15762.3555 9817.5156 -10816.9102]", "[15761.0166 9293.7891 -10810.3896]", "[15762.792 8773.7705 -10800.3535]", "[15759.3145 8258.0586 -10793.209]", "[15731.9844 7723.126 -10789.5547]", "[15674.1758 7194.7451 -10784.7959]", "[15585.6201 6673.7412 -10780.3818]", "[15467.7939 6161.8516 -10775.6914]", "[15317.2256 5661.8081 -10771.6406]", "[15134.9658 5175.8823 -10767.4033]", "[14964.2695 4689.8809 -10762.8291]", "[14838.8037 4193.188 -10758.4697]", "[14743.5371 3669.6802 -10754.0098]", "[14676.8027 3145.6055 -10749.4688]", "[14639.8154 2621.9368 -10744.8828]", "[14628.623 2100.718 -10740.3018]", "[14632.4912 1582.592 -10739.6045]", "[14633.9336 1066.8792 -10740.3779]", "[14635.043 552.6221 -10740.1982]", "[14632.7705 39.0562 -10740.4346]", "[14633.3945 -473.8846 -10740.3535]", "[14635.1084 -986.2096 -10740.2578]", "[14633.8018 -1520.1753 -10740.4043]", "[14633.7305 -2053.4707 -10740.2803]", "[14633.6641 -2586.1211 -10740.3584]", "[14633.9316 -3118.1184 -10740.5332]", "[14632.9658 -3649.4597 -10740.2871]", "[14633.6602 -4180.189 -10740.4229]", "[14634.1992 -4710.2422 -10740.4014]", "[14633.7783 -5239.7114 -10740.375]", "[14633.9814 -5767.9771 -10739.6455]", "[14635.0352 -6294.5396 -10739.8086]", "[14634.0859 -6819.5581 -10739.9941]", "[14635.2041 -7343.3442 -10739.1016]", "[14633.6807 -7865.6108 -10740.1904]", "[14630.2559 -8386.7031 -10740.5723]", "[14605.4346 -8906.5566 -10742.2607]", "[14558.7959 -9425.1992 -10742.4805]", "[14490.3037 -9942.7578 -10744.4102]", "[14395.8223 -10458.1299 -10744.9346]", "[14274.9629 -10970.2305 -10745.7285]", "[14120.4473 -11478.3867 -10746.5547]", "[13940.2393 -11959.9424 -10747.0947]", "[13721.3145 -12434.166 -10747.3672]", "[13470.8789 -12883.4814 -10748.085]", "[13184.9053 -13308.4883 -10748.1885]", "[12847.7236 -13723.6533 -10748.5566]", "[12479.1074 -14100.4639 -10748.3535]", "[12085.6592 -14433.2979 -10747.8613]", "[11654.6328 -14737.3818 -10747.6982]", "[11188.165 -15007.3506 -10747.1543]", "[10718.3447 -15230.7002 -10747.0303]", "[10225.293 -15421.7734 -10746.6123]", "[9712.9521 -15582.0537 -10745.5977]", "[9213.3975 -15703.873 -10744.9668]", "[8702.0088 -15801.623 -10743.9375]", "[8179.8232 -15873.958 -10743.1406]", "[7650.2588 -15924.0391 -10742.0391]", "[7117.0986 -15953.2832 -10740.8799]", "[6583.2588 -15962.8057 -10740.0605]", "[6052.5811 -15956.9102 -10740.5439]", "[5525.4746 -15957.7236 -10739.4932]", "[5000.1572 -15956.3848 -10740.3447]", "[4475.4229 -15956.9775 -10740.1572]", "[3951.1741 -15957.8525 -10740.2686]", "[3427.4214 -15955.9668 -10739.9629]", "[2904.697 -15957.376 -10735.3232]", "[2383.2517 -15957.5947 -10730.3789]", "[1864.7504 -15959.0225 -10720.415]", "[1349.1958 -15957.6318 -10710.9951]", "[807.4664 -15957.9189 -10696.1846]", "[270.2628 -15958.3311 -10681.6768]", "[-261.8055 -15957.7617 -10667.751]", "[-788.677 -15958.6279 -10653.3809]", "[-1309.5835 -15957.8643 -10634.2305]", "[-1824.3287 -15957.8906 -10615.4795]", "[-2360.5063 -15958.1094 -10596.9912]", "[-2890.1692 -15957.9775 -10578.0791]", "[-3414.6243 -15957.4688 -10560.2656]", "[-3933.8735 -15958.0117 -10540.4404]", "[-4448.5122 -15958.0742 -10523.7305]", "[-4985.0601 -15958.4551 -10504.9502]", "[-5517.2222 -15958.417 -10486.5684]", "[-6045.0605 -15957.2842 -10468.042]", "[-6568.7554 -15959.5557 -10449.7803]", "[-7088.4155 -15957.1318 -10431.6143]", "[-7604.3574 -15958.9893 -10413.6787]", "[-8116.1689 -15958.3359 -10396.2842]", "[-8648.9893 -15959.3447 -10377.1055]", "[-9177.6191 -15958.4609 -10358.8779]", "[-9701.9814 -15957.5645 -10340.1133]", "[-10222.4883 -15960.0244 -10326.1631]", "[-10739.8125 -15959.6396 -10312.2148]", "[-11255.1807 -15959.5518 -10300.9121]", "[-11769.1943 -15960.4521 -10288.7305]", "[-12283.1338 -15952.9482 -10287.3506]", "[-12797.2139 -15901.0049 -10290.4609]", "[-13307.1885 -15798.2197 -10290.8516]", "[-13804.7012 -15633.5645 -10289.1113]", "[-14275.8457 -15397.207 -10285.8721]", "[-14699.7744 -15081.8613 -10281.1875]", "[-15007.7549 -14753.2666 -10275.375]", "[-15293.04 -14318.9658 -10267.0605]", "[-15499.6074 -13849.8945 -10257.7441]", "[-15644.3262 -13341.5576 -10247.6211]", "[-15729.8574 -12828.458 -10236.418]", "[-15770.1807 -12295.3223 -10224.6064]", "[-15772.4463 -11769.7158 -10214.2197]", "[-15766.6563 -11252.7275 -10206.5723]", "[-15766.0918 -10720.2412 -10198.958]", "[-15767.9248 -10192.666 -10195.6152]", "[-15766.6123 -9669.293 -10191.8877]", "[-15766.1904 -9148.1396 -10193.4492]", "[-15763.9658 -8628.5625 -10193.2959]", "[-15698.4717 -8113.1899 -10193.6973]", "[-15569.2266 -7610.939 -10192.9795]", "[-15396.6484 -7125.4238 -10193.335]", "[-15257.876 -6881.9614 -10193.1914]", "[-14949.8789 -6447.5928 -10193.3535]", "[-14585.5166 -6060.8721 -10193.1885]", "[-14182.6875 -5715.8955 -10193.5]", "[-13752.707 -5405.9702 -10193.4229]", "[-13300.5 -5124.7417 -10192.8438]", "[-12854.8008 -4866.7075 -10187.0107]", "[-12408.7217 -4598.3228 -10181.0195]", "[-11957.3516 -4325.1016 -10170.666]", "[-11499.5596 -4051.6838 -10159.5576]", "[-11055.3428 -3792.7581 -10145.1553]", "[-10610.1367 -3531.6069 -10130.0771]", "[-10162.8164 -3274.345 -10110.5889]", "[-9717.5264 -3014.7693 -10090.75]", "[-9273.417 -2757.7224 -10067.3252]", "[-8812.3936 -2492.1763 -10042.1006]", "[-8356.9873 -2226.8999 -10013.1436]", "[-7904.7134 -1965.5502 -9988.5996]", "[-7455.3916 -1706.2657 -9966.6279]", "[-7009.1069 -1446.168 -9947.0645]", "[-6561.4063 -1188.793 -9929.6475]", "[-6114.4492 -928.3698 -9914.9746]", "[-5664.1841 -668.6652 -9901.7656]", "[-5212.1602 -405.729 -9891.6963]", "[-4755.7344 -141.4888 -9882.5293]", "[-4311.1973 116.5276 -9877.5859]", "[-3848.4714 382.9479 -9872.9863]", "[-3391.7419 648.3868 -9872.709]", "[-2941.9683 909.0439 -9872.7568]", "[-2479.6646 1175.8138 -9872.9287]", "[-2030.0737 1437.6409 -9872.8418]", "[-1573.9513 1700.8481 -9873.0156]", "[-1117.0599 1965.5522 -9872.6582]", "[-663.6948 2235.262 -9872.8994]", "[-223.1749 2524.5488 -9873.0938]", "[205.1181 2829.9053 -9872.6641]", "[618.3832 3154.3442 -9872.5938]", "[1015.3781 3497.4009 -9872.8779]", "[1392.635 3861.1797 -9872.9951]", "[1746.7086 4246.5249 -9873.082]", "[2075.1355 4652.8931 -9872.4844]", "[2372.5603 5081.5366 -9872.9902]", "[2635.3037 5531.0273 -9872.7539]", "[2859.645 5999.8955 -9872.8994]", "[3041.3052 6485.6499 -9872.6396]", "[3179.2847 6984.3667 -9872.9805]", "[3272.2175 7492.1626 -9872.5439]", "[3320.605 8004.8311 -9872.7148]", "[3325.2651 8518.6172 -9872.8916]", "[3291.0381 9029.9844 -9872.9287]", "[3215.4155 9561.5557 -9872.8408]", "[3104.3589 10085.6367 -9872.6191]", "[2960.0713 10600.502 -9872.6162]", "[2789.3237 11106.0996 -9872.4502]", "[2592.4177 11601.2227 -9873.0889]", "[2375.0107 12086.7402 -9872.8555]", "[2137.707 12561.9795 -9872.8672]", "[1884.1769 13027.958 -9872.9297]", "[1623.7329 13486.7822 -9872.5352]", "[1372.7532 13947.7568 -9871.8008]", "[1084.9369 14384.3828 -9872.2109]", "[758.7859 14791.0342 -9872.127]", "[391.9729 15159.8066 -9871.835]", "[-19.6135 15476.2373 -9872.0088]", "[-472.5789 15727.165 -9872.1113]", "[-960.9724 15895.4336 -9872.1182]", "[-1460.7954 16011.0752 -9872.2891]", "[-1987.9065 16098.4619 -9871.6006]", "[-2518.8953 16133.6289 -9871.8301]", "[-3048.8059 16100.04 -9871.9795]", "[-3566.7634 15990.6865 -9871.6953]", "[-4057.4077 15795.3037 -9871.7041]", "[-4520.4854 15545.6768 -9872.1699]", "[-4991.5444 15314.9336 -9872.1787]", "[-5463.9355 15084.0459 -9872.1855]", "[-5939.02 14852.208 -9872.2393]", "[-6418.0093 14619.5283 -9872.1553]", "[-6877.4561 14392.8691 -9871.9805]", "[-7343.6099 14167.7363 -9872.25]", "[-7812.1553 13937.0195 -9872.0527]", "[-8285.3203 13706.8457 -9872.1953]", "[-8759.8096 13475.2002 -9872.1572]", "[-9233.7744 13244.6455 -9871.8057]", "[-9706.6094 13013.8223 -9872.1973]", "[-10178.4883 12782.5488 -9871.6914]", "[-10650.457 12554.0771 -9872.0703]", "[-11120.4932 12323.2773 -9870.9531]", "[-11588.8535 12092.3359 -9871.6523]", "[-12038.457 11830.2549 -9871.4854]", "[-12454.9512 11518.71 -9871.5137]", "[-12875.208 11216.3379 -9871.3193]", "[-13294.4844 10913.9805 -9871.8262]", "[-13705.1816 10601.6592 -9871.835]", "[-14079.3838 10247.082 -9870.9551]", "[-14410.582 9853.2236 -9871.9434]", "[-14703.4229 9432.9502 -9871.8574]", "[-14969.3232 8968.5186 -9871.7773]", "[-15175.0449 8475.8184 -9871.6387]", "[-15347.8506 7973.8311 -9871.6309]", "[-15450.3145 7453.3643 -9871.4365]", "[-15516 6930.6021 -9871.5918]", "[-15543.8096 6405.7109 -9871.6895]", "[-15552.8838 5882.5249 -9871.7373]", "[-15554.1914 5361.1738 -9868.6455]", "[-15548.46 4842.2749 -9863.5762]", "[-15550.4443 4326.0581 -9859.2578]", "[-15550.377 3812.7107 -9854.249]", "[-15550.0479 3279.1113 -9849.793]", "[-15549.2441 2748.6196 -9845.1982]", "[-15549.6406 2221.2549 -9840.582]", "[-15549.6416 1697.8601 -9836.0361]", "[-15549.8604 1185.1035 -9835.667]", "[-15550.5654 665.4739 -9835.999]", "[-15549.8145 138.8053 -9836.1025]", "[-15550.4521 -374.4835 -9835.9844]", "[-15549.8457 -895.308 -9836.208]", "[-15549.0996 -1423.0648 -9836.3516]", "[-15550.2363 -1938.3082 -9836.502]", "[-15550.8604 -2457.72 -9836.4512]", "[-15550.5547 -2980.6963 -9836.4805]", "[-15550.3008 -3498.2122 -9836.6816]", "[-15551.3096 -4017.7832 -9836.3838]", "[-15549.3604 -4534.3887 -9836.4727]", "[-15551.0205 -5049.3945 -9836.6523]", "[-15550.6836 -5564.0332 -9836.4453]", "[-15549.5791 -6079.583 -9836.9443]", "[-15549.9951 -6600.2266 -9837.3965]", "[-15550.6494 -7116.625 -9837.126]", "[-15549.1826 -7641.0981 -9836.9355]", "[-15550.4697 -8155.3906 -9837.3945]", "[-15548.2646 -8673.1309 -9837.0342]", "[-15548.7646 -9189.3057 -9837.248]", "[-15549.876 -9703.8682 -9837.0771]", "[-15549.4639 -10216.8271 -9837.2285]", "[-15549.9092 -10742.8105 -9837.1289]", "[-15549.6055 -11267.1162 -9837.0088]", "[-15548.7803 -11789.7441 -9837.1133]", "[-15549.1318 -12307.9648 -9837.1602]", "[-15549.1504 -12820.6787 -9837.166]", "[-15550.2256 -13343.3682 -9837.0498]", "[-15548.7676 -13866.8564 -9837.2324]", "[-15550.0186 -14382.1514 -9837.207]", "[-15550.334 -14894.7051 -9837.25]", "[-15550.2568 -15408.415 -9837.2568]", "[-15549.3887 -15499.4033 -9837.168]" ], [ "[7721.9058 -14598.9404 -9837.1387]", "[7621.6304 -14598.5234 -9837.084]", "[7106.8647 -14598.6436 -9837.0703]", "[6587.561 -14598.6123 -9837.0947]", "[6075.3145 -14598.5635 -9837.083]", "[5553.8237 -14597.7227 -9837.2383]", "[5039.0469 -14599.0215 -9837.0996]", "[4514.5303 -14598.083 -9837.0898]", "[3989.2927 -14598.0664 -9837.2012]", "[3461.8489 -14597.9795 -9837.1504]", "[2941.5547 -14597.9854 -9837.1387]", "[2417.8733 -14597.6035 -9837.1416]", "[1894.938 -14597.8711 -9837.1387]", "[1372.7572 -14597.9805 -9837.0439]", "[851.2889 -14598.5439 -9837.2656]", "[330.5954 -14598.3496 -9837.1006]", "[-189.3727 -14598.1299 -9837.1641]", "[-708.5724 -14599.1738 -9837.0879]", "[-1227.052 -14598.7354 -9837.1328]", "[-1744.7772 -14598.9082 -9837.1357]", "[-2261.7888 -14598.7783 -9837.1572]", "[-2778.0413 -14597.8174 -9837.2285]", "[-3293.5684 -14598.8672 -9837.1611]", "[-3808.3213 -14597.9121 -9836.8848]", "[-4322.3755 -14597.7021 -9837.2139]", "[-4835.6353 -14597.8496 -9837.1553]", "[-5348.1802 -14598.2012 -9837.1563]", "[-5879.6265 -14598.1563 -9837.1436]", "[-6410.2847 -14598.4258 -9836.9561]", "[-6940.1436 -14598.4814 -9837.2412]", "[-7469.1641 -14598.0557 -9837.1729]", "[-7997.3486 -14599.0811 -9837.1963]", "[-8524.7139 -14597.5352 -9837.1982]", "[-9051.2617 -14598.6104 -9837.1465]", "[-9576.9912 -14598.6182 -9837.1426]", "[-10101.9453 -14597.3428 -9837.1455]", "[-10626.0068 -14598.8232 -9836.6631]", "[-11145.3545 -14597.6758 -9837.3037]", "[-11667.8809 -14598.9307 -9837.2031]", "[-12186.4307 -14585.3984 -9837.7178]", "[-12697.3193 -14512.3691 -9837.6885]", "[-13193.1846 -14371.082 -9837.6807]", "[-13661.2949 -14145.5244 -9838.5439]", "[-13962.167 -13928.3799 -9838.5654]", "[-14243.0439 -13639.2725 -9838.4824]", "[-14432.3936 -13358.709 -9838.4658]", "[-14645.1377 -12892.7549 -9838.3271]", "[-14780.3418 -12382.7314 -9837.6123]", "[-14847.4922 -11861.9961 -9837.2861]", "[-14864.0605 -11337.5625 -9836.9883]", "[-14852.0176 -10807.4502 -9837.0977]", "[-14850.4248 -10283.7197 -9836.792]", "[-14852.5771 -9760.9355 -9837.0039]", "[-14850.3652 -9244.7275 -9835.623]", "[-14851.8379 -8717.8438 -9833.9688]", "[-14851.5488 -8203.7344 -9835.2715]", "[-14851.3711 -7677.8306 -9835.2871]", "[-14853.21 -7152.8994 -9834.8721]", "[-14852.2852 -6627.8823 -9835.2139]", "[-14851.6992 -6109.3813 -9834.8701]", "[-14852.1582 -5582.7715 -9835.0889]", "[-14853.8672 -5054.333 -9834.7842]", "[-14853.8115 -4526.5513 -9835.3096]", "[-14853.5439 -3999.5439 -9835.0264]", "[-14852.6357 -3473.0415 -9835.0322]", "[-14851.6797 -2947.1045 -9834.8574]", "[-14853.5215 -2421.6836 -9835.1699]", "[-14853.5273 -1896.8583 -9835.1113]", "[-14852.793 -1375.2048 -9835.2842]", "[-14851.7852 -861.8339 -9835.1719]", "[-14853.5791 -334.2067 -9835.2676]", "[-14853.5371 182.184 -9835.1973]", "[-14852.9971 714.2183 -9835.293]", "[-14851.5449 1244.9752 -9835.6455]", "[-14853.1279 1775.1583 -9836.0557]", "[-14854.207 2304.8074 -9841.1924]", "[-14853.9365 2835.1812 -9846.4414]", "[-14854.6895 3367.1428 -9850.9395]", "[-14854.2363 3900.8965 -9855.6465]", "[-14854.2832 4436.4102 -9860.3145]", "[-14853.0986 4949.2271 -9864.874]", "[-14855.1797 5463.6455 -9869.2373]", "[-14853.8027 5979.5586 -9873.1221]", "[-14842.1973 6495.7559 -9872.4648]", "[-14804.6035 7010.854 -9871.7266]", "[-14745.9531 7523.3838 -9872.5146]", "[-14627.1943 8025.2656 -9872.0146]", "[-14472.4648 8514.9063 -9872.0391]", "[-14260.0605 8982.1426 -9872.1846]", "[-13997.2119 9447.5762 -9872.1172]", "[-13694.4336 9886.1123 -9871.9707]", "[-13339.2666 10281.8379 -9872.3096]", "[-12962.5713 10652.4102 -9871.8271]", "[-12538.0156 10967.165 -9871.8428]", "[-12097.0791 11251.4541 -9871.9492]", "[-11626.1309 11482.0469 -9872.2109]", "[-11153.0361 11700.9414 -9871.8799]", "[-10686.7588 11931.2012 -9871.8506]", "[-10219.3594 12156.665 -9872.082]", "[-9753.8652 12384.6572 -9872.1309]", "[-9288.084 12609.9619 -9872.0693]", "[-8824.2627 12836.4404 -9871.9561]", "[-8361.7588 13064.0762 -9872.2529]", "[-7898.3706 13288.4033 -9871.9531]", "[-7436.688 13514.2002 -9871.9063]", "[-6975.1763 13738.9834 -9871.9053]", "[-6515.2212 13964.8594 -9871.6426]", "[-6039.4648 14208.8984 -9872.3262]", "[-5563.666 14451.3359 -9871.957]", "[-5092.5469 14701.5967 -9873.0947]", "[-4620.1567 14948.2852 -9872.9746]", "[-4138.144 15173.8125 -9873.1768]", "[-3637.6975 15349.2734 -9873.4316]", "[-3123.2629 15466.3389 -9873.2998]", "[-2601.2603 15517.4287 -9873.7754]", "[-2079.574 15485.9414 -9872.9648]", "[-1573.6187 15365.3457 -9873.4385]", "[-1119.1279 15167.9541 -9873.1836]", "[-687.2918 14886.5537 -9872.9961]", "[-302.997 14548.043 -9872.8789]", "[50.4069 14151.5449 -9872.6992]", "[359.8351 13723.1455 -9873.0771]", "[632.6615 13273.0879 -9873.1357]", "[883.012 12812.4141 -9873.1855]", "[1125.4642 12349.7539 -9872.8672]", "[1347.4889 11878.6875 -9872.9053]", "[1548.4954 11399.3691 -9872.9238]", "[1728.3181 10913.6855 -9872.9443]", "[1881.1699 10421.3232 -9872.4688]", "[2005.5021 9922.2334 -9872.3525]", "[2099.2466 9418.1699 -9872.8262]", "[2160.2563 8889.1816 -9873.1309]", "[2179.3804 8358.6357 -9873.2334]", "[2154.9727 7829.644 -9873.1074]", "[2085.8601 7306.0435 -9873.0244]", "[1969.3621 6792.3384 -9873.0947]", "[1807.0576 6292.9028 -9873.1084]", "[1602.3448 5811.1191 -9872.8838]", "[1357.3188 5350.3242 -9873.084]", "[1076.1177 4912.6216 -9873.0469]", "[765.2462 4497.48 -9872.8711]", "[427.4205 4105.6968 -9873.0986]", "[66.0013 3737.3608 -9872.9307]", "[-313.9487 3390.0444 -9873.0107]", "[-709.5478 3063.1177 -9872.7686]", "[-1118.3673 2754.6912 -9872.793]", "[-1556.1943 2453.2222 -9872.8867]", "[-2003.756 2169.0149 -9872.9082]", "[-2460.26 1902.0146 -9872.5449]", "[-2918.4277 1641.3696 -9872.7432]", "[-3373.1511 1377.7836 -9872.9385]", "[-3826.6084 1113.6501 -9873.0273]", "[-4280.4531 851.6644 -9873.252]", "[-4734.687 589.5641 -9879.5273]", "[-5188.8237 325.5259 -9884.5342]", "[-5646.1216 59.62 -9895.5781]", "[-6090.7056 -196.4733 -9904.6953]", "[-6539.5259 -457.5388 -9920.5264]", "[-6995.6372 -719.7938 -9934.5205]", "[-7439.4448 -978.0874 -9954.7666]", "[-7891.459 -1240.1149 -9973.2705]", "[-8352.7588 -1508.2784 -9998.8779]", "[-8805.8926 -1768.4727 -10022.5869]", "[-9248.1602 -2025.8418 -10051.3418]", "[-9701.7764 -2288.1086 -10076.5879]", "[-10144.792 -2544.3467 -10098.0469]", "[-10593.5996 -2805.6738 -10118.0645]", "[-11043.3818 -3066.1475 -10135.665]", "[-11489.4141 -3328.0283 -10151.1123]", "[-11932.6621 -3588.7036 -10163.7471]", "[-12391.9023 -3862.4492 -10174.8975]", "[-12845.1377 -4135.7793 -10183.3115]", "[-13292.6914 -4406.4883 -10189.2285]", "[-13735.793 -4671.4321 -10193.0996]", "[-14185.0811 -4955.3037 -10193.6982]", "[-14599.7197 -5274.0098 -10193.4404]", "[-14979.3779 -5628.2964 -10193.2188]", "[-15317.3164 -6021.0542 -10193.2939]", "[-15599.0303 -6454.5718 -10193.0703]", "[-15808.4277 -6925.7378 -10193.5889]", "[-15933.6572 -7423.9019 -10193.6602]", "[-16027.3701 -7947.0986 -10193.7373]", "[-16047.7813 -8477.124 -10193.459]", "[-16033.7324 -9004.0879 -10193.1406]", "[-16033.3721 -9529.2393 -10193.5117]", "[-16032.71 -10053.1201 -10193.3301]", "[-16031.6816 -10575.9922 -10197.6973]", "[-16033.542 -11099.0947 -10203.085]", "[-16030.9648 -11624.4521 -10212.3506]", "[-16031.7393 -12153.415 -10221.2334]", "[-16008.4717 -12685.3262 -10228.5068]", "[-15940.1855 -13194.5254 -10235.5508]", "[-15822.335 -13697.2744 -10242.9043]", "[-15646.0068 -14185.6367 -10250.3506]", "[-15402.4941 -14646.6436 -10257.7607]", "[-15086.625 -15063.9121 -10264.6299]", "[-14702.958 -15421.2773 -10270.7148]", "[-14264.1582 -15708.9629 -10276.3965]", "[-13786.5879 -15925.251 -10281.0215]", "[-13285.3262 -16077.1162 -10284.4229]", "[-12771.0732 -16172.7451 -10288.123]", "[-12251.2129 -16221.9609 -10291.0908]", "[-11729.5176 -16234.291 -10293.0527]", "[-11206.9775 -16226.4951 -10302.8008]", "[-10681.8867 -16226.5771 -10313.6113]", "[-10151.832 -16226.7266 -10327.4805]", "[-9639.1445 -16224.7344 -10341.8809]", "[-9120.5303 -16224.6611 -10360.1152]", "[-8594.6318 -16224.9873 -10379.3301]", "[-8060.2813 -16225.8613 -10397.9883]", "[-7542.1133 -16224.5928 -10416.1729]", "[-7016.0493 -16223.4375 -10434.7891]", "[-6482.0991 -16223.8779 -10453.3086]", "[-5966.2129 -16223.8955 -10471.2637]", "[-5443.7964 -16223.5117 -10488.3223]", "[-4914.7515 -16224.6914 -10507.668]", "[-4379.3696 -16224.4971 -10526.5342]", "[-3864.2439 -16223.1953 -10544.5703]", "[-3342.6592 -16223.4404 -10562.7441]", "[-2814.7317 -16224.7021 -10581.041]", "[-2280.386 -16223.7275 -10599.7598]", "[-1768.2773 -16222.9551 -10617.8525]", "[-1250.4705 -16224.0566 -10635.8057]", "[-726.9541 -16224.6924 -10654.4199]", "[-197.8503 -16222.6182 -10670.6387]", "[336.2577 -16223.4932 -10683.3262]", "[874.8997 -16224.9443 -10697.4785]", "[1387.2266 -16222.8848 -10711.0967]", "[1902.8606 -16223.4424 -10721.3623]", "[2421.4839 -16223.751 -10729.8174]", "[2941.9607 -16221.1885 -10736.3262]", "[3463.8643 -16223.458 -10739.4512]", "[3986.2219 -16221.1113 -10741.2432]", "[4508.0508 -16223.4199 -10740.043]", "[5029.4688 -16222.041 -10740.21]", "[5550.3809 -16223.0381 -10740.415]", "[6070.3701 -16223.1758 -10740.4922]", "[6589.7388 -16222.6523 -10740.0986]", "[7108.5161 -16217.915 -10739.3105]", "[7625.9517 -16191.2676 -10737.6748]", "[8140.9624 -16145.2783 -10737.5098]", "[8652.4189 -16076.9277 -10736.5381]", "[9158.9668 -15985.8506 -10735.5088]", "[9659.0791 -15870.0381 -10734.7969]", "[10150.833 -15725.6133 -10734.0566]", "[10660.0977 -15541.2178 -10733.3818]", "[11153.4375 -15320.7988 -10733.2178]", "[11627.458 -15064.25 -10732.6357]", "[12077.5557 -14769.6865 -10732.5869]", "[12499.2891 -14437.625 -10732.2744]", "[12888.3027 -14069.5332 -10731.9688]", "[13241.7529 -13668.7764 -10732.0732]", "[13558.3174 -13239.6816 -10732.4844]", "[13836.0039 -12785.7793 -10732.8125]", "[14076.9355 -12312.5723 -10733.3271]", "[14280.1016 -11822.9678 -10733.6406]", "[14450.9814 -11322.1934 -10734.542]", "[14589.2246 -10812.1748 -10735.2275]", "[14699.4775 -10296.0967 -10736.0205]", "[14783.0547 -9775.6221 -10736.8857]", "[14843.6719 -9252.4629 -10737.6514]", "[14882.3857 -8727.6807 -10738.3154]", "[14901.2695 -8202.1758 -10739.1416]", "[14903.0645 -7677.2778 -10740.002]", "[14899.0283 -7156.8003 -10739.7236]", "[14899.5557 -6643.9546 -10740.2656]", "[14899.2979 -6115.9326 -10740.0879]", "[14900.0254 -5601.1577 -10739.6641]", "[14899.8438 -5072.5356 -10740.2861]", "[14899.1758 -4556.1753 -10739.9922]", "[14899.5029 -4026.6028 -10739.9902]", "[14899.5283 -3506.3398 -10739.8828]", "[14900.0713 -2987.2393 -10740.1289]", "[14899.751 -2469.105 -10739.5488]", "[14899.7373 -1951.8395 -10740.0039]", "[14899.3467 -1435.1763 -10739.9854]", "[14900.165 -919.094 -10739.9941]", "[14900.3838 -403.5487 -10740.083]", "[14899.6172 111.4256 -10740.0664]", "[14898.6182 625.8246 -10740.0313]", "[14899.1465 1139.7067 -10740.4209]", "[14899.9697 1652.9626 -10740.1553]", "[14899.1777 2165.7095 -10740.1387]", "[14907.4023 2678.1108 -10744.5879]", "[14946.1328 3189.2046 -10750.1172]", "[15012.791 3697.8105 -10754.3516]", "[15107.1709 4202.8145 -10758.6553]", "[15233.9424 4701.8887 -10763.0049]", "[15392.5762 5192.0825 -10767.6152]", "[15579.0566 5672.2754 -10772.2793]", "[15733.916 6162.9048 -10776.2598]", "[15851.8975 6664.0806 -10780.2715]", "[15935.7354 7172.8398 -10784.335]", "[15993.1279 7686.2227 -10789.5195]", "[16025.9082 8202.7715 -10793.9385]", "[16032.125 8721.2393 -10798.4365]", "[16027.9277 9241.3721 -10807.834]", "[16027.918 9764.0527 -10817.5898]", "[16026.6279 10289.3291 -10821.3125]", "[16027.7793 10817.0176 -10825.3174]", "[16003.6201 11344.0596 -10822.2617]", "[15932.4141 11866.1777 -10819.3574]", "[15807.8477 12376.1094 -10818.5605]", "[15626.0664 12866.2441 -10817.4102]", "[15377.3896 13323.5098 -10816.458]", "[15060.1162 13733.2744 -10816.4473]", "[14679.084 14080.835 -10816.1982]", "[14248.748 14359.4775 -10817.0479]", "[13761.2734 14577.6406 -10817.96]", "[13251.9434 14727.7051 -10818.3848]", "[12731.8701 14821.5508 -10820.6348]", "[12207.666 14868.7246 -10822.6543]", "[11682.333 14877.8291 -10824.7559]", "[11157.8438 14870.376 -10824.2939]", "[10633.9463 14869.5957 -10823.8252]", "[10110.9014 14869.0635 -10823.8076]", "[9589.1152 14869.0625 -10824.1357]", "[9067.6016 14869.9395 -10830.0225]", "[8545.5537 14869.958 -10835.6807]", "[8021.3887 14869.1641 -10845.8477]", "[7494.7407 14869.7764 -10856.0791]", "[6963.4634 14869.8613 -10871.167]", "[6451.1177 14870.2002 -10885.5137]", "[5932.3452 14868.8779 -10904.9688]", "[5406.3315 14869.4141 -10924.4365]", "[4871.7979 14870.3184 -10949.4932]", "[4353.9902 14870.25 -10971.3994]", "[3827.198 14869.1182 -10994.7764]", "[3292.0938 14868.6211 -11018.498]", "[2775.3704 14869.6279 -11041.0615]", "[2250.553 14870.6934 -11063.7998]", "[1717.6902 14869.6104 -11087.3496]", "[1205.8645 14869.1914 -11109.584]", "[687.0454 14869.3193 -11132.4824]", "[161.5169 14870.9609 -11155.208]", "[-370.9402 14868.918 -11178.4668]", "[-910.3369 14868.6885 -11201.9844]", "[-1426.4136 14869.8037 -11224.2695]", "[-1948.8719 14869.498 -11247.5098]", "[-2477.7458 14869.8281 -11270.3076]", "[-3013.03 14870.5938 -11294.2549]", "[-3554.6477 14869.5723 -11317.7412]", "[-4069.897 14869.3652 -11336.0889]", "[-4589.8345 14871.126 -11353.6875]", "[-5113.9058 14868.7646 -11367.3809]", "[-5641.7148 14871.2744 -11380.7344]", "[-6172.1924 14869.085 -11389.7754]", "[-6704.9272 14869.4316 -11398.8135]", "[-7238.9287 14872.1934 -11404.5381]", "[-7774.3804 14870.2266 -11410.126]", "[-8309.7451 14860.8369 -11408.1338]", "[-8843.5791 14826.665 -11406.3799]", "[-9373.9424 14770.3057 -11405.209]", "[-9900.1914 14691.1865 -11404.8428]", "[-10420.8105 14585.5771 -11403.7432]", "[-10934.207 14452.6357 -11403.0254]", "[-11437.4619 14288.2549 -11402.5537]", "[-11927.8545 14091.3252 -11402.209]", "[-12401.5732 13860.2793 -11401.3848]", "[-12854.7793 13593.0996 -11401.2256]", "[-13283.4609 13289.9795 -11400.8262]", "[-13683.6533 12951.8311 -11400.5957]", "[-14051.7842 12580.4951 -11400.7119]", "[-14385.4893 12179.4219 -11401.0371]", "[-14681.9814 11751.2402 -11401.2021]", "[-14942.8066 11301.7158 -11401.4941]", "[-15167.541 10834.1836 -11402.2441]", "[-15358.3037 10352.7363 -11402.6211]", "[-15517.0313 9860.6572 -11402.915]", "[-15646.4961 9360.876 -11403.9785]", "[-15749.8311 8855.7041 -11404.751]", "[-15827.5742 8346.4844 -11405.292]", "[-15883.4014 7835 -11406.3594]", "[-15918.5928 7322.1538 -11407.3877]", "[-15935.8496 6808.8022 -11408.2148]", "[-15936.9639 6295.5684 -11409.7148]", "[-15933.7148 5783.415 -11416.3691]", "[-15933.6406 5242.5117 -11421.499]", "[-15933.4023 4706.2944 -11433.1152]", "[-15933.4775 4177.1406 -11443.9014]", "[-15933.4014 3655.5884 -11459.1191]", "[-15934.0986 3142.3506 -11474.2783]", "[-15932.3486 2606.9817 -11494.8369]", "[-15933.7148 2078.8613 -11515.4707]", "[-15933.3701 1556.3276 -11539.3965]", "[-15932.2422 1038.9226 -11561.5195]", "[-15934.165 526.003 -11584.0664]", "[-15934.3975 -10.626 -11607.0986]", "[-15933.0928 -542.9644 -11630.5869]", "[-15932.876 -1071.3486 -11653.6631]", "[-15933.8564 -1596.2118 -11676.6631]", "[-15932.3691 -2117.429 -11699.3682]", "[-15932.3418 -2635.3821 -11721.7275]", "[-15932.7373 -3150.1924 -11744.5098]", "[-15934.1162 -3662.3557 -11766.6836]", "[-15932.8369 -4198.7876 -11790.2578]", "[-15932.5752 -4732.5405 -11813.5635]", "[-15932.9756 -5262.7656 -11831.8887]", "[-15934.1982 -5789.2026 -11849.7568]", "[-15933.6318 -6311.0464 -11863.1064]", "[-15932.9004 -6827.9141 -11876.3652]", "[-15932.7754 -7364.1338 -11884.9951]", "[-15933.4492 -7893.5093 -11893.5674]", "[-15933.084 -8414.3193 -11897.0723]", "[-15933.5166 -8928.8965 -11901.1094]", "[-15934.4053 -9443.2852 -11900.4844]", "[-15933.1299 -9957.9082 -11899.7344]", "[-15933.6504 -10471.5889 -11901.8213]", "[-15933.9688 -10984.4941 -11903.1426]", "[-15933.7842 -11520.4229 -11902.9521]", "[-15924.1299 -12054.4541 -11902.4346]", "[-15866.7021 -12584 -11903.0439]", "[-15757.4326 -13104.4199 -11903.1133]", "[-15590.1846 -13607.9258 -11903.2744]", "[-15353.4502 -14081.6436 -11903.127]", "[-15044.457 -14509.8311 -11902.6406]", "[-14667.9277 -14877.6816 -11903.0703]", "[-14263.3711 -15209.2324 -11902.7852]", "[-13835.1484 -15506.6689 -11903.0811]", "[-13380.9473 -15760.1689 -11902.918]", "[-12897.8877 -15950.1729 -11903.0166]", "[-12393.3594 -16064.9648 -11902.9248]", "[-11878.4834 -16093.9375 -11902.8115]", "[-11366.6865 -16072.583 -11903.7393]", "[-10834.6719 -16072.5967 -11903.1992]", "[-10304.8574 -16042.9326 -11903.6416]", "[-9780.8594 -15961.7627 -11903.292]", "[-9269.0322 -15828.3818 -11903.291]", "[-8779.5107 -15631.0781 -11903.0947]", "[-8326.2041 -15363.6631 -11903.2803]", "[-7925.9209 -15024.6113 -11903.1416]", "[-7565.2339 -14648.2539 -11903.6113]", "[-7192.8472 -14287.7422 -11903.7188]", "[-6820.1699 -13928.5645 -11903.6875]", "[-6449.6387 -13568.1719 -11903.7344]", "[-6076.6851 -13211.8945 -11903.6396]", "[-5708.6787 -12851.6445 -11903.8242]", "[-5337.0977 -12496.4902 -11903.9678]", "[-4968.1177 -12139.6953 -11903.9287]", "[-4599.3296 -11783.7188 -11903.5391]", "[-4214.5908 -11413.2549 -11903.7607]", "[-3831.9575 -11042.4238 -11903.792]", "[-3449.8152 -10672.8604 -11903.7549]", "[-3067.9622 -10304.4912 -11903.7686]", "[-2686.8645 -9936.5098 -11903.5889]", "[-2306.3064 -9569.1416 -11903.5713]", "[-1926.0984 -9202.7119 -11903.7764]", "[-1547.4375 -8836.1104 -11903.5293]", "[-1168.5193 -8470.8574 -11903.3154]", "[-791.8965 -8105.6792 -11902.9463]", "[-415.2314 -7742.6396 -11903.2734]", "[-40.0826 -7379.2637 -11904.002]", "[335.7268 -7017.6885 -11903.1699]", "[711.1011 -6656.9565 -11903.4609]", "[1084.8383 -6296.1152 -11903.4707]", "[1457.9131 -5935.6162 -11903.3701]", "[1830.6803 -5576.1489 -11902.29]", "[2201.3508 -5216.853 -11902.9473]", "[2571.6436 -4859.3623 -11902.834]", "[2940.6997 -4501.6821 -11903.1631]", "[3310.2542 -4146.3853 -11903.2246]", "[3693.6348 -3775.9758 -11902.9307]", "[4076.7632 -3406.325 -11903.0977]", "[4458.6763 -3036.8928 -11903.373]", "[4840.5933 -2668.8613 -11903.1221]", "[5221.8799 -2301.1953 -11903.2305]", "[5601.9487 -1933.283 -11903.2061]", "[5981.9746 -1566.3752 -11903.1328]", "[6361.0815 -1198.8549 -11908.1465]", "[6742.0503 -832.5062 -11913.1475]", "[7124.5933 -464.0806 -11923.5459]", "[7493.6011 -106.656 -11932.6611]", "[7866.4912 254.7131 -11947.1748]", "[8244.7285 619.4169 -11961.4502]", "[8628.375 990.4212 -11980.8887]", "[9003.2598 1351.1954 -11999.3516]", "[9383.0693 1720.1052 -12018.3105]", "[9753.9307 2077.0425 -12035.9844]", "[10130.3262 2440.729 -12054.4434]", "[10512.5703 2810.1575 -12072.2998]", "[10883.6611 3167.7351 -12090.9023]", "[11260.3379 3530.8281 -12108.6895]", "[11641.1543 3901.0166 -12127.876]", "[12010.3301 4256.9453 -12145.6221]", "[12384.5566 4617.9648 -12163.9141]", "[12763.3994 4983.9116 -12182.0234]", "[13143.7686 5352.2612 -12200.9961]", "[13522.1133 5718.647 -12216.9072]", "[13898.2568 6080.2148 -12229.5693]", "[14269.7461 6438.9897 -12240.8125]", "[14638.2842 6795.0928 -12248.8008]", "[15002.8682 7158.9854 -12252.334]", "[15334.1816 7555.7373 -12250.5801]", "[15629.8291 7979.3442 -12250.9561]", "[15876.9014 8431.8447 -12251.2197]", "[16064.8789 8910.4678 -12251.002]", "[16177.0518 9411.376 -12250.8574]", "[16203.2676 9948.1123 -12250.9014]", "[16178.6113 10480.4131 -12241.6807]", "[16179.375 11007.5098 -12230.5664]", "[16180.1367 11530.0234 -12228.1533]", "[16179.125 12047.6221 -12223.1426]", "[16152.4785 12561.3496 -12225.7188]", "[16073.5283 13091.6855 -12225.4561]", "[15938.0479 13609.6201 -12225.4131]", "[15737.1377 14104.8066 -12225.4629]", "[15462.5908 14561.8418 -12225.9307]", "[15129.5303 14944.9863 -12225.3057]", "[14716.876 15277.2041 -12225.1846]", "[14254.8389 15531.5 -12225.4941]", "[13762.4424 15712.8271 -12225.8262]", "[13254.1797 15832.3555 -12225.6289]", "[12738.6279 15900.2471 -12225.3535]", "[12220.9697 15927.2178 -12225.5186]", "[11704.0479 15921.8662 -12225.041]", "[11188.6934 15919.1484 -12228.5859]", "[10673.9375 15917.1035 -12231.9326]", "[10158.3008 15919.3281 -12236.9131]", "[9641.2744 15918.0518 -12241.5332]", "[9122.5859 15919.5781 -12248.8291]", "[8601.4512 15918.2764 -12256.1768]", "[8077.4263 15917.5752 -12266.1084]", "[7550.0933 15918.8047 -12275.4639]", "[7018.7554 15918.6641 -12284.7334]", "[6483.3613 15919.3066 -12294.0059]", "[5968.5234 15917.5508 -12303.4688]", "[5450.043 15917.8838 -12312.3623]", "[4927.8774 15919.1006 -12321.4189]", "[4402.2539 15919.1611 -12328.8076]", "[3874.0923 15919.6533 -12332.7969]", "[3344.0681 15918.877 -12339.3057]", "[2811.5608 15918.2441 -12349.8809]", "[2276.1362 15917.6299 -12359.4961]", "[1763.0505 15918.5693 -12368.0732]", "[1247.0413 15919.71 -12377.0078]", "[727.7542 15918.3428 -12386.2256]", "[205.3621 15918.0439 -12395.4844]", "[-320.0982 15918.1582 -12403.9746]", "[-848.3451 15918.6396 -12413.7471]", "[-1379.5466 15918.6553 -12422.5234]", "[-1913.7874 15919.0264 -12432.5664]", "[-2451.3154 15918.0391 -12441.1689]", "[-2965.0129 15919.582 -12450.5146]", "[-3481.3618 15918.0684 -12459.4082]", "[-3999.9546 15918.9043 -12468.9844]", "[-4521.2183 15918.123 -12477.2451]", "[-5045.1831 15919.5879 -12486.4063]", "[-5571.7646 15918.4756 -12495.7324]", "[-6100.8257 15918.459 -12505.4336]", "[-6632.4204 15917.6836 -12514.1904]", "[-7165.9751 15918.2441 -12518.3018]", "[-7701.1172 15918.8799 -12522.542]", "[-8236.7119 15908.833 -12521.3184]", "[-8771.498 15873.8203 -12521.375]", "[-9303.8164 15817.5166 -12521.0469]", "[-9832.3516 15736.9326 -12521.3047]", "[-10355.4238 15629.7197 -12521.3838]", "[-10870.6055 15494.3604 -12520.6543]", "[-11375.3252 15326.5342 -12521.3213]", "[-11866.748 15125.293 -12521.248]", "[-12340.9326 14888.1836 -12521.3008]", "[-12793.7471 14614.3809 -12521.1641]", "[-13220.2383 14302.8145 -12521.1064]", "[-13616.5986 13955.4697 -12521.5117]", "[-13979.0752 13574.5605 -12521.2588]", "[-14304.7627 13163.2188 -12521.2168]", "[-14592.8594 12726.2695 -12521.2021]", "[-14843.2471 12268.0977 -12520.959]", "[-15057.5059 11793.2139 -12520.9902]", "[-15237.4053 11305.4277 -12521.4131]", "[-15385.1152 10808.0176 -12521.1494]", "[-15504.0625 10303.999 -12521.1807]", "[-15596.1182 9795.2715 -12520.9541]", "[-15664.6846 9283.7139 -12521.1484]", "[-15711.8145 8770.498 -12521.208]", "[-15738.9521 8256.4883 -12521.1914]", "[-15748.208 7742.4292 -12521.2578]", "[-15744.9863 7228.6445 -12525.2705]", "[-15743.251 6714.5874 -12530.0332]", "[-15742.9688 6199.5269 -12538.5205]", "[-15744.2979 5682.4248 -12547.6865]", "[-15742.6572 5162.5889 -12557.3115]", "[-15744.3428 4639.8555 -12565.9014]", "[-15744.0898 4114.4702 -12575.0869]", "[-15742.917 3586.6255 -12584.3594]", "[-15743.1621 3056.0283 -12593.8867]", "[-15743.9131 2522.5339 -12603.0322]", "[-15743.3164 1986.5348 -12612.292]", "[-15742.5068 1447.6322 -12621.627]", "[-15744.0459 934.7829 -12630.6025]", "[-15744.0781 419.331 -12639.8262]", "[-15743.1455 -98.7385 -12648.9893]", "[-15743.6387 -619.269 -12657.2588]", "[-15745.0654 -1141.7793 -12666.583]", "[-15743.9697 -1666.401 -12675.0635]", "[-15743.6797 -2192.8623 -12684.959]", "[-15745.1855 -2721.3516 -12693]", "[-15745.874 -3251.4531 -12697.1064]", "[-15746.0547 -3782.3455 -12699.9834]", "[-15743.9111 -4313.3091 -12699.1553]", "[-15744.624 -4843.7373 -12697.9561]", "[-15746.3516 -5372.8262 -12692.1279]", "[-15746.0137 -5898.5645 -12684.0596]", "[-15711.8799 -6414.5146 -12673.5869]", "[-15626.4639 -6939.3843 -12663.4434]", "[-15489.0869 -7434.5469 -12653.1602]", "[-15288.8545 -7913.6089 -12641.5879]", "[-15008.8525 -8366.8135 -12629.5518]", "[-14661.1299 -8760.6514 -12616.9307]", "[-14265.7549 -9094.0811 -12609.4297]", "[-13841.457 -9414.9844 -12600.3242]", "[-13391.5703 -9687.7734 -12591.2842]", "[-12917.3848 -9901.5654 -12582.6074]", "[-12423.4717 -10045.5107 -12574.4902]", "[-11894.6738 -10105.2646 -12567.4502]", "[-11370.6592 -10087.8457 -12555.3027]", "[-10856.5967 -10085.1123 -12541]", "[-10328.7451 -10083.4121 -12531.0205]", "[-9809.0283 -10082.1357 -12522.2715]", "[-9296.2236 -10085.2236 -12517.3682]", "[-8767.8076 -10084.2363 -12513.4238]", "[-8243.2324 -10085.623 -12513.2051]", "[-7720.8081 -10086.6143 -12513.9658]", "[-7199.3892 -10085.9629 -12513.9453]", "[-6678.7256 -10085.9678 -12513.7168]", "[-6158.8003 -10086.5293 -12513.8105]", "[-5639.2847 -10086.4922 -12514.0049]", "[-5119.0049 -10085.6406 -12514.0225]", "[-4597.2686 -10085.085 -12514.0654]", "[-4073.9678 -10085.5488 -12513.9512]", "[-3548.4668 -10084.8594 -12514.1084]", "[-3017.6777 -10085.5879 -12514.1416]", "[-2501.4861 -10085.8418 -12514.0254]", "[-1976.1517 -10086.2158 -12513.998]", "[-1463.2086 -10083.96 -12514.248]", "[-945.4025 -10085.0615 -12514.2705]", "[-425.6941 -10085.6631 -12514.2373]", "[93.3821 -10085.8652 -12515.2236]", "[611.7604 -10086.0088 -12514.6846]", "[1129.5408 -10086.4434 -12515.1328]", "[1646.6459 -10084.584 -12515.248]", "[2163.1475 -10084.2725 -12514.8477]", "[2678.9934 -10084.7158 -12514.917]", "[3194.2908 -10084.5322 -12515.3281]", "[3708.9358 -10084.7617 -12515.1787]", "[4223.0176 -10085.8574 -12515.249]", "[4736.3965 -10086.6162 -12514.8809]", "[5249.1704 -10085.1348 -12515.2705]", "[5783.1426 -10085.7578 -12515.0898]", "[6316.4834 -10084.6855 -12515.1377]", "[6849.1401 -10085.0723 -12515.1357]", "[7381.1738 -10085.7246 -12515.2793]", "[7912.5244 -10084.6846 -12515.25]", "[8443.2246 -10085.6328 -12515.1602]", "[8973.2656 -10085.1084 -12515.2061]", "[9502.6904 -10085.2793 -12516.6514]", "[10031.3252 -10086.0283 -12516.0732]", "[10559.3887 -10084.9121 -12516.1875]", "[11086.748 -10084.5742 -12516.1709]", "[11612.957 -10068.6943 -12515.7695]", "[12133.7695 -9995.9805 -12516.2295]", "[12648.1025 -9897.9541 -12515.8691]", "[13153.2197 -9767.6523 -12515.9844]", "[13642.8115 -9590.5059 -12516.2949]", "[14109.1875 -9363.3652 -12515.876]", "[14539.5068 -9076.3857 -12515.999]", "[14919.0664 -8727.0195 -12516.1309]", "[15231.292 -8318.4424 -12515.6172]", "[15465.3564 -7863.3525 -12516.1172]", "[15626.3408 -7358.6104 -12516.0967]", "[15711.6455 -6838.77 -12516.167]", "[15733.8496 -6315.292 -12516.165]", "[15707.4912 -5794.3281 -12516.1885]", "[15640.6855 -5278.8115 -12516.0205]", "[15545.957 -4769.2007 -12516.373]", "[15456.7695 -4260.0786 -12515.9834]", "[15366.5693 -3751.9634 -12516.0889]", "[15278.4619 -3244.5181 -12515.8848]", "[15153.6084 -2746.0588 -12516.0576]", "[14981.3809 -2262.8787 -12516.21]", "[14751.1445 -1783.2336 -12515.873]", "[14458.7803 -1340.8809 -12515.9941]", "[14100.4619 -952.4661 -12515.9648]", "[13680.4219 -633.5049 -12516.3291]", "[13246.8193 -412.1978 -12515.6172]", "[12745.3682 -251.7168 -12516.1396]", "[12226.4033 -165.5417 -12516.2793]", "[11697.5273 -141.3975 -12516.0244]", "[11182.9434 -166.6698 -12516.0361]", "[10660.8203 -233.4408 -12516.0137]", "[10151.5 -330.9218 -12516.3145]", "[9630.1025 -424.1616 -12516.1885]", "[9120.5381 -514.5115 -12516.2422]", "[8601.6904 -603.9134 -12516.2207]", "[8074.8496 -696.097 -12516.0752]", "[7564.1016 -787.4745 -12516.0977]", "[7047.2559 -877.5206 -12516.1318]", "[6527.3413 -970.1688 -12516.1563]", "[6007.0859 -1061.0605 -12516.2432]", "[5487.4043 -1151.2318 -12516.1689]", "[4968.2466 -1240.9683 -12516.1182]", "[4450.5513 -1334.192 -12516.1348]", "[3932.4978 -1425.4675 -12521.584]", "[3413.9021 -1518.1755 -12526.9375]", "[2892.98 -1611.5334 -12536.8613]", "[2368.6035 -1704.0403 -12547.25]", "[1864.3267 -1793.9724 -12561.4521]", "[1355.1501 -1885.2428 -12575.7559]", "[839.8793 -1974.8807 -12589.5352]", "[319.394 -2067.9258 -12603.8262]", "[-207.2803 -2161.5894 -12624.1045]", "[-715.2374 -2251.0669 -12642.3945]", "[-1230.4171 -2342.729 -12667.6445]", "[-1754.1122 -2434.7065 -12690.4727]", "[-2259.8796 -2523.7429 -12713.4834]", "[-2773.2229 -2616.6057 -12735.7959]", "[-3295.3967 -2705.9397 -12759.3467]", "[-3824.5789 -2802.4587 -12782.0791]", "[-4334.0181 -2890.7629 -12805.0693]", "[-4850.354 -2981.793 -12827.9414]", "[-5373.3643 -3075.7737 -12851.3398]", "[-5902.9658 -3170.3459 -12875.1787]", "[-6410.0952 -3257.8198 -12897.1289]", "[-6923.0088 -3349.4294 -12920.085]", "[-7442.46 -3440.6965 -12943.166]", "[-7967.9517 -3533.8096 -12962.3789]", "[-8499.373 -3626.0327 -12980.5029]", "[-9034.7285 -3720.4321 -12995.0215]", "[-9541.7422 -3811.1367 -13007.8369]", "[-10051.2822 -3899.1792 -13016.1328]", "[-10556.2744 -3988.8313 -13024.6025]", "[-11082.7539 -4040.2026 -13030.0898]", "[-11355.9922 -4017.6929 -13033.1494]", "[-11875.9346 -3907.1143 -13043.7646]", "[-12383.1387 -3726.177 -13052.5283]", "[-12846.5264 -3505.2871 -13061.3975]", "[-13290.8301 -3244.553 -13070.2783]", "[-13714.2568 -2954.709 -13078.6836]", "[-14105.6826 -2592.761 -13081.291]", "[-14374.6699 -2238.2017 -13083.9863]", "[-14626.8467 -1786.8641 -13089.0313]", "[-14829.9717 -1302.7134 -13093.2402]", "[-14982.6709 -807.8655 -13098.0381]", "[-15096.7441 -305.2568 -13102.1016]", "[-15181.8447 205.5564 -13104.1201]", "[-15266.2373 718.8471 -13102.8682]", "[-15318.9443 1238.7524 -13103.0693]", "[-15323.2305 1765.8618 -13102.3662]", "[-15310.4551 2297.7703 -13103.3086]", "[-15304.1348 2815.321 -13102.8164]", "[-15292.916 3339.6804 -13103.3545]", "[-15282.4609 3870.2095 -13102.9639]", "[-15266.665 4384.729 -13103.1885]", "[-15252.5801 4905.0098 -13102.8457]", "[-15231.1914 5430.7559 -13103.3213]", "[-15207.083 5961.5078 -13103.248]", "[-15147.8994 6471.3169 -13102.8887]", "[-15040.9473 6977.9517 -13103.0762]", "[-14901.5771 7480.1089 -13102.9668]", "[-14721.3506 7968.8247 -13102.8398]", "[-14509.8037 8443.3594 -13103.2158]", "[-14273.4688 8904.3213 -13102.8125]", "[-14001.4932 9341.3652 -13102.8867]", "[-13700.6855 9775.3662 -13103.1826]", "[-13369.4492 10173.2754 -13102.9834]", "[-13004.2344 10556.084 -13103.3135]", "[-12618.9609 10903.2246 -13103.1836]", "[-12196.5498 11222.8291 -13103.1719]", "[-11765.5361 11512.8135 -13103.0283]", "[-11312.0557 11760.0068 -13103.0664]", "[-10846.0713 11978.1143 -13103.0635]", "[-10365.5625 12158.2002 -13102.6602]", "[-9855.3633 12308.4424 -13103.0107]", "[-9336.8086 12419.5928 -13103.1123]", "[-8814.9688 12500.0693 -13102.8555]", "[-8297.2285 12589.2676 -13102.6855]", "[-7781.4751 12682.4717 -13102.9609]", "[-7266.0747 12773.001 -13103.1895]", "[-6751.4019 12863.1543 -13102.9922]", "[-6237.6489 12953.8721 -13103.2246]", "[-5724.5381 13043.6104 -13102.8789]", "[-5212.3623 13133.9619 -13103.2861]", "[-4701.1182 13225.0127 -13103.2119]", "[-4190.749 13313.8428 -13103.2588]", "[-3681.6582 13404.5273 -13103.1514]", "[-3173.2678 13494.4736 -13103.4385]", "[-2665.583 13583.8701 -13103.0859]", "[-2158.7747 13673.8447 -13103.9082]", "[-1653.545 13762.7412 -13103.1787]", "[-1130.9767 13854.4971 -13102.8164]", "[-609.748 13940.5977 -13102.9268]", "[-84.6057 13987.9209 -13103.1855]", "[441.4374 13986.5059 -13103.916]", "[965.5885 13981.709 -13105.4453]", "[1489.4784 13981.7871 -13106.333]", "[2013.1453 13981.5693 -13106.1729]", "[2536.1252 13981.3711 -13106.0801]", "[3058.29 13982.501 -13106.2002]", "[3579.5708 13980.8525 -13106.1982]", "[4099.2954 13982.8975 -13105.8086]", "[4617.1885 13981.3389 -13105.7529]", "[5133.8013 13981.0449 -13109.3906]", "[5651.0449 13982.0176 -13114.8057]", "[6170.6104 13982.627 -13120.9209]", "[6693.5986 13980.7207 -13127.7402]", "[7220.3247 13982.209 -13135.1748]", "[7751.0757 13982.3389 -13143.374]", "[8266.0342 13979.9414 -13152.1875]", "[8785.7754 13981.9805 -13161.9541]", "[9310.5352 13981.9795 -13170.7373]", "[9840.748 13979.8945 -13180.1328]", "[10351.8945 13932.6396 -13185.7822]", "[10651.9082 13849.8799 -13189.7432]", "[11130.4434 13654.3174 -13198.9434]", "[11580.9023 13399.0938 -13207.4268]", "[12002.9092 13096.0762 -13216.4219]", "[12400.1465 12755.9902 -13225.6973]", "[12776.5273 12387.2559 -13234.1143]", "[13147.1943 12007.6758 -13244.1377]", "[13508.5713 11643.3594 -13252.7549]", "[13876.2207 11278.6289 -13262.2891]", "[14243.1318 10906.6689 -13270.1729]", "[14554.3125 10482.4678 -13276.7148]", "[14757.9277 10066.6748 -13284.085]", "[14920.2666 9562.5371 -13293.2275]", "[15026.416 9042.8877 -13302.6641]", "[15084.5479 8512.8418 -13311.6758]", "[15101.1631 7998.79 -13320.3545]", "[15093.9375 7481.3579 -13329.8398]", "[15093.9805 6960.8276 -13337.748]", "[15092.8359 6437.1831 -13347.2246]", "[15092.165 5910.3184 -13355.6582]", "[15092.1406 5380.1523 -13365.417]", "[15091.0293 4845.9839 -13374.9902]", "[15092.0322 4330.9863 -13384.0928]", "[15092.8047 3811.9348 -13393.0791]", "[15093.0557 3288.8308 -13402.2148]", "[15092.9727 2761.6953 -13411.7646]", "[15092.0713 2230.5181 -13421.0713]", "[15092.7441 1695.3262 -13430.3486]", "[15092.9063 1180.644 -13439.627]", "[15093.0273 662.3208 -13448.7861]", "[15091.2256 140.3126 -13458.0469]", "[15092.3125 -385.3085 -13466.8955]", "[15093.2734 -914.6255 -13476.5059]", "[15094.0703 -1447.6023 -13485.7529]", "[15092.9375 -1984.1904 -13495.6172]", "[15091.8594 -2498.6252 -13504.4922]", "[15092.8457 -3016.3467 -13513.4766]", "[15092.9639 -3537.4009 -13522.6084]", "[15094.124 -4061.7451 -13531.6377]", "[15093.251 -4589.3662 -13541.2969]", "[15092.3779 -5120.2847 -13550.1611]", "[15091.6338 -5654.1714 -13555.9365]", "[15093.6699 -6190.3799 -13560.1279]", "[15087.3223 -6727.7925 -13560.9385]", "[15057.251 -7263.9502 -13561.4932]", "[15006.0557 -7797.415 -13563.1279]", "[14931.1396 -8327.0732 -13564.1006]", "[14828.7109 -8851.5908 -13565.2246]", "[14698.1963 -9368.4395 -13566.0293]", "[14535.6162 -9874.7568 -13565.9102]", "[14340.3418 -10367.8525 -13566.5381]", "[14107.9736 -10843.5527 -13567.8965]", "[13838.5264 -11298.4014 -13568.1748]", "[13530.6748 -11727.1436 -13568.2539]", "[13185.2529 -12124.8994 -13568.3604]", "[12805.5195 -12488.3701 -13568.5967]", "[12395.0137 -12814.6426 -13568.4434]", "[11958.1006 -13102.1807 -13567.5635]", "[11499.6719 -13351.1553 -13567.4365]", "[11024.4355 -13563.0508 -13566.8867]", "[10536.9199 -13741.0332 -13566.1445]", "[10040.626 -13885.9092 -13565.7119]", "[9518.5098 -14005.5635 -13564.6992]", "[9003.8594 -14094.8252 -13564.0049]", "[8480.3545 -14160.3311 -13562.9824]", "[7954.4204 -14203.748 -13561.8643]", "[7434.3096 -14227.2324 -13560.8867]", "[6915.8828 -14231.6445 -13560.1846]", "[6401.9136 -14226.916 -13559.9072]", "[5880.5859 -14227.1709 -13560.0537]", "[5368.4063 -14264.9248 -13560.1729]", "[4855.3071 -14380.0127 -13559.8008]", "[4347.6602 -14485.0547 -13559.126]", "[3834.1418 -14508.3643 -13559.4756]", "[3309.9724 -14492.333 -13560.0137]", "[2789.3259 -14488.7549 -13559.8848]", "[2270.7615 -14490.0762 -13559.8379]", "[1754.5435 -14489.4102 -13559.8867]", "[1230.5498 -14489.6826 -13560.0928]", "[718.5211 -14491.5186 -13560.0264]", "[197.7658 -14490.1172 -13560.0068]", "[-315.6237 -14490.3213 -13560.1748]", "[-832.5588 -14490.9551 -13560.1494]", "[-1346.5884 -14490.0664 -13559.9141]", "[-1867.156 -14489.9971 -13560.1064]", "[-2383.1721 -14490.6113 -13560.4258]", "[-2895.9617 -14490.4424 -13560.1758]", "[-3412.5635 -14491.1162 -13560.0918]", "[-3929.3398 -14489.9922 -13560.2578]", "[-4448.4146 -14488.9277 -13560.1396]", "[-4968.2158 -14489.9971 -13560.0762]", "[-5490.4668 -14490.8887 -13560.0713]", "[-6017.5591 -14490.5967 -13560.2598]", "[-6530.6553 -14490.3672 -13560.1416]", "[-7057.2104 -14490.9492 -13559.5068]", "[-7581.27 -14490.2168 -13559.4854]", "[-8102.6499 -14492.0645 -13559.0869]", "[-8621.4385 -14491.1445 -13558.8955]", "[-9136.9834 -14490.5898 -13556.0273]", "[-9649.1416 -14491.6084 -13553.502]", "[-10172.415 -14475.7891 -13553.5088]", "[-10691.5088 -14413.1631 -13554.2939]", "[-11203.3828 -14298.4863 -13554.2129]", "[-11700.2959 -14122.0068 -13554.2363]", "[-12156.4502 -13881.4092 -13554.1504]", "[-12566.1777 -13569.5811 -13554.0742]", "[-12908.5205 -13197.6367 -13554.2822]", "[-13193.8799 -12751.0381 -13554.1885]", "[-13405.0605 -12263.4199 -13554.0283]", "[-13548.2139 -11756.71 -13553.2217]", "[-13632.7109 -11249.7783 -13553.7041]", "[-13674.9756 -10732.041 -13554.0664]", "[-13678.5762 -10213.041 -13554.4131]", "[-13672.0527 -9693.9209 -13565.8145]", "[-13670.2646 -9177.4658 -13575.0586]", "[-13670.9434 -8639.9971 -13590.5439]", "[-13671.9082 -8111.6211 -13604.8311]", "[-13671.2158 -7594.9043 -13624.6582]", "[-13669.7559 -7063.2949 -13643.9863]", "[-13672.4063 -6547.2036 -13668.2197]", "[-13671.6455 -6017.4365 -13691.4482]", "[-13670.8867 -5474.229 -13715.2891]", "[-13671.0244 -4951.3398 -13737.9258]", "[-13671.1729 -4417.709 -13761.1436]", "[-13671.2959 -3875.6189 -13785.1016]", "[-13671.1162 -3360.9922 -13807.6133]", "[-13670.9072 -2841.4561 -13830.2686]", "[-13672.0107 -2317.0605 -13853.165]", "[-13670.7637 -1787.9521 -13873.2979]", "[-13671.6387 -1254.4857 -13891.2129]", "[-13671.334 -717.3094 -13906.1465]", "[-13671.584 -177.4062 -13919.8389]", "[-13670.7773 363.9147 -13930.2959]", "[-13671.6826 906.7231 -13938.2832]", "[-13670.9229 1450.7601 -13943.0176]", "[-13671.2256 1995.5858 -13947.5615]", "[-13671.7734 2538.8384 -13946.5518]", "[-13670.959 3078.5508 -13945.1816]", "[-13671.4648 3612.9795 -13945.9395]", "[-13671.9512 4141.1157 -13945.6885]", "[-13671.166 4662.5811 -13946.2559]", "[-13671.123 5180.0776 -13946.415]", "[-13671.2959 5696.645 -13945.1006]", "[-13672.1445 6212.4766 -13945.9971]", "[-13670.7266 6726.8115 -13945.5742]", "[-13657.6504 7240.1836 -13946.207]", "[-13620.9893 7751.8843 -13945.5732]", "[-13564.0771 8260.9512 -13945.7334]", "[-13479.584 8799.6914 -13945.709]", "[-13366.1729 9331.9951 -13945.9434]", "[-13222.8848 9855.4404 -13946.4014]", "[-13047.3818 10367.4639 -13946.0381]", "[-12835.9971 10864.4277 -13946.0879]", "[-12587.0566 11342.7139 -13946.2236]", "[-12300.0879 11797.998 -13945.9941]", "[-11974.3682 12225.2451 -13946.0459]", "[-11612.0117 12620.4766 -13946.4316]", "[-11214.4863 12978.6621 -13946.2031]", "[-10787.8633 13299.6191 -13946.5322]", "[-10335.3105 13580.6846 -13946.3213]", "[-9862.3945 13823.3965 -13946.1484]", "[-9373.6758 14029.5127 -13946.1543]", "[-8872.377 14199.9053 -13946.25]", "[-8362.6826 14339.1807 -13946.1934]", "[-7846.6753 14448.5693 -13946.1953]", "[-7327.0229 14532.252 -13945.9287]", "[-6804.7705 14591.3096 -13946.0205]", "[-6281.3423 14629.2754 -13945.9775]", "[-5757.5503 14647.8896 -13945.9277]", "[-5234.4683 14649.4521 -13946.1182]", "[-4711.9702 14644.1621 -13952.332]", "[-4189.7798 14645.707 -13957.2666]", "[-3666.5459 14644.249 -13968.2607]", "[-3141.9226 14644.6133 -13977.4277]", "[-2615.3423 14645.2559 -13986.9443]", "[-2086.8281 14644.4609 -13996.5283]", "[-1556.4735 14644.8447 -14005.8477]", "[-1024.1946 14645.4326 -14015.0771]", "[-490.0281 14644.4268 -14024.5]", "[45.7237 14645.9648 -14034.0527]", "[582.9904 14644.1846 -14043.3271]", "[1121.6736 14644.375 -14052.7754]", "[1662.197 14645.8984 -14062.1309]", "[2204.416 14644.3145 -14071.7842]", "[2746.3616 14644.7734 -14081.1299]", "[3285.9336 14646.3555 -14090.8887]", "[3821.019 14643.9717 -14100.0049]", "[4349.6226 14644.415 -14108.9111]", "[4870.8994 14645.9541 -14118.2803]", "[5383.4761 14644.9199 -14122.4072]", "[5917.4058 14643.7783 -14126.4404]", "[6438.8994 14645.5869 -14125.542]", "[6976.3179 14644.8799 -14124.709]", "[7496.3071 14633.3418 -14125.3916]", "[8025.563 14598.6533 -14125.4951]", "[8559.71 14540.792 -14125.1846]", "[9070.917 14461.5557 -14125.0488]", "[9581.625 14356.6475 -14125.1006]", "[10085.708 14223.9043 -14125.4277]", "[10575.832 14062.3086 -14125.1846]", "[11054.6582 13868.9053 -14125.3848]", "[11520.9209 13639.6572 -14125.3379]", "[11963.7129 13377.0957 -14125.2656]", "[12393.5215 13069.4658 -14125.5625]", "[12792.668 12726.9668 -14125.4404]", "[13159.3643 12350.3936 -14125.3633]", "[13491.8906 11941.7051 -14125.2529]", "[13787.1006 11502.7383 -14125.4541]", "[14039.5273 11053.8232 -14125.1143]", "[14259.9297 10576.4766 -14124.8203]", "[14446.6631 10083.1934 -14124.5195]", "[14600.0684 9577.4531 -14125.2021]", "[14721.6973 9076.9014 -14125.0293]", "[14817.8535 8554.0684 -14124.9766]", "[14888.2988 8035.4834 -14125.1201]", "[14937.9189 7503.3242 -14125.2646]", "[14965.3379 6982.498 -14124.8086]", "[14974.7871 6454.5859 -14125.0479]", "[14971.4746 5924.4028 -14129.5049]", "[14970.3105 5393.6782 -14134.3398]", "[14970.3828 4861.0122 -14142.873]", "[14968.9395 4326.1875 -14153.6475]", "[14969.7314 3796.8057 -14157.6084]", "[14970.5752 3280.0962 -14161.8066]", "[14970.4238 2763.7922 -14160.959]", "[14970.3652 2242.178 -14160.3223]", "[14971.3086 1723.7246 -14160.8818]", "[14972.3213 1210.4207 -14160.668]", "[14970.9229 687.9749 -14161.0039]", "[14970.8818 173.6741 -14160.5996]", "[14970.582 -346.9815 -14160.8838]", "[14970.3174 -860.4563 -14160.6494]", "[14972.0693 -1379.6641 -14160.9727]", "[14971.3057 -1892.0774 -14160.8662]", "[14970.3066 -2409.2749 -14161.1201]", "[14970.7393 -2930.9368 -14161.0449]", "[14970.0107 -3448.2104 -14161.1328]", "[14970.6123 -3960.8887 -14161.0273]", "[14971.8369 -4478.5781 -14161.0137]", "[14971.1025 -4997.3242 -14161.04]", "[14970.5547 -5513.1919 -14164.8789]", "[14969.9072 -6028.168 -14170.249]", "[14970.1152 -6549.8496 -14178.8916]", "[14969.4844 -7074.8369 -14188.8926]", "[14970.0576 -7601.3203 -14197.9541]", "[14970.3672 -8118.6138 -14207.0605]", "[14970.7168 -8637.9492 -14215.9893]", "[14971.4102 -9156.2119 -14225.1152]", "[14970.6973 -9669.6582 -14234.1885]", "[14969.3828 -10197.6367 -14243.376]", "[14969.0869 -10717.2959 -14252.2129]", "[14968.7363 -11248.5576 -14261.6602]", "[14897.584 -11762.8145 -14267.7012]", "[14777.0264 -12134.4131 -14273.8359]", "[14542.3477 -12613.5088 -14282.6533]", "[14264.3623 -13047.2471 -14291.4141]", "[13939.1094 -13455.9717 -14300.5488]", "[13577.124 -13842.4639 -14309.751]", "[13202.9102 -14192.8135 -14318.0303]", "[12771.9629 -14484.7021 -14330.5303]", "[12290.0566 -14698.9795 -14341.3174]", "[11777.2041 -14845.1475 -14352.3428]", "[11272.0488 -14934.5264 -14362.2266]", "[10754.9248 -14979.7832 -14371.1572]", "[10230.1104 -14987.5664 -14381.0879]", "[9699.4834 -14980.4971 -14390.2744]", "[9163.457 -14978.4854 -14398.3789]", "[8648.6895 -14980.8555 -14408.3936]", "[8128.499 -14978.2295 -14417.4404]", "[7602.6558 -14979.2178 -14426.3369]", "[7071.2373 -14978.2676 -14434.458]", "[6535.0005 -14977.917 -14445.1953]", "[6022.7573 -14979.2041 -14453.5391]", "[5508.5293 -14977.2266 -14456.4678]", "[4969.5068 -14978.4521 -14459.6943]", "[4438.4287 -14978.2656 -14458.4297]", "[3917.313 -14979.5156 -14457.9248]", "[3380.082 -14977.1455 -14458.2803]", "[2854.6768 -14978.793 -14457.8887]", "[2340.8411 -14977.9619 -14458.1611]", "[1813.8879 -14978.8438 -14458.0566]", "[1299.7662 -14978.1709 -14458.3525]", "[774.8915 -14978.4941 -14458.2686]", "[241.2715 -14977.9385 -14458.2725]", "[-277.3934 -14979.0986 -14458.3525]", "[-805.1015 -14976.7197 -14457.9658]", "[-1322.8323 -14979.2783 -14458.2471]", "[-1854.8091 -14979.0195 -14458.1436]", "[-2382.4143 -14979.4678 -14458.1377]", "[-2909.0227 -14978.9971 -14457.3877]", "[-3434.9126 -14977.6992 -14458.2813]", "[-3960.0361 -14979.1641 -14458.0264]", "[-4484.3691 -14977.5947 -14457.7813]", "[-5007.9858 -14978.6396 -14458.167]", "[-5530.7739 -14979.6426 -14458.0664]", "[-6052.8599 -14978.8096 -14458.2139]", "[-6573.8047 -14962.9404 -14457.6279]", "[-7090.2104 -14900.8154 -14457.8223]", "[-7595.5718 -14787.1133 -14458.3164]", "[-8081.5952 -14616.7207 -14458.2852]", "[-8552.9063 -14369.7461 -14457.46]", "[-8974.4795 -14049.3643 -14458.4707]", "[-9304.8691 -13689.998 -14458.123]", "[-9590.4736 -13245.9316 -14458.1152]", "[-9801.5107 -12762.8369 -14458.3145]", "[-9944.4746 -12255.2803 -14458.2979]", "[-10033.2285 -11731.2188 -14457.9463]", "[-10075.5781 -11214.8047 -14457.8271]", "[-10078.6904 -10685.1582 -14457.959]", "[-10005.8564 -10175.7051 -14457.5342]", "[-9851.9932 -9707.4414 -14457.9785]", "[-9614.7373 -9232.5742 -14458.0361]", "[-9326.0469 -8791.9502 -14458.334]", "[-9001.1367 -8381.3047 -14457.8193]", "[-8646.582 -7998.7593 -14458.0176]", "[-8268.5596 -7641.373 -14461.8779]", "[-7893.9106 -7280.4878 -14467.1123]", "[-7518.9058 -6918.3159 -14468.7822]", "[-7141.9517 -6556.7646 -14473.3564]", "[-6767.3267 -6192.8452 -14475.4199]", "[-6390.8457 -5830.4375 -14474.6387]", "[-6017.6895 -5471.3608 -14474.3008]", "[-5639.9458 -5105.1079 -14474.3789]", "[-5270.9297 -4747.9468 -14474.4814]", "[-4896.0376 -4386.4155 -14474.7783]", "[-4517.0796 -4019.4722 -14474.458]", "[-4145.1797 -3662.4382 -14474.5957]", "[-3769.9263 -3299.3821 -14474.5664]", "[-3390.0229 -2932.6726 -14474.4678]", "[-3020.4465 -2575.0298 -14474.3945]", "[-2648.689 -2215.4785 -14474.4355]", "[-2275.1646 -1853.8812 -14474.4971]", "[-1898.6244 -1491.0917 -14474.4033]", "[-1521.3237 -1125.3468 -14473.9229]", "[-1151.1342 -770.4391 -14473.915]", "[-781.0475 -411.7017 -14474.3809]", "[-407.1492 -52.3674 -14474.0234]", "[-31.9803 312.3365 -14474.2705]", "[342.0325 673.2186 -14474.1816]", "[714.6779 1032.1144 -14474.4453]", "[1085.3425 1390.0911 -14474.3447]", "[1454.3799 1746.8116 -14474.627]", "[1832.0244 2111.4653 -14474.415]", "[2207.98 2474.7178 -14474.2813]", "[2583.1528 2835.6973 -14474.3496]", "[2956.0552 3195.8848 -14474.4268]", "[3326.6719 3555.2612 -14474.4463]", "[3697.6743 3911.0852 -14474.4277]", "[4074.6052 4276.9453 -14474.4385]", "[4451.1367 4639.8838 -14474.3613]", "[4824.7744 5002.4912 -14474.4102]", "[5198.3188 5361.8506 -14474.6953]", "[5569.4551 5720.269 -14474.3838]", "[5938.9126 6077.0723 -14474.4268]", "[6316.3521 6440.9956 -14474.4414]", "[6691.3257 6803.8545 -14474.4365]", "[7065.3457 7164.0889 -14474.4375]", "[7437.1772 7522.9009 -14474.1934]", "[7805.9946 7880.9673 -14474.4326]", "[8177.5439 8239.2803 -14474.6563]", "[8551.959 8601.1484 -14474.5986]", "[8922.2822 8957.1299 -14473.9678]", "[9147.5654 9176.3691 -14474.2646]" ] ]
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") ParamsPassArrayUsertype = class.class(KaitaiStruct) function ParamsPassArrayUsertype:_init(io, parent, root) KaitaiStruct._init(self, io) self._parent = parent self._root = root or self self:_read() end function ParamsPassArrayUsertype:_read() self.blocks = {} for i = 0, 2 - 1 do self.blocks[i + 1] = ParamsPassArrayUsertype.Block(self._io, self, self._root) end self.pass_blocks = ParamsPassArrayUsertype.ParamType(self.blocks, self._io, self, self._root) end ParamsPassArrayUsertype.Block = class.class(KaitaiStruct) function ParamsPassArrayUsertype.Block:_init(io, parent, root) KaitaiStruct._init(self, io) self._parent = parent self._root = root or self self:_read() end function ParamsPassArrayUsertype.Block:_read() self.foo = self._io:read_u1() end ParamsPassArrayUsertype.ParamType = class.class(KaitaiStruct) function ParamsPassArrayUsertype.ParamType:_init(bar, io, parent, root) KaitaiStruct._init(self, io) self._parent = parent self._root = root or self self.bar = bar self:_read() end function ParamsPassArrayUsertype.ParamType:_read() self.one = self._io:read_bytes(self.bar[0 + 1].foo) self.two = self._io:read_bytes(self.bar[1 + 1].foo) end
AddCSLuaFile() local R = "RED" local B = "BLUE" local W = "WHITE" local name = "NYPD Whelen Slimlighter" local COMPONENT = {} COMPONENT.Model = "models/tdmcars/emergency/equipment/whelen_slimlighter.mdl" COMPONENT.Required = "489864412" COMPONENT.Skin = 0 COMPONENT.Bodygroups = {} COMPONENT.NotLegacy = true COMPONENT.ColorInput = 1 COMPONENT.Category = "Interior" COMPONENT.DefaultColors = { [1] = R, [2] = B, } COMPONENT.Meta = { auto_int_lb = { W = 10, H = 4, Sprite = "sprites/emv/whelen_slimlighter", Scale = 1, WMult = 1.6, NoLegacy = true, DirAxis = "Up", DirOffset = -90 }, } COMPONENT.Positions = { [1] = { Vector( 1.3, -9, 2.4 ), Angle( 0, 90, 0 ), "auto_int_lb" }, [2] = { Vector( 1.3, 7, 2.4 ), Angle( 0, 90, 0 ), "auto_int_lb" }, } COMPONENT.Sections = { ["whelen_sl"] = { [1] = { { 1, "_1" }, }, [2] = { { 2, "_2" }, }, }, } COMPONENT.Patterns = { ["whelen_sl"] = { ["stage1"] = { 1, 1, 1, 1, 2, 2, 2, 2 }, ["stage1NYA"] = { 1, 1, 1, 1, 2, 2, 2, 2, }, ["stage1NYB"] = { 2, 2, 2, 2, 1, 1, 1, 1, } }, } COMPONENT.Modes = { Primary = { M1 = { ["whelen_sl"] = "stage1", }, M2 = { ["whelen_sl"] = "stage1", }, M3 = { ["whelen_sl"] = "stage1", }, }, Auxiliary = {}, Illumination = { T = { { 1, W }, { 2, W } } } } EMVU:AddAutoComponent( COMPONENT, name )
object_tangible_loot_creature_loot_collections_space_reactor_mark_05_freitek = object_tangible_loot_creature_loot_collections_space_shared_reactor_mark_05_freitek:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_reactor_mark_05_freitek, "object/tangible/loot/creature/loot/collections/space/reactor_mark_05_freitek.iff")
Citizen.CreateThread(function() while true do for _, sctyp in next, Config.BlacklistedScenarios['TYPES'] do SetScenarioTypeEnabled(sctyp, false) end for _, scgrp in next, Config.BlacklistedScenarios['GROUPS'] do SetScenarioGroupEnabled(scgrp, false) end for _, carmdl in next, Config.BlacklistedVehs do SetVehicleModelIsSuppressed(carmdl, true) end Citizen.Wait(10000) end end) Citizen.CreateThread(function() StartAudioScene("CHARACTER_CHANGE_IN_SKY_SCENE") SetAudioFlag("PoliceScannerDisabled", true) while true do local playerPed = PlayerPedId() local pos = GetEntityCoords(playerPed) SetGarbageTrucks(0) SetCreateRandomCops(0) SetCreateRandomCopsNotOnScenarios(0) SetCreateRandomCopsOnScenarios(0) DistantCopCarSirens(0) CancelCurrentPoliceReport() RemoveVehiclesFromGeneratorsInArea(335.2616 - 300.0, -1432.455 - 300.0, 46.51 - 300.0, 335.2616 + 300.0, -1432.455 + 300.0, 46.51 + 300.0) -- central los santos medical center RemoveVehiclesFromGeneratorsInArea(441.8465 - 500.0, -987.99 - 500.0, 30.68 -500.0, 441.8465 + 500.0, -987.99 + 500.0, 30.68 + 500.0) -- police station mission row RemoveVehiclesFromGeneratorsInArea(316.79 - 300.0, -592.36 - 300.0, 43.28 - 300.0, 316.79 + 300.0, -592.36 + 300.0, 43.28 + 300.0) -- pillbox RemoveVehiclesFromGeneratorsInArea(-2150.44 - 500.0, 3075.99 - 500.0, 32.8 - 500.0, -2150.44 + 500.0, -3075.99 + 500.0, 32.8 + 500.0) -- military RemoveVehiclesFromGeneratorsInArea(-1108.35 - 300.0, 4920.64 - 300.0, 217.2 - 300.0, -1108.35 + 300.0, 4920.64 + 300.0, 217.2 + 300.0) -- nudist RemoveVehiclesFromGeneratorsInArea(-458.24 - 300.0, 6019.81 - 300.0, 31.34 - 300.0, -458.24 + 300.0, 6019.81 + 300.0, 31.34 + 300.0) -- police station paleto RemoveVehiclesFromGeneratorsInArea(1854.82 - 300.0, 3679.4 - 300.0, 33.82 - 300.0, 1854.82 + 300.0, 3679.4 + 300.0, 33.82 + 300.0) -- police station sandy RemoveVehiclesFromGeneratorsInArea(-724.46 - 300.0, -1444.03 - 300.0, 5.0 - 300.0, -724.46 + 300.0, -1444.03 + 300.0, 5.0 + 300.0) -- REMOVE CHOPPERS WOW Citizen.Wait(10) end end) Citizen.CreateThread(function() while true do for k, v in pairs(Config.BlacklistedPeds) do SetPedModelIsSuppressed(k, true) end Citizen.Wait(3) end end) Citizen.CreateThread(function() local pedPool = GetGamePool('CPed') for k,v in pairs(pedPool) do SetPedDropsWeaponsWhenDead(v, false) if Config.BlacklistedPeds[GetEntityModel(v)] then DeleteEntity(v) end end Citizen.Wait(500) end) Citizen.CreateThread(function() while true do local vehiclePool = GetGamePool('CVehicle') for k,v in pairs(vehiclePool) do SetPedDropsWeaponsWhenDead(v, false) if Config.BlacklistedVehs[GetEntityModel(v)] then DeleteEntity(v) end end Citizen.Wait(250) end end) Citizen.CreateThread(function() while true do Citizen.Wait(1) local ped = PlayerPedId() if IsPedBeingStunned(ped) then SetPedMinGroundTimeForStungun(ped, math.random(4000, 7000)) else Citizen.Wait(1000) end end end) Citizen.CreateThread(function() while true do local player = PlayerId() for i = 1, 15 do EnableDispatchService(i, false) end if GetPlayerWantedLevel(player) ~= 0 then SetPlayerWantedLevel(player, 0, false) SetPlayerWantedLevelNow(player, false) SetPlayerWantedLevelNoDrop(player, 0, false) else Citizen.Wait(500) end Citizen.Wait(6) end end) Citizen.CreateThread(function() while true do local ped = PlayerPedId() local weapon = GetSelectedPedWeapon(ped) if weapon ~= GetHashKey("WEAPON_UNARMED") then if IsPedArmed(ped, 6) then DisableControlAction(1, 140, true) DisableControlAction(1, 141, true) DisableControlAction(1, 142, true) end if weapon == GetHashKey("WEAPON_FIREEXTINGUISHER") or weapon == GetHashKey("WEAPON_PETROLCAN") then if IsPedShooting(ped) then SetPedInfiniteAmmo(ped, true, GetHashKey("WEAPON_FIREEXTINGUISHER")) SetPedInfiniteAmmo(ped, true, GetHashKey("WEAPON_PETROLCAN")) end end else Citizen.Wait(500) end Citizen.Wait(7) end end)
StanceBarFrame:SetScript("OnEvent", nil); RegisterStateDriver(StanceBarFrame, "visibility", "hide"); StanceBarFrame:Hide();
IncludeFile("Lib\\TOIR_SDK.lua") IncludeFile("Lib\\OrbCustom.lua") Cassiopeia = class() function OnLoad() if GetChampName(GetMyChamp()) == "Cassiopeia" then Cassiopeia:Assasin() end end function Cassiopeia:Assasin() SetLuaCombo(true) self.Predc = VPrediction(true) self.Obr = Orbwalking() self.MaxW = 800 self.MinW = 400 self.WTimer = nil self.Trinity = false self.aaTimer = 0 self.aaTimeReady = 0 self.windUP = 0 self:EveMenus() self.Q = Spell(_Q, 850) self.W = Spell(_W, 800) self.E = Spell(_E, 700) self.R = Spell(_R, 825) ------Thank you CTTBOT------ self.listSpellInterrup = { ["KatarinaR"] = true, ["AlZaharNetherGrasp"] = true, ["TwistedFateR"] = true, ["VelkozR"] = true, ["InfiniteDuress"] = true, ["JhinR"] = true, ["CaitlynAceintheHole"] = true, ["UrgotSwap2"] = true, ["LucianR"] = true, ["GalioIdolOfDurand"] = true, ["MissFortuneBulletTime"] = true, ["XerathLocusPulse"] = true, } self.Spells = { ["katarinar"] = {}, ["drain"] = {}, ["consume"] = {}, ["absolutezero"] = {}, ["staticfield"] = {}, ["reapthewhirlwind"] = {}, ["jinxw"] = {}, ["jinxr"] = {}, ["shenstandunited"] = {}, ["threshe"] = {}, ["threshrpenta"] = {}, ["threshq"] = {}, ["meditate"] = {}, ["caitlynpiltoverpeacemaker"] = {}, ["volibearqattack"] = {}, ["cassiopeiapetrifyinggaze"] = {}, ["ezrealtrueshotbarrage"] = {}, ["galioidolofdurand"] = {}, ["luxmalicecannon"] = {}, ["missfortunebullettime"] = {}, ["infiniteduress"] = {}, ["alzaharnethergrasp"] = {}, ["lucianq"] = {}, ["velkozr"] = {}, ["rocketgrabmissile"] = {}, } ---------------------------------------- self.Q:SetSkillShot(0.25, 1200, 150 ,false) self.W:SetSkillShot(0.25, 1200, 150 ,false) self.E:SetTargetted() self.R:SetSkillShot(0.25, math.huge, 150 ,false) Callback.Add("Tick", function() self:OnTick() end) Callback.Add("Draw", function(...) self:OnDraw(...) end) Callback.Add("DrawMenu", function(...) self:OnDrawMenu(...) end) Callback.Add("Update", function(...) self:OnUpdate(...) end) --Callback.Add("UpdateBuff", function(...) self:OnUpdateBuff(...) end) --Callback.Add("RemoveBuff", function(...) self:OnRemoveBuff(...) end) Callback.Add("ProcessSpell", function(...) self:OnProcessSpell(...) end) end --SDK {{Toir+}} function Cassiopeia:MenuBool(stringKey, bool) return ReadIniBoolean(self.menu, stringKey, bool) end function Cassiopeia:MenuSliderInt(stringKey, valueDefault) return ReadIniInteger(self.menu, stringKey, valueDefault) end function Cassiopeia:MenuKeyBinding(stringKey, valueDefault) return ReadIniInteger(self.menu, stringKey, valueDefault) end function Cassiopeia:MenuComboBox(stringKey, valueDefault) return ReadIniInteger(self.menu, stringKey, valueDefault) end function Cassiopeia:OnUpdate() ------------------------ end function Cassiopeia:OnProcessSpell(unit, spell) if spell and unit.IsEnemy and IsValidTarget(unit.Addr, self.W.range) and self.W:IsReady() then if self.Spells[spellName] ~= nil then CastSpellTarget(unit.Addr, _W) end end if spell and unit.IsEnemy then if self.listSpellInterrup[spell.Name] ~= nil then if IsValidTarget(unit.Addr, self.R.range) then CastSpellTarget(unit.Addr, _R) end end end end function Cassiopeia:EveMenus() self.menu = "Cassiopeia" --Combo [[ Cassiopeia ]] self.CQ = self:MenuBool("Combo Q", true) self.CW = self:MenuBool("Combo W", true) self.CE = self:MenuBool("Combo E", true) self.MinW = self:MenuSliderInt("Min W %", 400) self.MaxW = self:MenuSliderInt("Max W %", 800) --Lane self.LQ = self:MenuBool("Lane E", true) self.LMana = self:MenuSliderInt("Mana Lane %", 30) --Add R self.CR = self:MenuBool("Combo R", true) self.UseRmy = self:MenuSliderInt("HP Minimum %", 35) --Stun self.ModeE = self:MenuComboBox("Mode [E]", 1) --KillSteal [[ Cassiopeia ]] self.KQ = self:MenuBool("KillSteal > Q", true) self.KE = self:MenuBool("KillSteal > E", true) self.KR = self:MenuBool("KillSteal > R", true) --Misc self.Inpt = self:MenuBool("Auto Stun", true) self.AntiGapcloseW = self:MenuBool("AntiGapclose [W]", true) --Draws [[ Cassiopeia ]] self.DQWER = self:MenuBool("Draw On/Off", true) self.DQ = self:MenuBool("Draw Q", true) self.DE = self:MenuBool("Draw E", true) self.DR = self:MenuBool("Draw R", true) --Misc [[ Cassiopeia ]] --self.LogicR = self:MenuBool("Use Logic R?", true)]] --KeyStone [[ Cassiopeia ]] self.Combo = self:MenuKeyBinding("Combo", 32) self.LaneClear = self:MenuKeyBinding("Lane Clear", 86) self.LastHit = self:MenuKeyBinding("Last Hit", 88) end function Cassiopeia:OnDrawMenu() if Menu_Begin(self.menu) then if Menu_Begin("Combo") then self.CQ = Menu_Bool("Combo Q", self.CQ, self.menu) self.CW = Menu_Bool("Combo W", self.CW, self.menu) self.MinW = Menu_SliderInt("Min W %", self.MinW, 0, 800, self.menu) self.MaxW = Menu_SliderInt("Max W %", self.MaxW, 0, 800, self.menu) Menu_End() end if Menu_Begin("LaneClear") then self.LE = Menu_Bool("Lane E", self.LE, self.menu) self.LMana = Menu_SliderInt("Mana Lane %", self.LMana, 0, 100, self.menu) Menu_End() end if Menu_Begin("LastHit") then self.LQ = Menu_Bool("Hit Q", self.LQ, self.menu) self.LMana = Menu_SliderInt("Mana Hit %", self.LMana, 0, 100, self.menu) Menu_End() end if Menu_Begin("[E] Combo") then self.CE = Menu_Bool("Combo E", self.CE, self.menu) self.ModeE = Menu_ComboBox("Mode [E]", self.ModeE, "Always\0Poison\0\0", self.menu) Menu_End() end if Menu_Begin("Draws") then self.DQWER = Menu_Bool("Draw On/Off", self.DQWER, self.menu) self.DQ = Menu_Bool("Draw Q", self.DQ, self.menu) self.DE = Menu_Bool("Draw E", self.DE, self.menu) self.DR = Menu_Bool("Draw R", self.DR, self.menu) Menu_End() end if Menu_Begin("Configuration [R]") then self.CR = Menu_Bool("Combo R", self.CR, self.menu) self.UseRmy = Menu_SliderInt("Min HP Enemy %", self.UseRmy, 0, 100, self.menu) Menu_End() end if Menu_Begin("KillSteal") then self.KQ = Menu_Bool("KillSteal > Q", self.KQ, self.menu) self.KE = Menu_Bool("KillSteal > E", self.KE, self.menu) self.KR = Menu_Bool("KillSteal > R", self.KR, self.menu) Menu_End() end if Menu_Begin("Misc") then self.AntiGapcloseW = Menu_Bool("AntiGapclose W",self.AntiGapcloseW,self.menu) self.Inpt = Menu_Bool("Interrupt, Auto Stun",self.Inpt,self.menu) Menu_End() end if Menu_Begin("KeyStone") then self.Combo = Menu_KeyBinding("Combo", self.Combo, self.menu) self.LastHit = Menu_KeyBinding("Last Hit", self.LastHit, self.menu) self.LaneClear = Menu_KeyBinding("Lane Clear", self.LaneClear, self.menu) Menu_End() end Menu_End() end end function Cassiopeia:OnDraw() if self.DQWER then if self.DQ and self.Q:IsReady() then DrawCircleGame(myHero.x, myHero.y, myHero.z,self.Q.range, Lua_ARGB(255,255,0,0)) end if self.DE and self.E:IsReady() then DrawCircleGame(myHero.x, myHero.y, myHero.z, self.E.range, Lua_ARGB(255,0,0,255)) end if self.DR and self.R:IsReady() then DrawCircleGame(myHero.x, myHero.y, myHero.z, self.R.range, Lua_ARGB(255,0,0,255)) end end end function Cassiopeia:LogicE() for i,hero in pairs(GetEnemyHeroes()) do if hero ~= nil then ally = GetAIHero(hero) if not ally.IsMe and not ally.IsDead and GetDistance(ally.Addr) < self.E.range then if CountBuffByType(ally.Addr, 23) > 0 or CountBuffByType(ally.Addr, 23) > 0 then CastSpellTarget(ally.Addr, _E) end end end end end function Cassiopeia:UseEPos() local UseE = GetTargetSelector(self.E.range) Enemy = GetAIHero(UseE) if self.E:IsReady() then if UseE ~= 0 and self:LogicE(Enemy) then CastSpellTarget(Enemy.Addr, _E) end end end function Cassiopeia:SetAttacks() self.Obr:DisableAttacks() if not self.Q:IsReady() and not self.W:IsReady() and not self.E:IsReady() then self.Obr:EnableAttacks() end end function Cassiopeia:AttacksLane() self.Obr:DisableAttacks() if not self.E:IsReady() then self.Obr:EnableAttacks() end end function Cassiopeia:FishEnemy() local UseQ = GetTargetSelector(self.Q.range) Enemy = GetAIHero(UseQ) if CanCast(_Q) and self.KQ and UseQ ~= 0 and GetDistance(Enemy) < self.Q.range and GetDamage("Q", Enemy) > Enemy.HP then local CQPosition, HitChance, Position = self.Predc:GetCircularCastPosition(Enemy, self.Q.delay, self.Q.width, self.Q.range, self.Q.speed, myHero, false) local Sun = CountObjectCollision(0, Enemy.Addr, myHero.x, myHero.z, CQPosition.x, CQPosition.z, self.Q.width, self.Q.range, 10) if Sun == 0 and HitChance >= 2 then CastSpellToPos(CQPosition.x, CQPosition.z, _Q) end end local UseR = GetTargetSelector(self.R.range) EnemyR = GetAIHero(UseR) if CanCast(_R) and self.KR and UseR ~= 0 and GetDistance(EnemyR) < self.R.range and GetDamage("R", EnemyR) > EnemyR.HP then local CRPosition, HitChance, Position = self.Predc:GetConeAOECastPosition(Enemy, self.R.delay, self.R.width, self.R.range, self.R.speed, myHero, false) if HitChance >= 2 then CastSpellToPos(CRPosition.x, CRPosition.z, _R) end end local UseE = GetTargetSelector(self.E.range) Enemy = GetAIHero(UseE) if CanCast(_E) and self.KE and UseE ~= 0 and GetDistance(Enemy) < self.E.range and GetDamage("E", Enemy) > Enemy.HP then CastSpellTarget(Enemy.Addr, _E) end end function Cassiopeia:CastQ() local UseQ = GetTargetSelector(self.Q.range) Enemy = GetAIHero(UseQ) if CanCast(_Q) and self.CQ and UseQ ~= 0 and GetDistance(Enemy) < self.Q.range then local CQPosition, HitChance, Position = self.Predc:GetCircularCastPosition(Enemy, self.Q.delay, self.Q.width, self.Q.range, self.Q.speed, myHero, false) if HitChance >= 2 then CastSpellToPos(CQPosition.x, CQPosition.z, _Q) end end end function Cassiopeia:CastR() local UseR = GetTargetSelector(self.R.range) EnemyR = GetAIHero(UseR) if CanCast(_R) and self.CR and UseR ~= 0 and GetDistance(EnemyR) < self.R.range and EnemyR.HP*100/EnemyR.MaxHP < self.UseRmy then local CRPosition, HitChance, Position = self.Predc:GetConeAOECastPosition(EnemyR, self.R.delay, self.R.width, self.R.range, self.R.speed, myHero, false) if HitChance >= 2 then CastSpellToPos(CRPosition.x, CRPosition.z, _R) end end end function Cassiopeia:CastW() local UseW = GetTargetSelector(self.W.range) EnemyW = GetAIHero(UseW) if CanCast(_W) and self.CW and UseW ~= 0 and GetDistance(EnemyW) < self.W.range and GetDistance(Enemy) < 400 then local CQPosition, HitChance, Position = self.Predc:GetCircularCastPosition(EnemyW, self.W.delay, self.W.width, self.W.range, self.W.speed, myHero, false) if HitChance >= 2 then CastSpellToPos(CQPosition.x, CQPosition.z, _W) end end end function Cassiopeia:CastE() local UseE = GetTargetSelector(self.E.range) Enemy = GetAIHero(UseE) if CanCast(E) and UseE ~= 0 and GetDistance(Enemy) < self.E.range then CastSpellTarget(Enemy.Addr, _E) end end function Cassiopeia:Lane() for i ,minion in pairs(self:EnemyMinionsTbl()) do if minion ~= 0 then if CanCast(_E) and self.LE and GetDistance(minion) < self.E.range and GetDamage("E", minion) > minion.HP then CastSpellTarget(minion.Addr, _E) end end end end function Cassiopeia:CombatCassio() if self.CQ then self:CastQ() end if self.ModeE == 0 and self.CE then self:CastE() end if self.ModeE == 1 and self.CE then self:UseEPos() end if self.CR then self:CastR() end if self.CW then self:CastW() end end local function GetDistanceSqr(p1, p2) p2 = GetOrigin(p2) or GetOrigin(myHero) return (p1.x - p2.x) ^ 2 + ((p1.z or p1.y) - (p2.z or p2.y)) ^ 2 end function Cassiopeia:AntiGap() for i,Enemy in pairs(GetEnemyHeroes()) do if Enemy ~= nil and CanCast(_W) then local hero = GetAIHero(Enemy) local TargetDashing, CanHitDashing, DashPosition = self.Predc:IsDashing(hero, self.W.delay, self.W.width, self.W.speed, myHero, false) if DashPosition ~= nil and GetDistance(DashPosition) <= self.W.range then CastSpellToPos(DashPosition.x,DashPosition.z, _W) end end end end function Cassiopeia:OnTick() if IsDead(myHero.Addr) or IsTyping() or IsDodging() then return end self:FishEnemy() self:AntiGap() if GetKeyPress(self.LastHit) > 0 then self:AttacksLane() self:Lane() end if GetKeyPress(self.Combo) > 0 then self:SetAttacks() self:CombatCassio() end end function Cassiopeia:EnemyMinionsTbl() --SDK Toir+ GetAllUnitAroundAnObject(myHero.Addr, 2000) local result = {} for i, obj in pairs(pUnit) do if obj ~= 0 then local minions = GetUnit(obj) if IsEnemy(minions.Addr) and not IsDead(minions.Addr) and not IsInFog(minions.Addr) and GetType(minions.Addr) == 1 then table.insert(result, minions) end end end return result end function Cassiopeia:IsUnderTurretEnemy(pos) GetAllUnitAroundAnObject(myHero.Addr, 2000) local objects = pUnit for k,v in pairs(objects) do if IsTurret(v) and not IsDead(v) and IsEnemy(v) and GetTargetableToTeam(v) == 4 then local turretPos = Vector(GetPosX(v), GetPosY(v), GetPosZ(v)) if GetDistanceSqr(turretPos,pos) < 915*915 then return true end end end return false end function Cassiopeia:IsUnderAllyTurret(pos) GetAllUnitAroundAnObject(myHero.Addr, 2000) for k,v in pairs(pUnit) do if not IsDead(v) and IsTurret(v) and IsAlly(v) and GetTargetableToTeam(v) == 4 then local turretPos = Vector(GetPosX(v), GetPosY(v), GetPosZ(v)) if GetDistanceSqr(turretPos,pos) < 915 ^ 2 then return true end end end return false end function Cassiopeia:CountEnemiesInRange(pos, range) local n = 0 GetAllUnitAroundAnObject(myHero.Addr, 2000) for i, object in ipairs(pUnit) do if GetType(object) == 0 and not IsDead(object) and not IsInFog(object) and GetTargetableToTeam(object) == 4 and IsEnemy(object) then local objectPos = Vector(GetPos(object)) if GetDistanceSqr(pos, objectPos) <= math.pow(range, 2) then n = n + 1 end end end return n end function Cassiopeia:CountAlliesInRange(pos, range) GetAllUnitAroundAnObject(myHero.Addr, 2000) local n = 0 for i, object in ipairs(pUnit) do if GetType(object) == 0 and not IsDead(object) and not IsInFog(object) and GetTargetableToTeam(object) == 4 and IsAlly(object) then if GetDistanceSqr(pos, object) <= math.pow(range, 2) then n = n + 1 end end end return n end
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") include("shared.lua") -------------------------------------------------- -- -------------------------------------------------- function ENT:Initialize() self:PhysicsInitBox(self.min, self.max) self:SetCollisionBounds(self.min, self.max) self:DrawShadow(false) self:SetTrigger(true) -- Enable "ShouldCollide". self:SetCustomCollisionCheck(true) local physicsObject = self:GetPhysicsObject() if (IsValid(physicsObject)) then physicsObject:EnableMotion(false) end end -------------------------------------------------- -- -------------------------------------------------- function ENT:KeyValue(key, value) if (key == "boundingbox") then local data = string.Explode(",", value) self.min = Vector(0, 0, 0) self.max = Vector(0, 0, 0) for k, v in pairs(data) do if (k < 4) then if (k == 1) then self.min.x = tonumber(v) elseif (k == 2) then self.min.y = tonumber(v) elseif (k == 3) then self.min.z = tonumber(v) end else if (k == 4) then self.max.x = tonumber(v) elseif (k == 5) then self.max.y = tonumber(v) elseif (k == 6) then self.max.z = tonumber(v) end end end end if (key == "rank") then self:SetRank(tonumber(value)) end end
local present, bufferline = pcall(require, "bufferline") if not present then vim.notify "Could not load bufferline" return end bufferline.setup { options = { indicator_icon = "▎", buffer_close_icon = "", modified_icon = "●", close_icon = "", left_trunc_marker = "", right_trunc_marker = "", right_mouse_command = "bdelete! %d", max_name_length = 25, max_prefix_length = 15, -- prefix used when a buffer is de-duplicated tab_size = 25, diagnostics = "nvim_lsp", diagnostics_update_in_insert = false, -- diagnostics_indicator = function(count, level, diagnostics_dict, context) -- return "(" .. count .. ")" -- end, diagnostics_indicator = function(count, level, diagnostics_dict, context) local icon = level:match("error") and " " or " " return " " .. icon .. count end, custom_areas = { right = function() local result = {} local seve = vim.diagnostic.severity local error = #vim.diagnostic.get(0, { severity = seve.ERROR }) local warning = #vim.diagnostic.get(0, { severity = seve.WARN }) local info = #vim.diagnostic.get(0, { severity = seve.INFO }) local hint = #vim.diagnostic.get(0, { severity = seve.HINT }) if error ~= 0 then result[1] = { text = "  " .. error, guifg = "#eb6f92" } end if warning ~= 0 then result[2] = { text = "  " .. warning, guifg = "#000000" } -- "#f6c177" } end if hint ~= 0 then result[3] = { text = "  " .. hint, guifg = "#9ccfd8" } end if info ~= 0 then result[4] = { text = "  " .. info, guifg = "#c4a7e7" } end return result end }, offsets = { { filetype = "neo-tree", text = function() return vim.fn.getcwd() end, text_align = "center" }, { filetype = "NvimTree", text = function() return vim.fn.getcwd() end, text_align = "center" } }, color_icons = true, show_buffer_icons = true, show_buffer_close_icons = false, show_close_icon = false, show_tab_indicators = true, separator_style = "thin", enforce_regular_tabs = true, always_show_bufferline = true } }
load('indent_blankline').setup { show_end_of_line = true, use_treesitter = true, filetype_exclude = {'help', 'dashboard', 'packer'}, show_first_indent_level = true, space_char_blankline = ' ', }
game = {} --Wrapper function for network.sendtoall()-- function game.broadcast(message) network.sendtoall(jLib.stringify({id = "BROADCAST", data = message})) end
dyinclude("classes/abstract.skillset.class.lua",true); CSkillSet = class(CAbstractSkillSet, function (self, copyfrom) self.funcs = {}; if( type(copyfrom) == "table" ) then self.funcs = copyfrom.funcs; end end );
object_draft_schematic_spices_spice_neutron_pixey_s01 = object_draft_schematic_spices_shared_spice_neutron_pixey_s01:new { } ObjectTemplates:addTemplate(object_draft_schematic_spices_spice_neutron_pixey_s01, "object/draft_schematic/spices/spice_neutron_pixey_s01.iff")
return { width = 12, height = 12 }
id = 'V-38463' severity = 'low' weight = 10.0 title = 'The system must use a separate file system for /var/log.' description = 'Placing "/var/log" in its own partition enables better separation between log files and other files in "/var/".' fixtext = 'System logs are stored in the "/var/log" directory. Ensure that it has its own partition or logical volume at installation time, or migrate it using LVM.' checktext = [=[Run the following command to determine if "/var/log" is on its own partition or logical volume: $ mount | grep "on /var/log " If "/var/log" has its own partition or volume group, a line will be returned. If no line is returned, this is a finding.]=] function test() end function fix() end
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmInventarioItem() local obj = GUI.fromHandle(_obj_newObject("form")); local self = obj; local sheet = nil; rawset(obj, "_oldSetNodeObjectFunction", rawget(obj, "setNodeObject")); function obj:setNodeObject(nodeObject) sheet = nodeObject; self.sheet = nodeObject; self:_oldSetNodeObjectFunction(nodeObject); end; function obj:setNodeDatabase(nodeObject) self:setNodeObject(nodeObject); end; _gui_assignInitialParentForForm(obj.handle); obj:beginUpdate(); obj:setName("frmInventarioItem"); obj:setWidth(465); obj:setHeight(25); obj:setTheme("dark"); obj:setMargins({top=1}); local function askForDelete() Dialogs.confirmYesNo("Deseja realmente apagar esse item?", function (confirmado) if confirmado then NDB.deleteNode(sheet); end; end); end; local function showItemPopup() local pop = self:findControlByName("popInv"); if pop ~= nil then pop:setNodeObject(self.sheet); pop:showPopupEx("bottomCenter", self); else showMessage("Ops, bug.. nao encontrei o popup de arma para exibir"); end; end; local function weaponPrice() if sheet~= nil then local node = NDB.getRoot(sheet); local precoArmas = 0; local precoMochila = 0; local precoPreparado = 0; -- VESTIDO local nodes = NDB.getChildNodes(node.campoDasArmas); for i=1, #nodes, 1 do precoArmas = precoArmas + (tonumber(nodes[i].preco) or 0); end node.precoArmas = precoArmas; -- MOCHILA local nodes = NDB.getChildNodes(node.campoMochila); for i=1, #nodes, 1 do precoMochila = precoMochila + (tonumber(nodes[i].preco) or 0); end node.precoMochila = precoMochila; -- PREPARADOS local nodes = NDB.getChildNodes(node.campoPreparado); for i=1, #nodes, 1 do precoPreparado = precoPreparado + (tonumber(nodes[i].preco) or 0); end node.precoPreparado = precoPreparado; end; end; local function weaponWeight() if sheet~= nil then local node = NDB.getRoot(sheet); local pesoArmas = 0; local pesoMochila = 0; local pesoPreparado = 0; -- VESTIDO local nodes = NDB.getChildNodes(node.campoDasArmas); for i=1, #nodes, 1 do pesoArmas = pesoArmas + (tonumber(nodes[i].peso) or 0); end node.pesoArmas = pesoArmas; -- MOCHILA local nodes = NDB.getChildNodes(node.campoMochila); for i=1, #nodes, 1 do pesoMochila = pesoMochila + (tonumber(nodes[i].peso) or 0); end node.pesoMochila = pesoMochila; -- PREPARADOS local nodes = NDB.getChildNodes(node.campoPreparado); for i=1, #nodes, 1 do pesoPreparado = pesoPreparado + (tonumber(nodes[i].peso) or 0); end node.pesoPreparado = pesoPreparado; end; end; obj.edit1 = GUI.fromHandle(_obj_newObject("edit")); obj.edit1:setParent(obj); obj.edit1:setLeft(0); obj.edit1:setTop(1); obj.edit1:setWidth(245); obj.edit1:setHeight(23); obj.edit1:setField("nome"); obj.edit1:setName("edit1"); obj.weaponWeightLabel = GUI.fromHandle(_obj_newObject("rectangle")); obj.weaponWeightLabel:setParent(obj); obj.weaponWeightLabel:setLeft(245); obj.weaponWeightLabel:setTop(1); obj.weaponWeightLabel:setWidth(50); obj.weaponWeightLabel:setHeight(23); obj.weaponWeightLabel:setColor("black"); obj.weaponWeightLabel:setStrokeColor("grey"); obj.weaponWeightLabel:setStrokeSize(1); obj.weaponWeightLabel:setName("weaponWeightLabel"); obj.weaponWeightLabel:setVisible(true); obj.label1 = GUI.fromHandle(_obj_newObject("label")); obj.label1:setParent(obj.weaponWeightLabel); obj.label1:setWidth(50); obj.label1:setHeight(23); obj.label1:setField("peso"); obj.label1:setHorzTextAlign("center"); lfm_setPropAsString(obj.label1, "formatFloat", ",0.## Vol"); obj.label1:setName("label1"); obj.weaponWeightEdit = GUI.fromHandle(_obj_newObject("edit")); obj.weaponWeightEdit:setParent(obj); obj.weaponWeightEdit:setLeft(245); obj.weaponWeightEdit:setTop(1); obj.weaponWeightEdit:setWidth(50); obj.weaponWeightEdit:setHeight(23); obj.weaponWeightEdit:setField("peso"); obj.weaponWeightEdit:setType("float"); obj.weaponWeightEdit:setName("weaponWeightEdit"); obj.weaponWeightEdit:setVisible(false); obj.weaponPriceLabel = GUI.fromHandle(_obj_newObject("rectangle")); obj.weaponPriceLabel:setParent(obj); obj.weaponPriceLabel:setLeft(295); obj.weaponPriceLabel:setTop(1); obj.weaponPriceLabel:setWidth(75); obj.weaponPriceLabel:setHeight(23); obj.weaponPriceLabel:setColor("black"); obj.weaponPriceLabel:setStrokeColor("grey"); obj.weaponPriceLabel:setStrokeSize(1); obj.weaponPriceLabel:setName("weaponPriceLabel"); obj.weaponPriceLabel:setVisible(true); obj.label2 = GUI.fromHandle(_obj_newObject("label")); obj.label2:setParent(obj.weaponPriceLabel); obj.label2:setWidth(75); obj.label2:setHeight(23); obj.label2:setField("preco"); obj.label2:setHorzTextAlign("center"); lfm_setPropAsString(obj.label2, "formatFloat", ",0.## PO"); obj.label2:setName("label2"); obj.weaponPriceEdit = GUI.fromHandle(_obj_newObject("edit")); obj.weaponPriceEdit:setParent(obj); obj.weaponPriceEdit:setLeft(295); obj.weaponPriceEdit:setTop(1); obj.weaponPriceEdit:setWidth(75); obj.weaponPriceEdit:setHeight(23); obj.weaponPriceEdit:setField("preco"); obj.weaponPriceEdit:setType("float"); obj.weaponPriceEdit:setName("weaponPriceEdit"); obj.weaponPriceEdit:setVisible(false); obj.button1 = GUI.fromHandle(_obj_newObject("button")); obj.button1:setParent(obj); obj.button1:setLeft(370); obj.button1:setTop(1); obj.button1:setWidth(23); obj.button1:setHeight(23); obj.button1:setText("i"); obj.button1:setName("button1"); obj.button2 = GUI.fromHandle(_obj_newObject("button")); obj.button2:setParent(obj); obj.button2:setLeft(395); obj.button2:setTop(1); obj.button2:setWidth(23); obj.button2:setHeight(23); obj.button2:setText("X"); obj.button2:setName("button2"); obj._e_event0 = obj.weaponWeightLabel:addEventListener("onClick", function (_) self.weaponWeightLabel.visible = false; self.weaponWeightEdit.visible = true; self.weaponWeightEdit:setFocus(); end, obj); obj._e_event1 = obj.weaponWeightEdit:addEventListener("onUserChange", function (_) weaponWeight(); end, obj); obj._e_event2 = obj.weaponWeightEdit:addEventListener("onExit", function (_) self.weaponWeightLabel.visible = true; self.weaponWeightEdit.visible = false; end, obj); obj._e_event3 = obj.weaponPriceLabel:addEventListener("onClick", function (_) self.weaponPriceLabel.visible = false; self.weaponPriceEdit.visible = true; self.weaponPriceEdit:setFocus(); end, obj); obj._e_event4 = obj.weaponPriceEdit:addEventListener("onUserChange", function (_) weaponPrice(); end, obj); obj._e_event5 = obj.weaponPriceEdit:addEventListener("onExit", function (_) self.weaponPriceLabel.visible = true; self.weaponPriceEdit.visible = false; end, obj); obj._e_event6 = obj.button1:addEventListener("onClick", function (_) showItemPopup(); end, obj); obj._e_event7 = obj.button2:addEventListener("onClick", function (_) askForDelete(); end, obj); function obj:_releaseEvents() __o_rrpgObjs.removeEventListenerById(self._e_event7); __o_rrpgObjs.removeEventListenerById(self._e_event6); __o_rrpgObjs.removeEventListenerById(self._e_event5); __o_rrpgObjs.removeEventListenerById(self._e_event4); __o_rrpgObjs.removeEventListenerById(self._e_event3); __o_rrpgObjs.removeEventListenerById(self._e_event2); __o_rrpgObjs.removeEventListenerById(self._e_event1); __o_rrpgObjs.removeEventListenerById(self._e_event0); end; obj._oldLFMDestroy = obj.destroy; function obj:destroy() self:_releaseEvents(); if (self.handle ~= 0) and (self.setNodeDatabase ~= nil) then self:setNodeDatabase(nil); end; if self.weaponPriceEdit ~= nil then self.weaponPriceEdit:destroy(); self.weaponPriceEdit = nil; end; if self.button1 ~= nil then self.button1:destroy(); self.button1 = nil; end; if self.weaponPriceLabel ~= nil then self.weaponPriceLabel:destroy(); self.weaponPriceLabel = nil; end; if self.weaponWeightLabel ~= nil then self.weaponWeightLabel:destroy(); self.weaponWeightLabel = nil; end; if self.label1 ~= nil then self.label1:destroy(); self.label1 = nil; end; if self.weaponWeightEdit ~= nil then self.weaponWeightEdit:destroy(); self.weaponWeightEdit = nil; end; if self.edit1 ~= nil then self.edit1:destroy(); self.edit1 = nil; end; if self.button2 ~= nil then self.button2:destroy(); self.button2 = nil; end; if self.label2 ~= nil then self.label2:destroy(); self.label2 = nil; end; self:_oldLFMDestroy(); end; obj:endUpdate(); return obj; end; function newfrmInventarioItem() local retObj = nil; __o_rrpgObjs.beginObjectsLoading(); __o_Utils.tryFinally( function() retObj = constructNew_frmInventarioItem(); end, function() __o_rrpgObjs.endObjectsLoading(); end); assert(retObj ~= nil); return retObj; end; local _frmInventarioItem = { newEditor = newfrmInventarioItem, new = newfrmInventarioItem, name = "frmInventarioItem", dataType = "", formType = "undefined", formComponentName = "form", title = "", description=""}; frmInventarioItem = _frmInventarioItem; Firecast.registrarForm(_frmInventarioItem); return _frmInventarioItem;
local ok, err = pcall(require, "core.main") if not ok then print("startup: unhandled exception") print(err) os.exit(1) end