Chucl

Member
ServUO Version
Publish Unknown
Ultima Expansion
Renaissance
is there an example or code that i can check, i really dont know how houseregions are made, ive been checking houseplacementtool but i dont understand how it works
 
Sure,

First you need a multi for your houseregion (to the best of my knowledge)
My Fiddler says that tent is 0x70

Then you go to Houses.cs in your Multi folder

C#:
 public class Tent : BaseHouse
 {
     public static Rectangle2D[] AreaArray = new Rectangle2D[] { new Rectangle2D(0, 0, 0, 0) }; // House Bounds
     public Tent(Mobile owner)
         : base(0x70, owner, 1100, 8) // Multi
     {
         uint keyValue = CreateKeys(owner);

       //  AddEastDoor(4, 0, 5, keyValue);
        // AddEastDoor(3, 0, 5, keyValue);

         SetSign(0, 0, 0);

         //AddEastDoor(0, 0, 0);
         //AddEastDoor(0, 0, 0);;
        //AddEastDoor(0, 0, 0);
        // AddEastDoor(0, 0, 0);
     }

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

     public override int DefaultPrice
     {
         get
         {
             return 500000000;
         }
     }
     public override HousePlacementEntry ConvertEntry
     {
         get
         {
             return HousePlacementEntry.TwoStoryFoundations[0];
         }
     }
     public override Rectangle2D[] Area
     {
         get
         {
             return AreaArray;
         }
     }
     public override Point3D BaseBanLocation
     {
         get
         {
             return new Point3D0(0, 0, 0);
         }
     }
     public override HouseDeed GetDeed()
     {
         return new TentDeed();
     }

     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();
     }
 }

Not 100% sure here, but a good way to start
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back