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); } }
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); } }