v0.0.1-Alpha (#42)
This commit is contained in:
parent
d30f93c454
commit
a36796c2c1
3552 changed files with 2476 additions and 15223 deletions
36
Projects/Scripts/Engines/MLQuests/Gumps/QuestRewardGump.cs
Normal file
36
Projects/Scripts/Engines/MLQuests/Gumps/QuestRewardGump.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue