June 2, 20214 yr How would I make the bot prioritise one ladder over another if it is in the middle of two, since .closest() wouldn't work.
June 2, 20214 yr 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, 20214 yr by skillerkidos1
June 2, 20214 yr private final Area ladderArea = new Area(3203, 3210, 3206, 3205).setPlane(1); RS2Object ladder = getObjects().closest(ladderArea, "Ladder");
June 2, 20214 yr 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.
Create an account or sign in to comment