How to reference dk pet name in macro

I’d like to add some /s text in a macro that refers to my current ghoul by name, something along the lines of “Okay Ratsmasher, time to kill!”

Is there a way to do this as their names are always changing? (Edit: I’m asking specifically for WotLK classic, if that changes anything… I don’t know how macros are different between Classic and Retail, if they are at all?)

Thanks in advance!

I don’t want to share how cause that sounds incredibly annoying for everyone in your party.

1 Like

Should be able to use a script to do what you’re asking for.

See:
https://wowpedia.fandom.com/wiki/API_SendChatMessage
https://wowpedia.fandom.com/wiki/API_UnitName

The unit name of your pet is going to be “playerpet”.

You’ll have to write it (I think) so that it’s formatted as:
/script blahblahblah

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.