Resource icon

Oldschool Viewable Locked Down House Containers

I noticed at some point UO changed the way Container in Houses were handled. At one time it was so that if someone Locked Down a Container instead of Securing it, anyone could view into it obviously not being allowed to alter it's contents. Essentially allowing them to function as display cases.

I found at some point on one of the Forums for UO Emulators a Single Line Edit someone did to return this property.


Scripts/Items/Containers/Container.cs
Line 54
C#:
public override bool IsAccessibleTo(Mobile m)
        {
            if (!BaseHouse.CheckAccessible(m, this) )
            return false; //Line 54 Change to true.

            return base.IsAccessibleTo(m);
        }

Mine looks as follows:
C#:
public override bool IsAccessibleTo(Mobile m)
        {
            //Old-School Viewable Locked Down Containers?
          
            if (!BaseHouse.CheckAccessible(m, this) )
            return true;//** allow anyone to access non-secured lock down container
            //return false;

            return base.IsAccessibleTo(m);
        }

Be mindful one has to set the security of the container "Locked Down" to Everyone still but that just controls who can open a container not who can "Un-lock Down" a container.
Author
Sareus
Views
281
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Sareus