WoWInterface

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

Kendian 12-22-10 09: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 10: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 10: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-23-10 12:13 AM

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


All times are GMT -6. The time now is 07:36 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI