Show
Ignore:
Timestamp:
11/19/08 13:35:09 (17 years ago)
Author:
yumileroy
Message:

[svn] * Implement honor rewards from quests - Source Mangos

Original author: KingPin?
Date: 2008-10-22 07:02:05-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/QuestDef.cpp

    r44 r96  
    104104        RewRepValue[i] = questRecord[94+i].GetInt32(); 
    105105 
    106     RewOrReqMoney = questRecord[99].GetInt32(); 
    107     RewMoneyMaxLevel = questRecord[100].GetUInt32(); 
    108     RewSpell = questRecord[101].GetUInt32(); 
    109     RewSpellCast = questRecord[102].GetUInt32(); 
    110     RewMailTemplateId = questRecord[103].GetUInt32(); 
    111     RewMailDelaySecs = questRecord[104].GetUInt32(); 
    112     PointMapId = questRecord[105].GetUInt32(); 
    113     PointX = questRecord[106].GetFloat(); 
    114     PointY = questRecord[107].GetFloat(); 
    115     PointOpt = questRecord[108].GetUInt32(); 
     106    RewHonorableKills = questRecord[99].GetUInt32(); 
     107    RewOrReqMoney = questRecord[100].GetInt32(); 
     108    RewMoneyMaxLevel = questRecord[101].GetUInt32(); 
     109    RewSpell = questRecord[102].GetUInt32(); 
     110    RewSpellCast = questRecord[103].GetUInt32(); 
     111    RewMailTemplateId = questRecord[104].GetUInt32(); 
     112    RewMailDelaySecs = questRecord[105].GetUInt32(); 
     113    PointMapId = questRecord[106].GetUInt32(); 
     114    PointX = questRecord[107].GetFloat(); 
     115    PointY = questRecord[108].GetFloat(); 
     116    PointOpt = questRecord[109].GetUInt32(); 
    116117 
    117118    for (int i = 0; i < QUEST_EMOTE_COUNT; ++i) 
    118         DetailsEmote[i] = questRecord[109+i].GetUInt32(); 
    119  
    120     IncompleteEmote = questRecord[113].GetUInt32(); 
    121     CompleteEmote = questRecord[114].GetUInt32(); 
     119        DetailsEmote[i] = questRecord[110+i].GetUInt32(); 
     120 
     121    IncompleteEmote = questRecord[114].GetUInt32(); 
     122    CompleteEmote = questRecord[115].GetUInt32(); 
    122123 
    123124    for (int i = 0; i < QUEST_EMOTE_COUNT; ++i) 
    124         OfferRewardEmote[i] = questRecord[115+i].GetInt32(); 
    125  
    126     QuestStartScript = questRecord[119].GetUInt32(); 
    127     QuestCompleteScript = questRecord[120].GetUInt32(); 
     125        OfferRewardEmote[i] = questRecord[116+i].GetInt32(); 
     126 
     127    QuestStartScript = questRecord[120].GetUInt32(); 
     128    QuestCompleteScript = questRecord[121].GetUInt32(); 
    128129 
    129130    QuestFlags |= SpecialFlags << 16;