[9333] Added some comments.

This commit is contained in:
tomrus88 2010-02-09 01:58:14 +03:00
parent 2fc0025b89
commit 134f3fc86c
2 changed files with 15 additions and 15 deletions

View file

@ -464,11 +464,11 @@ void PlayerMenu::SendQuestGiverQuestDetails( Quest const *pQuest, uint64 npcGUID
data << Title;
data << Details;
data << Objectives;
data << uint8(ActivateAccept ? 1 : 0);
data << uint8(ActivateAccept ? 1 : 0); // auto finish?
data << uint32(pQuest->GetSuggestedPlayers());
data << uint8(0); // new wotlk
data << uint8(0); // new 3.1
data << uint8(0); // new 3.3.0
data << uint8(0); // flags PvP
data << uint8(0); // value is sent back to server in quest accept packet
data << uint8(0); // auto accept?
if (pQuest->HasFlag(QUEST_FLAGS_HIDDEN_REWARDS))
{
@ -534,8 +534,8 @@ void PlayerMenu::SendQuestGiverQuestDetails( Quest const *pQuest, uint64 npcGUID
data << uint32(pQuest->GetRewSpellCast()); // casted spell
data << uint32(pQuest->GetCharTitleId()); // CharTitleId, new 2.4.0, player gets this title (id from CharTitles)
data << uint32(pQuest->GetBonusTalents()); // bonus talents
data << uint32(0);
data << uint32(0);
data << uint32(0); // bonus arena points
data << uint32(0); // rep reward show mask?
for(int i = 0; i < QUEST_REPUTATIONS_COUNT; ++i) // reward factions ids
data << uint32(pQuest->RewRepFaction[i]);
@ -636,7 +636,7 @@ void PlayerMenu::SendQuestQueryResponse( Quest const *pQuest )
data << uint32(pQuest->GetPlayersSlain()); // players slain
data << uint32(pQuest->GetBonusTalents()); // bonus talents
data << uint32(0); // bonus arena points
data << uint32(0); // unknown
data << uint32(0); // rew rep show mask?
int iI;
@ -736,8 +736,8 @@ void PlayerMenu::SendQuestGiverOfferReward( Quest const* pQuest, uint64 npcGUID,
data << Title;
data << OfferRewardText;
data << uint8(EnableNext ? 1 : 0);
data << uint32(0); // unk
data << uint8(EnableNext ? 1 : 0); // Auto Finish?
data << uint32(0); // SuggestedGroupNum
uint32 EmoteCount = 0;
for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
@ -801,7 +801,7 @@ void PlayerMenu::SendQuestGiverOfferReward( Quest const* pQuest, uint64 npcGUID,
data << uint32(pQuest->GetCharTitleId()); // character title
data << uint32(pQuest->GetBonusTalents()); // bonus talents
data << uint32(0); // bonus arena points
data << uint32(0); // unknown
data << uint32(0); // rew rep show mask?
for(int i = 0; i < QUEST_REPUTATIONS_COUNT; ++i) // reward factions ids
data << uint32(pQuest->RewRepFaction[i]);
@ -850,20 +850,20 @@ void PlayerMenu::SendQuestGiverRequestItems( Quest const *pQuest, uint64 npcGUID
data << Title;
data << RequestItemsText;
data << uint32(0x00); // unknown
data << uint32(0x00); // emote delay
if(Completable)
data << pQuest->GetCompleteEmote();
data << pQuest->GetCompleteEmote(); // emote id
else
data << pQuest->GetIncompleteEmote();
// Close Window after cancel
if (CloseOnCancel)
data << uint32(0x01);
data << uint32(0x01); // auto finish?
else
data << uint32(0x00);
data << uint32(0x00); // unknown
data << uint32(0x00); // SuggestedGroupNum
// Required Money
data << uint32(pQuest->GetRewOrReqMoney() < 0 ? -pQuest->GetRewOrReqMoney() : 0);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9332"
#define REVISION_NR "9333"
#endif // __REVISION_NR_H__