c0nan Posted June 29, 2016 Share Posted June 29, 2016 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 Quote Link to comment Share on other sites More sharing options...
BurritoBug Posted June 29, 2016 Share Posted June 29, 2016 (edited) private Position randomPosition(int x, int y, int z) { return new Position(x + random(-2, 1), y + random(-2, 1), z); } Edited June 29, 2016 by BurritoBug Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted June 29, 2016 Share Posted June 29, 2016 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 ^^ Quote Link to comment Share on other sites More sharing options...
Alek Posted June 29, 2016 Share Posted June 29, 2016 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. Quote Link to comment Share on other sites More sharing options...
progamerz Posted June 29, 2016 Share Posted June 29, 2016 (edited) 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, 2016 by progamerz 1 Quote Link to comment Share on other sites More sharing options...
c0nan Posted June 29, 2016 Author Share Posted June 29, 2016 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 1 Quote Link to comment Share on other sites More sharing options...
dokato Posted June 29, 2016 Share Posted June 29, 2016 use area's to walk to, the spot on which it will click will always be random then Quote Link to comment Share on other sites More sharing options...
c0nan Posted June 29, 2016 Author Share Posted June 29, 2016 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. 1 Quote Link to comment Share on other sites More sharing options...