ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Criminal when the play character karma value is less than or equal to zero
So that it can be murdere when it's less than -1000
I want to make a script
I've been searching by myself for hours, but I can't find an answer
I'm asking for your help Can you help me with which script and which command I should put in?
 
you could maybe change this line in Mobile.cs;

public virtual bool Murderer { get { return m_Kills >= 5; } }

to say;
m_Karma <= -1000; } }


this should make all mobiles with negative karma be murderers.

If you want just players to be murderers you would need to add something into the player mobile code.
 
you could maybe change this line in Mobile.cs;

public virtual bool Murderer { get { return m_Kills >= 5; } }

to say;
m_Karma <= -1000; } }


this should make all mobiles with negative karma be murderers.

If you want just players to be murderers you would need to add something into the player mobile code.
Thank you for the good information
But what I want is
I want only the player to be activated
 
try adding
public override bool Murderer { get { return karma <= 0; } }
to playermobile.
although I'm pretty sure this makes all negative karma players murderers meaning
  • You may not travel by recall, sacred journey, gate travel spell or public moongate to any area governed by the Trammel rule set.
  • NPC merchants will not sell goods to you
  • You may not gain ‘virtue’ or use virtue abilities
  • Anyone can attack you without becoming criminal
  • Guards will not protect you if you are attacked in a guard zone
  • Wandering Healers will not resurrect you, you must find a Priest of Mondain to perform this function for you
  • Virtue shrines will not resurrect you, only the Chaos shrine will perform this function
  • Pets and summons will share your ‘red’ status and are also freely attackable
 
try adding
public override bool Murderer { get { return karma <= 0; } }
to playermobile.
although I'm pretty sure this makes all negative karma players murderers meaning
  • You may not travel by recall, sacred journey, gate travel spell or public moongate to any area governed by the Trammel rule set.
  • NPC merchants will not sell goods to you
  • You may not gain ‘virtue’ or use virtue abilities
  • Anyone can attack you without becoming criminal
  • Guards will not protect you if you are attacked in a guard zone
  • Wandering Healers will not resurrect you, you must find a Priest of Mondain to perform this function for you
  • Virtue shrines will not resurrect you, only the Chaos shrine will perform this function
  • Pets and summons will share your ‘red’ status and are also freely attackable
Thank you for your answer
But there's an error during compilation
It doesn't work..

Errors:
+ + Mobiles/PlayerMobile.cs:
CS0103: Line 211: The name 'm_Karma' does not exist in the current context
Scripts: One or more scripts failed to compile or no script files were found.


I solved it!
Since I erased the M
It's working well. Thank you so much!!
try adding
public override bool Murderer { get { return karma <= 0; } }
to playermobile.
although I'm pretty sure this makes all negative karma players murderers meaning
  • You may not travel by recall, sacred journey, gate travel spell or public moongate to any area governed by the Trammel rule set.
  • NPC merchants will not sell goods to you
  • You may not gain ‘virtue’ or use virtue abilities
  • Anyone can attack you without becoming criminal
  • Guards will not protect you if you are attacked in a guard zone
  • Wandering Healers will not resurrect you, you must find a Priest of Mondain to perform this function for you
  • Virtue shrines will not resurrect you, only the Chaos shrine will perform this function
  • Pets and summons will share your ‘red’ status and are also freely attackable
 
Last edited:
public override bool Criminal

{
get
{
return base.Criminal;
}
set
{
bool crim = base.Criminal;
base.Criminal = value;

if (value != crim)
{
if (value)
BuffInfo.AddBuff(this, new BuffInfo(BuffIcon.CriminalStatus, 1153802, 1153828));
else
BuffInfo.RemoveBuff(this, BuffIcon.CriminalStatus);
}


}
}
May I ask you one more question?

in the plyermobile.cs script above

I'd like to insert an if door so that it becomes a Criminal when Karma-1000

What command should I put in

It's hard for me, so I'm asking you a question
 
Back