Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
Evolunia Print Centre #94
This will output to terminal the location you teleport after going into a spawn.
Format "x_y_z", -- Area
564b | 15 lines.
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])

10 May 2022