June 29, 20169 yr 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) }; localWalker.walkPath(path); That is Alek's example in the tutorial section for walking along a path. If I use that method it will click the exact same spots over and over when walking right? Is it possible to use walkPath(path) but make it click somewhere near the paths?(Antiban) I have been using webWalking to areas but it seems creating own paths is better in some cases. BR c0nan
June 29, 20169 yr private Position randomPosition(int x, int y, int z) { return new Position(x + random(-2, 1), y + random(-2, 1), z); } Edited June 29, 20169 yr by BurritoBug
June 29, 20169 yr You can offset the positions yourself with a random value in x and y if you want. Better alternative: Use the webwalker getWalking().webWalk(endPosition); This will create a humanlike path every single time ^^
June 29, 20169 yr If you are walking relatively short distances, there is no need to use the web-walker. There are some simple math approaches you can take.
June 29, 20169 yr 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) }; localWalker.walkPath(path); That is Alek's example in the tutorial section for walking along a path. If I use that method it will click the exact same spots over and over when walking right? Is it possible to use walkPath(path) but make it click somewhere near the paths?(Antiban) I have been using webWalking to areas but it seems creating own paths is better in some cases. BR c0nan private static List<Position> path = Arrays.asList(new Position(3254 + random(-2, 1), 3421, 0), new Position(3256 + random(-2, 1), 3428, 0), new Position(3264 + random(-2, 1), 3428, 0), new Position(3273 + random(-2, 1), 3428, 0), new Position(3277 + random(-2, 1), 3426, 0), new Position(3281 + random(-2, 1), 3422, 0)); Usage: getWalking().walkPath(path); Edited June 29, 20169 yr by progamerz
June 29, 20169 yr Author private static List<Position> path = Arrays.asList(new Position(3254 + random(-2, 1), 3421, 0), new Position(3256 + random(-2, 1), 3428, 0), new Position(3264 + random(-2, 1), 3428, 0), new Position(3273 + random(-2, 1), 3428, 0), new Position(3277 + random(-2, 1), 3426, 0), new Position(3281 + random(-2, 1), 3422, 0)); Usage: getWalking().walkPath(path); Thanks for the example code! I think I will go with this solution (also stated in previous answers) Thanks for all answers & your time! BR c0nan
June 29, 20169 yr Author use area's to walk to, the spot on which it will click will always be random then That is one solution however for walking a short distance (2 clicks on the map) using a random "Path position" is (imo) more suitable. This is of course not the case if the player could access the "Area" in one click on the map.
Create an account or sign in to comment