Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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;
    u32 amount;
    u8 unknown1;
}

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
0x164 / Littleu32amount
0x1A1 / -u8unknown1

Examples

Example 1

0, 25, // size
162, 1, 0, 0, // opcode (418)
100, 0, 0, 0, 0, 0, 0, 0, // vendor: Guid
200, 0, 0, 0, // item: Item
1, 0, 0, 0, // slot: u32
3, 0, 0, 0, // amount: u32
0, // unknown1: u8