Jump to content

.isOnMiniMap() not taking plane in to consideration?


Arland

Recommended Posts

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.

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...