February 16, 20232 yr 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, 20232 yr by Slick
February 17, 20232 yr Just override RandomEvent.values()[lenth - 1] https://osbot.org/api/org/osbot/rs07/event/RandomExecutor.html#overrideOSBotRandom-org.osbot.rs07.script.RandomSolver-
February 17, 20232 yr 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, 20232 yr by Khaleesi
February 17, 20232 yr Author Thank you! found the enum RandomEvent.DEATHS_OFFICE in code but it is not there on the java docs
Create an account or sign in to comment