Ok, I've spent the last day or so trying to make this work. I'm making a mod that will display some text when a buff is missing from the player (specifically an aura/blessing). However, using the "UIErrorsFrame" doesn't work because my message doesn't stay there - it fades and then doesn't come back. How would I make a message stay on the screen until the buff is found?
This is the main function for buff finding:
Code:
function CheckForAura(auraName, unit)
auraName = auraName or ""
unit = unit or "player"
local i = 1
local n = UnitBuff(unit, i)
while n do
if strfind(n, auraName) then
return true
end
i = i + 1
n = UnitBuff(auraName, i)
end
end
Thanks