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;
}
Header
SMSG have a header of 4 bytes.
SMSG 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 | 2 / Little | uint16 | opcode | Opcode that determines which fields the message contains. |
Body
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| 0x04 | 8 / Little | Guid | vendor | |
| 0x0C | 1 / - | u8 | amount_of_items | cmangos: 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
| 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 |
|---|---|---|---|---|
| - | 8 / Little | Guid | vendor | |
| - | 1 / - | u8 | amount_of_items | cmangos: 0 displays Vendor has no inventory |
| - | ? / - | ListInventoryItem[amount_of_items] | items |