private void HandleRecvNpcTrade(Packet parsed) { NpcTradeInfo n = PacketManager.RecvNpcTrade(parsed); if (ClientNpcTradeInfo != null) { ClientNpcTradeInfo(this, new ClientNpcTradeEventArgs(n)); } }
void c_ClientNpcTradeInfo(object sender, ClientNpcTradeEventArgs e) { Client c = (Client)sender; NpcTradeInfo n = e.Info; Npc npc = mapEngine.GetNpcByID(n.NpcID, n.MapID); byte[] SendNpcItemList = PacketManager.SendNpcItemList(npc, n.Bag); c.Send(SendNpcItemList); }
public ClientNpcTradeEventArgs(NpcTradeInfo n) { this.tradeinfo = n; }