All pastes #451860 Raw Edit

learn all_profession

public text v1 · immutable
·published 2007-04-21 21:47 UTC
rendered paste body
	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++;

		}