lily 491 Posted October 22, 2015 This little line of code shoulder do the trick! getSkillTracker().getGainedExperiencePerHour(Skill.FISHING); Obviously replace FISHING with whatever skill you'd like there. You can also get the 'per hour' calculation of any number with Timer.getHourlyRate(number);
Nuclear Nezz 2105 Posted October 22, 2015 getSkillTracker().start(Skill.YOURSKILL); getSkillTracker().getGainedExpPerHour(Skill.YOURSKILL);
RealEngine 24 Posted October 22, 2015 don't be a cheater and do it the old fashioned way. onstart timeBegan = System.currentTimeMillis(); xpBegan = getSkills().getExperience(Skill.ATTACK) + getSkills().getExperience(Skill.STRENGTH) + getSkills().getExperience(Skill.DEFENCE) + getSkills().getExperience(Skill.HITPOINTS); onpaint timeRan = System.currentTimeMillis() - timeBegan; String hms = String.format("%02d:%02d:%02d", TimeUnit.MILLISECONDS.toHours(timeRan), TimeUnit.MILLISECONDS.toMinutes(timeRan) % TimeUnit.HOURS.toMinutes(1), TimeUnit.MILLISECONDS.toSeconds(timeRan) % TimeUnit.MINUTES.toSeconds(1)); xp = (getSkills().getExperience(Skill.ATTACK) + getSkills().getExperience(Skill.STRENGTH) + getSkills().getExperience(Skill.DEFENCE) + getSkills().getExperience(Skill.HITPOINTS)) - xpBegan; int xph = (int) (xp / ((timeRan) / 3600000.0D)); g.drawString("xp = " + NumberFormat.getNumberInstance(Locale.US).format(xp), 345 + 2, 341 + 30); g.drawString("xph = " + NumberFormat.getNumberInstance(Locale.US).format(xph), 345 + 2, 341 + 48);
Zompies 20 Author Posted October 22, 2015 getSkillTracker().start(Skill.YOURSKILL); getSkillTracker().getGainedExpPerHour(Skill.YOURSKILL); Thank you
Recommended Posts
Archived
This topic is now archived and is closed to further replies.