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.

Can't open only 2 doors?

Featured Replies

Hey, i'm having problems with these doors: 
Here close to the player:
n1u7wu.jpg

Here where the door is selected:

d4r7qm.jpg

 

The bot won't open these doors, just will try to open the middle doors. Here is my code: 

 

http://pastebin.com/yqm4nJvi

  • Author

Yes, i use his solution in my script mate, still problem only with these 2 doors. It can open 3/4 diffrent doors, just wont open these exact 2


Pretty sure Flamezz gave you the solution in your last thread

if(knight != null && !getMap().canReach(knight) && !myPlayer().isMoving()){
            if(doorHandler.handleNextObstacle(knight)) {
                if (camera.toEntity(door)) {
                    if (doorHandler.handleNextObstacle(door)) {
                        new ConditionalSleep(1000) {
                            @Override
                            public boolean condition() throws InterruptedException {
                                return door.hasAction("Close");
                            }
                        }.sleep();
                    }

                }
            }
        }

 

Edited by plekstw

If the built in doorhandler doesn't cut it, try the other solution he posted

 

to get the closest reachable closed door:

getObjects().closest("Door", o -> o.hasAction("Open") && getMap().canReach(o));


RS2Object closestDoor = getObjects().closest(true, obj -> obj.getName().equals("Door") && obj.hasAction("Open"));

if(closestDoor != null) closestDoor.interact("Open");

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.