SendAddonMessage()
I'm new to LUA (as in I just started learning stuff about LUA and XML this week) and I'm trying to write an addon for the guild. I'm having trouble how to figure something out: the addon has editboxes that only the raid leader can modify the text of, and when he does so I need the addon to send the message (using "CHAT_MSG_ADDON", I have that part) to the client so that it knows to update the edit boxes to whatever data was sent. The problem I'm having is how do I grab the data from the CHAT_MSG_ADDON and use it? Do I have to use string.find and pull it from there that way? Like how do I grab the "mydata" part from SendAddonMessage("my addon","mydata","RAID") and then call it? Thanks ahead of time for any help you can give me.
|