SMSG_LIST_INVENTORY

Client Version 1

if amount_of_items is 0 it is supposedly followed by a single u8 with 0 to say that vendor has no items.

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/item/smsg_list_inventory.wowm:29.

smsg SMSG_LIST_INVENTORY = 0x019F {
    Guid vendor;
    u8 amount_of_items;
    ListInventoryItem[amount_of_items] items;
}

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 / LittleGuidvendor
0x0C1 / -u8amount_of_itemscmangos: 0 displays Vendor has no inventory
0x0D? / -ListInventoryItem[amount_of_items]items

Client Version 2.4.3, Client Version 3

if amount_of_items is 0 it is supposedly followed by a single u8 with 0 to say that vendor has no items.

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/item/smsg_list_inventory.wowm:39.

smsg SMSG_LIST_INVENTORY = 0x019F {
    Guid vendor;
    u8 amount_of_items;
    ListInventoryItem[amount_of_items] items;
}

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 / LittleGuidvendor
-1 / -u8amount_of_itemscmangos: 0 displays Vendor has no inventory
-? / -ListInventoryItem[amount_of_items]items