void CompleteLearnProfession(Player *player, Creature *creature, SkillType skill)
{
	if (PlayerAlreadyHasTwoProfessions(player) && !IsSecondarySkill(skill))
		creature->MonsterWhisper("Вы уже обучили 2 профессии!", player->GetGUID());
	else
		if (!LearnAllRecipesInProfession(player, skill))
			creature->MonsterWhisper("Произошла внутренняя ошибка!", player->GetGUID());
}
Пример #2
0
 void CompleteLearnProfession(Player *pPlayer, Creature *pCreature, SkillType skill)
 {
         if (PlayerAlreadyHasTwoProfessions(pPlayer) && !IsSecondarySkill(skill))
                 pCreature->MonsterWhisper("You already know two professions!", pPlayer->GetGUID());
         else
         {
                 if (!LearnAllRecipesInProfession(pPlayer, skill))
                         pCreature->MonsterWhisper("Internal error occured!", pPlayer->GetGUID());
         }
 }
Пример #3
0
	void CompleteLearnProfession(Player* player, Creature* creature, SkillType skill)
	{
		if (PlayerAlreadyHasNineProfessions(player) && !IsSecondarySkill(skill))
			creature->MonsterWhisper(TEXT_ID_ALREADY_SKILL, LANG_UNIVERSAL, player->GetGUID());
		else
		{
			if (!LearnAllRecipesInProfession(player, skill))
				creature->MonsterWhisper("Error!", player->GetGUID());
		}
	}
Пример #4
0
	void CompleteLearnProfession(Player *pPlayer, SkillType skill)
	{
		if (PlayerAlreadyHasTwoProfessions(pPlayer) && !IsSecondarySkill(skill))
			pPlayer->GetSession()->SendNotification("You already know two professions!");
		else
		{
			if (!LearnAllRecipesInProfession(pPlayer, skill))
				pPlayer->GetSession()->SendNotification("Internal error occured!");
		}
	}