SMSG_LOOT_RESPONSE

Client Version 1, Client Version 2, Client Version 3

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/loot/smsg_loot_response.wowm:73.

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;
}

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
-1 / -LootMethodloot_method

If loot_method is equal to ERROR:

OffsetSize / EndiannessTypeNameComment
-1 / -LootMethodErrorloot_error
-4 / LittleGoldgold
-1 / -u8amount_of_items
-? / -LootItem[amount_of_items]items