Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Why is my getLocalPlayer().getMaxHealth() returning 434071876


    Recommended Posts

    So I was running my guard killer script, which has a system that picks the optimal health at which to eat based on maximum health.


    And suddenly out of nowhere (haven't touched the code in a week or more), getLocalPlayer().getMaxHealth() is returning 434071876 rather than the 61 it should be. Totally baffled here, but surely one of you who is smarter than I can perhaps figure out the issue here? It's literally just whenever I call getLocalPlayer().getMaxHealth() it comes up with this, while the correct value is clearly in the cache (the script defaults to a static value when the method returns null).


    Link to comment
    Share on other sites

    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.