moogle 0 Share Posted February 21, 2017 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 More sharing options...
Hoodz 161 Share Posted February 21, 2017 be sure to start the skilltracker. @Override public void OnStart() { getSkillTracker().start(Skill.AGILITY); } Link to comment Share on other sites More sharing options...
moogle 0 Author Share Posted February 21, 2017 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 More sharing options...
Hoodz 161 Share Posted February 21, 2017 Thank you, was missing this. Will build and see if it fixes it. did it work? Link to comment Share on other sites More sharing options...
moogle 0 Author Share Posted February 21, 2017 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.