Page 1 of 1

Waypoint Movement

Posted: June 2nd, 2008, 5:57 am
by binafus
Been working on a bot.

Needing to add movement, I know how to get the waypoints and also the direction the character is facing.

Having trouble getting it to move from one waypoint to the next if anyone has an example of getting a character to move from point A to B I would really appreciate it.

Posted: June 3rd, 2008, 8:27 pm
by tault_kazukiyotsuga
press keyboard key up, left, right, down for set amount of time...

Ghetto, but that's how we used to do it in Asheron's Call AutoIT days.

Re: Waypoint Movement

Posted: June 4th, 2008, 8:26 am
by tault_w118cmh
binafus wrote:Been working on a bot.

Needing to add movement, I know how to get the waypoints and also the direction the character is facing.

Having trouble getting it to move from one waypoint to the next if anyone has an example of getting a character to move from point A to B I would really appreciate it.
I just started writing mine, and although I haven't gotten to the actual movement per say, I have a thought.

You could:

1.) As the above poster said, just do a timed check. May not be the "best" way, but should work ok.

2.) Just have something like a While() loop until you are in an acceptable distance from your Waypoint (say a meter or 3). During this While loop, keep running through a check, such as distance to the waypoint, the current angle between your heading and the waypoint, etc.. When you reach it, have that be the condition that ends the loop. Have all your targeting logic in there and break if you find something that you want to fight.

Actually, I'm currently at the point that I'm trying to get the heading to have any actual value. Do you understand how the heading in AoC works, because I'm totally lost.. I have the offset (I think), but it doesn't seem to give any real value.