CMSG_BUY_ITEM

Client Version 1, Client Version 2

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/item/cmsg_buy_item.wowm:1.

cmsg CMSG_BUY_ITEM = 0x01A2 {
    Guid vendor;
    Item item;
    u8 amount;
    u8 unknown1;
}

CMSG have a header of 6 bytes.

CMSG Header

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

Body

OffsetSize / EndiannessTypeNameComment
0x068 / LittleGuidvendor
0x0E4 / LittleItemitem
0x121 / -u8amount
0x131 / -u8unknown1cmangos says this is hardcoded to 1 in the TBC client.

Client Version 3.3.5

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/item/cmsg_buy_item.wowm:11.

cmsg CMSG_BUY_ITEM = 0x01A2 {
    Guid vendor;
    Item item;
    u32 slot;
    u8 amount;
}

Header

CMSG have a header of 6 bytes.

CMSG Header

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

Body

OffsetSize / EndiannessTypeNameComment
0x068 / LittleGuidvendor
0x0E4 / LittleItemitem
0x124 / Littleu32slot
0x161 / -u8amount