Walk macro (sharing my code)

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

asd20
Noob
Noob
Posts: 4
Joined: 14 Oct 2011, 14:01
Noob?: No

Walk macro (sharing my code)

#1 Post by asd20 »

I would like to share a simple code....

With this macro you can make your bot walk to a place.... no matter how long it takes to get there... without using time checkers or using pause to be sure that your bot is in the right place to be... (sorry for my bad english..lol)


$xval = 0
$yval = 0
while ( $xval != 131 ) as loop (here you have to change the coordinate X where you want to go )
while ( $yval != 71) as loop (here you have to change the coordinate Y where you want to go )
do move prontera 131 71 (here coordinates and the map)
$xval = @arg ("$.pos", 1) (checking if you are at coordinate X you give him)
$yval = @arg ("$.pos", 2) (checking if you are at coordinate Y you give him)
pause 0.5
end loop
end loop

log Llego




so.. with this.. the bot will be moving until here reach the coordinates that you give him... without using pause to be sure you are in the place...

I hope this macro help you to improve your codes.. if you have a sugestion of how to improve it.. please tell me..
ayung0508
Noob
Noob
Posts: 1
Joined: 06 Dec 2011, 00:24
Noob?: No

Re: Walk macro (sharing my code)

#2 Post by ayung0508 »

If I want to move place (x1,u2) then hit the monster,
After doing this action,how do I move to (x2,y2)