Thread Tools Display Modes
12-01-08, 12:31 PM   #1
SetiHunter
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 25
Possible to send Strings between add-ons

Hello. To start with: I have just started to read the first wiki-tutorials about lua.
I would like to know if its possible to send strings between add-ons. "SendAddonMessage" can only be of the types: "PARTY", "RAID", "GUILD", "BATTLEGROUND", "WHISPER". Possible for a message of type "WHISPER" to be whatever I like?
  Reply With Quote
12-01-08, 02:18 PM   #2
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Originally Posted by SetiHunter View Post
Hello. To start with: I have just started to read the first wiki-tutorials about lua.
I would like to know if its possible to send strings between add-ons. "SendAddonMessage" can only be of the types: "PARTY", "RAID", "GUILD", "BATTLEGROUND", "WHISPER". Possible for a message of type "WHISPER" to be whatever I like?
Those types refer to who the recipient list should be. Both the prefix and body of the message must be a string value. That is, if you
Code:
SendAddonMessage("myAddon", "hello world", "RAID")
then every frame (that has CHAT_MSG_ADDON registered) on every client in your raid will see that event fire with the values: "myAddon","hello world","RAID",<your name>.
  Reply With Quote
12-02-08, 01:59 AM   #3
SetiHunter
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 25
Ok. Thanks. Think I get it. One more follow up question:
Is there any way to test this by myself if I dont have 2 WoW accounts?
  Reply With Quote
12-02-08, 08:18 AM   #4
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
Unless they've changed it recently, you can send addon whispers to yourself.
  Reply With Quote
12-02-08, 09:24 AM   #5
SetiHunter
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 25
Ah. Tons of thanks. Time to get to job then =D
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Possible to send Strings between add-ons


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