Quote:
Originally Posted by demon17
-P4n Can you tell us or make an exemplo how to make working the /record part?
Ty OELABOELA For helps
|
Record is already implemented. Check out the general data type 137 (jump) Client>server. I add it to a list of points. You simply need to control how and when to move between those points.
Hint... I set active point = null every time I attack a monster and if no mobs are in range chose the closest point to myself.
Then I also use a bool tro control which direction you are moving along the path. If you reach the last element in the list I change the direction bool and start going backwards through the path entries and vice versa.
IE: Active point = 0 (first element) and up is true... no mob in range, point 0 out range... find a coord that is on screen nearest to point 0 to jump to... repeat till point 0 (or a mob) is in range... then jump to point 0 and select point 1... point 1 is the last point in the path so I turn the up bool to false. I'm now at point 1 and no mobs are in range and up = false so I select the previous point in the path which is 0...
Continue along that type of logic and boom, you have a path system!
The paths themselves are already fully coded, you just need to implement them.