1. 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);