protected override void OnTick()
 {
     if (m_Mobile.Map != m_Container.Map || !m_Mobile.InRange(m_Container.GetWorldLocation(), 3))
     {
         DynamicFurniture.Close(m_Container);
     }
 }
        public override void Deserialize(IGenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            DynamicFurniture.Close(this);
        }
 public override void DisplayTo(Mobile m)
 {
     if (DynamicFurniture.Open(this, m))
     {
         base.DisplayTo(m);
     }
 }
Exemplo n.º 4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = (InheritsItem ? 0 : reader.ReadInt()); // Required for FurnitureContainer insertion

            DynamicFurniture.Close(this);
        }
Exemplo n.º 5
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 2:
            {
                // removed deco field (case 1)
                goto case 0;
            }

            case 1:
            {
                bool dummy = reader.ReadBool();
                goto case 0;
            }

            case 0:
            {
                break;
            }
            }

            DynamicFurniture.Close(this);
        }
Exemplo n.º 6
0
        public override void DisplayTo(Mobile m)
        {
            if (ItemID == 0xA29B || ItemID == 0xA29D)
                ItemID++;
            else
                ItemID--;

            if (DynamicFurniture.Open(this, m))
                base.DisplayTo(m);
        }
Exemplo n.º 7
0
 public override void OnDoubleClick(Mobile from)
 {
     if (from.AccessLevel < AccessLevel.Administrator)
     {
         from.SendGump(new DonationChestGump());
         DynamicFurniture.Open(this, from);
         return;
     }
     base.OnDoubleClick(from);
 }
Exemplo n.º 8
0
        public override void DisplayTo(Mobile m)
        {
            if (ItemID == 0xA29F || ItemID == 0xA2A1)
            {
                ItemID++;
            }
            else
            {
                ItemID--;
            }

            if (DynamicFurniture.Open(this, m))
            {
                base.DisplayTo(m);
            }
        }
Exemplo n.º 9
0
 protected override void OnTick()
 {
     DynamicFurniture.Close(m_Container);
 }