Lua Code:
local s = Status(unit)
if s then
return s
end
local r,g,b = ClassColor(unit)
local string1 = string.format('|cff%02x%02x%02x%s|r %s%s%s|', r,g,b,Name(unit),Angle(AFK(unit) or DND(unit)))
local cur,max = HP(unit),MaxHP(unit);
local hr,hg,hb=HPColor(cur,max);
local string2 = string.format("|cff%02x%02x%02x%.0f|r" or "", hr,hg,hb,100*cur/max)
return string1 .. string2
Someone here probably has a better solution.