I am trying to do a simple display of Hello World when a certain combat log event matches what I am looking for but I feel I am doing something wrong.
__________________
function HelloWorld(self,event,...)
frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
frame:SetScript("OnEvent", function(self, event, ...)
self[event](...)
end)
local spellID, spellName
frame.COMBAT_LOG_EVENT_UNFILTERED = function(...)
if arg2 == "SPELL_AURA_APPLIED" then
spellID = arg9
spellName = GetSpellInfo(spellID)
if spellName == "Fel Armor" then
message("Hello World!");
end
end
end
end
____________
This is just a simple modification of the HelloWorld tutorial blizz provides so the xml and toc are the same as the tutorial.
Thanks all and this basic problem I am having will solve so many of my questions thank you alot
Travis