
This addon adds a new slash command /aksmsg intended to be called from a macro and send a message via a whisper, yell, raid msg, party msg, say or console
The message can include the following substitution strings
%r (race)
%c (class)
%n (name)
%t (exactly the same as %n)
%s (sex)
%l (level)
%z (zone name, eg Orgrimmar)
%sz (subzone name, eg The Cleft of Shadows)
%a (alive/dead)
%p (pvp status)
%f (friend or enemy)
eg /aksmsg /s Hello %n you are an %r %c
could be equivalent to
/s Hello Igor you are an Undead Warrior
(assuming you have targetted an undead warrior called Igor, of course)
The below options control where the messages go
/w - whisper the current target
/y - yell the message
/r - to make the message appear in raid chat
/p - to make the message appear in party chat
/s - to say the message
default is to send it to the console
The above flags can appear anywhere in the message text and are processed in order of whisper, yell, raid, party, say, console (the default)
eg, if you are in a raid and have specified /r /p then only the raid message will be given out. It doesn't matter if /r comes before or after /p, /r will always take priority. If you are in a party but not in a raid then the message will be sent to /p. If you are alone then the message will just appear on the chat console. Specify /s to say the message rather than having it appear on the console. ![]()
