#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.

This commit is contained in:
WarrentyExpired 2026-08-06 11:06:05 -04:00
parent b51c58f514
commit 3045c83799
3512 changed files with 627673 additions and 0 deletions

View file

@ -0,0 +1,45 @@
using System;
using Server.Mobiles;
using Server.Engines.MLQuests;
namespace Server.Spells.Spellweaving
{
public class SummonFiendSpell : ArcaneSummon<ArcaneFiend>
{
private static SpellInfo m_Info = new SpellInfo(
"Summon Fiend", "Nylisstra",
-1
);
public override TimeSpan CastDelayBase { get { return TimeSpan.FromSeconds( 2.0 ); } }
public override double RequiredSkill { get { return 38.0; } }
public override int RequiredMana { get { return 10; } }
public SummonFiendSpell( Mobile caster, Item scroll )
: base( caster, scroll, m_Info )
{
}
public override int Sound { get { return 0x216; } }
public override bool CheckSequence()
{
Mobile caster = Caster;
// This is done after casting completes
if ( caster is PlayerMobile )
{
MLQuestContext context = MLQuestSystem.GetContext( (PlayerMobile)caster );
if ( context == null || !context.SummonFiend )
{
caster.SendLocalizedMessage( 1074564 ); // You haven't demonstrated mastery to summon a fiend.
return false;
}
}
return base.CheckSequence();
}
}
}