SMSG_LOOT_RESPONSE
Client Version 1, Client Version 2
Wowm Representation
Autogenerated from wowm file at wow_message_parser/wowm/world/loot/smsg_loot_response.wowm:118.
smsg SMSG_LOOT_RESPONSE = 0x0160 {
Guid guid;
LootMethod loot_method;
if (loot_method == ERROR) {
LootMethodError loot_error;
}
Gold gold;
u8 amount_of_items;
LootItem[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 | guid | |
| 0x0C | 1 / - | LootMethod | loot_method |
If loot_method is equal to ERROR:
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| 0x0D | 1 / - | LootMethodError | loot_error | |
| 0x0E | 4 / Little | Gold | gold | |
| 0x12 | 1 / - | u8 | amount_of_items | |
| 0x13 | ? / - | LootItem[amount_of_items] | items |
Client Version 3.3.5
Wowm Representation
Autogenerated from wowm file at wow_message_parser/wowm/world/loot/smsg_loot_response.wowm:131.
smsg SMSG_LOOT_RESPONSE = 0x0160 {
Guid guid;
LootMethod loot_method;
if (loot_method == ERROR) {
LootMethodError loot_error;
}
Gold gold;
u8 amount_of_items;
LootItem[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 | guid | |
| - | 1 / - | LootMethod | loot_method |
If loot_method is equal to ERROR:
| Offset | Size / Endianness | Type | Name | Comment |
|---|---|---|---|---|
| - | 1 / - | LootMethodError | loot_error | |
| - | 4 / Little | Gold | gold | |
| - | 1 / - | u8 | amount_of_items | |
| - | ? / - | LootItem[amount_of_items] | items |
Examples
Example 1
0, 38, // size
96, 1, // opcode (352)
1, 0, 0, 0, 0, 0, 0, 0, // guid: Guid
1, // loot_method: LootMethod CORPSE (1)
0, 0, 0, 0, // gold: Gold
1, // amount_of_items: u8
0, // [0].LootItem.index: u8
117, 0, 0, 0, // [0].LootItem.item: Item
1, 0, 0, 0, // [0].LootItem.count: u32
0, 0, 0, 0, // [0].LootItem.display_id: u32
0, 0, 0, 0, // [0].LootItem.random_suffix: u32
0, 0, 0, 0, // [0].LootItem.random_property: i32
0, // [0].LootItem.ty: LootSlotType TYPE_ALLOW_LOOT (0)
// items: LootItem[amount_of_items]