WolfsRain 0 Posted June 28, 2019 My BOT started the script having 5/10 of health. If you call this function, even having half the actual max health, it will recall that your health is 100% and go downwards as you take hits In the .jpg I show the test. CODE: public int onLoop() { log("[DANGER] " + getLocalPlayer().getHealthPercent()); }
Nuclear Nezz 2104 Posted June 28, 2019 I mean between the roofs, your account eating, and it logging 100 3 seconds later I'm not entirely sure what you're actually showing in your test. It should be working fine (it works fine on NPC's and such) but I do know it only displays the correct % if your health bar is visible, which is just part of the game itself. As man said though, if you're trying to get accurate results for your own character, use the combat class or check your stats.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.