SRL Archive - RS3 Help

Check current HP of Player


Mr. Roboto

2014-08-15 19:18:24

How can I find how much HP the player has? I don't want to kill anyone with a script :D
I tried the API but couldn't find anything related to HP.

The Mayor

2014-08-15 19:41:28

var
myHP: integer;
begin
myHP := actionbar.getHPPercent();

Sin

2014-08-15 20:19:20

Alternatively you could use tesseract to get the HP.

Mr. Roboto

2014-08-15 20:30:17

Thank you both. I ended up using the hp percentage.

theorange

2014-08-16 18:22:46

From: KLight
Thank you both. I ended up using the hp percentage.


http://docs.villavu.com/srl-6/actionbar.html

The actionbar method has some neat methods you might also end up using in the future, in addition to the getHpPercentage that Mayor listed. Check out the link to see all the methods.

For searching the docs, it might be easier to just go to the index, and try to find a category that what your looking for might be in
http://docs.villavu.com/srl-6/index.html
As you see sometimes your key searchword might not match, but there still is a method for what you're looking for. (And if you don't find what you're looking for, you'll end up seeing some other cool things in there!)

Mr. Roboto

2014-08-16 19:01:15

From: theorange


For searching the docs, it might be easier to just go to the index, and try to find a category that what your looking for might be in
http://docs.villavu.com/srl-6/index.html


Thank you, I learned that the hard way yesterday. For sure the index rules!