You only need to adjust the UpdatePlayerHealth function. (Replace it with the one I posted)
This function is called each time the health of the player changes.
Other values will become obsolete, especially those that are set at startup.
The only thing that should be adjusted is the initial Healthcolor value at startup.
RGB in the real world is from 0 to 255. In WoW its from 0 to 1 or for you, from 0/255 to 255/255.
Just try my function, it should work.
My healhcolor value in my config is just an index number that is used to find the correct line in the orb-table. It has nothing to do with color values. But the color value inside that line on the table does.
example:
Code:
local orbtab = {
[0] = {r = player_class_color.r*0.8, g = player_class_color.g*0.8, b = player_class_color.b*0.8, scale = 0.9, z = -12, x = -0.5, y = -0.8, anim = "SPELLS\WhiteRadiationFog.m2"}, -- class color
[1] = {r = 0.8, g = 0, b = 0, scale = 0.8, z = -12, x = 0.8, y = -1.7, anim = "SPELLS\\RedRadiationFog.m2"}, -- red
[2] = {r = 0.2, g = 0.8, b = 0, scale = 0.75, z = -12, x = 0, y = -1.1, anim = "SPELLS\\GreenRadiationFog.m2"}, -- green
[3] = {r = 0, g = 0.35, b = 0.9, scale = 0.75, z = -12, x = 1.2, y = -1, anim = "SPELLS\\BlueRadiationFog.m2"}, -- blue
[4] = {r = 0.9, g = 0.7, b = 0.1, scale = 0.75, z = -12, x = -0.3, y = -1.2, anim = "SPELLS\\OrangeRadiationFog.m2"}, -- yellow
[5] = {r = 0.1, g = 0.8, b = 0.7, scale = 0.9, z = -12, x = -0.5, y = -0.8, anim = "SPELLS\\WhiteRadiationFog.m2"}, -- runic
}
That color value for green should be 0,1,0 (RGB) for what you are looking to do and healthcolor should be set to 2 (healthcolor = 2).