- ServUO Version
- Publish Unknown
- Ultima Expansion
- Stygian Abyss
Ok this might be a simple question. I have a custom stat in my custom player mobile Charisma in my titles.cs I have added a way to gain Charisma when karma is awarded my question is I have it as greater than or equal to value but I kind of dont want that I just want it so that once it hits that value or above it but below the next level it only gains once. otherwise I think it will gain everytime you award karma. Yes brain fart it is probably pretty simple just can't think of it right at this moment here is just a cut down section of awardkarma code with gains in it.
awadrkarma:
public static void AwardKarma( Mobile m, int offset, bool message )
{
GPlayerMobile gp = m as GPlayerMobile;
if ( m.Karma >= 1249 )
{
gp.Charisma += 10;
}
else if ( m.Karma >= 2499 )
{
gp.Charisma += 10;
}
}