Example #1
0
		private static Mobile GetOwner()
		{
			Mobile m_Corpse = new Mobile();

			MobileSex = Utility.RandomBool(); // true for female, false for male (no reason)
			m_Corpse.Hue = Utility.RandomSkinHue();

			Utility.AssignRandomHair( m_Corpse, true );

			if( MobileSex )
			{
				m_Corpse.Female = true;
				m_Corpse.Body = 0x191;
				m_Corpse.Name = NameList.RandomName( "female" ); // don't need a name, but it can't hurt
			}
			else
			{
				m_Corpse.Female = false;
				m_Corpse.Body = 0x190;
				m_Corpse.Name = NameList.RandomName( "male" ); // don't need a name, but it can't hurt

				Utility.AssignRandomFacialHair( m_Corpse, m_Corpse.HairHue );
			}

			m_Corpse.Delete();

			return m_Corpse;
		}
Example #2
0
		private void DeleteImp( Mobile m )
		{
			if ( m != null && !m.Deleted )
			{
				Effects.SendLocationEffect( m.Location, m.Map, 0x3728, 10, 10 );
				Effects.PlaySound( m.Location, m.Map, 0x1FE );

				m.Delete();
			}
		}
		private static Mobile GetOwner()
		{
			Mobile apprentice = new Mobile();

			apprentice.Hue = Utility.RandomSkinHue();
			apprentice.Female = false;
			apprentice.Body = 0x190;

			apprentice.Delete();

			return apprentice;
		}
Example #4
0
        public void DispelTarget( Mobile m )
        {
            //Type t = m.GetType();

            bool dispellable = false;

            if ( m is BaseCreature )
            {
                dispellable = ( (BaseCreature) m ).Summoned;
            }

            if ( m_Mobile.CanSee( m ) && dispellable )
            {
                Effects.SendLocationParticles( EffectItem.Create( m.Location, m.Map, EffectItem.DefaultDuration ), 0x3728, 8, 20, 5042 );

                Effects.PlaySound( m, m.Map, 0x201 );

                m.Delete();
            }
        }
Example #5
0
        public virtual void Dispel( Mobile m )
        {
            Effects.SendLocationParticles( EffectItem.Create( m.Location, m.Map, EffectItem.DefaultDuration ), 0x3728, 8, 20, 5042 );
            Effects.PlaySound( m, m.Map, 0x201 );

            m.Delete();
        }
        public void SpawnMob(Mobile m)
        {
            Point3D loc = GetRandomRegionPoint();

            if (loc.X != 0 && loc.Y != 0)
            {
                m.Location = loc;
                m.Map = regionmap;
                Spawn.Add(m);
            }
            else
            {
                m.Delete();
                return;
            }
        }
Example #7
0
		private void DeleteImp( Mobile m )
		{
			if ( m != null && !m.Deleted )
			{
				Effects.SendLocationEffect( m.Location, m.Map, 0x3728, 10, 10 );
				Effects.PlaySound( m.Location, m.Map, 0x1FE );

				m.Delete();
			}

			System.From.SendLocalizedMessage( 1055062 ); // You have received the Magic Brew Recipe.

			System.AddConversation( new ZeefzorpulConversation() );
		}
Example #8
0
        public virtual void Dispel( Mobile m )
        {
            if ( m_LastAutoDispel+TimeSpan.FromSeconds( 10.0 ) > DateTime.Now || Mana < 20 )
                return;

            Mana -= 20;
            if ( Mana < 0 )
                Mana = 0;
            m_LastAutoDispel = DateTime.Now;

            int diff = 0;
            if ( m is Daemon )
                diff = 95;
            else if ( m is EnergyVortex )
                diff = 80;
            else if ( m is FireElemental || m is WaterElemental || m is AirElemental || m is EarthElemental )
                diff = 75;
            else if ( m is BladeSpirit )
                diff = 50;

            Effects.SendLocationParticles( EffectItem.Create( m.Location, m.Map, EffectItem.DefaultDuration ), 0x3728, 8, 20, 5042 );
            if ( this.Skills[SkillName.Magery].Value >= Utility.Random( 41 )+diff )
            {
                Effects.PlaySound( m, m.Map, 0x201 );
                m.Delete();
            }
        }
Example #9
0
		private static Skill ShopkeeperSkill(Mobile m)
		{
			try
			{
				Mobile tmp = new Mobile();
				Skill sx = new Skill(tmp.Skills, new SkillInfo(-1, "Shopkeeper", 0, 0, 0, "Shopkeeper", null, 0, 0, 0, 0), 100, 1200, SkillLock.Locked);
				sx.BaseFixedPoint = ComputeShopkeeperSkill(m);
				tmp.Delete();
				return sx;
			}
			catch (Exception ex)
			{
				LogHelper.LogException(ex);
			}

			return null;
		}