Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-06-12, 08:23 AM   #37
Animor
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 136
I think I understand roughly how DBM knows if there is a wipe or kill:
1. They run every 3 (seconds?) a function that checks for a wipe.
2. They run a function that checks for boss (or boss related mobs) kill on every UNIT_DIED.
3. They check some msg (I think it's a boss yell or something like that), for boss kill.

If (1) happens before (2) or (3) then it's a wipe, if (2) or (3) happen before, it's a kill.
I think it's an ugly way to know if it is a kill or wipe... not blaming the authors ofc, it's the lack of proper API for boss fights. I just don't like the idea of running same function in a scheduled loop. I wish I could think of a cleaner solution for this problem.

By the way, regarding the suggestion (by Phanx) of taking into account players location (inside or outside the instance) - apparently you can do that only for raid members, using GetRaidRosterInfo(index). But I coudn't find a way to get the location of party members, so I can't use this method in 5men dungeons.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Raid/dungeons event and data


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