You can override shouldActivate to verify with your script whether or not now is a good time to start a break
try {
this.bot.getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.BREAK_MANAGER) {
@Override
public boolean shouldActivate() {
return super.shouldActivate() && canStartBreak();
}
});
} catch (Exception ex) {
//Break manager is not enabled
log("Failed to modify break handler");
}
It's up to you to implement the canStartBreak method
That won't fly with the SDN either. Method names and class members have their identifiers changed by the obfuscator (including serialVersionUID)
In other words, you wont be able to load objects serialized by an earlier osbot client version
GSON probably uses reflection somewhere, even if you dont use that particular method, if the classloader sees that any of your classes use it, it will act up.
My guess is that you're using an external library to parse JSON? And that library probably uses reflection, which requires the -allow reflection argument when opening the client.
But if this is the case, ext. libraries aren't copied to the SDN regardless
You could probably get Axife to do something like that.
Keep it to inventory stuff tho, clicking stuff on screen (objects/npcs) with an autoclicker is asking for trouble
Well, it very well could be mirror. It's known to cause certain issues with entity loading, tho that was mostly in the past.
Is anyone else having this problem?
No