Exemplo n.º 1
0
        public override bool OnDragDropInto(Mobile from, Item item, Point3D p)
        {
            if (!base.OnDragDropInto(from, item, p))
            {
                return(false);
            }

            if (TotalItems >= 10)
            {
                Empty(501478);                   // The trash is full!  Emptying!
            }
            else
            {
                from.SendMessage(38, "WARNING~! Items placed in Trash Bag will be deleted in 30 seconds!");                  // The item will be deleted in three minutes

                if (m_Timer != null)
                {
                    m_Timer.Stop();
                }
                else
                {
                    m_Timer = new EmptyTimer(this);
                }

                m_Timer.Start();
            }

            return(true);
        }
        public override bool OnDragDropInto(Mobile from, Item item, Point3D p)
        {
            if (!base.OnDragDropInto(from, item, p))
            {
                return(false);
            }

            if (TotalItems >= 50)
            {
                Empty(501478);                   // The trash is full!  Emptying!
            }
            else
            {
                SendLocalizedMessageTo(from, 1010442);                   // The item will be deleted in three minutes

                if (m_Timer != null)
                {
                    m_Timer.Stop();
                }
                else
                {
                    m_Timer = new EmptyTimer(this);
                }

                m_Timer.Start();
            }

            return(true);
        }
Exemplo n.º 3
0
        public override bool OnDragDrop(Mobile from, Item dropped)
        {
            if (!base.OnDragDrop(from, dropped))
            {
                return(false);
            }

            // wea: trash barrels will only work when locked down
            if (!IsLockedDown)
            {
                return(false);
            }

            if (TotalItems >= 50)
            {
                Empty(501478);                 // The trash is full!  Emptying!
            }
            else
            {
                SendLocalizedMessageTo(from, 1010442);                 // The item will be deleted in three minutes

                if (m_Timer != null)
                {
                    m_Timer.Stop();
                }
                else
                {
                    m_Timer = new EmptyTimer(this);
                }

                m_Timer.Start();
            }

            return(true);
        }
Exemplo n.º 4
0
        public override bool OnDragDrop(Mobile from, Item dropped)
        {
            if (!base.OnDragDrop(from, dropped))
            {
                return(false);
            }

            if (TotalItems >= 50)
            {
                Empty(501478);                   // The trash is full!  Emptying!
            }
            else
            {
                SendAsciiMessageTo(from, "The item will be deleted in three minutes.");

                if (m_Timer != null)
                {
                    m_Timer.Stop();
                }
                else
                {
                    m_Timer = new EmptyTimer(this);
                }

                m_Timer.Start();
            }

            return(true);
        }
Exemplo n.º 5
0
        public override bool OnDragDropInto(Mobile from, Item item, Point3D p)
        {
            if (!base.OnDragDropInto(from, item, p))
            {
                return(false);
            }

            if (TotalItems >= 50)
            {
                Empty("The trash is full!  Emptying!");                   // The trash is full!  Emptying!
            }
            else
            {
                from.Send(new AsciiMessage(Serial, ItemID, MessageType.Regular, 0, 3, "", "The item will be deleted in three minutes."));
                //SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes

                if (m_Timer != null)
                {
                    m_Timer.Stop();
                }
                else
                {
                    m_Timer = new EmptyTimer(this);
                }

                m_Timer.Start();
            }

            return(true);
        }
Exemplo n.º 6
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            if (Items.Count > 0)
            {
                m_Timer = new EmptyTimer(this);
                m_Timer.Start();
            }
        }
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			if ( Items.Count > 0 )
			{
				m_Timer = new EmptyTimer( this );
				m_Timer.Start();
			}
		}
Exemplo n.º 8
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			
				 if (version >= 1)
					m_Level = (SecureLevel)reader.ReadInt();
				else
					m_Level = SecureLevel.CoOwners;

				if ( Items.Count > 0 )
				{
					m_Timer = new EmptyTimer( this );
                    m_Timer.Start();
 
                }
		}
Exemplo n.º 9
0
        public override bool OnDragDropInto(Mobile from, Item item, Point3D p)
        {
            if (!base.OnDragDropInto(from, item, p))
            {
                return(false);
            }

            if (m_Timer != null)
            {
                m_Timer.Stop();
            }
            else
            {
                m_Timer = new EmptyTimer(this);
            }

            m_Timer.Start();

            return(true);
        }
Exemplo n.º 10
0
        public override bool OnDragDrop(Mobile from, Item dropped)
        {
            if (!base.OnDragDrop(from, dropped))
            {
                return(false);
            }

            if (m_Timer != null)
            {
                m_Timer.Stop();
            }
            else
            {
                m_Timer = new EmptyTimer(this);
            }

            m_Timer.Start();

            return(true);
        }
Exemplo n.º 11
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            if (version >= 1)
            {
                m_Level = (SecureLevel)reader.ReadInt();
            }
            else
            {
                m_Level = SecureLevel.CoOwners;
            }

            if (Items.Count > 0)
            {
                m_Timer = new EmptyTimer(this);
                m_Timer.Start();
            }
        }
Exemplo n.º 12
0
		public override bool OnDragDrop( Mobile from, Item dropped )
		{
			if ( !base.OnDragDrop( from, dropped ) )
				return false;

			if ( TotalItems >= 50 )
			{
				Empty( 501478 ); // The trash is full!  Emptying!
			}
			else
			{
				SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes

				if ( m_Timer != null )
					m_Timer.Stop();
				else
					m_Timer = new EmptyTimer( this );

				m_Timer.Start();
			}

			return true;
		}
Exemplo n.º 13
0
		public override bool OnDragDrop( Mobile from, Item dropped )
		{
			if ( !base.OnDragDrop( from, dropped ) )
				return false;

			if ( TotalItems >= 10 )
			{
				Empty( 501478 ); // The trash is full!  Emptying!
			}
			else
			{
				from.SendMessage( "Items will delete in 30 seconds!" ); // The item will be deleted in three minutes

				if ( m_Timer != null )
					m_Timer.Stop();
				else
					m_Timer = new EmptyTimer( this );

				m_Timer.Start();
			}

			return true;
		}
Exemplo n.º 14
0
		public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
		{
			if ( !base.OnDragDropInto( from, item, p ) )
				return false;

			// wea: trash barrels will only work when locked down
			if ( !IsLockedDown )
				return false;

			if ( TotalItems >= 50 )
			{
				Empty( 501478 ); // The trash is full!  Emptying!
			}
			else
			{
				SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes

				if ( m_Timer != null )
					m_Timer.Stop();
				else
					m_Timer = new EmptyTimer( this );

				m_Timer.Start();
			}

			return true;
		}
Exemplo n.º 15
0
		public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
		{
			if ( !base.OnDragDropInto( from, item, p ) )
				return false;

			if ( TotalItems >= 10 )
			{
				Empty( 501478 ); // The trash is full!  Emptying!
			}
			else
			{
				from.SendMessage( 38,"WARNING~! Items placed in Trash Bag will be deleted in 30 seconds!" ); // The item will be deleted in three minutes

				if ( m_Timer != null )
					m_Timer.Stop();
				else
					m_Timer = new EmptyTimer( this );

				m_Timer.Start();
			}

			return true;
		}