CODE |
public static bool HasAccountHouse( Mobile m ) { Account a = m.Account as Account; if ( a == null ) return false; for ( int i = 0; i < a.Length; ++i ) if ( a[i] != null && HasHouse( a[i] ) ) return true; return false; } |
CODE |
public static bool HasAccountHouse(Mobile m) { // ARTEGORDONMOD // unlimited housing for the specified staff level and above if (m.AccessLevel >= AccessLevel.GameMaster) return false; Account a = m.Account as Account; if (a == null) return false; // ARTEGORDONMOD // allow for a limited number of houses for the rest int nHouses = 0; for (int i = 0; i < a.Length; ++i) { Mobile mob = a[i]; if (mob != null) nHouses += GetHouses(mob).Count; } // 4 houses per account limit if (nHouses >= 2) return true; return false; } |