Hi all,
a friend of mine ask if there is an addon that do basically what did this:
http://www.wowinterface.com/download...ameplates.html
"This is not a complete Nameplates-Mod. The only thing it does, is colorizing the default Blizzard-Nameplates based on threat. This is the only feature I miss on the standard nameplates, so I made this little addon. In DPS/Healer-Mode, nameplates of mobs you have aggro from are red, if you gain aggro, they are yellow and if they are tanked, they are green. For tanks the behavior is of course reversed.
There is one option for this Addon: Only activate it for tanks."
It is and old not update anymore addon and unfortunately I was not able to fix it for the current game version.
So I ask if someone knows if there is something similar or if it is possible to fix the error:
Lua Code:
NamePlate.Healthbar = NamePlate:GetChildren()
--check if it is a player, no need to do threat on them
local r, g, b = NamePlate.Healthbar:GetStatusBarColor()
if (b > 0 and g > 0) then return end
Code:
7x nioNameplates\Nameplates.lua:49: attempt to call method 'GetStatusBarColor' (a nil value)
nioNameplates\Nameplates.lua:49: in function <nioNameplates\Nameplates.lua:45>
nioNameplates\Nameplates.lua:81: in function <nioNameplates\Nameplates.lua:69>
I think that the code:
Lua Code:
NamePlate.Healthbar = NamePlate:GetChildren()
should returned now 2 values and the rest of the code applied to the second one.
Boh ... :-)
Thanks for attention and for every tips you can give me.