Page 1 of 1

[Request] Pet Attack Toggle Macro

PostPosted: Thu Apr 09, 2015 7:06 pm
by Naan
Couldn't find anything that works in vanilla. Like the title says, I'd like to be able to tell my pet to attack, or tell it to follow depending on if it is already targeting something.

Re: [Request] Pet Attack Toggle Macro

PostPosted: Thu Apr 09, 2015 8:47 pm
by Authority
Pet attack + Pet defensive macro:
/script PetAttack(target)
/script CastPetAction(9)

Pet follow + Pet passive macro:
/script PetFollow("nameofyourcharacter")
/script CastPetAction(10)


:)

Re: [Request] Pet Attack Toggle Macro

PostPosted: Sat May 30, 2015 12:27 am
by earthwarder
As requested - I believe this is what you're looking for.

/script if UnitExists("target") then if a==0 then PetAttack(target) a=1 else if UnitExists("pettarget") and UnitIsUnit("target", "pettarget") then PetFollow("YourNameHere") a=0 else PetAttack(target) end;end; else PetFollow("YourNameHere") a=0 end;