Noidlox 11 Share Posted June 5, 2017 It always returns 100 Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted June 5, 2017 It always returns 100 Until hitbar is visible?? It should return 100 if not visible i believe Link to comment Share on other sites More sharing options...
Roma 2221 Share Posted June 5, 2017 I am converting my scripts to Dreambot and hadn't had time to test this method out, but in the docs it says "Get health percent of the current Character if in combat.". Are you sure that the character is in combat? Link to comment Share on other sites More sharing options...
Noidlox 11 Author Share Posted June 5, 2017 Until hitbar is visible?? It should return 100 if not visible i believe I am converting my scripts to Dreambot and hadn't had time to test this method out, but in the docs it says "Get health percent of the current Character if in combat.". Are you sure that the character is in combat? You guys are right. So how would I check my health and eat without using getHealthPercent? Link to comment Share on other sites More sharing options...
rokaHakor 171 Share Posted June 5, 2017 getCombat().getHealthPercent() Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted June 5, 2017 getSkills().getBoostedLevels(Skill.HITPOINTS) is how much hp is left (not %) Link to comment Share on other sites More sharing options...
Xephy 237 Share Posted June 5, 2017 getCombat().getHealthPercent() works in and out of combat. Utilized it yesterday and it worked just fine. Link to comment Share on other sites More sharing options...
Noidlox 11 Author Share Posted June 5, 2017 getCombat().getHealthPercent() getSkills().getBoostedLevels(Skill.HITPOINTS) is how much hp is left (not %) Got it working last night. Works like a charm. TY Guys Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.