mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
CMSG_CHAR_DELETE 5.4.7 (18019)
This commit is contained in:
parent
ddd786d9f7
commit
51a5d15dd6
2 changed files with 20 additions and 3 deletions
|
|
@ -102,7 +102,7 @@ enum Opcodes
|
|||
CMSG_AUTH_SRP6_RECODE = 0x1036,
|
||||
CMSG_CHAR_CREATE = 0x08CD, // 5.4.1 17538
|
||||
CMSG_CHAR_ENUM = 0x0848, // 5.4.1 17538
|
||||
CMSG_CHAR_DELETE = 0x09C0, // 5.4.1 17538
|
||||
CMSG_CHAR_DELETE = 0x113B, // 5.4.7 18019
|
||||
SMSG_AUTH_SRP6_RESPONSE = 0x103A,
|
||||
SMSG_CHAR_CREATE = 0x2D05, // 4.3.4 15595
|
||||
SMSG_CHAR_ENUM = 0x10B0, // 4.3.4 15595
|
||||
|
|
|
|||
|
|
@ -565,10 +565,27 @@ void WorldSession::HandleCharCreateOpcode(WorldPacket& recv_data)
|
|||
delete pNewChar; // created only to call SaveToDB()
|
||||
}
|
||||
|
||||
void WorldSession::HandleCharDeleteOpcode(WorldPacket& recv_data)
|
||||
void WorldSession::HandleCharDeleteOpcode(WorldPacket& recvData)
|
||||
{
|
||||
ObjectGuid guid;
|
||||
recv_data >> guid;
|
||||
|
||||
guid[6] = recvData.ReadBit();
|
||||
guid[4] = recvData.ReadBit();
|
||||
guid[5] = recvData.ReadBit();
|
||||
guid[1] = recvData.ReadBit();
|
||||
guid[7] = recvData.ReadBit();
|
||||
guid[3] = recvData.ReadBit();
|
||||
guid[2] = recvData.ReadBit();
|
||||
guid[0] = recvData.ReadBit();
|
||||
|
||||
recvData.ReadByteSeq(guid[1]);
|
||||
recvData.ReadByteSeq(guid[2]);
|
||||
recvData.ReadByteSeq(guid[3]);
|
||||
recvData.ReadByteSeq(guid[4]);
|
||||
recvData.ReadByteSeq(guid[0]);
|
||||
recvData.ReadByteSeq(guid[7]);
|
||||
recvData.ReadByteSeq(guid[6]);
|
||||
recvData.ReadByteSeq(guid[5]);
|
||||
|
||||
// can't delete loaded character
|
||||
if (sObjectMgr.GetPlayer(guid))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue