local config = {
timeToTurn = 15 * 60 * 1000, -- 15 minutes
directions = { North, South, West, East }
}
if not g_game.isOnline() then
return
end
local currentDir = g_game.getLocalPlayer():getDirection()
repeat
local newDir = config.directions[math.random(1, #config.directions)]
g_game.turn(newDir)
sleep(1000)
until (g_game.getLocalPlayer():getDirection() ~= currentDir)
auto(config.timeToTurn)