Guest Apogee Posted May 14, 2014 Share 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 Link to comment Share on other sites More sharing options...
Dog_ Posted May 14, 2014 Share Posted May 14, 2014 skills.getStatic(Skill.HUNTER) skills.getDynamic(Skill.HUNTER) Link to comment Share on other sites More sharing options...
Kenneh Posted May 14, 2014 Share Posted May 14, 2014 God, osbot 2 is worse than I thought. Not a huge improvement. 1 Link to comment Share on other sites More sharing options...
Guest Apogee Posted May 14, 2014 Share 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. Link to comment Share on other sites More sharing options...
NotoriousPP Posted May 14, 2014 Share 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. Link to comment Share on other sites More sharing options...
Ericthecmh Posted May 14, 2014 Share 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 Link to comment Share on other sites More sharing options...
Guest Apogee Posted May 14, 2014 Share 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. Link to comment Share on other sites More sharing options...
Swizzbeat Posted May 15, 2014 Share Posted May 15, 2014 Work on your naming conventions. Link to comment Share on other sites More sharing options...
senkido Posted May 15, 2014 Share Posted May 15, 2014 this is sad to hear. Link to comment Share on other sites More sharing options...