Esempio n. 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            mate = reader.ReadItem() as LinkedBag;
        }
Esempio n. 2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            mate = reader.ReadItem() as LinkedBag;
        }
Esempio n. 3
0
 public override void OnDoubleClick(Mobile from)
 {
     if (Items.Count == 0 && from.AccessLevel >= AccessLevel.Player)
     {
         LinkedBag bagA = new LinkedBag();
         LinkedBag bagB = new LinkedBag();
         bagA.Mate = bagB;
         bagB.Mate = bagA;
         bagA.Name = string.Format("{0}'s Linked Bag", from.Name);
         bagB.Name = string.Format("{0}'s Linked Bag", from.Name);
         DropItem(bagA);
         DropItem(bagB);
     }
     base.OnDoubleClick(from);
 }
Esempio n. 4
0
 public override void OnDoubleClick(Mobile from)
 {
     if (Items.Count == 0 && from.AccessLevel >= AccessLevel.Counselor)
     {
         LinkedBag bagA = new LinkedBag();
         LinkedBag bagB = new LinkedBag();
         bagA.Mate = bagB;
         bagB.Mate = bagA;
         bagA.Name = string.Format("{0}'s Linked Bag", from.Name);
         bagB.Name = string.Format("{0}'s Linked Bag", from.Name);
         DropItem(bagA);
         DropItem(bagB);
     }
     
     base.OnDoubleClick(from);
 }
Esempio n. 5
0
        public override void OnDoubleClick(Mobile from)
        {
            if (m_IsRewardItem && !RewardSystem.CheckIsUsableBy(from, this, null))
            {
                from.SendMessage("This does not belong to you!!");
                return;
            }
            LinkedBag bagA = new LinkedBag();
            LinkedBag bagB = new LinkedBag();

            bagA.Mate = bagB;
            bagB.Mate = bagA;
            bagA.Name = string.Format("{0}'s Linked Bag", from.Name);
            bagB.Name = string.Format("{0}'s Linked Bag", from.Name);
            from.AddToBackpack(bagA);
            from.AddToBackpack(bagB);
            this.Delete();
        }