In RunUO 2.3 whenever I lock a container down it shows secure to others. I want locked down containers to be accessible to everyone and only secure containers secure. I have been playing with the BaseHouse.cs trying to make this work. Would this be the right place to fix this problem?
Code:
public static bool CheckAccessible( Mobile m, Item item )
{
if ( m.AccessLevel >= AccessLevel.GameMaster )
return true; // Staff can access anything
BaseHouse house = FindHouseAt( item );
if ( house == null )
return true;
SecureAccessResult res = house.CheckSecureAccess( m, item );
switch ( res )
{
case SecureAccessResult.Insecure: break;
case SecureAccessResult.Accessible: return true;
case SecureAccessResult.Inaccessible: return false;
}
if ( house.IsLockedDown( item ) )
return house.IsCoOwner( m ) && item is Container;
return true;
}