You'll want to look in Scripts/Misc/Notoriety.cs
This one is for BaseVendor.
ServUO/Scripts/Misc/Notoriety.cs at 493fde408ae48752bcd2bb899d2a2e42055b22c7 · ServUO/ServUO
An Ultima Online server emulator written in C# .NET - ServUO/ServUOgithub.com
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.
ServUO/Scripts/Gumps/ReportMurderer.cs at 493fde408ae48752bcd2bb899d2a2e42055b22c7 · ServUO/ServUO
An Ultima Online server emulator written in C# .NET - ServUO/ServUOgithub.com
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.)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;
}
Wow! It works fine. It's perfect.Thank you very much for letting me know.Try changing this to false
ServUO/Scripts/Mobiles/NPCs/BaseVendor.cs at 493fde408ae48752bcd2bb899d2a2e42055b22c7 · ServUO/ServUO
An Ultima Online server emulator written in C# .NET - ServUO/ServUOgithub.com
Are you testing it as a player character or as a staff character?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.
I tested it with a player character. It was my mistake. Thank you for your answer I solved other questions.Thank you!Are you testing it as a player character or as a staff character?
We use essential cookies to make this site work, and optional cookies to enhance your experience.