1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bug Takes a long time to activate alchemy from actionbar

Discussion in 'Developer Support' started by auxi, Jul 1, 2017.

Tags:
  1. auxi

    Joined:
    May 24, 2016
    Messages:
    1,113
    Likes Received:
    990
    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 (Text):
    1.  
    2. ActionBar.Slot hla = ActionBar.newQuery().names("High Level Alchemy").results().first();
    3. if (hla != null) {
    4.     if (hla.isSelected()) {
    5.         getLogger().info("Alching " + alchable);
    6.         bot.currentStatus = "Alching " + alchable;
    7.         if (alchable.click()) {
    8.             Execution.delayWhile(alchable::isValid, 1000, 2000);
    9.         }
    10.     } else {
    11.         getLogger().info("Activating " + hla);
    12.         bot.currentStatus = "Activating " + hla.getName();
    13.         hla.activate(false);
    14.     }
    15. } else {
    16.     getLogger().warn("No high alchemy found on actionbar.");
    17. }
    18.  
     
    #1 auxi, Jul 1, 2017
    Last edited: Jul 1, 2017
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Any more debug information?
     

Share This Page

Loading...