private Position[] path = {
new Position(3254, 3421, 0), new Position(3256, 3428, 0), new Position(3264, 3428, 0),
new Position(3273, 3428, 0), new Position(3277, 3426, 0), new Position(3281, 3422, 0)
};
getWalking().walkPath(path);
Explanation:
The position array listed above will be defined at the top of your script (with the other variables) and getWalking().walkPath(path) will be defined wherever you want to call it (such as in a method, in your onLoop, etc.).
Getting positions:
Click on the settings gear icon in the client and scroll over "Entity debugs" and then toggle "Entity hover debug". Hover your mouse over a tile and it will show the position of the tile. The third number in the position constructor is the "Z" coordinate, meaning the current plane which you are on.
Order:
The position array has a list of positions with the first position being where your character will start walking and the last position being where your character will end walking. Add positions in a manner where once your character reaches one position, it can find the next position on the minimap.
Additional:
If your character starts in the middle of the path, it will not walk to the beginning, it will resume until it reaches the final position. If for some reason your character gets off the path, the walkPath() method will attempt to get back onto your path.