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()); }
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()); } }
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()); } }
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!"); } }