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
@@ -203,6 +203,7 @@ class CPythonNetworkStream : public CNetworkStream, public CSingleton<CPythonNet
|
||||
bool SendExchangeStartPacket(DWORD vid);
|
||||
bool SendExchangeItemAddPacket(TItemPos ItemPos, BYTE byDisplayPos);
|
||||
bool SendExchangeElkAddPacket(int64_t elk);
|
||||
bool SendExchangeChequeAddPacket(int cheque);
|
||||
bool SendExchangeItemDelPacket(BYTE pos);
|
||||
bool SendExchangeAcceptPacket();
|
||||
bool SendExchangeExitPacket();
|
||||
@@ -281,7 +282,7 @@ class CPythonNetworkStream : public CNetworkStream, public CSingleton<CPythonNet
|
||||
bool SendGiveItemPacket(DWORD dwTargetVID, TItemPos ItemPos, int iItemCount);
|
||||
|
||||
// Private Shop
|
||||
bool SendBuildPrivateShopPacket(const char * c_szName, const std::vector<TShopItemTable> & c_rSellingItemStock);
|
||||
bool SendBuildPrivateShopPacket(const char * c_szName, const std::vector<TShopItemTable> & c_rSellingItemStock, const std::vector<int> & c_rCheques);
|
||||
|
||||
// Refine
|
||||
bool SendRefinePacket(BYTE byPos, BYTE byType);
|
||||
|
||||
Reference in New Issue
Block a user