How does one NPC determine to fight another NPC? Is it based on karma? I can't seem to identify anything in the scripts other than karma that defines the 'bad' guys and the 'good' guys.
 
search basecreature.cs for OppositionGroup

also check the following
ServUO-master\Scripts\Mobiles\AI\OppositionGroup.cs

also it can be overridden in a script by adding something along these lines in a creatures script (from AncientLich.cs)
C#:
public override TribeType Tribe { get { return TribeType.Undead; } }

        public override OppositionGroup OppositionGroup
        {
            get
            {
                return OppositionGroup.FeyAndUndead;
            }
        }
 
Back