Files
abysmal-isle/Scripts/Gumps/HonorSelf.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

33 lines
929 B
C#

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;
}
}
}
}