View Single Post
03-10-16, 12:39 PM   #25
slayos
A Deviate Faerie Dragon
 
slayos's Avatar
Join Date: May 2015
Posts: 15
Originally Posted by Fizzlemizz View Post
Apologies, too early in the morning .

Code:
local s = Status(unit)
if s then
	return s
end
local cur, max = HP(unit), MaxHP(unit)
local perc = Percent(cur,max)
if UnitIsFriend(unit,"player") then
	if perc >= 76 then
		return "|cff00d036%s|r", cur
	elseif perc >= 26 then
		return "|cfff19c08%s|r",cur
	else
		return "|cfff10808%s|r",cur
	end
else
	return "%s%%",perc
end
NICE! you have no idea how long i've been working on getting this fixed!!!, if it's not to much to ask since you're so good at this xD is it possible to make the unfriendly text colored like the friendly one to? i am a perfectionist xD
  Reply With Quote