Mortis Originally posted this, but thought it might be useful to bring back to the FAQ forum for others to find easily. This mod goes in playermobile.cs.
What this does it auto defends and attacks anything that attacks you first. If you are in a group, and you get attacked, but bring the first attacker down enough that it flees, then you will auto-attack the next attacker in range.
Code:
public override void OnDamage( int amount, Mobile from, bool willKill )
{
if ( amount > (Core.AOS ? 25 : 0) )
{
BandageContext c = BandageContext.GetContext( this );
if ( c != null )
c.Slip();
}
///////////////////////ADDED////////////////////
if (this.Combatant == null || !this.Combatant.Alive || !this.Combatant.InRange( this, 3 ))
this.Combatant = from;
////////////////////////////////ADDED////////////////////
WeightOverloading.FatigueOnDamage( this, amount );
base.OnDamage( amount, from, willKill );
}