client: AVA2 Won (cheque) system, revision mt20261027
ENABLE_CHEQUE_SYSTEM / ENABLE_WON_EXCHANGE_WINDOW = 1: Won in trades, private shop Won prices (int32 cheque[] after the CG_MYSHOP items), shop item cheque prices, mt_won script fixes, zh locale_game_ex overlay staged into locale_zh_ava2 (fixes the swapped %s/%d in WONEXCHANGE_CONFIRM_QUESTION_2). Also zero-init every TPacketCGExchange: arg1 was uninitialised and the HEAD server drops arg1 > UINT32_MAX, so accept/cancel/item-add were lost and trades never completed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
909fc8f851
commit
1a4d8295ff
@@ -781,6 +781,7 @@ enum
|
||||
EXCHANGE_SUBHEADER_CG_ELK_ADD, // arg1 == amount of elk
|
||||
EXCHANGE_SUBHEADER_CG_ACCEPT, // arg1 == not used
|
||||
EXCHANGE_SUBHEADER_CG_CANCEL, // arg1 == not used
|
||||
EXCHANGE_SUBHEADER_CG_CHEQUE_ADD, // arg1 == amount of won (PORT revision27)
|
||||
};
|
||||
|
||||
typedef struct command_exchange
|
||||
@@ -1984,6 +1985,9 @@ enum EPacketShopSubHeaders
|
||||
SHOP_SUBHEADER_GC_REFRESH_COUNT,
|
||||
SHOP_SUBHEADER_GC_CHANGE_TITLE,
|
||||
#endif
|
||||
// PORT revision27: START_CHEQUE = START + int32 cheque[SHOP_HOST_ITEM_MAX_NUM].
|
||||
SHOP_SUBHEADER_GC_START_CHEQUE = 40,
|
||||
SHOP_SUBHEADER_GC_NOT_ENOUGH_CHEQUE = 41,
|
||||
};
|
||||
|
||||
typedef struct packet_shop
|
||||
@@ -2015,6 +2019,8 @@ enum
|
||||
EXCHANGE_SUBHEADER_GC_END, // arg1 == not used
|
||||
EXCHANGE_SUBHEADER_GC_ALREADY, // arg1 == not used
|
||||
EXCHANGE_SUBHEADER_GC_LESS_ELK, // arg1 == not used
|
||||
EXCHANGE_SUBHEADER_GC_CHEQUE_ADD, // arg1 == won (PORT revision27)
|
||||
EXCHANGE_SUBHEADER_GC_LESS_CHEQUE, // arg1 == not used
|
||||
};
|
||||
|
||||
typedef struct packet_position
|
||||
|
||||
Reference in New Issue
Block a user