View Single Post
11-10-07, 07:11 PM   #2
Tyrolit
A Black Drake
 
Tyrolit's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 88
1:

Code:
local Your_Frame = CreateFrame("Frame")
Your_Frame:RegisterEvent("CHAT_MSG_WHISPER")
Your_Frame:SetScript("OnEvent", function(self, event, msg, author)
    if msg == "string your looking for"  then
        -- your code here
    end
end
2:

Code:
SendChatMessage(messageString, "WHISPER", Language, recipient)
3: not sure this time of night what you mean here but to make a table as an array ( use for k,v in ipairs(table) to iterate thro )

Code:
table = {"first", "second", "third",..}
or ( use for k,v in pairs(table) )

Code:
table = { tyrolit = "Warlock", thoraxe = "Hunter", kaieldriale = "Priest", daednumai = "rogue"}
__________________
click HERE for the ultimate idiot test.
  Reply With Quote