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 OnKnuBotStartTrade(object sender, KnuBotEventArgs e) { if (this.WantsTrade && !this.InTrade) { this.tradedItems.Clear(); this.InTrade = true; } }
protected virtual void OnKnuBotStartTradeEvent(KnuBotEventArgs e) { EventHandler <KnuBotEventArgs> handler = this.CallKnuBotStartTrade; if (handler != null) { handler(this, e); } }
protected virtual void OnKnuBotOpenChatWindowEvent(KnuBotEventArgs e) { EventHandler <KnuBotEventArgs> handler = this.CallKnuBotOpenChatWindow; if (handler != null) { handler(this, e); } }
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 virtual void OnKnuBotOpenChatWindow(object sender, KnuBotEventArgs e) { }
public void MyOpenChatWindow(object sender, KnuBotEventArgs e) { this.lastaction = 0; if (this.TalkingTo != null) { this.TalkingTo = e.Sender; } this.Action(0); }
public virtual void OnKnuBotAcceptTrade(object sender, KnuBotEventArgs e) { this.InTrade = false; }
protected virtual void OnKnuBotStartTradeEvent(KnuBotEventArgs e) { EventHandler<KnuBotEventArgs> handler = this.CallKnuBotStartTrade; if (handler != null) { handler(this, e); } }
protected virtual void OnKnuBotOpenChatWindowEvent(KnuBotEventArgs e) { EventHandler<KnuBotEventArgs> handler = this.CallKnuBotOpenChatWindow; if (handler != null) { handler(this, e); } }
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); }
public void MyCloseChatWindow(object sender, KnuBotEventArgs e) { this.Parent.PurgeTimer(20000); }