I would like to make it so only co-owners and owners may refresh a grandfathered house. Anyone care to help?
Much appreciated!
Much appreciated!
public void ShowSign(Mobile m)
{
if (this.m_Owner != null)
{
if (this.m_Owner.IsFriend(m) && m.AccessLevel < AccessLevel.GameMaster)
{
#region Mondain's Legacy
if ((Core.ML && this.m_Owner.IsOwner(m)) || !Core.ML)
this.m_Owner.RefreshDecay();
#endregion
-chop-
if (this.m_Owner.IsFriend(m) && m.AccessLevel < AccessLevel.GameMaster)
if (this.m_Owner.IsOwner(m) && m.AccessLevel < AccessLevel.GameMaster)
public override void OnOpened(Mobile from)
{
BaseHouse house = FindHouse();
if (house != null && house.IsFriend(from) && from.IsPlayer() && house.RefreshDecay())
from.SendLocalizedMessage(1043293); // Your house's age and contents have been refreshed.
if (!Core.AOS && house != null && house.Public && !house.IsFriend(from))
house.AddVisit(from);
}
&& house.IsFriend(from) &&
public override void OnEnter(Mobile m)
{
if (m.AccessLevel == AccessLevel.Player && m_House != null && m_House.IsFriend(m))
{
if (Core.AOS && m_House is HouseFoundation)
{
m_House.RefreshDecay();
}
}
&& m_House.IsFriend(m)
m_House.IsOwner(m)
We use essential cookies to make this site work, and optional cookies to enhance your experience.