ServUO Version
Publish Unknown
Ultima Expansion
Samurai Empire
if anyone has a free moment to help
This is what I get in console and the item is not created.

System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.BaseChair.OnLocationChange(Point3D oldLocation)
at Server.Item.MoveToWorld(Point3D location, Map map)
at Server.Scripts.Commands.Add.Build(Mobile from, Point3D start, Point3D end, ConstructorInfo ctor, Object[] values, String[,] props, PropertyInfo[] realProps, ArrayList packs)

C#:
    [Flipable(0x3D13, 0x3D14, 0x3D15, 0x3D16)]
    [FlipableDirections(ChairDirection.West, ChairDirection.South, ChairDirection.East, ChairDirection.North)]
    public class ValentinesChairHued : BaseChair
    {
        [Constructable]
        public ValentinesChairHued() : this( Utility.RandomDyedHue() )
        {
        }
       
        [Constructable]
        public ValentinesChairHued( int hue ) : base(0x3D13)
        {
            Name = "Wireframe Chair";
            this.Weight = 10.0;
            Hue = hue;
        }

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

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

            writer.Write((int)0);
        }

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

            int version = reader.ReadInt();

            if (this.Weight == 6.0)
                this.Weight = 10.0;
        }
    }
 
Well it is not the full file, and from the snippet it looks fine.

Could you share the whole file (I know it shouldnt be missing much)
Also run the server in debug mode (there is the debug bat that should get you started), then you will get a line number
 
I'm sorry I found the problem, thanks for the quick response!
public ValentinesChairHued( int hue ) : base(0x3D13)
to
public ValentinesChairHued( int hue ) : base(0x3D13, ChairDirection.West )
 
Back