ModernUO/Scripts/Engines/MLQuests/Gumps/QuestReportBackGump.cs
eos 3b94a24a9a - Enabled quests that were locked due to issues.
- 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.
2013-02-08 16:54:36 +00:00

40 lines
942 B
C#

using System;
using Server;
using Server.Gumps;
using Server.Mobiles;
using Server.Network;
namespace Server.Engines.MLQuests.Gumps
{
public class QuestReportBackGump : BaseQuestGump
{
private MLQuestInstance m_Instance;
public QuestReportBackGump( MLQuestInstance instance )
: base( 3006156 ) // Quest Conversation
{
m_Instance = instance;
MLQuest quest = instance.Quest;
PlayerMobile pm = instance.Player;
// TODO: Check close sequence
CloseOtherGumps( pm );
SetTitle( quest.Title );
RegisterButton( ButtonPosition.Left, ButtonGraphic.Continue, 4 );
RegisterButton( ButtonPosition.Right, ButtonGraphic.Close, 3 );
SetPageCount( 1 );
BuildPage();
AddConversation( quest.CompletionMessage );
}
public override void OnResponse( NetState sender, RelayInfo info )
{
if ( info.ButtonID == 4 )
m_Instance.ContinueReportBack( true );
}
}
}