Karack
Member
I get this error
with this script
Something wrong in spell.cs about castdelay?
Thx for support
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