Lord Leo

Member
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
I have a script to generate an NPC but he's always 'friendly'. What do I need to do to the script (or the xmlspawner) to make him hostile to players?
 
In the script, you change the FightMode to Closest. BaseCreature.cs is a great resource to learn all of the creature basics.
 
That did the trick thank you - next question. The NPC is spawning and attacking players, but if I attack it first it flags me as a criminal. Is there a setting to flag the spawned NPC as 'bad' instead of 'good'?
 
Make sure the karma is a negative number. Like:

Karma = -1000;

Also, in the script, you can add:

public override bool AlwaysMurderer => true;

This will keep them red.
 

Active Shards

Donations

Total amount
$50.00
Goal
$1,000.00
Back