I'm learning lua making a little addon wich shows a frame with small info on encounters.
Right now I have a table with intances ID (mapID from GetInstanceInfo) and bosses ID (guid from UnitGUID).
My problem is encounters with more than 1 boss (Council of Elders for example). I'm thinking on adding one level: Instance >> Encounters >> Bosses
But I have some question.
Is anywhere an encounter id diferent from the encounter id in the Journal?
mapID from GetInstanceInfo is diferent that the one in the Journal, so is there a way of conect both, I mean, if I'm inside Heart of Fear is there a way of get Journal Instance ID(330) withouth opening the journal, the same way I get mapID(1009) from GetInstanceInfo?
Resuming...what I want to do is make a table with 3 levels: Instance >> Encounters >> Bosses , but I'm troubled for mixing journal info (encounters id) and then using mapID from GetInstanceInfo, instead of Journal Instance ID.
Stupid I know,but if I'm going to gather the info I want to do it right!
And bytheway, if that table exist I would like to know!!! ( I know about LibBossIDs)
You're best using the actual map id not the "zone id" from the EJ.
There is only one kind of "encounter id", the one from the EJ.
For encounters with more than one boss they usually have sections with the boss names which you can use EJ_GetSectionInfo on to get the translated boss names. e.g. EJ_GetSectionInfo(7050) >> High Priestess Mar'li