Moderator: MacroQuest Developers
Code: Select all
DoIndex = IsNumber(szArg1)?atoi(szArg1):FindSpellListByName(szArg1);
if (DoIndex >= 0 && DoIndex <=9) {
pSpellBookWnd->MemorizeSet((int*)&pSpellSets[DoIndex],9);
} else {
sprintf(szBuffer,"Unable to find favorite list '%s'",szArg1);
WriteChatColor(szBuffer,USERCOLOR_DEFAULT);
}