Got a good one for ya... my character(s) wont attack anything. They will target, make it turn gray *or red but wont swing a weapon/wrestle at all ( I can cast spells and be just fine ) Any help to resolve this would most welcome.
public override void OnHit( Mobile attacker, Mobile defender )
{
base.OnHit( attacker, defender );
if (attacker.Skills[SkillName.Blacksmith].Value >= 100 && Utility.Random((int)attacker.Skills[SkillName.Blacksmith].Value - 40) >= 20)
{
int damage = Utility.RandomMinMax(10,25);
defender.SendMessage( 33, "The Smithers Protector smelted you and you lost {0} HP", damage );
defender.Hits -= damage;
attacker.SendMessage( 33, "The Smithers Protector smelted your opponent and delivered {0} extra damage", damage );
attacker.PlaySound( 0x308 );
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.