Implement usage of RewardArenaPoints field in quest_template

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-03-27 15:10:26 +01:00
parent 9ce6094dce
commit b9927ca559
5 changed files with 80 additions and 74 deletions
+4 -1
View File
@@ -14073,6 +14073,9 @@ void Player::RewardQuest( Quest const *pQuest, uint32 reward, Object* questGiver
InitTalentForLevel();
}
if (pQuest->GetRewArenaPoints())
ModifyArenaPoints(pQuest->GetRewArenaPoints());
// Send reward mail
if (uint32 mail_template_id = pQuest->GetRewMailTemplateId())
MailDraft(mail_template_id).SendMailTo(this, questGiver, MAIL_CHECK_MASK_NONE, pQuest->GetRewMailDelaySecs());
@@ -15190,7 +15193,7 @@ void Player::SendQuestReward( Quest const *pQuest, uint32 XP, Object * questGive
data << uint32(10*Trinity::Honor::hk_honor_at_level(getLevel(), pQuest->GetRewHonorableKills()));
data << uint32(pQuest->GetBonusTalents()); // bonus talents
data << uint32(0);
data << uint32(pQuest->GetRewArenaPoints());
GetSession()->SendPacket( &data );
if (pQuest->GetQuestCompleteScript() != 0)