Jump to content

Need help with a script


Recommended Posts

Posted (edited)

could u help me make like it brews at 90 hp and restores at 75 hp? 

if(myPlayer().getHealthPercent <= 70) {
 inventory.interact("Drink", "Super restore"
} else if(myPlayer().getHealthPercent <= 90) {
inventory.interact("Drink", "Saradomin brew")
}

will drink super restore at 70% hp

will drink sara brew at 90% hp

the pot names aint correct so youll need to edit it

Edited by Lewis

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...