Example #1
0
        public void Activate(Mobile from)
        {
            BraceletOfBinding bound = Bound;

            if (Deleted || bound == null)
            {
                return;
            }

            if (!IsChildOf(from))
            {
                from.SendLocalizedMessage(1042664); // You must have the object in your backpack to use it.
            }
            else if (m_Timer != null)
            {
                from.SendLocalizedMessage(1054013); // The bracelet is already attempting contact. You decide to wait a moment.
            }
            else
            {
                from.PlaySound(0xF9);
                from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1151783);

                from.Frozen = true;

                m_Timer = new TransportTimer(this, from);
                m_Timer.Start();
            }
        }
		public void Activate( Mobile from )
		{
			BraceletOfBinding bound = this.Bound;

			if ( Deleted || bound == null )
				return;

			if ( !this.IsChildOf( from ) )
			{
				from.SendLocalizedMessage( 1042664 ); // You must have the object in your backpack to use it.
			}
			else if ( m_Timer != null )
			{
				from.SendLocalizedMessage( 1054013 ); // The bracelet is already attempting contact. You decide to wait a moment.
			}
			else
			{
				from.PlaySound( 0xF9 );
				from.LocalOverheadMessage( MessageType.Regular, 0x5D, true, "* You concentrate on the bracelet to summon its power *" );

				from.Frozen = true;

				m_Timer = new TransportTimer( this, from );
				m_Timer.Start();
			}
		}