What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Raid target icons

simi12345

New Member
Joined
Dec 5, 2010
Messages
6
Reaction score
0
Is it anyhow possible to check, wich raid target icon is on a Unit?
I wanted to write a target assist for a multiboxing plugin and the raid target icons would be perfect for this
but i didn't find a way to check them.
 
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 :)
 
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 :)

^This^

GetRaidTargetIndex - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons

Should be the only way to go.
 
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.
 
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.

Exactly what i wanted to say.
 
I know Bobby has some Raid Icon checking in his Shaman CC. Maybe check and see how he is doing it.
 
Back
Top