Skip to content

Commit 8c26c02

Browse files
committed
Fix old structures for SMSG_MAIL_QUERY_NEXT_TIME_RESULT, SMSG_SPELL_VISUAL_LOAD_SCREEN and SMSG_PLAYER_CHOICE_CLEAR
1 parent f76aa59 commit 8c26c02

4 files changed

Lines changed: 52 additions & 2 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using WowPacketParser.Enums;
2+
using WowPacketParser.Misc;
3+
using WowPacketParser.Parsing;
4+
5+
namespace WowPacketParserModule.V11_0_0_55666.Parsers
6+
{
7+
public static class MailHandler
8+
{
9+
[Parser(Opcode.SMSG_MAIL_QUERY_NEXT_TIME_RESULT, ClientVersionBuild.V11_2_5_63506)]
10+
public static void HandleMailQueryNextTimeResult(Packet packet)
11+
{
12+
packet.ReadSingle("NextMailTime");
13+
14+
var count = packet.ReadUInt32("NextCount");
15+
16+
for (var i = 0u; i < count; i++)
17+
{
18+
packet.ReadPackedGuid128("SenderGUID", i);
19+
packet.ReadSingle("TimeLeft", i);
20+
packet.ReadInt32("AltSenderID", i);
21+
packet.ReadInt32("AltSenderType", i);
22+
packet.ReadInt32("StationeryID", i);
23+
}
24+
}
25+
}
26+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using WowPacketParser.Enums;
2+
using WowPacketParser.Misc;
3+
using WowPacketParser.Parsing;
4+
5+
namespace WowPacketParserModule.V11_0_0_55666.Parsers
6+
{
7+
public static class SpellHandler
8+
{
9+
[Parser(Opcode.SMSG_SPELL_VISUAL_LOAD_SCREEN, ClientVersionBuild.V11_2_0_62213)]
10+
public static void HandleSpellVisualLoadScreen(Packet packet)
11+
{
12+
packet.ReadInt32("SpellVisualKitID");
13+
packet.ReadInt32("Duration");
14+
packet.ReadInt32("Delay");
15+
}
16+
}
17+
}

WowPacketParserModule.V9_0_1_36216/Parsers/CharacterHandler.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,18 @@ public static void ReadPVPBracketData(Packet packet, params object[] idx)
174174
packet.ReadBit("Disqualified", idx);
175175
}
176176

177-
[Parser(Opcode.SMSG_PLAYER_CHOICE_CLEAR)]
177+
[Parser(Opcode.SMSG_PLAYER_CHOICE_CLEAR, ClientVersionBuild.Zero, ClientVersionBuild.V9_2_5_43903)]
178178
public static void HandleEmpty(Packet packet)
179179
{
180180
}
181181

182+
[Parser(Opcode.SMSG_PLAYER_CHOICE_CLEAR, ClientVersionBuild.V9_2_5_43903)]
183+
public static void HandlePlayerChoiceClear925(Packet packet)
184+
{
185+
packet.ReadInt32("ChoiceID");
186+
packet.ReadBit("ForceClose");
187+
}
188+
182189
[Parser(Opcode.SMSG_ENUM_CHARACTERS_RESULT)]
183190
public static void HandleEnumCharactersResult(Packet packet)
184191
{

WowPacketParserModule.V9_0_1_36216/Parsers/MiscellaneousHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class MiscellaneousHandler
1212
public static void ReadGameModeData(Packet packet, params object[] indexes)
1313
{
1414
packet.ReadByte("GameMode", indexes);
15-
packet.ReadInt32("Unused1127", indexes);
15+
packet.ReadInt32("ContentSetID", indexes);
1616
packet.ReadInt32("GameModeRecordID", indexes);
1717
}
1818

0 commit comments

Comments
 (0)