WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   Macro Help (http://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   whisper macro (http://www.wowinterface.com/forums/showthread.php?t=37839)

Kendian 12-22-10 08:27 PM

whisper macro
 
#showtooltip Misdirection
/cast [target=focus,help][help][target=pet,exists,nodead] Misdirection
/whisper[target=focus] ~~Misdirect-~%f~~



Sorry to be so stupid, but why will this not whisper my focus target? Can anyone help me with a macro that WILL whisper my focus target, lol? My guild keeps asking me why I named all my hunters pets <no focus>
:(:(:confused:

brotherhobbes 12-22-10 09:19 PM

you need to use SendChatMessage()
http://www.wowpedia.org/API_SendChatMessage

here's an example i whipped up, might have a typo

/script local n=UnitName("focus") SendChatMessage("Misdirecting "..n ,"WHISPER", nil, n)

Ketho 12-22-10 09:52 PM

Imho ppl should use Spell Links in their macro's :)
Quote:

#showtooltip Misdirection
/cast [target=focus,help][help][target=pet,exists,nodead] Misdirection
/run SendChatMessage(GetSpellLink(34477).." on [%f]", "WHISPER", nil, UnitName("focus"))

Kendian 12-22-10 11:13 PM

Thank you
 
My thanks, Brother, Ketho, this is exactly what I needed.
:banana: :eek: :banana:


All times are GMT -6. The time now is 12:47 PM.

vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC