Page 1 of 1

Macro help- pet name in macro?

Posted: Sat Apr 21, 2012 2:51 am
by Araela
Hi all,

I wanted to get some help with making a macro, if you're able to help.

I want a macro that is basically the following for my BM PVP spec:

/petassist
/cast Bestial Wrath
/yell Go get 'em, Petname!

How do I get the Pet name to come up with the yell? I'd like it to be whatever pet I have out, not specific to one pet (putting a specific pet's name in the macro).

Is this possible?

Re: Macro help- pet name in macro?

Posted: Sat Apr 21, 2012 5:29 am
by Anyia
I know that you can use %t as a placeholder for your current target's name. Maybe %p would be your pet's name? Or some other percent-something sequence? Sorry I can't be of more use; I spent most of my time inside addons where its a completely different ball game.

Re: Macro help- pet name in macro?

Posted: Sat Apr 21, 2012 10:30 am
by Wassa
You would have to use a run script for this. UnitName("pet") is the command you are looking for. I'll need to play around with this in game to get the right macro for this. I'll post it later.

Here you go.

Code: Select all

/run local p = UnitName("pet"); SendChatMessage('Go, '.. p .. '!',"YELL","ORCISH");
Putting the apostrophe in 'em in the macro messes it up.[/color]

Re: Macro help- pet name in macro?

Posted: Fri Apr 27, 2012 2:00 pm
by Araela
Thank you both! I will definitely try this! (This week has been totally crazy at work and I'm just now coming back to check the forums!)