Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-10-16, 12:16 PM   #10
slayos
A Deviate Faerie Dragon
 
slayos's Avatar
Join Date: May 2015
Posts: 15
Originally Posted by Fizzlemizz View Post
local perc = Percent(cur,max)

Would appear to be converting current health into a percentage of max so if you just change perc to cur as the return by:
Code:
	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
You also have duplicate
Code:
local s = Status(unit)
if s then
    return s
end
Statements.
For the boss you woulld need to substitute the function it's using to convert the values and replace it with Percent as in your code above.
Could you possible give me my code back fixed the way that you'd do it? I'm not really that good at coding.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » PitBull4 Lua texts - Colored health and power?


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