* [sql/updates/2008_10_22_01_mangos_quest_template.sql] Implemented honor rewards from quests

This commit is contained in:
arrai 2008-10-22 01:20:18 +02:00
parent 6892cc3d2c
commit 406ac0abe5
8 changed files with 45 additions and 48 deletions

View file

@ -12047,6 +12047,10 @@ void Player::RewardQuest( Quest const *pQuest, uint32 reward, Object* questGiver
// Give player extra money if GetRewOrReqMoney > 0 and get ReqMoney if negative
ModifyMoney( pQuest->GetRewOrReqMoney() );
// honor reward
if(pQuest->GetRewHonorableKills())
RewardHonor(NULL, 0, MaNGOS::Honor::hk_honor_at_level(getLevel(), pQuest->GetRewHonorableKills()));
// title reward
if(pQuest->GetCharTitleId())
{