public static void HandleAuthSession(Packet packet) { // Do not overwrite version after Handler was initialized packet.ReadEnum <ClientVersionBuild>("Client Build", TypeCode.Int32); packet.ReadInt32("Unk Int32 1"); packet.ReadCString("Account"); if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_0_2_9056)) { packet.ReadInt32("Unk Int32 2"); } packet.ReadInt32("Client Seed"); if (ClientVersion.AddedInVersion(ClientVersionBuild.V3_2_0_10192)) { packet.ReadInt64("Unk Int64"); } packet.Writer.WriteLine("Proof SHA-1 Hash: " + Utilities.ByteArrayToHexString(packet.ReadBytes(20))); AddonHandler.ReadClientAddonsList(ref packet); }