Macro help- pet name in macro?

User avatar
Araela
Artisan Hunter
Artisan Hunter
Posts: 938
Joined: Wed Dec 08, 2010 7:44 am
Realm: Thrall
Gender: Female
Location: Everett, WA

Macro help- pet name in macro?

Unread post 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?
User avatar
Anyia
 Community Resource
 Community Resource
Posts: 1135
Joined: Mon Aug 23, 2010 9:35 pm
Realm: Jubei'Thos (US/Oceania)
Location: Australia
Contact:

Re: Macro help- pet name in macro?

Unread post 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.
User avatar
Wassa
Grand Master Hunter
Grand Master Hunter
Posts: 1542
Joined: Thu Jan 07, 2010 10:37 am

Re: Macro help- pet name in macro?

Unread post 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]

Image
A rare visitor to this forum now that I don't play WoW anymore, but forever a Petopian.

User avatar
Araela
Artisan Hunter
Artisan Hunter
Posts: 938
Joined: Wed Dec 08, 2010 7:44 am
Realm: Thrall
Gender: Female
Location: Everett, WA

Re: Macro help- pet name in macro?

Unread post 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!)
Post Reply