Also, apparently they changed RaidWarningFrame...this works for me.
Code:
local me = CreateFrame("Frame", "stupidframe")
me:RegisterEvent("CHAT_MSG_MONSTER_EMOTE")
me:RegisterEvent("CHAT_MSG_MONSTER_SAY")
me:RegisterEvent("CHAT_MSG_MONSTER_WHISPER")
--add any others...that's probably good enough
me.listOfNames = {
{"Ringo", "Yo! The goblin has fainted, throw some water on him, quick!!"},
{"Kerlonian Evershade", "Darn it! That lazy druid has fallen asleep again, time to use the horn!!!"},
{"Shay", "That dippy night elf girl is chasing butterflies again, better ring the bell and call her back."},
{"A-Me 01", "The suicidal ape robot is charging off into the fray again, go defend her!"},
--etc
}
function me.EventHandler(self, event, _, name)
for i = 1, #self.listOfNames do
if name:find(self.listOfNames[i][1]) then
PlaySound("RaidWarning")
local msg = self.listOfNames[i][2] or "Heads Up! Your quest NPC needs help!!!"
RaidNotice_AddMessage(RaidWarningFrame, msg, ChatTypeInfo["RAID_WARNING"])
return
end
end
end
me:SetScript("OnEvent", me.EventHandler)