Skip to content

Commit

Permalink
4.3.4 SMSG_BATTLEFIELD_STATUS structure
Browse files Browse the repository at this point in the history
  • Loading branch information
DDuarte committed Sep 11, 2014
1 parent 134419a commit 4b34bc2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion WowPacketParser/Parsing/Parsers/BattlegroundHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public static void HandleBGZeroLengthPackets(Packet packet)
{
}

[Parser(Opcode.SMSG_BATTLEFIELD_STATUS)]
[Parser(Opcode.SMSG_BATTLEFIELD_STATUS, ClientVersionBuild.Zero, ClientVersionBuild.V4_0_1_13164)]
public static void HandleBattlefieldStatusServer(Packet packet)
{
var slot = packet.ReadUInt32("Queue Slot");
Expand Down
18 changes: 18 additions & 0 deletions WowPacketParserModule.V4_3_4_15595/Parsers/BattlegroundHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,24 @@ public static void HandleBattlemasterJoin434(Packet packet)
packet.WriteGuid("Guid", guid);
}

[Parser(Opcode.SMSG_BATTLEFIELD_STATUS)]
public static void HandleBattlefieldStatus434(Packet packet)
{
var playerGuid = packet.StartBitStream(0, 4, 7, 1, 6, 3, 5, 2);

packet.ReadXORByte(playerGuid, 5);
packet.ReadXORByte(playerGuid, 6);
packet.ReadXORByte(playerGuid, 7);
packet.ReadXORByte(playerGuid, 2);
packet.ReadInt32("Join Type");
packet.ReadXORByte(playerGuid, 3);
packet.ReadXORByte(playerGuid, 1);
packet.ReadInt32("Queue Slot");
packet.ReadInt32("Join Time");
packet.ReadXORByte(playerGuid, 0);
packet.ReadXORByte(playerGuid, 4);
}

[Parser(Opcode.SMSG_BATTLEFIELD_STATUS_QUEUED)]
public static void HandleRGroupJoinedBattleground434(Packet packet)
{
Expand Down

0 comments on commit 4b34bc2

Please sign in to comment.