Okay, so you got a mage at lvl 8 with a pet and a pet healing spell, now you wanna create a macro that makes sure you pet stays alive right? Well i've been trying this out and this is what i've got so far. It checks to see if your mp is below 20% which means you would be healing the pet too much, but when i run the macro, it always does /cast 1 after the first if statement which pretty much says if v10 which i stored as the pet's hp is <= 50 to /cast 1 Well here's the code, plz help me out :)
Sub Main
:loopstart
/delay 20
/who all GM
/press esc
/press F1
/press F1
/varset v10 $target(hp,pct)
/if $v10<=50 {
/stand
/cast 1
/delay 100
/sit
} else /if $v10>=90 {
/sit
/press esc}
/press esc
/press F1
/varset v11 $char(mana,pct)
/if n $v11<=20 {
/stand
/cast 2
/delay 50
/goto :loopstart
/return
}else /if
/goto :loopstart
/return


