Arcana

Citizen
Cellar Deed/Addon

Using the above script


So I downloaded and tested this. And everything works fine for a player to place this inside his house, but.
When the player is down below, all items he drops will become hidden. No Secure/Lockdowns works and he cannot use the ladder to get out.

As staff I can see the items on the ground (I cannot secure/lockdown either)
I can use the ladder / grandfather clock to get out/down.


Looking at the console I get some red warnings about missing Ultima.dll (I have one in my folder provided by Vorspire) And some else I forgot to copy.



Is the cellar addon not suppose to support lockdowns as in your own plot? Do I own the wrong version of this?



Thank you!
 

Vorspire

Vita-Nex: Core
Administrator
It doesn't work for lockdowns by default, you need to edit the BaseHouse.IsInside() method and add this;
Code:
            if (p.Z < Z)
                return Addons.Keys.Any(a => a is CellarAddon);

Here's the surrounding code for context;
C#:
        public virtual bool IsInside(Point3D p, int height)
        {
            if (Deleted)
                return false;

            MultiComponentList mcl = Components;

            int x = p.X - (X + mcl.Min.X);
            int y = p.Y - (Y + mcl.Min.Y);

            if (x < 0 || x >= mcl.Width || y < 0 || y >= mcl.Height)
                return false;

            if (p.Z < Z)
                return Addons.Keys.Any(a => a is CellarAddon);

            if (this is HouseFoundation && y < (mcl.Height - 1))
                return true;

            StaticTile[] tiles = mcl.Tiles[x][y];
 

Arcana

Citizen
It doesn't work for lockdowns by default, you need to edit the BaseHouse.IsInside() method and add this;
Code:
            if (p.Z < Z)
                return Addons.Keys.Any(a => a is CellarAddon);

Here's the surrounding code for context;
C#:
        public virtual bool IsInside(Point3D p, int height)
        {
            if (Deleted)
                return false;

            MultiComponentList mcl = Components;

            int x = p.X - (X + mcl.Min.X);
            int y = p.Y - (Y + mcl.Min.Y);

            if (x < 0 || x >= mcl.Width || y < 0 || y >= mcl.Height)
                return false;

            if (p.Z < Z)
                return Addons.Keys.Any(a => a is CellarAddon);

            if (this is HouseFoundation && y < (mcl.Height - 1))
                return true;

            StaticTile[] tiles = mcl.Tiles[x][y];
You're a gem
 

Cormac

Citizen
I use the townhomes script to add them allowing me to set the number of lockdowns and secures based on what a players will to pay for more gold more items allowed .