Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
There would still be 11% chance of player teleporting to center.
LUA:
local teleportPosition = player:getTown():getTemplePosition()
local maxRange = 1
teleportPosition .x = teleportPosition .x + (math.random(2) == 1 and math.random(maxRange) or -math.random(maxRange) )
teleportPosition .y = teleportPosition .y + (math.random(2) == 1 and math.random(maxRange) or -math.random(maxRange) )
player:teleportTo(teleportPos)
This should make so it won't be teleported to center. Also added a bonus, if you want to change the range the player can be teleported just change the variable maxRange