Trying this out, but not working and dont acuse of bug in console.

auto(200)
if ($attacked.posx > 33177) and ($attacked.posy < 31013) and ($posy == 31013) and ($attacked.id ~= 0) then
moveto(33178, 31014, 8)
wait(200,600)
elseif ($attacked.posx > 33176) and ($attacked.posy < 31017) and ($posy == 31014) and ($attacked.id ~= 0) then
moveto(33178, 31013, 8)
wait(200,600)
end