예제 #1
0
파일: Key.cs 프로젝트: proxeeus/UORebirth
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from))
            {
                from.SendAsciiMessage("That must be in your backpack to use it.");
                return;
            }

            Target t;
            int    number;

            if (m_KeyVal != 0)
            {
                number = 501662;                 // What shall I use this key on?
                t      = new UnlockTarget(this);
            }
            else
            {
                number = 501663;                 // This key is a key blank
                t      = new CopyTarget(this);
            }

            from.SendLocalizedMessage(number);
            from.Target = t;
        }
예제 #2
0
파일: Key.cs 프로젝트: alucardxlx/Casiopia
        public override void OnDoubleClick(Mobile from)
        {
            if (!this.IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(501661);                   // That key is unreachable.
                return;
            }

            Target t;
            int    number;

            if (m_KeyVal != 0)
            {
                number = 501662;                 // What shall I use this key on?
                t      = new UnlockTarget(this);
            }
            else
            {
                number = 501663;                 // This key is a key blank. Which key would you like to make a copy of?
                t      = new CopyTarget(this);
            }

            from.SendLocalizedMessage(number);
            from.Target = t;
        }
예제 #3
0
        public override void OnDoubleClick(Mobile from)
        {
            Target t;

            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1060640);                   // The item must be in your backpack to use it.
            }
            else
            {
                from.SendMessage("What chest do you want to use the torch on?");
                t           = new UnlockTarget(this);
                from.Target = t;
            }
        }
예제 #4
0
        public override void OnDoubleClick(Mobile from)
        {
            Target t;
            int    number;

            if (!IsChildOf(from.Backpack))
            {
                number = 1060640;                  // The item must be in your backpack to use it.
            }
            else
            {
                number      = 501662;             // What shall I use this key on?
                t           = new UnlockTarget(this);
                from.Target = t;
            }

            from.SendLocalizedMessage(number);
        }
예제 #5
0
        public override void OnDoubleClick(Mobile from)
        {
            Target t;
            int    number;

            if (m_KeyVal != 0)
            {
                number = 501662;                 // What shall I use this key on?
                t      = new UnlockTarget(this);
            }
            else
            {
                number = 501663;                 // This key is a key blank. Which key would you like to make a copy of?
                t      = new CopyTarget(this);
            }

            from.SendLocalizedMessage(number);
            from.Target = t;
        }
예제 #6
0
        public override void OnDoubleClick(Mobile from)
        {
            Target t;
            string number;

            if (m_KeyVal != 0)
            {
                number = "What shall I use this key on?";
                t      = new UnlockTarget(this);
            }
            else
            {
                number = "This key is a key blank. Which key would you like to make a copy of?";
                t      = new CopyTarget(this);
            }

            from.SendAsciiMessage(number);
            from.Target = t;
        }
예제 #7
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(501661); // That key is unreachable.
                return;
            }

            Target t;

            if (m_KeyVal != 0)
            {
                from.SendAsciiMessage("Select the item to use the key on.");
                t = new UnlockTarget(this);
            }
            else
            {
                from.SendAsciiMessage("This key is a key blank. Which key would you like to make a copy of?");
                t = new CopyTarget(this);
            }

            from.Target = t;
        }
예제 #8
0
		public override void OnDoubleClick( Mobile from )
		{
			Target t;
			int number;

			if ( m_KeyVal != 0 )
			{
				number = 501662; // What shall I use this key on?
				t = new UnlockTarget( this );
			}
			else
			{
				number = 501663; // This key is a key blank. Which key would you like to make a copy of?
				t = new CopyTarget( this );
			}

			from.SendLocalizedMessage( number );
			from.Target = t;
		}
예제 #9
0
파일: Key.cs 프로젝트: romeov007/imagine-uo
		public override void OnDoubleClick( Mobile from )
		{
			if ( !this.IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 501661 ); // That key is unreachable.
				return;
			}

			Target t;
			int number;

			if ( m_KeyVal != 0 )
			{
				number = 501662; // What shall I use this key on?
				t = new UnlockTarget( this );
			}
			else
			{
				number = 501663; // This key is a key blank. Which key would you like to make a copy of?
				t = new CopyTarget( this );
			}

			from.SendLocalizedMessage( number );
			from.Target = t;
		}
예제 #10
0
        public override void OnDoubleClick( Mobile from )
        {
            Target t;
            string number;

            if ( m_KeyVal != 0 )
            {
                number = "What shall I use this key on?";
                t = new UnlockTarget( this );
            }
            else
            {
                number = "This key is a key blank. Which key would you like to make a copy of?";
                t = new CopyTarget( this );
            }

            from.SendAsciiMessage( number );
            from.Target = t;
        }
예제 #11
0
        public override void OnDoubleClick( Mobile from )
        {
            if ( !this.IsChildOf( from.Backpack ) )
            {
                from.SendLocalizedMessage( 501661 ); // That key is unreachable.
                return;
            }

            Target t;
            int number;

            if ( m_KeyVal != 0 )
            {
                number = 501662; // What shall I use this key on?
                t = new UnlockTarget( this );
            }
            else
            {
                from.SendMessage( "This key is blank. Target a key if you want to make a copy of it, or a door if you want to change its lock." );
                from.Target = new CopyTarget( this );
                return;
            }

            from.SendLocalizedMessage( number );
            from.Target = t;
        }
예제 #12
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(501661); // That key is unreachable.
                return;
            }

            Target t;

            if (m_KeyVal != 0)
            {
                from.SendAsciiMessage("Select the item to use the key on.");
                t = new UnlockTarget(this);
            }
            else
            {
                from.SendAsciiMessage("This key is a key blank. Which key would you like to make a copy of?");
                t = new CopyTarget(this);
            }

            from.Target = t;
        }
예제 #13
0
        public override void OnDoubleClick( Mobile from )
        {
            if ( !IsChildOf( from ) )
            {
                from.SendAsciiMessage( "That must be in your backpack to use it." );
                return;
            }

            Target t;
            int number;
            if ( m_KeyVal != 0 )
            {
                number = 501662; // What shall I use this key on?
                t = new UnlockTarget( this );
            }
            else
            {
                number = 501663; // This key is a key blank
                t = new CopyTarget( this );
            }

            from.SendLocalizedMessage( number );
            from.Target = t;
        }