CMSG_GUILD_BANK_SWAP_ITEMS
Client Version 2.4.3
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/guild_bank/cmsg_guild_bank_swap_items.wowm:15
.
cmsg CMSG_GUILD_BANK_SWAP_ITEMS = 0x03E8 {
Guid bank;
BankSwapSource source;
if (source == BANK) {
u8 bank_destination_tab;
u8 bank_destination_slot;
u32 unknown1;
u8 bank_source_tab;
u8 bank_source_slot;
Item item1;
u8 unknown2;
u8 amount;
}
else {
u8 bank_tab;
u8 bank_slot;
Item item2;
BankSwapStoreMode mode;
if (mode == AUTOMATIC) {
u32 auto_count;
u8 unknown3;
u8 unknown4;
}
else {
u8 player_bag;
u8 player_bag_slot;
Bool bank_to_character_transfer;
u8 split_amount;
}
}
u8[-] unknown5;
}
Header
CMSG have a header of 6 bytes.
CMSG 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 | 4 / Little | uint32 | opcode | Opcode that determines which fields the message contains. |
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x06 | 8 / Little | Guid | bank | |
0x0E | 1 / - | BankSwapSource | source |
If source is equal to BANK
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x0F | 1 / - | u8 | bank_destination_tab | |
0x10 | 1 / - | u8 | bank_destination_slot | |
0x11 | 4 / Little | u32 | unknown1 | |
0x15 | 1 / - | u8 | bank_source_tab | |
0x16 | 1 / - | u8 | bank_source_slot | |
0x17 | 4 / Little | Item | item1 | |
0x1B | 1 / - | u8 | unknown2 | |
0x1C | 1 / - | u8 | amount |
Else: | 0x1D | 1 / - | u8 | bank_tab | | | 0x1E | 1 / - | u8 | bank_slot | | | 0x1F | 4 / Little | Item | item2 | | | 0x23 | 1 / - | BankSwapStoreMode | mode | |
If mode is equal to AUTOMATIC
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x24 | 4 / Little | u32 | auto_count | |
0x28 | 1 / - | u8 | unknown3 | |
0x29 | 1 / - | u8 | unknown4 |
Else: | 0x2A | 1 / - | u8 | player_bag | | | 0x2B | 1 / - | u8 | player_bag_slot | | | 0x2C | 1 / - | Bool | bank_to_character_transfer | | | 0x2D | 1 / - | u8 | split_amount | | | 0x2E | ? / - | u8[-] | unknown5 | cmangos-tbc/mangosone has extra |
Client Version 3.3.5
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/guild_bank/cmsg_guild_bank_swap_items.wowm:49
.
cmsg CMSG_GUILD_BANK_SWAP_ITEMS = 0x03E9 {
Guid bank;
BankSwapSource source;
if (source == BANK) {
u8 bank_destination_tab;
u8 bank_destination_slot;
u32 unknown1;
u8 bank_source_tab;
u8 bank_source_slot;
Item item1;
u8 unknown2;
u32 amount;
}
else {
u8 bank_tab;
u8 bank_slot;
Item item2;
BankSwapStoreMode mode;
if (mode == AUTOMATIC) {
u32 auto_count;
u8 unknown3;
u32 unknown4;
}
else {
u8 player_bag;
u8 player_bag_slot;
Bool bank_to_character_transfer;
u32 split_amount;
}
}
u8[-] unknown5;
}
Header
CMSG have a header of 6 bytes.
CMSG 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 | 4 / Little | uint32 | opcode | Opcode that determines which fields the message contains. |
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x06 | 8 / Little | Guid | bank | |
0x0E | 1 / - | BankSwapSource | source |
If source is equal to BANK
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x0F | 1 / - | u8 | bank_destination_tab | |
0x10 | 1 / - | u8 | bank_destination_slot | |
0x11 | 4 / Little | u32 | unknown1 | |
0x15 | 1 / - | u8 | bank_source_tab | |
0x16 | 1 / - | u8 | bank_source_slot | |
0x17 | 4 / Little | Item | item1 | |
0x1B | 1 / - | u8 | unknown2 | |
0x1C | 4 / Little | u32 | amount |
Else: | 0x20 | 1 / - | u8 | bank_tab | | | 0x21 | 1 / - | u8 | bank_slot | | | 0x22 | 4 / Little | Item | item2 | | | 0x26 | 1 / - | BankSwapStoreMode | mode | |
If mode is equal to AUTOMATIC
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x27 | 4 / Little | u32 | auto_count | |
0x2B | 1 / - | u8 | unknown3 | |
0x2C | 4 / Little | u32 | unknown4 |
Else: | 0x30 | 1 / - | u8 | player_bag | | | 0x31 | 1 / - | u8 | player_bag_slot | | | 0x32 | 1 / - | Bool | bank_to_character_transfer | | | 0x33 | 4 / Little | u32 | split_amount | | | 0x37 | ? / - | u8[-] | unknown5 | cmangos-tbc/mangosone has extra |