Hey I was wondering if anyone could show me an example of how they walk in instances as I currently can not really figure it out myself. Currently I'm using the following code to walk, and the result is that it will just click far in the distance.
I have also tried the getWalking.Walk() function but that didn't do aanything
This is run when in a nightmare instance, I want to try to find a tile with no effects on them so I can stand there.
List<Position> handPortals = this.graphicObjects
.getAll()
.stream()
.filter(c -> c.getId() == 1767)
.map(c -> c.getPosition())
.collect(Collectors.toList());
List<Position> playerArea = myPlayer().getArea(10).getPositions();
Position posToWalkTo = playerArea.stream().filter(c -> !handPortals.contains(c) && !playerArea.contains(nightmare)).findFirst().get();
posToWalkTo.interact(this.bot, "Walk here");
In another post frostbug says
But I couldn't find the getLocalPosition method, is this not used anymore in the current version of the OsBot API? And is there any other method I could use?
Thanks in advance for reading this.