Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Takes a long time to activate alchemy from actionbar

Joined
May 24, 2016
Messages
1,113
edit: Does

Usually it takes a long time before the bot finally activates the 'hla', we're talking upwards to 15 seconds and the log is just being spammed with: getLogger().info("Activating " + hla);

Afaik this never used to be an issue up until just recently. Snippet:

edit: Perhaps an RS update made it so high level alchemy goes on the global cooldown which is causing this. I'm gonna try putting in .ready(false) in my query tomorrow.

Code:
ActionBar.Slot hla = ActionBar.newQuery().names("High Level Alchemy").results().first();
if (hla != null) {
    if (hla.isSelected()) {
        getLogger().info("Alching " + alchable);
        bot.currentStatus = "Alching " + alchable;
        if (alchable.click()) {
            Execution.delayWhile(alchable::isValid, 1000, 2000);
        }
    } else {
        getLogger().info("Activating " + hla);
        bot.currentStatus = "Activating " + hla.getName();
        hla.activate(false);
    }
} else {
    getLogger().warn("No high alchemy found on actionbar.");
}
 
Last edited:
Top