MsgTrade

This message is sent by the client to request and manage a trade with another player.

When adding an item to the trade window, the server will receive a request to offer an item for trade and then respond by sending MsgItemInfo to show the item to the target player.

Table of Contents

Patch 4267

Message Definition

☑️ Assumed (Observed) - CoFuture + Soul

PosTypeNameDescriptionExample
0UInt16MsgSizeSize of the message12
2UInt16MsgTypeType of message1056
4UInt32DataData or a unique Identifier10
8UInt16Action TypeThe type of trade message6

Action Type

☑️ Assumed (Observed) - CoFuture + Soul

ValNameDescriptionRecipientData
1APPLYRequest tradeBothRequester's Hero ID
2QUITRequest cancelServer
3OPENOpen trade windowClientTarget's Hero ID
4SUCCESSSuccessful tradeClient
5FALSEFailed tradeClient
6ADDITEMAdd item to trade windowServerItem ID
7ADDMONEYAdd money to trade windowServerMoney
8PLAYERTOTALMONEYTotal money traded by targetClientMoney
9HEROTOTALMONEYTotal money traded by heroClientMoney
10OKConfirm tradeBoth
11ADDITEM_FALSECannot add item for tradeClientItem ID

Patch 5017

Message Definition

❓ Unverified

PosTypeNameDescriptionExample
0UInt16MsgSizeSize of the message12
2UInt16MsgTypeType of message1056
4UInt32DataData or a unique Identifier10
8UInt16Action TypeThe type of trade message6

Action Type

❓ Unverified

ValNameDescriptionRecipientData
1APPLYRequest tradeBothRequester's Hero ID
2QUITRequest cancelServer
3OPENOpen trade windowClientTarget's Hero ID
4SUCCESSSuccessful tradeClient
5FALSEFailed tradeClient
6ADDITEMAdd item to trade windowServerItem ID
7ADDMONEYAdd money to trade windowServerMoney
8PLAYERTOTALMONEYTotal money traded by targetClientMoney
9HEROTOTALMONEYTotal money traded by heroClientMoney
10OKConfirm tradeBoth
11ADDITEM_FALSECannot add item for tradeClientItem ID
12PLAYERTOTALEMONEYTotal CPs traded by targetClientCPs
13ADDEMONEYAdd CPs to trade windowServerCPs
14HEROTOTALEMONEYTotal CPs traded by heroClientCPs

Patch 5022

Message Definition

❓ Unverified

PosTypeNameDescriptionExample
0UInt16MsgSizeSize of the message12
2UInt16MsgTypeType of message1056
4UInt32DataData or a unique Identifier10
8UInt16Action TypeThe type of trade message6

Action Type

❓ Unverified

ValNameDescriptionRecipientData
1APPLYRequest tradeBothRequester's Hero ID
2QUITRequest cancelServer
3OPENOpen trade windowClientTarget's Hero ID
4SUCCESSSuccessful tradeClient
5FALSEFailed tradeClient
6ADDITEMAdd item to trade windowServerItem ID
7ADDMONEYAdd money to trade windowServerMoney
8PLAYERTOTALMONEYTotal money traded by targetClientMoney
9HEROTOTALMONEYTotal money traded by heroClientMoney
10OKConfirm tradeBoth
11ADDITEM_FALSECannot add item for tradeClientItem ID
12PLAYERTOTALEMONEYTotal CPs traded by targetClientCPs
13ADDEMONEYAdd CPs to trade windowServerCPs
14HEROTOTALEMONEYTotal CPs traded by heroClientCPs
15SUSPICIOUS_PROMPTPrompt hero before confirmClient
16SUSPICIOUS_OKConfirm suspicious tradeServer