Thread Tools Display Modes
10-18-08, 04:45 AM   #1
olie440
A Defias Bandit
Join Date: Oct 2008
Posts: 3
right click whisper

can anyone help with right clicking whispers
i've added the menu item to the right kick menu and it will whisper a certain player but when i put a variable in it just try's to whisper the variable's name

can anyone help me code is

elseif (button == "send message") then
SendChatMessage("my message will go here when ive spelled checked it", "WHISPER", "COMMON", "..unitpopupFrame.name..");

any help
  Reply With Quote
10-18-08, 06:46 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
You put the variable in as a string - that's why it's doing that.

Code:
SendChatMessage("my message will go here when ive spelled checked it", "WHISPER", "COMMON", unitpopupFrame.name)
edit: also, if you put nil instead of language, then it will use the default language for your faction (which would make your addon work for both horde and alliance).

Code:
SendChatMessage("my message will go here when ive spelled checked it", "WHISPER", nil, unitpopupFrame.name)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-19-08, 09:03 AM   #3
olie440
A Defias Bandit
Join Date: Oct 2008
Posts: 3
ok that has fixed it thanks for the help
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » right click whisper


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off