Exemple #1
0
        /// <summary>
        /// Get a list of the inventory items and send it to the client.
        /// </summary>
        public void SendInventoryList()
        {
            List <Item> inv = this.Char.inv.GetInventoryList();

            Packets.Server.ListInventory p1 = new SagaMap.Packets.Server.ListInventory((byte)inv.Count);
            //p1.SetSortType();
            p1.SetItems(inv);
            this.netIO.SendPacket(p1, this.SessionID);
        }
Exemple #2
0
 /// <summary>
 /// Get a list of the inventory items and send it to the client.
 /// </summary>
 public void SendInventoryList()
 {
     List<Item> inv = this.Char.inv.GetInventoryList();
     Packets.Server.ListInventory p1 = new SagaMap.Packets.Server.ListInventory((byte)inv.Count);
     //p1.SetSortType();
     p1.SetItems(inv);
     this.netIO.SendPacket(p1, this.SessionID);
 }