public void Target( RecallRune rune )
        {
            if ( !Caster.CanSee( rune ) )
            {
                Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
            }
            else if ( !SpellHelper.CheckTravel( Caster, TravelCheckType.Mark ) )
            {
            }
            else if ( SpellHelper.CheckMulti( Caster.Location, Caster.Map, !Core.AOS ) )
            {
                Caster.SendLocalizedMessage( 501942 ); // That location is blocked.
            }
            else if ( !rune.IsChildOf( Caster.Backpack ) )
            {
                Caster.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1062422 ); // You must have this rune in your backpack in order to mark it.
            }
            else if ( CheckSequence() )
            {
                rune.Mark( Caster );
                Caster.FixedParticles( 0x376A, 9, 32, 0x13AF, EffectLayer.Waist );
                Caster.PlaySound( 0x1FA );
            }

            FinishSequence();
        }
Exemple #2
0
		public void Target( RecallRune rune )
		{
			if( !Caster.CanSee( rune ) )
			{
				Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
			}
			else if( !SpellHelper.CheckTravel( Caster, TravelCheckType.Mark ) )
			{
			}

            else if (SpellHelper.CheckMulti(Caster.Location, Caster.Map, !Core.AOS))
            {
                Caster.SendMessage("That location is blocked.");
            }

            else if (!CheckAltar(Caster.Location, Caster.Map))
            {
                Caster.SendMessage("You must be on an altar to preform this spell.");
            }

            else if (!rune.IsChildOf(Caster.Backpack))
            {
                Caster.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1062422); // You must have this rune in your backpack in order to mark it.
            }

            else if (CheckSequence())
            {
                rune.Mark(Caster);

                Caster.PlaySound(0x1FA);
                Effects.SendLocationEffect(Caster, Caster.Map, 14201, 16);
            }

			FinishSequence();
		}
Exemple #3
0
		public void Target(RecallRune rune)
		{
			if (!Caster.CanSee(rune))
			{
				Caster.SendLocalizedMessage(500237); // Target can not be seen.
			}
			else if (!SpellHelper.CheckTravel(Caster, TravelCheckType.Mark))
			{ }
			else if (SpellHelper.CheckMulti(Caster.Location, Caster.Map, !Caster.EraAOS))
			{
				Caster.SendLocalizedMessage(501942); // That location is blocked.
			}
			else if (!rune.IsChildOf(Caster.Backpack))
			{
				Caster.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1062422);
					// You must have this rune in your backpack in order to mark it.
			}
			else if (Caster.Map != Map.Felucca)
			{
				Caster.SendMessage("A magical field prevents you from marking a rune here.");
			}
			else if (CheckSequence())
			{
				rune.Mark(Caster);

				Caster.PlaySound(0x1FA);
				Effects.SendLocationEffect(Caster, Caster.Map, 14201, 16);
			}

			FinishSequence();
		}
Exemple #4
0
        public void Target( RecallRune rune )
        {
            if ( !Caster.CanSee( rune ) )
            {
                Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
            }
            else if ( !SpellHelper.CheckTravel( Caster, TravelCheckType.Mark ) )
            {
            }
            else if ( SpellHelper.CheckMulti( Caster.Location, Caster.Map, false ) )
            {
                Caster.SendLocalizedMessage( 501942 ); // That location is blocked.
            }
            else if ( !rune.IsChildOf( Caster.Backpack ) )
            {
                Caster.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1062422 ); // You must have this rune in your backpack in order to mark it.
            }
            else if ( Caster.Region.IsPartOf( typeof( Jail ) ) )
            {
                Caster.SendMessage( "You cannot mark a rune while in jail." );
            }
            else if ( CheckSequence() )
            {
                rune.Mark( Caster );

                Caster.PlaySound( 0x1FA );
                Effects.SendLocationEffect( Caster, Caster.Map, 14201, 16 );
            }

            FinishSequence();
        }
Exemple #5
0
		public void Target( RecallRune rune )
		{
			if ( !Caster.CanSee( rune ) )
			{
				Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
			}
			else if ( !SpellHelper.CheckTravel( Caster, TravelCheckType.Mark ) )
			{
                //Caster.SendAsciiMessage("ros");
			}
			else if ( SpellHelper.CheckMulti( Caster.Location, Caster.Map, !Core.AOS ) )
			{
				Caster.SendLocalizedMessage( 501942 ); // That location is blocked.
			}
			else if ( !rune.IsChildOf( Caster.Backpack ) )
			{
				Caster.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1062422 ); // You must have this rune in your backpack in order to mark it.
			}
			else if ( CheckSequence() )
			{
                if (Caster.Region is Regions.HouseRegion || (Caster.Region is Regions.CustomRegion && ((Regions.CustomRegion)Caster.Region).Controller.IsRestrictedSpell(this)))
                    Caster.SendAsciiMessage("You can't mark here.");
                else if (Caster.Region is Regions.GreenAcres && Caster.AccessLevel == AccessLevel.Player)
                    Caster.SendAsciiMessage("You cannot mark runes in Green Acres");
                else
                {
                    rune.Mark(Caster);

                    Caster.PlaySound(Sound);
                }
			}

			FinishSequence();
		}
Exemple #6
0
        public void Target(RecallRune rune)
        {
            if (!this.Caster.CanSee(rune))
            {
                this.Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (!SpellHelper.CheckTravel(this.Caster, TravelCheckType.Mark))
            {
            }
            else if (SpellHelper.CheckMulti(this.Caster.Location, this.Caster.Map, !Core.AOS))
            {
                this.Caster.SendLocalizedMessage(501942); // That location is blocked.
            }
            else if (!rune.IsChildOf(this.Caster.Backpack))
            {
                this.Caster.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1062422); // You must have this rune in your backpack in order to mark it.
            }
            else if (this.CheckSequence())
            {
                rune.Mark(this.Caster);

                this.Caster.PlaySound(0x1FA);
                Effects.SendLocationEffect(this.Caster, this.Caster.Map, 14201, 16);
            }

            this.FinishSequence();
        }
Exemple #7
0
 private void MarkRune(RecallRune r, Mobile from)
 {
     r.Marked = true;
     r.TargetMap = from.Map;
     r.Target = from.Location;
     r.House = null;
     from.PlaySound(0x1FA);
     if (r.IsChildOf(from.Backpack))
     {
         Effects.SendLocationEffect(from, from.Map, 14201, 16);
     }
     else
     {
         Effects.SendLocationEffect(r, r.Map, 14201, 16);
     }
 }