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.
28 lines
646 B
C#
28 lines
646 B
C#
using System;
|
|
using Server;
|
|
|
|
namespace Server.Engines.MLQuests.Definitions
|
|
{
|
|
// Base class for escorts providing the AwardHumanInNeed option
|
|
public class BaseEscort : MLQuest
|
|
{
|
|
public virtual bool AwardHumanInNeed { get { return true; } }
|
|
|
|
public BaseEscort()
|
|
{
|
|
}
|
|
|
|
public override void OnComplete( MLQuestInstance instance )
|
|
{
|
|
instance.Player.SendLocalizedMessage( 1046258, "", 0x23 ); // Your quest is complete.
|
|
}
|
|
|
|
public override void GetRewards( MLQuestInstance instance )
|
|
{
|
|
if ( AwardHumanInNeed )
|
|
HumanInNeed.AwardTo( instance.Player );
|
|
|
|
base.GetRewards( instance );
|
|
}
|
|
}
|
|
}
|