Thats what i am using to prevent this from happening:
auto(15000)
if $standtime >= 10000 then
move('s')
wait(100)
move('w')
end
but sometimes the bot just stop working all of a sudden and some times this persistent wont work either, i cant bot my pally right now because of this shit, tibia 10 too high ping to bot paladins.