hajar424 Posted July 13, 2015 Posted July 13, 2015 Hey right now i can only show xp/hour for a specific skill experienceTracker.getGainedXPPerHour(Skill.STRENGTH) How can i show all the skills in Xp/hour
Twin Posted July 13, 2015 Posted July 13, 2015 (edited) Hey right now i can only show xp/hour for a specific skill experienceTracker.getGainedXPPerHour(Skill.STRENGTH) How can i show all the skills in Xp/hour If i'm understanding your question correctly, just check to ssee what stat is gaining exp. Then, set that as the xp to show, and if they're training on balanced make sure they can all show. du talar svenska? Edited July 13, 2015 by Twin
hajar424 Posted July 13, 2015 Author Posted July 13, 2015 (edited) If i'm understanding your question correctly, just check to ssee what stat is gaining exp. Then, set that as the xp to show, and if they're training on balanced make sure they can all show. So how do i check what skill the user gets Xp from, sorry for asking to much but i would like to be a good SDN scripter Edited July 13, 2015 by hajar424
Twin Posted July 13, 2015 Posted July 13, 2015 So how do i check what skill the user gets Xp from, sorry for asking to much but i would like to be a good SDN scripter I've never had to do it before, but I'm pretty sure you can just do like If (strGainedExp > 0) g.drawString(""+strPerHour,40,290);
Bobrocket Posted July 13, 2015 Posted July 13, 2015 getExperienceTracker().startAll() getExperienceTracker().get(....) (Written on my phone; double check syntax before using)
Flamezzz Posted July 13, 2015 Posted July 13, 2015 Just iterate all skills: int x = 100, y = 80; for(Skill s : Skill.values()) { if(experienceTracker.getGainedXP(s) > 0) { g.drawString(s.toString()+": "+experienceTracker.getGainedXP(s), x, y+=20); } } 1
Joseph Posted July 13, 2015 Posted July 13, 2015 The skill tracker still sucks. At least in my own class. I have a method that returns an array list of skills that gained experience. Which is what he's looking for.
Flamezzz Posted July 13, 2015 Posted July 13, 2015 The skill tracker still sucks. At least in my own class. I have a method that returns an array list of skills that gained experience. Which is what he's looking for. Nah imo it provides all the stuff 99% of the scripts need. I mean, you don't expect to gain construction xp while fishing or something...
Joseph Posted July 13, 2015 Posted July 13, 2015 Nah imo it provides all the stuff 99% of the scripts need. I mean, you don't expect to gain construction xp while fishing or something... I'm talking about the functionality of the class sucks. It's lacking methods in my opinion.
Bobrocket Posted July 14, 2015 Posted July 14, 2015 I'm talking about the functionality of the class sucks. It's lacking methods in my opinion. Maybe instead of just writing your opinion you could release your "fixed" version? Would be interested to see it
Joseph Posted July 14, 2015 Posted July 14, 2015 Maybe instead of just writing your opinion you could release your "fixed" version? Would be interested to see it http://osbot.org/forum/topic/77404-skill-tracker/ 1