mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
SMSG_CHAR_CREATE 5.4.8 (18414)
This commit is contained in:
parent
929f5449f0
commit
0e449bf738
2 changed files with 12 additions and 8 deletions
|
|
@ -104,7 +104,7 @@ enum Opcodes
|
|||
CMSG_CHAR_ENUM = 0x0848, // 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_CREATE = 0x11C3, // 5.4.8 18414
|
||||
SMSG_CHAR_ENUM = 0x10B0, // 4.3.4 15595
|
||||
SMSG_CHAR_DELETE = 0x0304, // 4.3.4 15595
|
||||
CMSG_PLAYER_LOGIN = 0x17D3, // 5.4.7 18019
|
||||
|
|
|
|||
|
|
@ -213,16 +213,20 @@ void WorldSession::HandleCharEnumOpcode(WorldPacket & /*recv_data*/)
|
|||
PET_SAVE_AS_CURRENT, GetAccountId());
|
||||
}
|
||||
|
||||
void WorldSession::HandleCharCreateOpcode(WorldPacket& recv_data)
|
||||
void WorldSession::HandleCharCreateOpcode(WorldPacket& recvData)
|
||||
{
|
||||
// extract other data required for player creating
|
||||
uint8 gender, skin, face, hairStyle, hairColor, facialHair, outfitId;
|
||||
std::string name;
|
||||
uint8 race_, class_;
|
||||
uint8 hairStyle, face, facialHair, hairColor, race_, class_, skin, gender, outfitId;
|
||||
|
||||
recv_data >> class_ >> hairStyle >> facialHair >> race_;
|
||||
recv_data >> face >> skin >> gender >> hairColor >> outfitId;
|
||||
name = recv_data.ReadString(recv_data.ReadBits(8));
|
||||
recvData >> outfitId >> hairStyle >> class_ >> skin;
|
||||
recvData >> face >> race_ >> facialHair >> gender >> hairColor;
|
||||
|
||||
uint32 nameLength = recvData.ReadBits(6);
|
||||
uint8 unk = recvData.ReadBit();
|
||||
std::string name = recvData.ReadString(nameLength);
|
||||
|
||||
if (unk)
|
||||
recvData.read_skip<uint32>();
|
||||
|
||||
WorldPacket data(SMSG_CHAR_CREATE, 1); // returned with diff.values in all cases
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue