예제 #1
0
 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();
     }
 }
예제 #2
0
 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;
 }