Slick Posted February 16, 2023 Share Posted February 16, 2023 (edited) 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 Edited February 16, 2023 by Slick 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted February 17, 2023 Share Posted February 17, 2023 Just override RandomEvent.values()[lenth - 1] https://osbot.org/api/org/osbot/rs07/event/RandomExecutor.html#overrideOSBotRandom-org.osbot.rs07.script.RandomSolver- 1 Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted February 17, 2023 Share Posted February 17, 2023 (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 February 17, 2023 by Khaleesi 2 Quote Link to comment Share on other sites More sharing options...
Slick Posted February 17, 2023 Author Share Posted February 17, 2023 Thank you! found the enum RandomEvent.DEATHS_OFFICE in code but it is not there on the java docs Quote Link to comment Share on other sites More sharing options...