Jump to content

override Deaths Office Handler


Slick

Recommended Posts

 

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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