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.
38 lines
783 B
C#
38 lines
783 B
C#
using System;
|
|
using Server;
|
|
using Server.Gumps;
|
|
using Server.Mobiles;
|
|
using Server.Network;
|
|
|
|
namespace Server.Engines.MLQuests.Gumps
|
|
{
|
|
public class QuestRewardGump : BaseQuestGump
|
|
{
|
|
private MLQuestInstance m_Instance;
|
|
|
|
public QuestRewardGump( MLQuestInstance instance )
|
|
: base( 1072201 ) // Reward
|
|
{
|
|
m_Instance = instance;
|
|
|
|
MLQuest quest = instance.Quest;
|
|
PlayerMobile pm = instance.Player;
|
|
|
|
CloseOtherGumps( pm );
|
|
|
|
SetTitle( quest.Title );
|
|
RegisterButton( ButtonPosition.Left, ButtonGraphic.Accept, 1 );
|
|
|
|
SetPageCount( 1 );
|
|
|
|
BuildPage();
|
|
AddRewards( quest );
|
|
}
|
|
|
|
public override void OnResponse( NetState sender, RelayInfo info )
|
|
{
|
|
if ( info.ButtonID == 1 )
|
|
m_Instance.ClaimRewards();
|
|
}
|
|
}
|
|
}
|