Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to walk in a (nightmare) instance?

Featured Replies

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.

20 hours ago, MoistScripts said:

 

Same goes for the walkingevent. Is this supposed to be working in instances?

Pretty sure they work at Vorkath

  • Author
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 :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.