July 13, 201510 yr 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
July 13, 201510 yr 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, 201510 yr by Twin
July 13, 201510 yr Author 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, 201510 yr by hajar424
July 13, 201510 yr 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);
July 13, 201510 yr getExperienceTracker().startAll() getExperienceTracker().get(....) (Written on my phone; double check syntax before using)
July 13, 201510 yr 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); } }
July 13, 201510 yr 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.
July 13, 201510 yr 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...
July 13, 201510 yr 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.
July 14, 201510 yr 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
July 14, 201510 yr 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/
Create an account or sign in to comment