At what point are you running that code ? It might be that the information you are asking for isn't available at login but is available by the time the player is entering the world.
What event are you watching for before you use that code segment ?
Also, it might need the EncounterJourmal loaded ( I think its a blizzard addon) before it will work. Yes it is Blizzard_EncounterJournal. Have that as a pre-requisite of your addon so that it loads before your addon does and things may work then.
Last edited by Xrystal : 04-15-21 at 11:06 AM.
|