Jump to content

Implement CMSG_GM_REPORT_LAG


Guest DJNefast

Recommended Posts

The packet CMSG_GM_REPORT_LAG isnt supported

Mischandler.cpp

+void WorldSession::HandleGMReportLag(WorldPacket &recv_data)
+{
+    uint8 lag_type; // 0: Loot 1: AH 2: Mail 3: Speak 4: Moving 5: Spells & Skills
+    uint8 unk1;
+    uint16 unk2,unk3;
+    uint16 mapId;
+    float x,y,z;
+    recv_data >> lag_type;
+    recv_data >> unk1 >> unk2;
+    recv_data >> mapId;
+    recv_data >> unk3;
+    recv_data >> x >> y >> z;
+
+    sLog.outError("Lag problem type: %u / map: %u / x: %f / y: %f / z:  %f",lag_type,mapId,x,y,z);
+}

WorldSession.h

void HandleGMResponseResolve(WorldPacket& recv_data);
+void HandleGMReportLag(WorldPacket& recv_data);

Opcodes.cpp

-    /*0x502*/ { "CMSG_GM_REPORT_LAG",                           STATUS_NEVER,    &WorldSession::Handle_NULL                     },
+    /*0x502*/ { "CMSG_GM_REPORT_LAG",                           STATUS_LOGGEDIN, &WorldSession::HandleGMReportLag               },

i don't know how mangos want to handle it, or admins so enjoy :D

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use