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.

open 1 gate and ignore the other

Featured Replies

I interact with a door, I open it if it is closed, but if this other gate is closed then it interacts with all the doors, I need it to be a specific door.

final int[] list = new int[] {1560, 1558};
final RS2Object gate = objects.closest(list);
if(gate.exists()) {
	interactCustom(gate, "Open");
	getWalking().walk(new Position(3180, 3288, 0));
}else{
	getWalking().webWalk(new Position(3088, 3235, 0));
}

 

  • Author
4 minutes ago, Chris said:

Use a filter

How are they used?
Could you do an example, please?

6 minutes ago, trainux said:

How are they used?
Could you do an example, please?

ListInteger doorIds = new ArrayList<>();
doorIds.add(1560);
doorIds.add(1558); // I reckon better use positions (x, y)

if (!map.canReach(SOME_POSITION_BEYOND_GATE) {
	RS2Object gate = objects.closest(f -> doorIds.constains(f.getId()) && f.hasAction("Open"));
	if (gate != null) {
		gate.interact("Open");
    }	
} else {
walking.webwalk(SOME_POSITION_BEYOND_GATE);
}

Didn't test it, but should do the trick

Object IDs can change at any time, so you shouldn't rely on those. I recommend sticking with Position filtering instead.

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.