1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bug Health.getCurrentPercent() and other Skill.CONSTITUTION issues

Discussion in 'Developer Support' started by proxi, Mar 23, 2017.

  1. proxi

    proxi s̶c̶r̶i̶p̶t̶ bot*

    Joined:
    Aug 23, 2015
    Messages:
    2,223
    Likes Received:
    501
    So it appears that Health.getCurrentPercent() works sometimes and will randomly flake out. I haven't figured out what causes this, and I also cannot confirm if this occurred prior the recent OSRS update or not.

    From my understanding Health.getCurrentPercent should return Skill.CONSTITUTION.getCurrentLevel() / Skill.CONSTITUTION.getBaseLevel() * 100.

    Here is a log of my bot and its health never changed and stayed at max the entire duration of this log.

    bot.healPercent is the percentage where, if under, trigger heal.

    Code (Text):
    1. Root -> Waiting on GUI...  false
    2. Health.getCurrentPercent(): 1
    3. bot.healPercent: 0.25
    4. Branch: IsAttacking: true
    5. Currently Attacking
    6. Root -> Waiting on GUI...  false
    7. Health.getCurrentPercent(): 1
    8. bot.healPercent: 0.25
    9. Branch: IsAttacking: true
    10. Currently Attacking
    11. Root -> Waiting on GUI...  false
    12. Health.getCurrentPercent(): 1
    13. bot.healPercent: 0.25
    14. Branch: IsAttacking: true
    15. Currently Attacking
    16. Root -> Waiting on GUI...  false
    17. Health.getCurrentPercent(): 0
    18. bot.healPercent: 0.25
    19. Branch: HealBranch: false
    20. Traveling to refresh area
    21. Root -> Waiting on GUI...  false
    22. Health.getCurrentPercent(): 0
    23. bot.healPercent: 0.25
    24. Branch: HealBranch: false
    25. Traveling to refresh area
    26. Root -> Waiting on GUI...  false
    27. Health.getCurrentPercent(): 0
    28. bot.healPercent: 0.25
    29. Branch: HealBranch: false
    30. Traveling to refresh area
    @Cloud @Arbiter @Party @SlashnHax
     

Share This Page

Loading...