Пример #1
0
        public override void SpawnHelpers()
        {
            int count = 4;

            if (Altar != null)
            {
                count = Math.Min(Altar.Fighters.Count, 4);

                for (int i = 0; i < count; i++)
                {
                    Mobile fighter = Altar.Fighters[i];

                    if (CanBeHarmful(fighter))
                    {
                        EnslavedSatyr satyr = new EnslavedSatyr();
                        satyr.FightMode = FightMode.Closest;
                        SpawnHelper(satyr, GetSpawnPosition(fighter.Location, fighter.Map, 2));

                        satyr.Combatant = fighter;

                        fighter.SendLocalizedMessage(1075116); // A twisted satyr scrambles onto the branch beside you and attacks!
                    }
                }
            }
            else
            {
                for (int i = 0; i < count; i++)
                {
                    SpawnHelper(new EnslavedSatyr(), 4);
                }
            }
        }
Пример #2
0
        public override void OnGotMeleeAttack(Mobile attacker)
        {
            base.OnGotMeleeAttack(attacker);

            if (0.01 > Utility.RandomDouble() && m_Summons.Count < 4)
            {
                BaseCreature summon = null;

                if (Utility.RandomBool())
                {
                    summon = new EnslavedSatyr();
                }
                else
                {
                    summon = new InsaneDryad();
                }

                summon.Team = this.Team;
                summon.MoveToWorld(this.Location, this.Map);

                m_Summons.Add(summon);

                Say(1075119);                   // Awake my children!  I summon thee!
            }

            if (0.2 >= Utility.RandomDouble())
            {
                Say(Utility.RandomList(1075102, 1075118));
            }

            if (0.1 >= Utility.RandomDouble())
            {
                DrainLife();
            }
        }
Пример #3
0
        public override void OnBeforeSpawn(Point3D location, Map map)
        {
            for (int i = 0; i < 4; i++)
            {
                BaseCreature satyr = new EnslavedSatyr();

                satyr.Team = this.Team;
                satyr.MoveToWorld(location, map);

                m_Summons.Add(satyr);
            }

            base.OnBeforeSpawn(location, map);
        }
Пример #4
0
		public override void SpawnHelpers()
		{
			int count = 4;

			if ( Altar != null )
			{
				count = Math.Min( Altar.Fighters.Count, 4 );

				for ( int i = 0; i < count; i++ )
				{
					Mobile fighter = Altar.Fighters[ i ];

					if ( CanBeHarmful( fighter ) )
					{
						EnslavedSatyr satyr = new EnslavedSatyr();
						SpawnHelper( satyr, GetSpawnPosition( fighter.Location, fighter.Map, 2 ) );
						satyr.Combatant = fighter;

						fighter.SendLocalizedMessage( 1075116 ); // A twisted satyr scrambles onto the branch beside you and attacks!
					}
				}
			}
			else
			{
				for ( int i = 0; i < count; i++ )
					SpawnHelper( new EnslavedSatyr(), 4 );
			}
		}	
Пример #5
0
        public override void OnGotMeleeAttack( Mobile attacker )
        {
            base.OnGotMeleeAttack( attacker );

            if ( 0.01 > Utility.RandomDouble() && m_Summons.Count < 4 )
            {
                BaseCreature summon = null;

                if ( Utility.RandomBool() )
                    summon = new EnslavedSatyr();
                else
                    summon = new InsaneDryad();

                summon.Team = this.Team;
                summon.MoveToWorld( this.Location, this.Map );

                m_Summons.Add( summon );

                Say( 1075119 ); // Awake my children!  I summon thee!
            }

            if ( 0.2 >= Utility.RandomDouble() )
                Say( Utility.RandomList( 1075102, 1075118 ) );

            if ( 0.1 >= Utility.RandomDouble() )
                DrainLife();
        }
Пример #6
0
        public override void OnBeforeSpawn( Point3D location, Map map )
        {
            for ( int i = 0; i < 4; i++ )
            {
                BaseCreature satyr = new EnslavedSatyr();

                satyr.Team = this.Team;
                satyr.MoveToWorld( location, map );

                m_Summons.Add( satyr );
            }

            base.OnBeforeSpawn( location, map );
        }