- ServUO Version
- Publish 57
- Ultima Expansion
- Endless Journey
Trying to find a deed or something that allows players to place an NPC of choice at their house with the ability to redeed it.. does something like this exist?
BaseHouse house = BaseHouse.GetHouseRegion( this );
if(house != null && house.IsCoOwner(from))
list.Add(new RedeedEntry(from, this));
private class RedeedEntry : ContextMenuEntry
{
private readonly Mobile _From;
private readonly Mobile _Vendor;
public RedeedEntry(Mobile from, Mobile m) : base(1151601, 2)
{
_From = from;
_Vendor = m;
}
public override void OnClick()
{
_Vendor.Delete();
_From.AddToBackpack(new HouseNPCVendor());
}
}
public class ManageAlchemistEntry : ContextMenuEntry
{
private readonly Mobile m_From;
private readonly PlayerAlchemist m_Alchemist;
public ManageAlchemistEntry(Mobile from, PlayerAlchemist alchemist)
: base(6151, 12)
{
m_From = from;
m_Alchemist = alchemist;
}
public override void OnClick()
{
m_Alchemist.BeginManagement(m_From);
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.