aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundMgr.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2010-04-11 11:13:08 +0400
committern0n4m3 <none@none>2010-04-11 11:13:08 +0400
commit457df07bd4fd1b394cfcdbb63d5ff76e87fe8c89 (patch)
tree801c95a368b0b2638a3282b9a32300085a36bc80 /src/game/BattleGroundMgr.cpp
parent8db7c06e6b16728eca499d29bb136980d714313b (diff)
Fix quests and auctionhouse.
--HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGroundMgr.cpp')
-rw-r--r--src/game/BattleGroundMgr.cpp25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp
index 831ceeef761..5dc260bebef 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -1850,17 +1850,32 @@ void BattleGroundMgr::BuildBattleGroundListPacket(WorldPacket *data, const uint6
*data << uint64(guid); // battlemaster guid
*data << uint8(fromWhere); // from where you joined
*data << uint32(bgTypeId); // battleground id
+ *data << uint8(0); // unk
+ *data << uint8(0); // unk
+
+ // Rewards
+ *data << uint8(0); // 3.3.3 hasWin
+ *data << uint32(0); // 3.3.3 winHonor
+ *data << uint32(0); // 3.3.3 winArena
+ *data << uint32(0); // 3.3.3 lossHonor
+
+ uint8 isRandom = 0;
+ *data << uint8(isRandom); // 3.3.3 isRandom
+ if (isRandom)
+ {
+ // Rewards (random)
+ *data << uint8(0); // 3.3.3 hasWin_Random
+ *data << uint32(0); // 3.3.3 winHonor_Random
+ *data << uint32(0); // 3.3.3 winArena_Random
+ *data << uint32(0); // 3.3.3 lossHonor_Random
+ }
+
if (bgTypeId == BATTLEGROUND_AA) // arena
{
- *data << uint8(4); // unk
- *data << uint8(0); // unk
*data << uint32(0); // unk (count?)
}
else // battleground
{
- *data << uint8(0); // unk, different for each bg type
- *data << uint8(0); // unk
-
size_t count_pos = data->wpos();
uint32 count = 0;
*data << uint32(0); // number of bg instances