View Single Post
01-24-12, 10:40 AM   #9
Animor
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 136
It doesn't work

This is my code:
Code:
dungeonID = GetPartyLFGID()
numBosses = GetLFGDungeonNumEncounters(dungeonID)
for i = 1, numBosses do
	self:Print(GetLFGDungeonEncounterInfo(dungeonID, i))
	if (select(3, GetLFGDungeonEncounterInfo(dungeonID, i))) then
		deadBosses = deadBosses + 1
	end			
end
I also tried the second field of GetLFGDungeonNumEncounters, which should be the number of completed encounters. But the results are always as if no boss was killed.
Number of bosses and bosses names look ok, though.
From looking at the code it looks like this data should be valid when a player is entering the instance and informed of the status. I just don't get why these functions don't always work.

I'm sure Blizzard hold this information somewhere, but I don't know how to get it. It's so frustrating.

Edit:
If I print GetLFGDungeonNumEncounters(416) (DS part one), I get the number of looted bosses. But this is not what I want, since a player can loot the LFR and do it all over again. I'm looking for the progress in the current instance. Meaning how many bosses are dead, regardless if the players is doing the LFR for the 1st of 5th time.

Last edited by Animor : 01-24-12 at 12:00 PM.
  Reply With Quote