コード例 #1
0
        private void HandleRecvNpcTrade(Packet parsed)
        {
            NpcTradeInfo n = PacketManager.RecvNpcTrade(parsed);

            if (ClientNpcTradeInfo != null)
            {
                ClientNpcTradeInfo(this, new ClientNpcTradeEventArgs(n));
            }
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public ClientNpcTradeEventArgs(NpcTradeInfo n)
 {
     this.tradeinfo = n;
 }