Polymorphism 48 Posted June 5, 2017 It always returns 100 Until hitbar is visible?? It should return 100 if not visible i believe
Roma 2221 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?
Noidlox 11 Author 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?
Polymorphism 48 Posted June 5, 2017 getSkills().getBoostedLevels(Skill.HITPOINTS) is how much hp is left (not %)
Xephy 237 Posted June 5, 2017 getCombat().getHealthPercent() works in and out of combat. Utilized it yesterday and it worked just fine.
Noidlox 11 Author 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.