WolfsRain 0 Share 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()); } Link to comment Share on other sites More sharing options...
Manly 878 Share Posted June 28, 2019 Use the combat class for your health Semper Fi 1 Link to comment Share on other sites More sharing options...
Nuclear Nezz 1969 Share 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. Link to comment Share on other sites More sharing options...
Manly 878 Share Posted June 29, 2019 4 minutes ago, Infidel said: This ^ Thanks for confirming Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now