Skip to content

Commit

Permalink
Update packets for 4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
funjoker committed Nov 1, 2024
1 parent 8b5a8ae commit 00b05cc
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ public static void HandleAreaTriggerReShape(Packet packet)
{
packet.ReadPackedGuid128("TriggerGUID");

if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_4_1_57294))
packet.ReadPackedGuid128("Unused_1100");

packet.ResetBitReader();
var hasAreaTriggerSpline = packet.ReadBit("HasAreaTriggerSpline");
var hasAreaTriggerOrbit = packet.ReadBit("HasAreaTriggerOrbit");
Expand Down
7 changes: 5 additions & 2 deletions WowPacketParserModule.V4_4_0_54481/Parsers/AuctionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ public static void HandleListItemsResult(Packet packet)
packet.ReadInt32("TotalCount");
packet.ReadInt32("DesiredDelay");

packet.ReadBit("OnlyUsable");
packet.ResetBitReader();
if (ClientVersion.RemovedInVersion(ClientVersionBuild.V4_4_1_57294))
{
packet.ReadBit("OnlyUsable");
packet.ResetBitReader();
}

for (var i = 0; i < itemsCount; i++)
ReadCliAuctionItem(packet, i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,16 @@ public static void HandleClientCharCreate(Packet packet)
packet.ReadBit("IsTrialBoost");
packet.ReadBit("UseNPE");

if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_4_1_57294))
packet.ReadBit("HardcoreSelfFound");

packet.ReadByteE<Race>("RaceID");
packet.ReadByteE<Class>("ClassID");
packet.ReadByteE<Gender>("SexID");

var customizationCount = packet.ReadUInt32();
if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_4_1_57294))
packet.ReadUInt32("TimerunningSeasonID");

packet.ReadWoWString("Name", nameLen);

Expand Down
16 changes: 14 additions & 2 deletions WowPacketParserModule.V4_4_0_54481/Parsers/CombatLogHandler.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using WowPacketParser.Enums;
using WowPacketParser.Misc;
using WowPacketParser.Parsing;
Expand Down Expand Up @@ -82,8 +83,19 @@ public static void ReadAttackRoundInfo(Packet packet, params object[] indexes)
packet.ReadSingle("Unk Attacker State 3 7", indexes);
packet.ReadSingle("Unk Attacker State 3 8", indexes);
packet.ReadSingle("Unk Attacker State 3 9", indexes);
packet.ReadSingle("Unk Attacker State 3 10", indexes);
packet.ReadSingle("Unk Attacker State 3 11", indexes);
if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_4_1_57294))
{
for (var j = 0; j < 5; j++)
{
packet.ReadSingle("Unk Attacker State 3 10", j, indexes);
packet.ReadSingle("Unk Attacker State 3 11", j, indexes);
}
}
else
{
packet.ReadSingle("Unk Attacker State 3 10", indexes);
packet.ReadSingle("Unk Attacker State 3 11", indexes);
}
packet.ReadInt32("Unk Attacker State 3 12", indexes);
}

Expand Down
7 changes: 6 additions & 1 deletion WowPacketParserModule.V4_4_0_54481/Parsers/SessionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,13 @@ public static void HandleChangeRealmTicket(Packet packet)
[Parser(Opcode.CMSG_CONNECT_TO_FAILED)]
public static void HandleRedirectFailed(Packet packet)
{
packet.ReadUInt32("Serial");
if (ClientVersion.RemovedInVersion(ClientVersionBuild.V4_4_1_57294))
packet.ReadUInt32("Serial");

packet.ReadSByte("Con");

if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_4_1_57294))
packet.ReadUInt32("Serial");
}

[Parser(Opcode.CMSG_LOGOUT_REQUEST)]
Expand Down

0 comments on commit 00b05cc

Please sign in to comment.