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
40
Scripts/Engines/MLQuests/Gumps/QuestReportBackGump.cs
Normal file
40
Scripts/Engines/MLQuests/Gumps/QuestReportBackGump.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue