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;
}
}