What I mean is, that what you need to add is inside the function e.g.
Code:
local frame = CreateFrame("FRAME", "RFFrame");
frame:RegisterEvent("UNIT_AURA");
local function eventHandler(self, event, ...)
--ADD YOUR CODE HERE
print("Rigtheous Fury is now activated " .. event);
end
frame:SetScript("OnEvent", eventHandler);
Given what you've posted so far, you might want to start with something like
http://www.wowwiki.com/AddOn_program...l/Introduction