Skip 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.

Best way to get/interact with Tiles

Featured Replies

Hello :) i was just wondering what everyone thought the best way to interact with tiles is. What i mean by this specifically is how would i find a specific game tile at a position, then Be able to Overlay color over the tile, walk to the tile, check if it has an object on it, like a hunter trap or a tree.

??? Maybe look at the API?

You can make a Position using:

Position position = new Position(x, y, z);

Walk to it using a WalkingEvent with minDistanceThreshold set to 0:

WalkingEvent walkingEvent = new WalkingEvent(position);
walkingEvent.setMinDistanceThreshold(0);
execute(walkingEvent);

Check if an object is on the position by using filter (or singleFilter, or whatever else):

List<RS2Object> objectsOnPos = getObjects().filter(new PositionFilter<>(position));

// or

boolean isHunterTrapOnPos = !getObjects().filter(new PositionFilter<>(position), new NameFilter<>("Hunter trap")).isEmpty();

Draw the position on screen using:

graphics2D.drawPolygon(position.getPolygon(getBot());

 

Edited by Explv

Color tile:
 

Position tile;
g.fillPolygon(tile.getPolygon(bot));

 

Check if specif object on tile:
 

RS2Object obj;
Position tile;
if(obj.getPosition().equals(tile){
	//your code here
}

You can combine the above code with a filter to filter out objects based on name or what ever you want

Edited by HunterRS

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.