ServUO Version
Publish 57
Ultima Expansion
Endless Journey
All of the town's npc's are in a state where they can't attack. I'm wondering where is the scrip to unlock this invincibility.I'd like to switch to a state where I can attack npcs.
 
You'll want to look in Scripts/Misc/Notoriety.cs

This one is for BaseVendor.


Change line 293 to Return Notoriety.Innocent

If you use the Felucca ruleset then they are attackable but will turn the player who attacks criminal.
If you want AI to report murders change this to true.

 
Last edited:
You'll want to look in Scripts/Misc/Notoriety.cs

This one is for BaseVendor.


Change line 293 to Return Notoriety.Innocent

If you use the Felucca ruleset then they are attackable but will turn the player who attacks criminal.
If you want AI to report murders change this to true.

1123.jpg
public static int MobileNotoriety(Mobile source, IDamageable damageable)
{
if (damageable is PublicMoongate)
{
return Notoriety.Innocent;
}

var target = damageable as Mobile;

if (target == null)
return Notoriety.CanBeAttacked;

if (Core.AOS)
{
if (target.Blessed)
return Notoriety.Invulnerable;

if (target is BaseVendor && ((BaseVendor)target).IsInvulnerable)
return Notoriety.Innocent;

if (target is PlayerVendor || target is TownCrier)
return Notoriety.Invulnerable;
}
Thank you for your reply. I changed it as you told me and checked it, and I still can't attack npc. I've experimented in the Felucca area and I wonder why I can't attack npc like the picture above. (The area in the picture is Feluca. The reason why trees have leaves is because they set the season of the Felucca region as spring.)
 
Wow! It works fine. It's perfect.Thank you very much for letting me know.
I'm sorry. Can I ask you one more question? Why doesn't Karma or fame go down when you kill Bluenpc? I'd like to let fame and karma fall when I kill a good npc like this.
Are you testing it as a player character or as a staff character?
 
Back