Exemple #1
0
        public static void HandleIgnoreTrade(IRealmClient client, RealmPacketIn packet)
        {
            TradeWindow tradeWindow = client.ActiveCharacter.TradeWindow;

            if (tradeWindow == null)
            {
                SendTradeStatus(client, TradeStatus.PlayerNotFound);
            }
            else
            {
                tradeWindow.StopTrade(TradeStatus.PlayerIgnored, false);
            }
        }
Exemple #2
0
        public static void HandleBusyTrade(IRealmClient client, RealmPacketIn packet)
        {
            TradeWindow tradeWindow = client.ActiveCharacter.TradeWindow;

            if (tradeWindow == null)
            {
                TradeHandler.SendTradeStatus((IPacketReceiver)client, TradeStatus.PlayerNotFound);
            }
            else
            {
                tradeWindow.StopTrade(TradeStatus.PlayerBusy, false);
            }
        }