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.

.isOnMiniMap() not taking plane in to consideration?

Featured Replies

Am I just using .isOnMiniMap() wrong or does it not take plane in to consideration at all? I have three positions that are in the same area but in different planes/floors and it'll say that it can see positions that are on a different plane than the player's current plane.

 private void miniMapTest() {
        if(new Position(3206, 3209, 1).isOnMiniMap(script.getBot()))
            script.log("(3206, 3209, 1) is on the minimap.");
        else if(new Position(3206, 3209, 2).isOnMiniMap(script.getBot()))
            script.log("(3206, 3209, 2) is on the minimap.");
}

That code will always say that it's found the plane 1 position, even if we're on plane 0 or plane 2. I solved it by just using map.getPlane() but I'd like to know if I'm using .isOnMiniMap() wrong or something.

Am I just using .isOnMiniMap() wrong or does it not take plane in to consideration at all? I have three positions that are in the same area but in different planes/floors and it'll say that it can see positions that are on a different plane than the player's current plane.

 private void miniMapTest() {
        if(new Position(3206, 3209, 1).isOnMiniMap(script.getBot()))
            script.log("(3206, 3209, 1) is on the minimap.");
        else if(new Position(3206, 3209, 2).isOnMiniMap(script.getBot()))
            script.log("(3206, 3209, 2) is on the minimap.");
}

That code will always say that it's found the plane 1 position, even if we're on plane 0 or plane 2. I solved it by just using map.getPlane() but I'd like to know if I'm using .isOnMiniMap() wrong or something.

 

pretty sure it doesn't take the plane in count, only the X and Y, just add a quick plane check to it to solve it :D

 

Khaleesi

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.