Jump to content

Can't open only 2 doors?


Recommended Posts

Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...