Barclay

Member
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;
            }
        }
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back