public virtual void OnKnuBotCloseChatWindow(object sender, KnuBotEventArgs e) { if (this.tradedItems.Count > 0) { KnuBotRejectedItems.Send(this.TalkingTo.Client, this.Parent, this.tradedItems.ToArray()); this.tradedItems.Clear(); } }
public virtual void OnKnuBotDeclineTrade(object sender, KnuBotEventArgs e) { KnuBotRejectedItems.Send(this.TalkingTo.Client, this.Parent, this.tradedItems.ToArray()); foreach (AOItem item in this.tradedItems) { this.TalkingTo.AddItemToInventory(item); } this.tradedItems.Clear(); this.InTrade = false; }