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.

Opening doors?

Featured Replies

I can't seem to find anything on the API, I must be overlooking it, how do I get my script to open doors, if they are not open?

 

Thanks

Edited by blood1000

You cannot open doors if they're already open but they're various ways to tackle this according to your situation, you could simply declare the door as an RS2Object and say that this door is closestObjectForName("Door"), after you declare it you can simply do door.Interact("Open");

 

You could also use obstacle handlers but I don't recommend that if you're new

  • Author

You cannot open doors if they're already open but they're various ways to tackle this according to your situation, you could simply declare the door as an RS2Object and say that this door is closestObjectForName("Door"), after you declare it you can simply do door.Interact("Open");

 

You could also use obstacle handlers but I don't recommend that if you're new

 

 

Thank you :)

  • Author

You cannot open doors if they're already open but they're various ways to tackle this according to your situation, you could simply declare the door as an RS2Object and say that this door is closestObjectForName("Door"), after you declare it you can simply do door.Interact("Open");

 

You could also use obstacle handlers but I don't recommend that if you're new

 

 

Hi I've put it in but I have a small problem :( the script will go to any door on screen and open it, not just the one by me, if the door is open it will just try find another door to open XD this is what I did

 

 

               RS2Object Door = closestObject(DOOR_ID);

                 if (Door != null) {
                         if (Door.interact("Open")) 

The door id is the same as every open door in the area, how do I make it so it will only open the door it sees on screen? it clicks the map to find other doors to open XD

 

Thanks

just make a 1x1 area called door_tile and do RS2Object Door = closestObject(DOOR_ID, door_tile);

public final static Area door_tile = new Area(top left x, top left y, bottom right x, bottom right y);

Ok try this:

 

doorO = Get the door orientation.

doorX = Get the door X value

you can get Y aswell if there are more doors on the same X value.

RS2Object door = closestObjectForName("Door");

if(door != null && door.getOrientation() == doorO && door.getX() == doorX){
    if(door.interact("Open"){
        sleep(500 + random(50, 150);
    }
}
Guest
This topic is now closed to further replies.

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.