Hmm, that's not what I mean by checking that link xD Hahaha.. Welp, nvm. At least you tried.
That $x = @eval($::char->{pos}{x}) is for getting X or Y value.
But the way you are using it, it's the same as $.pos
How about like this? It's ugly..
Code: Select all
automacro Test {
location not <map>
timeout 60
call {
:Start
$old = $.pos
log Before $old
do @random ("north","east","south","west")
$new = $.pos
log After $new
if ($old == $new) goto Start
if ($old != $new) goto End
:End
log Moved
stop
}
}
Simple is the best.
Btw, if you get mobbed until you can't move why not set teleportAuto_minAggressives ?