What I'd like to do is once a fight is finished, if my HP is under 80% use the hide skill, wait til HP is over 90%, and then continue doing whatever.
I tried this and it didn't work:
Code: Select all
<onLeaveCombat><![CDATA[
sendMacro("ActionButtonUp(12)"); yrest(100);
if (80 > player.HP/player.MaxHP*100) then
repeat player.HP; yrest(1000) until player.HP > 13000
end
sendMacro("ActionButtonUp(12)"); yrest(100);
]]></onLeaveCombat>Help?