Arland Posted November 27, 2015 Share Posted November 27, 2015 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. Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted November 27, 2015 Share Posted November 27, 2015 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 Khaleesi 1 Quote Link to comment Share on other sites More sharing options...