Yvan Major
Member
I am wondering how to move 2 houses side by side, anyone know how to do that please ?
Thanks !
Thanks !
You can place a house right next to another with some practice- there is also a command which you can use [area interface where basehouse
This will give you a target to target the outside of one corner on each side of the house
Once this is completed a small gump which come up with House Foundation click this open then you would use Move To Target
Which gives another target to place on either side of the house for the direction to move the house
private static int m_AccountHouseLimit = Config.Get("Housing.AccountHouseLimit", 2);
public static bool HasAccountHouse(Mobile m)
{
Account a = m.Account as Account;
if (a == null)
return false;
if(HasHouse(m))
{
return true;
}
int count = 0;
for (int i = 2; i < a.Length; ++i)
{
if (a[i] != null && HasHouse(a[i]))
{
++count;
}
}
return count >= m_AccountHouseLimit;
}
You changed the default value. Don't do that. Change the value in Config/Housing.cfg
# Number of houses allowed per account
# Note that only the most recently placed house will auto-refresh
AccountHouseLimit=2
Are you trying to place the house on the same character? Any given character may only own one house. The AccountHouseLimit setting allows multiple characters on the same account to own a house.
public static bool HasHouse(Mobile m)
{
if (m == null)
return false;
List<BaseHouse> list = null;
m_Table.TryGetValue(m, out list);
if (list == null)
return false;
// Would equal 3 houses
for (int i = 2; i < list.Count; ++i)
{
BaseHouse h = list[i];
if (!h.Deleted)
return true;
}
return false;
}
I did and its still not allowing more than 1 house on the same character. Or maybe it does but it doesn't allow a "player" with the house placement tool to place a second one.If you still want to do it you just have to change the number I wrote in my post.
We use essential cookies to make this site work, and optional cookies to enhance your experience.