if (!strcmp(args, "all_prof")) { int loop = 0; PSendSysMessage(LANG_LEARNING_PROFESSIONS, m_session->GetPlayer()->GetName()); while (strcmp(profSpellList[loop], "0")) { uint32 spell = atol((char*)profSpellList[loop]); if (m_session ->GetPlayer()->HasSpell(spell)) { loop++; continue; } m_session->GetPlayer()->learnSpell((uint16)spell); loop++; }