Пример #1
0
        public static Target RitualTarget(Item item, Mobile from, RobeofRite robe)
        {
            Target t = new InternalTarget(item, from, robe);

            from.Target = t;

            return(t);
        }
Пример #2
0
 public override void OnDoubleClick(Mobile from)
 {
     if (from.Items.Contains(this))
     {
         InternalTarget t = new InternalTarget(this);
         from.Target = t;
     }
     else
     {
         from.SendMessage("You must be holding that weapon to use it.");
     }
 }
Пример #3
0
 public override void OnDoubleClick( Mobile from )
 {
     if ( from.GetEquippedItems().Contains( this ) )
     {
         InternalTarget t = new InternalTarget( this );
         from.Target = t;
     }
     else
     {
         from.SendMessage( "You must be holding that weapon to use it." );
     }
 }
Пример #4
0
        //public override void OnDoubleClick(Mobile from)
        //{
        //    if (from.Items.Contains(this))
        //    {
        //        InternalTarget t = new InternalTarget(this);
        //        from.Target = t;
        //    }
        //    else
        //    {
        //        from.SendMessage("You must be holding the pillow to use it.");
        //    }
        //}

        public override void OnDoubleClick(Mobile from)
        {
            //if (from.Items.Contains(this))
            //{
                InternalTarget t = new InternalTarget(this);
                from.Target = t;
            //}
            //else
            //{
            //    from.SendMessage("You must be holding that weapon to use it.");
            //}
        }
Пример #5
0
		public override void OnDoubleClick( Mobile from )
		{
            // Scriptiz : gestion du double clic pour équipper un objet
            if (from.FindItemOnLayer(this.Layer) != this)
            {
                base.OnDoubleClick(from);
                return;
            }
                from.SendMessage("Où voulez-vous la lancer?");
				InternalTarget t = new InternalTarget( this );
				from.Target = t;
                return;
			    
		}
Пример #6
0
        public override void OnDoubleClick(Mobile from)
        {
            // Scriptiz : gestion du double clic pour équipper un objet
            if (from.FindItemOnLayer(this.Layer) != this)
            {
                base.OnDoubleClick(from);
                return;
            }
            from.SendMessage("Où voulez-vous la lancer?");
            InternalTarget t = new InternalTarget(this);

            from.Target = t;
            return;
        }
Пример #7
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!BasePotion.HasFreeHand(from) && !BasePotion.HasBalancedWeapon(from))
            {
                from.SendLocalizedMessage(1063299);                   // You must have a free hand to throw shuriken.
                return;
            }

            if (UsesRemaining > 0)
            {
                InternalTarget t = new InternalTarget(this);
                from.Target = t;
            }
            else
            {
                from.SendLocalizedMessage(1063297);                   // You have no shuriken in your ninja belt!
            }
        }
Пример #8
0
        public override void OnDoubleClick(Mobile from)
        {
            // Scriptiz : gestion du double clic pour équipper un objet
            if (from.FindItemOnLayer(this.Layer) != this)
            {
                base.OnDoubleClick(from);
                return;
            }
            if (from.Skills[SkillName.Throwing].Value <= 41)
            {
                from.SendMessage("Vous seriez incapable de toucher votre cible, mieux vaut renoncer");
                return;
            }
            from.SendMessage("Où voulez-vous la lancer?");
            InternalTarget t = new InternalTarget(this);
            from.Target = t;
            return;

        }
Пример #9
0
 public override void OnDoubleClick(Mobile from)
 {
     if (!IsChildOf(from.Backpack))
     {
         from.SendLocalizedMessage(1042001);                   // That must be in your pack for you to use it.
     }
     else
     {
         if (from.BeginAction(typeof(Boomerang)))
         {
             InternalTarget t = new InternalTarget(this);
             from.Target = t;
         }
         else
         {
             from.SendMessage("You cant use this now.");
         }
     }
 }
Пример #10
0
        public override void OnDoubleClick(Mobile from)
        {
            // Scriptiz : gestion du double clic pour équipper un objet
            if (from.FindItemOnLayer(this.Layer) != this)
            {
                base.OnDoubleClick(from);
                return;
            }
            if (from.Skills[SkillName.Throwing].Value <= 41)
            {
                from.SendMessage("Vous seriez incapable de toucher votre cible, mieux vaut renoncer");
                return;
            }
            from.SendMessage("Où voulez-vous la lancer?");
            InternalTarget t = new InternalTarget(this);

            from.Target = t;
            return;
        }
Пример #11
0
 public override void OnDoubleClick(Mobile from)
 {
     if (!IsChildOf(from.Backpack))
     {
         from.SendLocalizedMessage(1042001);                   // That must be in your pack for you to use it.
     }
     else
     {
         if (from.BeginAction(typeof(Bangerang)))
         {
             InternalTarget t = new InternalTarget(this);
             from.Target = t;
         }
         else
         {
             from.SendMessage("You must wait 5 seconds before using this again.");
         }
     }
 }
Пример #12
0
		public override void OnDoubleClick( Mobile from )
		{
			if ( !IsChildOf( from.Backpack ) )
			{
				from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
			}
			else
			{
				if ( from.BeginAction( typeof( MBoomerang ) ) ) 
				{
				InternalTarget t = new InternalTarget( this );
				from.Target = t;
				}
				else
				{
				from.SendMessage( "You cant use this now." );
				}
			}
		}
        public override void OnDoubleClick(Mobile from)
        {
            Item item = from.FindItemOnLayer(Layer.OneHanded);

            Item item2 = from.FindItemOnLayer(Layer.TwoHanded);

            if (item != null || item2 != null)
            {
                from.SendLocalizedMessage(1063299);                   // You must have a free hand to throw shuriken.

                return;
            }

            if (UsesRemaining > 0)
            {
                InternalTarget t = new InternalTarget(this);
                from.Target = t;
            }
            else
            {
                from.SendLocalizedMessage(1063297);                   // You have no shuriken in your ninja belt!
            }
        }
Пример #14
0
        public override void OnDoubleClick(Mobile from)
        {
            Item item = from.FindItemOnLayer(Layer.OneHanded);

            Item item2 = from.FindItemOnLayer(Layer.TwoHanded);

            if (item != null || item2 != null)
            {
                from.SendLocalizedMessage(1063327);                   // You must have a free hand to use a fukiya.

                return;
            }

            if (UsesRemaining > 0)
            {
                InternalTarget t = new InternalTarget(this);
                from.Target = t;
            }
            else
            {
                from.SendLocalizedMessage(1063325);
            }             // You have no fukiya darts!
        }
Пример #15
0
        public override void OnDoubleClick( Mobile from )
        {
            if ( !BasePotion.HasFreeHand( from ) && !BasePotion.HasBalancedWeapon( from ) )
            {
                from.SendLocalizedMessage( 1063299 ); // You must have a free hand to throw shuriken.
                return;
            }

            if ( UsesRemaining > 0 )
            {
                InternalTarget t = new InternalTarget( this );
                from.Target = t;
            }
            else
            {
                from.SendLocalizedMessage( 1063297 ); // You have no shuriken in your ninja belt!
            }
        }