Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • getSkillTracker().getGainedExperiencePerHour(Skill.AGILITY)


    moogle

    Recommended Posts

    Hello, is there anything else that I need to do for 

    drawString("Agility XP/Hr: " getSkillTracker().getGainedExperiencePerHour(Skill.AGILITY), 30, 250);

    to correctly display the exp per hour?

     

    I have import org.dreambot.api.methods.skills.Skill; but 0 is always returned in my paint graphic.

     

    Everything in the script runs correctly, occasionally getting an error due to clicking a game object without me coding in != null yet, could that cause this not to work while leaving the remaining code all to work correctly?

     

    Thanks in advance.

     

    edit: forgot to edit title before posting to be informative, sorry.

    Link to comment
    Share on other sites

     

    be sure to start the skilltracker.

    @Override
    public void OnStart() {
      getSkillTracker().start(Skill.AGILITY);
    }
    
    

    Thank you, was missing this. Will build and see if it fixes it.

    Link to comment
    Share on other sites

    did it work?

    It did, just sorting out the starting before the script starts to ensure it isn't showing 1M+ exp per hour in Agility at level 30.

    Thanks again.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.