RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Houses per account help..

Nozgo1

Sorceror
To change the amount of houses per account without using admin to add them..
BaseHouse.cs line 3248 in 2.3 or line 3076 in 2.2 (same line, diff location...)
for ( int i = 0; i < list.Count; ++i )
Change the 0 to a 1 for 2 houses per account, cause 0=1 here, and 1=2 blah blah blah....

Make sure you make the change in the section shown below

Code (text):
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;

// # of Houses per Account 0=1, 1=2, 2=3 per account etc etc
for ( int i = 2; i < list.Count; ++i )
{
BaseHouse h = list;

if ( !h.Deleted )
return true;
}

return false;
}
If you change it in under the :
public static bool HasAccountHouse( Mobile m )
It will not do what you want it to do ... The HasHouseAccount section is right below the HasHouse section do not make the change in the wrong section.

Make sure to mention what version of RunUO your using, cause it maters a lot when it come to getting the correct answers.
 

jargo2000

Sorceror
So if I understand this right....


Code:
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;
 
            for ( int i = 0; i < list.Count; ++i )
            {
                BaseHouse h = list[i];
 
                if ( !h.Deleted )
                    return true;
            }
 
            return false;
        }

should be changed to this for 3 houses per account....

Code:
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;
 
           
for ( int i = 3; i < list.Count; ++i )
            {
                BaseHouse h = list[i];
 
                if ( !h.Deleted )
                    return true;
            }
 
            return false;
        }
 
Top