The console says that "=" (invalid token)
I tried in this mode ; (1116792 number of magic wood on my uofiddler saved and put the cliloc on the UO directory, but when I add the item appears the Dead Wood name not the Magic Wood … :|
namespace Server.Items
{
public class MagicWood : BaseReagent, ICommodity
{
int ICommodity.DescriptionNumber { get { return 1116792; } }
bool ICommodity.IsDeedable { get { return true; } }
[Constructable]
public MagicWood() : this(1)
{
Hue = 150;
}
[Constructable]
public MagicWood(int amount) : base(0xF90, amount)
{
}
public MagicWood(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();
}
}
}
[doublepost=1548773856][/doublepost]I tried in this mode how you said
public class MagicWood : BaseReagent, ICommodity
{
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
public override string DefaultName = "Magic Wood"; // not supported by clients using German CliLoc.
[Constructable]
public MagicWood() : this(1)
{
Hue = 150;
}
[Constructable]
public MagicWood(int amount) : base(0xF90, amount)
{
}
public MagicWood(Serial serial) : base(serial)
{
}
}
/*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();
}
}
} */
ERROR ; Line 11: The 'override' modifier is not valid for this element.
[doublepost=1548775389][/doublepost]OK Grim in this mode works, I use the poolofacid .
Now I try with the cliloc
using System;
using Server;
using Server.Items;
namespace Server.Items
{
public class MagicWood : BaseReagent, ICommodity
{
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
public override string DefaultName { get { return "Magic Wood"; } }
[Constructable]
public MagicWood() : this( 1 )
{
}
[Constructable]
public MagicWood( int amount ) : base( 0xF90, amount )
{
hue = 150;
}
public MagicWood( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
}
public override void Deserialize( GenericReader reader )
{
}
}
}
[doublepost=1548776337][/doublepost]In that mode with the cliloc code dont works… very strange..