MoistScripts Posted October 4, 2021 Share Posted October 4, 2021 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 Quote I would recommend working with Local Positions (found by getLocalPosition methods). This is the position relative to the current map base. When time comes to walk to a position, translate your desired local position to an absolute position by adding the map base position to it (Map#getBaseX/Y). 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. Quote Link to comment Share on other sites More sharing options...
skillerkidos1 Posted October 4, 2021 Share Posted October 4, 2021 https://osbot.org/forum/topic/111003-basic-walking-webwalking-tutorial-a-simple-concept/ Quote Link to comment Share on other sites More sharing options...
MoistScripts Posted October 4, 2021 Author Share Posted October 4, 2021 8 minutes ago, skillerkidos1 said: https://osbot.org/forum/topic/111003-basic-walking-webwalking-tutorial-a-simple-concept/ 1 hour ago, MoistScripts said: I have also tried the getWalking.Walk() function but that didn't do aanything Same goes for the walkingevent. Is this supposed to be working in instances? Quote Link to comment Share on other sites More sharing options...
ThoughtVNC Posted October 5, 2021 Share Posted October 5, 2021 20 hours ago, MoistScripts said: Same goes for the walkingevent. Is this supposed to be working in instances? Pretty sure they work at Vorkath Quote Link to comment Share on other sites More sharing options...
MoistScripts Posted October 5, 2021 Author Share Posted October 5, 2021 2 hours ago, ThoughtVNC said: Pretty sure they work at Vorkath Then I probably made a mistake, thanks to both, I'll take a second look at it 1 Quote Link to comment Share on other sites More sharing options...