Saturday 5 October 2013

World of Warcraft - Macro - Link a spell in a message


These macros will link a spell with its tooltip in a message.

The first one I have is an emote that performs a Round House kick to my target.

/run SendChatMessage("performs a \124cff71d5ff\124Hspell:85668\124h[Roundhouse Kick]\124h\124r to %t that would make Chuck Norris proud","EMOTE",nil)

The linked spell can be changed to any one by going to Wowhead selecting the spell you want, click the link button and copying the ingame link string.
eg.

\124cff71d5ff\124Hspell:50303\124h[Swine Flu]\124h\124r
\124cff71d5ff\124Hspell:5025\124h[Test Tickle]\124h\124r


The second one whispers a message to my target when I cast underwater breathing.
This one also has a range check.

#showtooltip
/cast Unending Breath 
/run if UnitInRange("target")then SendChatMessage("Cast on you \124cff71d5ff\124Hspell:5697\124h[Unending Breath]\124h\124r.","WHISPER",nil, UnitName("target"))end


I needed this macro to sell an enchanting pattern, as I could link the pattern but not the enchants tool tip itself.

/script DEFAULT_CHAT_FRAME:AddMessage("\124cff1eff00\124Hitem:22558:0:0:0:0:0:0:0:0\124h[Formula: Enchant Weapon - Spellsurge]\124h\124r");


This one will random through a list of emotes.
You can add or remove any emotes you want.

/script DoEmote(GetRandomArgument("applaud","bashful","blow","bravo","cackle","cheer","chuckle","clap","commend","cuddle","curtsey","giggle","grin","hug","kneel","laugh","lavish","party","pat","praise","purr","raise","salute","shindig","shy","silly","smile","tickle","wave","whistle","wicked","wink"))


Once again most of my macros exceed the 255 character limit so you will need an macro extension addon such as Macro Toolkit.


No comments:

Post a Comment