I get this error
Errors:
+ Customs / Mobs pets artys / GF V1.0.0a / Custom GF / Summons / Alexander / AlexanderSpell.cs:
CS0534: Line 8: 'Server.Spells.GFs.AlexanderSpell' does not implement the inherited abstract member 'Server.Spells.Spell.CastDelayBase.get'

with this script

Code:
using System;
using Server.Mobiles;
using Server.Network;
using Server.Targeting;

namespace Server.Spells.GFs
{
    public class AlexanderSpell : GFSpell
    {
        private static SpellInfo m_Info = new SpellInfo(
                "Alexander Guard", "Ale Xan Der Ylem",
                SpellCircle.Eighth,
                269,
                9020,
                false
            );

        public AlexanderSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
        {
        }

            public override double CastDelay{ get{ return 0.5; } }
              public override double RequiredSkill{ get{ return 50.0; } }
              public override int RequiredMana{ get{ return 50; } }

        public override bool CheckCast()
        {
            if ( !base.CheckCast() )
                return false;

            if ( (Caster.Followers + 4) > Caster.FollowersMax )
            {
                Caster.SendLocalizedMessage( 1049645 ); // You have too many followers to summon that creature.
                return false;
            }

            return true;
        }

        public override void OnCast()
        {
            if ( CheckSequence() )
            {
                TimeSpan duration = TimeSpan.FromSeconds( (2 * Caster.Skills.Magery.Fixed) / 5 );

                if ( Core.AOS )
                    SpellHelper.Summon( new SummonedAlexander(), Caster, 0x217, duration, false, false );
                else
                    SpellHelper.Summon( new SummonedAlexander(), Caster, 0x217, duration, false, false );
            }

            FinishSequence();
        }
    }
}

Something wrong in spell.cs about castdelay?

Thx for support
 
Any abstract property defined in an abstract class must be implemented by any subclass derived from the abstract one.

eg:
Code:
abstract class AnimalMorphSpell
{
    public abstract string AnimalType{ get; };
}

class ChickenMorphSpell: AnimalMorphSpell
{
   public override string AnimalType{ get{ return "Chicken"; } };
}

class CowMorphSpell : AnimalMorphSpell
{
}

Here, ChickenMorphSpell correctly inherits the abstract property AnimalType, but CowMorphSpell will get the same error as you - 'Server.Spells.CowMorphSpell' does not implement the inherited abstract member 'Server.Spells.AnimalMorphSpell.AnimalType.get'

To fix you would need to implement AnimalType in CowMorphSpell by overriding it.

Code:
class CowMorphSpell : AnimalMorphSpell
{
   public override string AnimalType{ get{ return "Cow"; } };
}

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/abstract
 
Back