Esempio n. 1
0
 public EquipItem(PlayerItem item)
     : base(0x05, 10)
 {
     writer.Write(item.PlayerId);
     writer.Write(item.ItemId);
     writer.Write((ushort)item.ItemIndex);
 }
Esempio n. 2
0
 public Drop(PlayerItem item,Character player,int amount,uint worldId)
 {
     playerItem = item;
     _worldId   = (int)worldId;
     posX       = player.PosX + Server.ServerRandom.Next(-32,32);
     posY       = player.PosY + Server.ServerRandom.Next(-32,32);
     quantity   = amount;
 }
Esempio n. 3
0
        public PickupDrop(PlayerItem item)
            : base(0x07,26)
        {
            writer.Write(item.ItemId);
            writer.Write(item.ItemIndex);

            writer.Write((byte)0);
            writer.Write((byte)0);
            writer.Write((byte)0);

            writer.Write(item.Quantity);

            for(int i=0;i<11;i++) {
                writer.Write((byte)0);
            }
        }
Esempio n. 4
0
        public static void Unequip(PlayerItem item)
        {
            using(ISession session = Server.Factory.OpenSession())
            using(ITransaction transaction = session.BeginTransaction()) {
                item.info &= 0xFFFFFE;

                session.Update(item);
                transaction.Commit();
            }
        }