neonoxus9 Posted April 27, 2023 Share Posted April 27, 2023 Alright, so i'm trying to make a simple combat script for easy bosses but i'm trying to find out how to find tiles that have 'stuff' on them. For example the Vorkath poison, Vet'ion lightning, Vitur spiderwebs etc. Is there a method to call that lists all the object ID's on a specific tile? So i can avoid these. Been looking through the API for a good while now, just can't find it. Any help is appreciated :). Quote Link to comment Share on other sites More sharing options...
Gunman Posted April 28, 2023 Share Posted April 28, 2023 16 hours ago, neonoxus9 said: Alright, so i'm trying to make a simple combat script for easy bosses but i'm trying to find out how to find tiles that have 'stuff' on them. For example the Vorkath poison, Vet'ion lightning, Vitur spiderwebs etc. Is there a method to call that lists all the object ID's on a specific tile? So i can avoid these. Been looking through the API for a good while now, just can't find it. Any help is appreciated :). Didn't look hard, and filters List<RS2Object> objects = getObjects().get(x, y); Position[] targetPositions = {new Position(0, 0, 0)}; List<RS2Object> objects = getObjects().getAll().stream() .filter(p -> Arrays.asList(targetPositions).contains(p.getPosition())) .collect(Collectors.toList()); EDIT: In case you also don't know how to loop through them to print out the ids... objects.forEach(object -> log(object.getId())); Quote Link to comment Share on other sites More sharing options...