Thanks for all answers.
I tried this code, but isn't working:
Code:
local frame = CreateFrame("FRAME", "RFFrame");
frame:RegisterEvent("UNIT_AURA");
local function eventHandler(self, event, ...)
local active = UnitBuff('player', 'Righteous Fury')
if not hasrf and active then
hasrf = true
print('Rigtheous Fury has been activated')
elseif hasrf and not active then
hasrf = false
end
frame:SetScript("OnEvent", eventHandler);
I'm pretty sure that I missed something that you wrote.
And some other questions too...
if i want to create a frame that shows "RF is not active", and when its active it shows "RF is active", in a frame like WinterTimer has, that is showing all the time, do i need to do this in the xml file, and is it hard?
Second question, what program are you guys coding in? Cause im just using the WordPad xD