Jump to content

override Deaths Office Handler


Recommended Posts

Posted (edited)

 

9 hours ago, Slick said:

The default Death Office handler is conflicting with my own handler. Is there a way to override / disable the OSBot handler? seems I am not able to find one on the docs

 

 OnStart:

DisableRandomSolverDeathsOffice randomSolverDeathsOffice = new DisableRandomSolverDeathsOffice(RandomEvent.DEATHS_OFFICE);
randomSolverDeathsOffice.exchangeContext(getBot());
getBot().getRandomExecutor().overrideOSBotRandom(randomSolverDeathsOffice);

 

You can implement your handler in this class if you'd like ^^

public class DisableRandomSolverDeathsOffice extends RandomSolver {

    public DisableRandomSolverDeathsOffice(RandomEvent IiIiIiiiiIIi) {
        super(IiIiIiiiiIIi);
    }

    @Override
    public boolean shouldActivate() {
        return false;
    }

    @Override
    public int onLoop() {
        return 50;
    }
}

 

Edited by Khaleesi
  • Like 2

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