pSpell->Level something not right
Posted: Wed Apr 28, 2004 12:19 am
I want to mem a spell in a plugin so I'm trying to use the MQ2Utilities.cpp to do so.
Returns the spell pointer fine but if you
is returning 255 for levitation. For Remove Greater Curse it works fine. I can't figure out what the problem is something todo with
or the offset for spell manager
Code: Select all
PSPELL pSpell = GetSpellByName("Levitation");Code: Select all
sprintf(szOutput,"GetSpellByNameLevel: %i",pSpell->Level[GetCharInfo()->pSpawn->Class-1]);
WriteChatColor(szOutput,USERCOLOR_DEFAULT);Code: Select all
pSpell->Level[GetCharInfo()->pSpawn->Class-1]Code: Select all
pSpell = &(*((PSPELLMGR)pSpellMgr)->Spells[dwSpellID]);