Пример #1
0
        public static void FinalEffect( Mobile caster, Corpse corpse, BaseCreature creature, XmlSpiritSummoning att )
        {
            int power = 1;

            if( creature.Fame > 5000 )
                power = creature.Fame / 5000;

            GenericWarrior summoned = new GenericWarrior();

            summoned.RawHits = 75 * power;
            summoned.Hits = summoned.RawHits;
            summoned.DamageMin = 15 + ( 2 * power );
            summoned.DamageMax = 20 + ( 2 * power );
            summoned.BodyValue = creature.BodyValue;
            summoned.BaseSoundID = 442;
            summoned.Hue = 12345678;
            summoned.Name = "A Summoned Spirit";

            if( summoned.BodyValue == 400 || summoned.BodyValue == 401 )
            {
                Club club = new Club();
                club.Hue = 12345678;
                summoned.EquipItem( club );
                summoned.EquipItem( new RaggedPants( 12345678 ) );
                summoned.EquipItem( new Shirt( 12345678 ) );
                summoned.HairItemID = creature.HairItemID;
                summoned.HairHue = 12345678;
                summoned.FacialHairItemID = creature.FacialHairItemID;
                summoned.FacialHairHue = 12345678;
                summoned.HasNoCorpse = true;
            }

            corpse.Channeled = true;
            Summon( caster, summoned, 30, 534, false );
            summoned.Location = corpse.Location;
            summoned.Emote( "*is summoned from the spirit realm to serve " + caster.Name + "*" );

            if( att != null )
            {
                att.NextUseAllowed = DateTime.Now + att.CoolDown;
                att.Summoned = summoned;
            }
        }
Пример #2
0
 public SpiritSummoning( Mobile caster, int featLevel, XmlSpiritSummoning att )
     : base(caster, featLevel)
 {
     m_Att = att;
 }