View Single Post
08-24-21, 11:02 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,930
They did change how you can access certain parts of the spell data.

I use the following in my portals addon.

On PLAYER_ENTERING_WORLD event I make a call to C_Spell.RequestLoadSpellData(spellID) for each spell I will need info for.

On SPELL_DATA_LOAD_RESULT event it returns the spellID requested and whether it was loaded successfully. You can now access the data. I vaguely recall having issues retaining the info for later retrieval so it was at this point that I stored the information I needed.

Some of the spell functions I believe do not need this process. But I am not sure off the top of my head which ones they are.
__________________


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