Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to find object/graphic on a tile.

Featured Replies

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 :).

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()));

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.