biertje!@
for quick answer:
it is depending on where u stand inside a map, then compare to the next path point that saved earlier
for explaination: (since i am so bored at work)
remember before my ELSE program is depends on the actually display X,Y coordinate system?
well, i dont like using that value, because its 45degrees shift
right now, i am using the hex coordinate system, which output the map as range:
x00 00 y00 00 to xFF FF yFF FF
even u are jumping, that value will keep changing
so that value is exactly the value that u shown on the client screen
and how does my program determines where to click?
well, i use the unit vector to click
for example, right now u are at point x1 y1, and u are trying to go to x5 y3
so x(5-1) y(3-1) = x4 y2
(4^2 + 2^2)^0.5 = unit vector, which is 4.4721
so...x(4/4.4721) y(2/4.4721) = x(0.89) y(0.44)
u cant really click less than 1pixel, right?
so what i did is multi both of them 200
so the actual clicking spot from ur character will be x178 y88
so u will be moving to right 178 up88
(might pass through the point x5,y3, but if walk through, it already change to the next path and recalculating again)
of course for us to calculate those steps will cost more than 30 seconds
but who cares, even my stupid laptop can do a 350000+ normal calculations within 1 second