Permalink
Browse files

CleanUp and 2 more Packtes

-- Something wierd with MSG_CORPSE_QUERY(Read comment below)
  • Loading branch information...
1 parent a9a9dc2 commit c1a3db17b9e139f6580e637d0f9410f00ee10ad3 @Singlem Singlem committed Aug 7, 2011
@@ -17,7 +17,7 @@ public void HandleDeleted(Parser packet)
public void HandleServerFirstAchievement(Parser packet)
{
CString("PlayerName");
- UInt64("PlayerGUID");
+ ReadGuid("PlayerGUID");
UInt32("Achievement");
UInt32("LinkedName");
}
@@ -21,7 +21,32 @@ public void HandleCorpseReclaimDelay(Parser packet)
[Parser(OpCodes.CMSG_RECLAIM_CORPSE)]
public void HandleReclaimCorpse(Parser packet)
{
- UInt64("CorpseGUID");
+ ReadGuid("CorpseGUID");
+ }
+
+ [Parser(OpCodes.SMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE)]
+ public void HandleCorpseMapPositionResponse(Parser packet)
+ {
+ var curr = Reader.ReadCoords3();
+ WriteLine("Corpse Position: {0}", curr);
+
+ ReadSingle("Unk(Single)");
+ }
+
+ [Parser(OpCodes.MSG_CORPSE_QUERY)]
+ public void HandleCorpseQuery(Parser packet)
+ {
+ if (Packet.Direction != Direction.Server)
+ {
+ WriteLine("MSG Packet that wants response from server");
+ return;
+ }
+
+ UInt8("unk(uint8)");
+ UInt32("MapID");
+ ReadCoords3("Corpse Position");
+ UInt32("CorpseMapID");
+ UInt32("CorpseLowGuid");
}
}
}
@@ -3,7 +3,7 @@
namespace WoWPacketViewer
{
- public static class EmptyPackets
+ public class EmptyPackets : Parser
{
[Parser(OpCodes.CMSG_CANCEL_TRADE)]
[Parser(OpCodes.CMSG_WORLD_STATE_UI_TIMER_UPDATE)]
@@ -18,13 +18,13 @@ public static class EmptyPackets
[Parser(OpCodes.CMSG_KEEP_ALIVE)]
[Parser(OpCodes.CMSG_BATTLEFIELD_STATUS)]
[Parser(OpCodes.CMSG_MEETINGSTONE_INFO)]
- public static void HandleEmptyCMSGPacket(Parser packet)
+ public void HandleEmptyCMSGPacket(Parser packet)
{
packet.WriteLine("CMSG Packet that wants response from server");
}
[Parser(OpCodes.SMSG_FORCE_SEND_QUEUED_PACKETS)]
- public static void HandleEmptySMSGPacket(Parser packet)
+ public void HandleEmptySMSGPacket(Parser packet)
{
packet.WriteLine("SMSG Packet that wants response from client");
}

0 comments on commit c1a3db1

Please sign in to comment.