Resource icon

Scripting New Houses

Requirements
uoFiddler,Multi.mul,Multi.idx
how,do i add new classic houses once i insert a .uoa binary file

Deeds.cs // modal after Castles
Code:
    public class NewCastleDeed : HouseDeed//new
    {
        [Constructable]
        public NewCastleDeed()
            : base(0x48, new Point3D(0, 16, 0))
        {
        }

        public NewCastleDeed(Serial serial)
            : base(serial)
        {
        }

        public override int LabelNumber
        {
            get
            {
                return 1041224;
            }
        }
        public override Rectangle2D[] Area
        {
            get
            {
                return NewCastle.AreaArray;
            }
        }
        public override BaseHouse GetHouse(Mobile owner)
        {
            return new NewCastle(owner);
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }
    }

    public class GuildCastleDeed : HouseDeed// new
    {
        [Constructable]
        public GuildCastleDeed()
            : base(0x4A, new Point3D(0, 16, 0))
        {
        }

        public GuildCastleDeed(Serial serial)
            : base(serial)
        {
        }

        public override int LabelNumber
        {
            get
            {
                return 1041224;
            }
        }
        public override Rectangle2D[] Area
        {
            get
            {
                return GuildCastle.AreaArray;
            }
        }
        public override BaseHouse GetHouse(Mobile owner)
        {
            return new GuildCastle(owner);
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }
    }
Houses.cs
Code:
    public class NewCastle : BaseHouse // modeled after Castles - new
    {
        public static Rectangle2D[] AreaArray = new Rectangle2D[] { new Rectangle2D(-12, -13, 12, 12), new Rectangle2D(-1, 16, 4, 1) };
        public NewCastle(Mobile owner)
            : base(0x48, owner, 4076, 28)
        {
            uint keyValue = this.CreateKeys(owner);

            //this.AddSouthDoors(false, 0, 15, 6, keyValue);

            this.SetSign(5, 17, 16);

            //this.AddSouthDoors(false, 0, 11, 6, true);
            //this.AddSouthDoors(false, 0, 5, 6, false);
            //this.AddSouthDoors(false, -1, -11, 6, false);
        }

        public NewCastle(Serial serial)
            : base(serial)
        {
        }

        public override int DefaultPrice
        {
            get
            {
                return 1022800;
            }
        }
        public override Rectangle2D[] Area
        {
            get
            {
                return AreaArray;
            }
        }
        public override Point3D BaseBanLocation
        {
            get
            {
                return new Point3D(5, 17, 0);
            }
        }
        public override HouseDeed GetDeed()
        {
            return new NewCastleDeed();
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write((int)0);//version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();
        }
    }

    public class GuildCastle : BaseHouse
    {
        public static Rectangle2D[] AreaArray = new Rectangle2D[] { new Rectangle2D(-12, -13, 12, 12), new Rectangle2D(-1, 16, 4, 1) };
        public GuildCastle(Mobile owner)
            : base(0x4A, owner, 4076, 28)
        {
            uint keyValue = this.CreateKeys(owner);

            //this.AddSouthDoors(false, 0, 15, 6, keyValue);

            this.SetSign(5, 17, 16);

            //this.AddSouthDoors(false, 0, 11, 6, true);
            //this.AddSouthDoors(false, 0, 5, 6, false);
            //this.AddSouthDoors(false, -1, -11, 6, false);
        }

        public GuildCastle(Serial serial)
            : base(serial)
        {
        }

        public override int DefaultPrice
        {
            get
            {
                return 10862800;
            }
        }
        public override Rectangle2D[] Area
        {
            get
            {
                return AreaArray;
            }
        }
        public override Point3D BaseBanLocation
        {
            get
            {
                return new Point3D(5, 17, 0);
            }
        }
        public override HouseDeed GetDeed()
        {
            return new GuildCastleDeed();
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write((int)0);//version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();
        }
    }
when i try to add the deed i just see invis houses

*above is just new added snippets of code to the allocated .cs file

Please help, not sure what all int numbers are Example
Code:
:          : base(0x4A, owner, 4076, 28
whats 4076,28 for and also whats the last Rectangle int Number for
Code:
        public static Rectangle2D[] AreaArray = new Rectangle2D[] { new Rectangle2D(-12, -13, 12, 12), new Rectangle2D(-1, 16, 4, 1) };
Author
demented
Views
400
First release
Last update
Rating
0.00 star(s) 0 ratings