[Request] Pet Attack Toggle Macro

[Request] Pet Attack Toggle Macro

by Naan » Thu Apr 09, 2015 7:06 pm

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.
Naan
Tester
 

Re: [Request] Pet Attack Toggle Macro

by Authority » Thu Apr 09, 2015 8:47 pm

Pet attack + Pet defensive macro:
/script PetAttack(target)
/script CastPetAction(9)

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


:)
Authority
Tester
 

Re: [Request] Pet Attack Toggle Macro

by earthwarder » Sat May 30, 2015 12:27 am

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;
earthwarder
Senior Sergeant
Senior Sergeant
 


Return to Warlock