Core/PacketIO: Implemented CMSG_BUSY_TRADE and CMSG_IGNORE_TRADE

This commit is contained in:
Mykhailo Redko authored and Ovahlord committed 2025-06-17 17:48:49 +02:00
1 parent 1c38edaae4
commit a145c21495
4 files changed
+9 -14

No files matched your search

+3 -3
View File
@@ -12305,7 +12305,7 @@ bool Player::IsUsingTwoHandedWeaponInOneHand() const
return true;
}
void Player::TradeCancel(bool sendback)
void Player::TradeCancel(bool sendback, TradeStatus status /*= TRADE_STATUS_TRADE_CANCELED*/)
{
if (m_trade)
{
@@ -12313,9 +12313,9 @@ void Player::TradeCancel(bool sendback)
// send yellow "Trade canceled" message to both traders
if (sendback)
GetSession()->SendCancelTrade();
GetSession()->SendCancelTrade(status);
trader->GetSession()->SendCancelTrade();
trader->GetSession()->SendCancelTrade(status);
// cleanup
delete m_trade;