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..
Walk macro (sharing my code)
Moderator: Moderators
-
ayung0508
- Noob

- Posts: 1
- Joined: 06 Dec 2011, 00:24
- Noob?: No
Re: Walk macro (sharing my code)
If I want to move place (x1,u2) then hit the monster,
After doing this action,how do I move to (x2,y2)
After doing this action,how do I move to (x2,y2)