Evolunia Print Centre
#94
This will output to terminal the location you teleport after going into a spawn.
Format "x_y_z", -- Area
Format "x_y_z", -- Area
findCenter = macro(100000, 'Print Centre', function() end)
onTextMessage(function(mode, text)
if findCenter:isOff() then return end
if mode ~= 20 then return end
if not text:find("You've been teleported.*") then return end
local regex = [[You've been teleported to the ([^.,]+)]]
local re = regexMatch(text, regex)[1]
if not re[1] then return end
schedule(10, function()
local p = g_game.getLocalPlayer():getPosition()
if p then
print('"'.. p.x ..'_'..p.y..'_'..p.z..'" -- ' .. re[2])
end
end)
end)
- remove | + add
10 May 2022