Lord Leo Member Jun 8, 2024 #1 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?
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?
WorryGhost Member Jun 8, 2024 #2 In the script, you change the FightMode to Closest. BaseCreature.cs is a great resource to learn all of the creature basics.
In the script, you change the FightMode to Closest. BaseCreature.cs is a great resource to learn all of the creature basics.
OP Lord Leo Member Jun 8, 2024 #3 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'?
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'?
WorryGhost Member Jun 8, 2024 #4 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.
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.