Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

HandleMailCreateTextItem #204

Closed
ChipLeo opened this issue May 13, 2014 · 5 comments
Closed

HandleMailCreateTextItem #204

ChipLeo opened this issue May 13, 2014 · 5 comments

Comments

@ChipLeo
Copy link

ChipLeo commented May 13, 2014

void WorldSession::HandleMailCreateTextItem(WorldPacket& recvData)
{
ObjectGuid mailbox;
uint32 mailId;

//recvData >> mailId;  // should be

mailbox[3] = recvData.ReadBit();
mailbox[1] = recvData.ReadBit();
mailbox[0] = recvData.ReadBit();
mailbox[7] = recvData.ReadBit();
mailbox[4] = recvData.ReadBit();
mailbox[5] = recvData.ReadBit();
mailbox[2] = recvData.ReadBit();
mailbox[6] = recvData.ReadBit();

recvData.ReadByteSeq(mailbox[7]);
recvData.ReadByteSeq(mailbox[0]);
recvData.ReadByteSeq(mailbox[4]);
recvData.ReadByteSeq(mailbox[6]);
recvData.ReadByteSeq(mailbox[5]);
recvData.ReadByteSeq(mailbox[2]);
recvData.ReadByteSeq(mailbox[3]);
recvData.ReadByteSeq(mailbox[1]);

recvData >> mailId;  // should be
@Rawaho
Copy link
Contributor

Rawaho commented May 13, 2014

@Rawaho Rawaho closed this as completed May 13, 2014
@ChipLeo
Copy link
Author

ChipLeo commented May 14, 2014

Sorry, I confused with SMSG, Opcode: 0x0254, Packet size: 12 bytes

@F03SD
Copy link

F03SD commented May 14, 2014

@Rawaho Hi ,where in Ida subrotine with CDataStore_bool ?

@Rawaho
Copy link
Contributor

Rawaho commented May 15, 2014

@F03SD Blizzard sends boolean values as a single bit (int8 in some legacy structures), use CDataStore::ReadBit/WriteBit.

@F03SD
Copy link

F03SD commented May 15, 2014

@Rawaho hm,ok.Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants