Posted by m4dc0w344 on Tue, 20 Aug 2013 07:31:41
what is wrong with this?
__hello first I want to say that I'm new on this forum so hey ! :)
second could someone please tell me what am I doing wrong here?
local frame = CreateFrame("FRAME", "FooAddonFrame"); frame:RegisterEvent("PLAYERAURASCHANGED"); local function eventHandler(self, event, ...) if UnitBuff(player, (1126));
then print("Hello world!")
end frame:SetScript("OnEvent", eventHandler);