- ServUO Version
- Publish 57
- Ultima Expansion
- Mondain's Legacy
C#:
public class SmallShop : BaseHouse
{
public static Rectangle2D[] AreaArray1 = new Rectangle2D[] { new Rectangle2D(-3,-3,7,7), new Rectangle2D(-1, 4, 4, 1) };
public static Rectangle2D[] AreaArray2 = new Rectangle2D[] { new Rectangle2D(-3,-3,7,7), new Rectangle2D(-2, 4, 3, 1) };
public SmallShop(Mobile owner, int id)
: base(id, owner, 425, 3)
{
uint keyValue = CreateKeys(owner);
BaseDoor door = MakeDoor(false, DoorFacing.EastCW);
door.KeyValue = keyValue;
if (door is BaseHouseDoor)
((BaseHouseDoor)door).Facing = DoorFacing.EastCCW;
AddDoor(door, -2, 0, id == 0xA2 ? 24 : 27);
//AddSouthDoor( false, -2, 0, 27 - (id == 0xA2 ? 3 : 0), keyValue );
SetSign(3, 4, 7 - (id == 0xA2 ? 2 : 0));
}
So if I make my own Multi (house) How do I know in an easy way where to place the sign / and doors.
I mean, I understand this part:
AddDoor(door, -2, 0, id == 0xA2 ? 24 : 27);
But, it still I dont understand it.