-
Pett attack/follow macro
how to make a macro like vanilla?
/script if UnitExists("target") then if a==0 then PetAttack(target) CastPetAction(4) a=1 else if UnitExists("pettarget") and UnitIsUnit("target", "pettarget") then PetFollow() a=0 else PetAttack(target) CastPetAction(4) end;end; else PetFollow("") a=0 end;
-
-
Here's a way to make the toggle automatic -- if your pet is attacking, it'll call him back; otherwise he'll go to attack your target.
Code:
/petfollow [@pettarget,exists]
/petattack [@pettarget,noexists]
Source:http://wowwiki.wikia.com/wiki/Useful_macros_for_hunters