Skip to content

Commit

Permalink
Fixed quest items objectived show in quest description SMSG_QUEST_QUE…
Browse files Browse the repository at this point in the history
…RY_RESPONSE.

Original patch provided by traponinet.

TODO: implement 5 item objective use in ciode and DB.
  • Loading branch information
VladimirMangos committed Jan 28, 2009
1 parent 6dfae56 commit 19dd746
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/game/GossipDef.cpp
Expand Up @@ -593,17 +593,18 @@ void PlayerMenu::SendQuestQueryResponse( Quest const *pQuest )
data << uint32(pQuest->ReqCreatureOrGOId[iI]);
}
data << uint32(pQuest->ReqCreatureOrGOCount[iI]);
//data << uint32(pQuest->ReqItemId[iI]);
//data << uint32(pQuest->ReqItemCount[iI]);
data << uint32(0); // added in WotLK, dunno if offset if correct
}

for (iI = 0; iI < 5; ++iI) // items?
for (iI = 0; iI < QUEST_OBJECTIVES_COUNT; ++iI)
{
data << uint32(0);
data << uint32(0);
data << uint32(pQuest->ReqItemId[iI]);
data << uint32(pQuest->ReqItemCount[iI]);
}

data << uint32(0); // TODO: 5 item objective
data << uint32(0);

for (iI = 0; iI < QUEST_OBJECTIVES_COUNT; iI++)
data << ObjectiveText[iI];

Expand Down

0 comments on commit 19dd746

Please sign in to comment.