diff options
| author | Shauren <shauren.trinity@gmail.com> | 2012-01-12 23:35:08 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2012-01-12 23:35:08 +0100 |
| commit | 7163670be1ee3507219d0ed22508e10b6e71a5be (patch) | |
| tree | 631ac9c558f637083a5767375a8851880e424acd /src/server/game/Quests/QuestDef.cpp | |
| parent | e7c7158db0da55892983629e852ac6faf0f4f630 (diff) | |
Core/Quests: Send currency rewards in quest packets
Diffstat (limited to 'src/server/game/Quests/QuestDef.cpp')
| -rwxr-xr-x | src/server/game/Quests/QuestDef.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Quests/QuestDef.cpp b/src/server/game/Quests/QuestDef.cpp index 1b4613c5535..1a0b21c9615 100755 --- a/src/server/game/Quests/QuestDef.cpp +++ b/src/server/game/Quests/QuestDef.cpp @@ -133,7 +133,7 @@ Quest::Quest(Field* questRecord) for (int i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i) RewardCurrencyId[i] = questRecord[132+i].GetUInt32(); - + for (int i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i) RewardCurrencyCount[i] = questRecord[136+i].GetUInt32(); @@ -309,7 +309,7 @@ void Quest::BuildExtraQuestInfo(WorldPacket& data, Player* player) const data << uint32(GetCharTitleId()); // CharTitleId, new 2.4.0, player gets this title (id from CharTitles) data << uint32(0); // 4.x Unk - data << uint32(0); // 4.x Unk + data << float(0); // 4.x Unk data << uint32(GetBonusTalents()); // bonus talents data << uint32(0); // 4.x Unk data << uint32(0); // 4.x Unk @@ -333,10 +333,10 @@ void Quest::BuildExtraQuestInfo(WorldPacket& data, Player* player) const data << uint32(GetRewSpell()); // reward spell, this spell will display (icon) (casted if RewSpellCast == 0) data << int32(GetRewSpellCast()); // casted spell - for (uint8 i = 0; i < 4; i++) - data << uint32(0); // 4.x Unk - for (uint8 i = 0; i < 4; i++) - data << uint32(0); // 4.x Unk + for (uint8 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; i++) + data << uint32(RewardCurrencyId[i]); // 4.x Unk + for (uint8 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; i++) + data << uint32(RewardCurrencyCount[i]); // 4.x Unk data << uint32(0); // 4.x Unk data << uint32(0); // 4.x Unk |
