- ServUO Version
- Publish Unknown
- Ultima Expansion
- The Second Age
Hey all I am sure this is something simple but I noticed that I cant fight with a smith hammer. I know that back in the day you could use a smith hammer as a bashing weapon like a mace. Any Idea how I can make that work? Right now I can EITHER make the hammer a tool or a weapon but I cant figure out how to make it both. It seems that when I try to add weapon attributes to the it Smithhammer it doesn't like that. It seems that the trouble is with the base class. Is there a way to make the item a dual class? BaseTool and BaseBashing?
Here is my Smithhammer script. Pretty Standard.
Id like to add this section
Do I have to make a whole new base class for this to work?
Here is my Smithhammer script. Pretty Standard.
C#:
using Server.Engines.Craft;
namespace Server.Items
{
[FlipableAttribute( 0x13E3, 0x13E4 )]
public class SmithHammer : BaseTool
{
public override CraftSystem CraftSystem{ get{ return DefBlacksmithy.CraftSystem; } }
[Constructable]
public SmithHammer() : base( 0x13E3 )
{
Weight = 8.0;
Layer = Layer.OneHanded;
}
[Constructable]
public SmithHammer( int uses ) : base( uses, 0x13E3 )
{
Weight = 8.0;
Layer = Layer.OneHanded;
}
public SmithHammer( 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();
}
}
}
Id like to add this section
C#:
public class SmithyHammer : BaseBashing
{
public override string Damage { get { return WeaponControl.Settings.SmithyHammerDamage; } }
public override int OldStrengthReq { get { return 45; } }
public override int OldMinDamage { get { return 6; } }
public override int OldMaxDamage { get { return 18; } }
public override int OldSpeed { get { return 40; } }
public override int InitMinHits { get { return 31; } }
public override int InitMaxHits { get { return 60; } }
Last edited: