SMSG_CHAR_FACTION_CHANGE
Client Version 3.3.5
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/character_screen/smsg_char_faction_change.wowm:1
.
smsg SMSG_CHAR_FACTION_CHANGE = 0x04DA {
WorldResult result;
if (result == RESPONSE_SUCCESS) {
Guid guid;
CString name;
Gender gender;
u8 skin_color;
u8 face;
u8 hair_style;
u8 hair_color;
u8 facial_hair;
Race race;
}
}
Header
SMSG have a header of 4 bytes.
SMSG Header
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x00 | 2 OR 3 / Big | uint16 OR uint16+uint8 | size | Size of the rest of the message including the opcode field but not including the size field. Wrath server messages can be 3 bytes. If the first (most significant) size byte has 0x80 set, the header will be 3 bytes, otherwise it is 2. |
- | 2 / Little | uint16 | opcode | Opcode that determines which fields the message contains. |
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | 1 / - | WorldResult | result |
If result is equal to RESPONSE_SUCCESS
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | 8 / Little | Guid | guid | |
- | - / - | CString | name | |
- | 1 / - | Gender | gender | |
- | 1 / - | u8 | skin_color | |
- | 1 / - | u8 | face | |
- | 1 / - | u8 | hair_style | |
- | 1 / - | u8 | hair_color | |
- | 1 / - | u8 | facial_hair | |
- | 1 / - | Race | race |