Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-22-08, 03:38 AM   #1
Sjak
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 13
I suck at this (first proper mod help)

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
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » I suck at this (first proper mod help)


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off