Пример #1
0
        public void CreateNecromancerFamiliar()
        {
            int          whichone = Utility.RandomMinMax(1, 5);
            BaseCreature mob      = null;

            if (whichone == 5 && m_Mobile.Skills[SkillName.Necromancy].Value >= 100.0)
            {
                mob = new VampireBatFamiliar();
            }
            else if (whichone >= 4 && m_Mobile.Skills[SkillName.Necromancy].Value >= 80.0)
            {
                mob = new DeathAdder();
            }
            else if (whichone >= 3 && m_Mobile.Skills[SkillName.Necromancy].Value >= 60.0)
            {
                mob = new DarkWolfFamiliar();
            }
            else if (whichone >= 2 && m_Mobile.Skills[SkillName.Necromancy].Value >= 50.0)
            {
                mob = new ShadowWispFamiliar();
            }
            else if (m_Mobile.Skills[SkillName.Necromancy].Value >= 30.0)
            {
                mob = new HordeMinionFamiliar();
            }

            if (mob != null)
            {
                BaseCreature.Summon(mob, m_Mobile, m_Mobile.Location, -1, TimeSpan.FromDays(1.0));
                mob.FixedParticles(0x3728, 1, 10, 9910, EffectLayer.Head);
                mob.PlaySound(mob.GetIdleSound());
            }

            return;
        }
		public void CreateNecromancerFamiliar()
		{
			int whichone = Utility.RandomMinMax( 1, 5 );
			BaseCreature mob = null;

			if ( whichone == 5 && m_Mobile.Skills[SkillName.Necromancy].Value >= 100.0 )
				mob = new VampireBatFamiliar();
			else if ( whichone >= 4 && m_Mobile.Skills[SkillName.Necromancy].Value >= 80.0 )
				mob = new DeathAdder();
			else if ( whichone >= 3 && m_Mobile.Skills[SkillName.Necromancy].Value >= 60.0 )
				mob = new DarkWolfFamiliar();
			else if ( whichone >= 2 && m_Mobile.Skills[SkillName.Necromancy].Value >= 50.0 )
				mob = new ShadowWispFamiliar();
			else if ( m_Mobile.Skills[SkillName.Necromancy].Value >= 30.0 )
				mob = new HordeMinionFamiliar();

			if ( mob != null )
			{
				BaseCreature.Summon( mob, m_Mobile, m_Mobile.Location, -1, TimeSpan.FromDays( 1.0 ) );
				mob.FixedParticles( 0x3728, 1, 10, 9910, EffectLayer.Head );
				mob.PlaySound( mob.GetIdleSound() );
			}

			return;
		}