Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-21-13, 09:33 PM   #1
Niketa
A Wyrmkin Dreamwalker
 
Niketa's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2013
Posts: 54
Checking if raid group is in combat with a specific boss...

Hi. I'm new to LUA and AddOn development, so this might be a pretty simple question but I'm having problems finding an efficient way to check if a raid group is in combat with a boss.

I currently have it so that when it registers that I enter combat it checks each group member's target (cycles through based on "raid1" "raid2" etc.) and gets its NPC ID then compares that to values in a table.

This sometimes work but it's very inefficient and unreliable for several reasons, but mainly being that if people don't have the boss targeted right away when their turn comes it won't register it and thus if no one does it may miss a correct ID.

I tried looking over DBM's codes but since I've only started learning this this past week, it's way too advanced for me to get an idea of what they did.


Any help is greatly appreciated!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Checking if raid group is in combat with a specific boss...


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off