ML quest system; first SVN release.
Secondary changes: - Region fixes, mainly for New Haven. - Recipe system changes. - Enabled ML craftables. - Dyeing/cutting restrictions for quest items. - Moved IsInvulnerable from BaseVendor to BaseCreature. - Moved RandomBrightHue to Utility. - Items no longer decay when attached to a spawner. - Quest item hue is now faked through packets, instead of overriding Hue. - Re-enabled item drag effects for SA clients. - Fixed AssignRandomFacialHair bug in Utility. - Added random hue comments to Utility.
This commit is contained in:
parent
5c7af18dfb
commit
35fbffdb51
167 changed files with 23218 additions and 234 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using Server.Mobiles;
|
||||
using Server.Engines.MLQuests;
|
||||
|
||||
namespace Server.Spells.Spellweaving
|
||||
{
|
||||
|
|
@ -21,5 +22,24 @@ namespace Server.Spells.Spellweaving
|
|||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue