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"}