Exemplo n.º 1
0
		public override void OnAccept()
		{
			dagger = new Dagger();			
			dagger.QuestItem = true;
			dagger.WeaponAttributes.UseBestSkill = 1;
			
			if ( Owner.PlaceInBackpack( dagger ) )
				base.OnAccept();
			else
			{
				dagger.Delete();
				Owner.SendLocalizedMessage( 1075574 ); // Could not create all the necessary items. Your quest has not advanced.
			}
		}
Exemplo n.º 2
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);
                }
            }
        }