Azulai
Sorceror
How to change House Limit.
In the script BaseHouse.cs which is located Scripts/Multis/BaseHouse.cs find this code:
Now... Replace Everything Under that bool to say this:
And Whala! Works like a charm. I wouldn't Have posted this FAQ if people would use the search button. I have been asked about 14 times how to do this so. Enjoy!
In the script BaseHouse.cs which is located Scripts/Multis/BaseHouse.cs find this code:
Code:
public static bool HasAccountHouse( Mobile m )
Now... Replace Everything Under that bool to say this:
Code:
{
Account a = m.Account as Account;
if ( a == null )
return false;
ArrayList allHouses = new ArrayList();
for ( int i = 0; i < a.Length; ++i )
{
Mobile mob = a[i];
if ( mob != null )
allHouses.AddRange( GetHouses( mob ) );
}
//[COLOR="red"]3 means 4 house limit. Same thing with any number. You want 2 houses? Set it to 1.[/COLOR]
if(allHouses.Count > 3) return true;
//for ( int i = 0; i < a.Length; ++i )
// if ( a[i] != null && HasHouse( a[i] ) )
// return true;
return false;
}
And Whala! Works like a charm. I wouldn't Have posted this FAQ if people would use the search button. I have been asked about 14 times how to do this so. Enjoy!