KingBo Posted June 2, 2021 Share Posted June 2, 2021 How would I make the bot prioritise one ladder over another if it is in the middle of two, since .closest() wouldn't work. Quote Link to comment Share on other sites More sharing options...
skillerkidos1 Posted June 2, 2021 Share Posted June 2, 2021 (edited) could do something like ladder = getObjects.getAll().stream().filter(a -> a.getName().equals("Ladder") && a.getX() == 123 && a.getY() == 123); on mobile btw not sure how format looks Edited June 2, 2021 by skillerkidos1 1 Quote Link to comment Share on other sites More sharing options...
ez11 Posted June 2, 2021 Share Posted June 2, 2021 I would suggest filtering by position or just x/y coordinate Quote Link to comment Share on other sites More sharing options...
FuryShark Posted June 2, 2021 Share Posted June 2, 2021 private final Area ladderArea = new Area(3203, 3210, 3206, 3205).setPlane(1); RS2Object ladder = getObjects().closest(ladderArea, "Ladder"); 1 Quote Link to comment Share on other sites More sharing options...
Dissonance Posted June 2, 2021 Share Posted June 2, 2021 If you use the entity hover feature in the osbot client you can observe all of the differences between the ladders and differentiate between them from there in your script. If say, the ids are different, that could be a place to differentiate between them. Similarly, entity hover allows you to see the coordinates at the spot you are hovering which is great if you are using FurySharks area method and need to define an area where the ladder you want to interact with is located. Quote Link to comment Share on other sites More sharing options...