View Single Post
12-12-20, 11:59 AM   #11
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
Originally Posted by Krainz View Post
Is it possible to use C_Covenants.GetActiveCovenantID in the local function LoadMinimap() ?

If not then how do I use it?
As was suggested you can use it amongst your Player Login process to store the active covenant when the game is aware of it. You won't need to check it again. Because you also have the ability to switch covenants tracking the event is still useful.

So create a variable for the addon such as covenantID and then update it with the appropriate value from C_Covenants.GetActiveCovenantID() on PLAYER_LOGIN or when the COVENANT_CHOSEN event fires. You can then use the variable for checks elsewehere in the addon.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote