public void ValidatePlacement() { BaseHouse house = BaseHouse.FindHouseAt(this); if (house == null) { HolidayTreeDeed deed = new HolidayTreeDeed(); deed.MoveToWorld(Location, Map); Delete(); } }
public HolidayTreeChoiceGump(Mobile from, HolidayTreeDeed deed) : base(200, 200) { m_From = from; m_Deed = deed; AddPage(0); AddBackground(0, 0, 220, 120, 5054); AddBackground(10, 10, 200, 100, 3000); AddButton(20, 35, 4005, 4007, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(55, 35, 145, 25, 1018322, false, false); // Classic AddButton(20, 65, 4005, 4007, 2, GumpButtonType.Reply, 0); AddHtmlLocalized(55, 65, 145, 25, 1018321, false, false); // Modern }