private string TargetRaidIcon()
{
int mark = Lua.GetReturnVal<int>("GetRaidTargetIndex(target)", 0);
switch (mark)
{
case 1: return "star";
case 2: return "circle";
case 3: return "diamond";
case 4: return "triangle";
case 5: return "moon";
case 6: return "square";
case 7: return "cross";
case 8: return "skull";
default: return "";
}
}
I couldn't find anything in the HB api either - but it can be done with lua.
PHP:private string TargetRaidIcon() { int mark = Lua.GetReturnVal<int>("GetRaidTargetIndex(target)", 0); switch (mark) { case 1: return "star"; case 2: return "circle"; case 3: return "diamond"; case 4: return "triangle"; case 5: return "moon"; case 6: return "square"; case 7: return "cross"; case 8: return "skull"; default: return ""; } }
If I were to implement it - I would probably use enum for each mark instead of strings. But I suppose this gives you whatever you need to continue![]()
theres definitely no nice way to do it, since you gotta keep pushing lua to make sure the target still has the raid icon, if you can avoid it then please do.






