bryant
Member
- 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)
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;
}
}