protected override void OnTarget(Mobile from, object o)
            {
                if (!from.CanSee(o))
                {
                    from.SendLocalizedMessage(500237);                       // Target can not be seen.
                }
                if (o is ACreedGarb)
                {
                    ACreedGarb ag = (ACreedGarb)o;

                    if (ag.Level < 3)
                    {
                        ++ag.Level;
                        from.SendMessage("You upgrade the Assassin's Garb.");
                        m_Deed.Delete();
                    }
                    else
                    {
                        from.SendMessage("That is fully upgraded.");
                    }
                }
                else
                {
                    from.SendMessage("You cannot use this on that.");
                }
            }
Пример #2
0
            public LoadACreedGarbEntry(ACreedGarb garb) : base(6230, 0)                 // Refill from stock
            {
                Garb = garb;

                if (Garb is ACreedJinBori)
                {
                    ACreedJinBori jinbori = (ACreedJinBori)Garb;
                    Enabled = jinbori.Ammo < (jinbori.Level * 5);
                }
                else if (Garb is ACreedBelt)
                {
                    ACreedBelt belt = (ACreedBelt)Garb;
                    Enabled = belt.Ammo < (belt.Level * 5);
                }
            }
Пример #3
0
        public static void LoadTarget_Callback(Mobile from, object target, ACreedGarb garb)
        {
            if (garb is ACreedJinBori)
            {
                Dagger dagger = target as Dagger;

                if (dagger == null)
                {
                    from.SendMessage("That isn't a dagger.");
                }
                else if (dagger.RootParent != from)
                {
                    from.SendMessage("That isn't yours to load.");
                }
                else
                {
                    dagger.Delete();
                    from.SendMessage("You load the dagger into the vest.");
                    ((ACreedJinBori)garb).Ammo++;

                    from.SendMessage("Select a dagger in your backpack to load into the vest (enhancements will be removed).");
                    from.BeginTarget(10, false, TargetFlags.None, new TargetStateCallback <ACreedGarb>(LoadTarget_Callback), (ACreedGarb)garb);
                }
            }
            else if (garb is ACreedBelt)
            {
                GreaterHealPotion potion = target as GreaterHealPotion;

                if (potion == null)
                {
                    from.SendMessage("That isn't a greater heal potion.");
                }
                else if (potion.RootParent != from)
                {
                    from.SendMessage("That isn't yours to load.");
                }
                else
                {
                    potion.Consume();
                    from.SendMessage("You load the potion into the belt.");
                    ((ACreedBelt)garb).Ammo++;

                    from.SendMessage("Select a greater heal potion in your backpack to load into the belt.");
                    from.BeginTarget(10, false, TargetFlags.None, new TargetStateCallback <ACreedGarb>(LoadTarget_Callback), (ACreedGarb)garb);
                }
            }
        }
Пример #4
0
 public UnloadACreedGarbEntry(ACreedGarb garb) : base(6221, 0)                 // Unpack Container
 {
     Garb = garb;
 }
Пример #5
0
		public static void LoadTarget_Callback( Mobile from, object target, ACreedGarb garb )
		{
			if ( garb is ACreedJinBori )
			{
				Dagger dagger = target as Dagger;

				if ( dagger == null )
					from.SendMessage( "That isn't a dagger." );
				else if ( dagger.RootParent != from )
					from.SendMessage( "That isn't yours to load." );
				else
				{
					dagger.Delete();
					from.SendMessage( "You load the dagger into the vest." );
					((ACreedJinBori)garb).Ammo++;

					from.SendMessage( "Select a dagger in your backpack to load into the vest (enhancements will be removed)." );
					from.BeginTarget( 10, false, TargetFlags.None, new TargetStateCallback<ACreedGarb>( LoadTarget_Callback ), (ACreedGarb)garb );
				}
			}
			else if ( garb is ACreedBelt )
			{
				GreaterHealPotion potion = target as GreaterHealPotion;

				if ( potion == null )
					from.SendMessage( "That isn't a greater heal potion." );
				else if ( potion.RootParent != from )
					from.SendMessage( "That isn't yours to load." );
				else
				{
					potion.Consume();
					from.SendMessage( "You load the potion into the belt." );
					((ACreedBelt)garb).Ammo++;

					from.SendMessage( "Select a greater heal potion in your backpack to load into the belt." );
					from.BeginTarget( 10, false, TargetFlags.None, new TargetStateCallback<ACreedGarb>( LoadTarget_Callback ), (ACreedGarb)garb );
				}
			}
		}
Пример #6
0
			public UnloadACreedGarbEntry( ACreedGarb garb ) : base( 6221, 0 ) // Unpack Container
			{
				Garb = garb;
			}
Пример #7
0
			public LoadACreedGarbEntry( ACreedGarb garb ) : base( 6230, 0 ) // Refill from stock
			{
				Garb = garb;

				if ( Garb is ACreedJinBori )
				{
					ACreedJinBori jinbori = (ACreedJinBori)Garb;
					Enabled = jinbori.Ammo < (jinbori.Level * 5);
				}
				else if ( Garb is ACreedBelt )
				{
					ACreedBelt belt = (ACreedBelt)Garb;
					Enabled = belt.Ammo < (belt.Level * 5);
				}
			}