예제 #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 OnKnuBotCloseChatWindow(object sender, KnuBotEventArgs e)
 {
     if (this.tradedItems.Count > 0)
     {
         KnuBotRejectedItems.Send(this.TalkingTo.Client, this.Parent, this.tradedItems.ToArray());
         this.tradedItems.Clear();
     }
 }
예제 #3
0
 public virtual void OnKnuBotStartTrade(object sender, KnuBotEventArgs e)
 {
     if (this.WantsTrade && !this.InTrade)
     {
         this.tradedItems.Clear();
         this.InTrade = true;
     }
 }
예제 #4
0
        protected virtual void OnKnuBotStartTradeEvent(KnuBotEventArgs e)
        {
            EventHandler <KnuBotEventArgs> handler = this.CallKnuBotStartTrade;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #5
0
        protected virtual void OnKnuBotOpenChatWindowEvent(KnuBotEventArgs e)
        {
            EventHandler <KnuBotEventArgs> handler = this.CallKnuBotOpenChatWindow;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #6
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;
 }
예제 #7
0
 public virtual void OnKnuBotOpenChatWindow(object sender, KnuBotEventArgs e)
 {
 }
예제 #8
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;
 }
 public void MyOpenChatWindow(object sender, KnuBotEventArgs e)
 {
     this.lastaction = 0;
     if (this.TalkingTo != null)
     {
         this.TalkingTo = e.Sender;
     }
     this.Action(0);
 }
예제 #10
0
 public virtual void OnKnuBotAcceptTrade(object sender, KnuBotEventArgs e)
 {
     this.InTrade = false;
 }
예제 #11
0
 protected virtual void OnKnuBotStartTradeEvent(KnuBotEventArgs e)
 {
     EventHandler<KnuBotEventArgs> handler = this.CallKnuBotStartTrade;
     if (handler != null)
     {
         handler(this, e);
     }
 }
예제 #12
0
 public virtual void OnKnuBotOpenChatWindow(object sender, KnuBotEventArgs e)
 {
 }
예제 #13
0
 protected virtual void OnKnuBotOpenChatWindowEvent(KnuBotEventArgs e)
 {
     EventHandler<KnuBotEventArgs> handler = this.CallKnuBotOpenChatWindow;
     if (handler != null)
     {
         handler(this, e);
     }
 }
예제 #14
0
 public virtual void OnKnuBotStartTrade(object sender, KnuBotEventArgs e)
 {
     if (this.WantsTrade && !this.InTrade)
     {
         this.tradedItems.Clear();
         this.InTrade = true;
     }
 }
 public void MyStartTrade(object sender, KnuBotEventArgs e)
 {
     ZoneEngine.PacketHandlers.KnuBotStartTrade.Send(
         this.TalkingTo.Client, this.Parent, "Wanna trade? Go ahead.", 4);
 }
 public void MyAcceptTrade(object sender, KnuBotEventArgs e)
 {
     foreach (AOItem item in this.TradedItems)
     {
         // Spawn back our items with max QL
         this.SpawnItem(item.LowID, item.HighID, 500);
         this.AppendText("Spawned back with max ql: " + item.LowID + "/" + item.HighID);
     }
     this.TradedItems.Clear();
     this.CloseChat();
 }
 public void MyDeclineTrade(object sender, KnuBotEventArgs e)
 {
     this.KnuBotNextAction(1, 1000);
 }
예제 #18
0
 public virtual void OnKnuBotAcceptTrade(object sender, KnuBotEventArgs e)
 {
     this.InTrade = false;
 }
 public void MyCloseChatWindow(object sender, KnuBotEventArgs e)
 {
     this.Parent.PurgeTimer(20000);
 }