SMSG_TRAINER_LIST

Client Version 1.12

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/spell/smsg_trainer_list.wowm:28.

smsg SMSG_TRAINER_LIST = 0x01B1 {
    Guid guid;
    u32 trainer_type;
    u32 amount_of_spells;
    TrainerSpell[amount_of_spells] spells;
    CString greeting;
}

SMSG have a header of 4 bytes.

SMSG Header

OffsetSize / EndiannessTypeNameDescription
0x002 / Biguint16sizeSize of the rest of the message including the opcode field but not including the size field.
0x022 / Littleuint16opcodeOpcode that determines which fields the message contains.

Body

OffsetSize / EndiannessTypeNameComment
0x048 / LittleGuidguid
0x0C4 / Littleu32trainer_type
0x104 / Littleu32amount_of_spells
0x14? / -TrainerSpell[amount_of_spells]spells
-- / -CStringgreeting

Client Version 2.4.3

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/spell/smsg_trainer_list.wowm:28.

smsg SMSG_TRAINER_LIST = 0x01B1 {
    Guid guid;
    u32 trainer_type;
    u32 amount_of_spells;
    TrainerSpell[amount_of_spells] spells;
    CString greeting;
}

Header

SMSG have a header of 4 bytes.

SMSG Header

OffsetSize / EndiannessTypeNameDescription
0x002 / Biguint16sizeSize of the rest of the message including the opcode field but not including the size field.
0x022 / Littleuint16opcodeOpcode that determines which fields the message contains.

Body

OffsetSize / EndiannessTypeNameComment
0x048 / LittleGuidguid
0x0C4 / Littleu32trainer_type
0x104 / Littleu32amount_of_spells
0x14? / -TrainerSpell[amount_of_spells]spells
-- / -CStringgreeting

Client Version 3.3.5

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/spell/smsg_trainer_list.wowm:28.

smsg SMSG_TRAINER_LIST = 0x01B1 {
    Guid guid;
    u32 trainer_type;
    u32 amount_of_spells;
    TrainerSpell[amount_of_spells] spells;
    CString greeting;
}

Header

SMSG have a header of 4 bytes.

SMSG Header

OffsetSize / EndiannessTypeNameDescription
0x002 OR 3 / Biguint16 OR uint16+uint8sizeSize 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 / Littleuint16opcodeOpcode that determines which fields the message contains.

Body

OffsetSize / EndiannessTypeNameComment
-8 / LittleGuidguid
-4 / Littleu32trainer_type
-4 / Littleu32amount_of_spells
-? / -TrainerSpell[amount_of_spells]spells
-- / -CStringgreeting