CMSG_MESSAGECHAT
Client Version 1.12
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/chat/cmsg_messagechat.wowm:1
.
cmsg CMSG_MESSAGECHAT = 0x0095 {
(u32)ChatType chat_type;
Language language;
if (chat_type == WHISPER) {
CString target_player;
}
else if (chat_type == CHANNEL) {
CString channel;
}
CString message;
}
Header
CMSG have a header of 6 bytes.
CMSG Header
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x00 | 2 / Big | uint16 | size | Size of the rest of the message including the opcode field but not including the size field. |
0x02 | 4 / Little | uint32 | opcode | Opcode that determines which fields the message contains. |
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x06 | 4 / - | ChatType | chat_type | |
0x0A | 4 / - | Language | language |
If chat_type is equal to WHISPER
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x0E | - / - | CString | target_player |
Else If chat_type is equal to CHANNEL
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | CString | channel | |
- | - / - | CString | message |
Examples
Example 1
Comment
Say message.
0, 35, // size
149, 0, 0, 0, // opcode (149)
0, 0, 0, 0, // chat_type: ChatType SAY (0x00)
7, 0, 0, 0, // language: Language COMMON (7)
84, 104, 105, 115, 32, 105, 115, 32, 97, 32, 115, 97, 121, 32, 109, 101, 115, 115, 97, 103, 101, 46, 0, // message: CString
Client Version 2.4.3
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/chat/cmsg_messagechat.wowm:30
.
cmsg CMSG_MESSAGECHAT = 0x0095 {
(u32)ChatType chat_type;
(u32)Language language;
if (chat_type == WHISPER) {
CString target_player;
}
else if (chat_type == CHANNEL) {
CString channel;
}
CString message;
}
Header
CMSG have a header of 6 bytes.
CMSG Header
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x00 | 2 / Big | uint16 | size | Size of the rest of the message including the opcode field but not including the size field. |
0x02 | 4 / Little | uint32 | opcode | Opcode that determines which fields the message contains. |
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x06 | 4 / - | ChatType | chat_type | |
0x0A | 4 / - | Language | language |
If chat_type is equal to WHISPER
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x0E | - / - | CString | target_player |
Else If chat_type is equal to CHANNEL
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | CString | channel | |
- | - / - | CString | message |
Client Version 3.3.5
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/chat/cmsg_messagechat.wowm:44
.
cmsg CMSG_MESSAGECHAT = 0x0095 {
(u32)ChatType chat_type;
(u32)Language language;
if (chat_type == WHISPER) {
CString target_player;
}
else if (chat_type == CHANNEL) {
CString channel;
}
CString message;
}
Header
CMSG have a header of 6 bytes.
CMSG Header
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x00 | 2 / Big | uint16 | size | Size of the rest of the message including the opcode field but not including the size field. |
0x02 | 4 / Little | uint32 | opcode | Opcode that determines which fields the message contains. |
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x06 | 4 / - | ChatType | chat_type | |
0x0A | 4 / - | Language | language |
If chat_type is equal to WHISPER
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x0E | - / - | CString | target_player |
Else If chat_type is equal to CHANNEL
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | CString | channel | |
- | - / - | CString | message |