Files
The-Forging/Scripts/Gumps/HonorSelf.cs
T

33 lines
929 B
C#
Raw Normal View History

2026-06-19 00:00:16 -04:00
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;
}
}
}
}