View Single Post
Old 08/15/08, 6:58 AM   #359 (permalink)
sanny
Glass Joe
 
sanny's Avatar
 
Gnome Mage
 
Aggramar (EU)
Been using this dogtag for target health, changing color of health when health is dropping, but I have an issue. Whenever the target has less than 5% health, the health and percent showing disappears.

Here is the dogtag:
[(if PercentHP = 100 then
nil
elseif PercentHP > 90 then
HP:Color("1AFF00") " / ":Color("1AFF00") PercentHP:VeryShort:Percent:Color("1AFF00")
elseif PercentHP > 80 then
HP:Color("64FF00") " / ":Color("64FF00") PercentHP:VeryShort:Percent:Color("64FF00")
elseif PercentHP > 70 then
HP:Color("9BFF00") " / ":Color("9BFF00") PercentHP:VeryShort:Percent:Color("9BFF00")
elseif PercentHP > 60 then
HP:Color("CBFF00") " / ":Color("CBFF00") PercentHP:VeryShort:Percent:Color("CBFF00")
elseif PercentHP > 50 then
HP:Color("FFFF00") " / ":Color("FFFF00") PercentHP:VeryShort:Percent:Color("FFFF00")
elseif PercentHP > 40 then
HP:Color("FFE900") " / ":Color("FFE900") PercentHP:VeryShort:Percent:Color("FFE900")
elseif PercentHP > 30 then
HP:Color("FFBC00") " / ":Color("FFBC00") PercentHP:VeryShort:Percent:Color("FFBC00")
elseif PercentHP > 20 then
HP:Color("FF8E00") " / ":Color("FF8E00") PercentHP:VeryShort:Percent:Color("FF8E00")
elseif PercentHP > 10 then
HP:Color("FF4300") " / ":Color("FF4300") PercentHP:VeryShort:Percent:Color("FF4300")
elseif PercentHP > 5 then
HP:Color("FF1000") " / ":Color("FF1000") PercentHP:VeryShort:Percent:Color("FF1000")
elseif Dead then
HP:Color("AAAAAA") " / ":Color("AAAAAA") PercentHP:VeryShort:Percent:Color("AAAAAA")
end)]
 
User is offline.
Reply With Quote