Jump to content
Sign in to follow this  
hawksworth

Healthstone/healing potion macro

Recommended Posts

Is there a macro that will use healthstone with first key press then use heal pot on second? Not sure it's possible in vanilla.

The one I currently have uses healthstone and heal pot at once which could result in over healing.

Thanks

Share this post


Link to post
Share on other sites

using items with macro is not easy in vanilla, best thing would be putting Healthstone and pot in two different buttons, then using a third to activate them with a macro:

/run stoneId=# potId=# if IsUsableAction(stoneId) and GetActionCooldown(stoneId) == 0 then UseAction(stoneId) else UseAction(potId) end

replace `#` with slot ids as per:

Spoiler

IbP6QK0.jpg

This will use your healthstone when available, pot otherwise.

Share this post


Link to post
Share on other sites

If you want to use both you could try this. Have not tested it but should work, if the api I got the info from is correct ^^

/script for bag=0,4 do local slots=GetContainerNumSlots(bag) for slot=1,slots do if GetContainerItemInfo(bag, slot) ~= nil then local _,_,_,_,_,_,string=GetContainerItemInfo(bag, slot); if string.find(string,"Healthstone") and (UnitHealthMax("player")-UnitHealth("player") > 1000) then UseContainerItem(bag,slot); end if string.find(string,"Healing Potion") and (UnitHealthMax("player")-UnitHealth("player") > 1000) then UseContainerItem(bag,slot); end end end end

Edit: Saw you already had one like this, but I added a hp check so it wont use it unless it can heal atleast 1k hp.

Share this post


Link to post
Share on other sites
48 minutes ago, WobLight said:

it's over 450 chars...

Might be possibly to slim it down.

Else there's always supermacro <3

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×