mirror of
https://github.com/runuo/runuo
synced 2026-08-11 22:26:04 -04:00
- Added a CompletionNotice setting to MLQuest to replace the OnComplete overrides. - MLQuest.CanOffer now recursively checks NextQuest for OneTimeOnly/HasRestartDelay as well. - Implemented quest restart delays and enabled them on the crafting quests. - Questers offering multiple quests will no longer randomly offer quests for which CanOffer is false, as long as there are other quests for which CanOffer is true. - Added a manual Register method to MLQuestSystem for registering quests without using MLQuests.cfg (to be used in Configure). - Misc quest tweaks. - Corrected typo in cove.cfg deco file.
24 lines
527 B
C#
24 lines
527 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()
|
|
{
|
|
CompletionNotice = CompletionNoticeShort;
|
|
}
|
|
|
|
public override void GetRewards( MLQuestInstance instance )
|
|
{
|
|
if ( AwardHumanInNeed )
|
|
HumanInNeed.AwardTo( instance.Player );
|
|
|
|
base.GetRewards( instance );
|
|
}
|
|
}
|
|
}
|