Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
33
Scripts/Gumps/HonorSelf.cs
Normal file
33
Scripts/Gumps/HonorSelf.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
using Server.Services.Virtues;
|
||||
|
||||
namespace Server.Gumps
|
||||
{
|
||||
public class HonorSelf : Gump
|
||||
{
|
||||
readonly PlayerMobile m_from;
|
||||
public HonorSelf(PlayerMobile from)
|
||||
: base(150, 50)
|
||||
{
|
||||
this.m_from = from;
|
||||
this.AddBackground(0, 0, 245, 145, 9250);
|
||||
this.AddButton(157, 101, 247, 248, 1, GumpButtonType.Reply, 0);
|
||||
this.AddButton(81, 100, 241, 248, 0, GumpButtonType.Reply, 0);
|
||||
this.AddHtml(21, 20, 203, 70, @"Are you sure you want to use honor points on yourself?", true, false);
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
{
|
||||
if (info.ButtonID == 1)
|
||||
{
|
||||
HonorVirtue.ActivateEmbrace(this.m_from);
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user