Пример #1
0
 public void CancelTrade(RealmTime time, CancelTradePacket pkt)
 {
     {
         client.SendPacket(new TradeDonePacket
         {
             Result = 1,
             Message = "Trade cancelled."
         });
         tradeTarget.client.SendPacket(new TradeDonePacket
         {
             Result = 1,
             Message = "Trade cancelled."
         });
         tradeTarget.tradeTarget = null;
         tradeTarget.trade = null;
         tradeTarget.tradeAccepted = false;
         tradeTarget = null;
         trade = null;
         tradeAccepted = false;
     }
 }
Пример #2
0
        public void CancelTrade(RealmTime time, CancelTradePacket pkt)
        {
            this.client.SendPacket(new TradeDonePacket()
            {
                Result = 1,
                Message = "Trade canceled!"
            });
            tradeTarget.client.SendPacket(new TradeDonePacket()
            {
                Result = 1,
                Message = "Trade canceled!"
            });

            tradeTarget.tradeTarget = null;
            tradeTarget.trade = null;
            tradeTarget.tradeAccepted = false;
            this.tradeTarget = null;
            this.trade = null;
            this.tradeAccepted = false;
            return;
        }
 public void CancelTrade(RealmTime time, CancelTradePacket pkt)
 {
     TradeHandler?.CancelTrade(this);
 }