Guest Apogee Posted May 14, 2014 Posted May 14, 2014 (edited) For OSBot 1: client.getSkills().getLevel(Skill HUNTER); For OSBot 2: getSkills().getStatic(Skill HUNTER); // This returns the player's TRUE level. getSkills().getDynamic(Skill HUNTER); // This returns the players temp level. (The level on the left that is affected by pots/drains) int currenthp = getSkills().getDynamic(Skill HITPOINTS); int HPlevel = getSkills().getStatic(Skill HITPOINTS); int halfofhp = (getSkills().getStatic(Skill HITPOINTS) / 2); if (currenthp <= halfofhp) { // eat } I did not leave out "client" on accident. You don't use it anymore for things like this. Hopefully this helps somebody out there. Edited May 14, 2014 by Bitter
Dog_ Posted May 14, 2014 Posted May 14, 2014 skills.getStatic(Skill.HUNTER) skills.getDynamic(Skill.HUNTER)
Kenneh Posted May 14, 2014 Posted May 14, 2014 God, osbot 2 is worse than I thought. Not a huge improvement. 1
Guest Apogee Posted May 14, 2014 Posted May 14, 2014 God, osbot 2 is worse than I thought. Not a huge improvement. It's simply more efficient, or at least it WILL be when it's all there.
NotoriousPP Posted May 14, 2014 Posted May 14, 2014 It's simply more efficient, or at least it WILL be when it's all there. Not at all, please study programming languages before making claims like this. This new API is a step back as far as I'm concerned.
Ericthecmh Posted May 14, 2014 Posted May 14, 2014 Not at all, please study programming languages before making claims like this. This new API is a step back as far as I'm concerned. I must agree. Some parts are better, but they took out some things that just made me shake my head. 2
Guest Apogee Posted May 14, 2014 Posted May 14, 2014 Not at all, please study programming languages before making claims like this. This new API is a step back as far as I'm concerned. I wasn't referring to scripting. I was talking about performance.