Very cool Plaz. :) Got this working with about 15 minutes of work :)
Had to fix one of your typos though
In LoadSpells, you have the following:
Code: Select all
if (!stricmp(szArg1,"list")) {
DoIndex = FindSpellListByName(szArg2);
if (DoIndex==-1) {
sprintf(szBuffer,"Unable to find favorite list '%s'",szArg2);
WriteChatBuffer(szBuffer,USERCOLOR_DEFAULT);
return;
}
sprintf(szBuffer,"Favorite list '%s':",szArg2);
WriteChatBuffer(szBuffer,USERCOLOR_DEFAULT);
for (Index=0;Index<8;Index++) {
[b]if (EQADDR_SPELLFAVORITES[DoIndex].SpellId[Index]!=0xFFFFFFFF) {
sprintf(szBuffer,"%d) %s",Index,GetSpellByID(EQADDR_SPELLFAVORITES[DoIndex].SpellId[Index])); [/b]
WriteChatBuffer(szBuffer,USERCOLOR_DEFAULT);
}
}
return;
}
Replace the bold lines with:
Code: Select all
if (EQADDR_SPELLFAVORITES[DoIndex].SpellIDs[Index]!=0xFFFFFFFF) {
sprintf(szBuffer,"%d) %s",Index,GetSpellByID(EQADDR_SPELLFAVORITES[DoIndex].SpellIDs[Index]));
Not a big deal -- gods know I've done the same (and worse) about a million times.
Thanks for the LoadSpells function, and the opportunity to give my MQ knowledge a workout
