public static bool CheckSkill
if( AllowGain(from, skill, amObj) )
In Misc/SkillCheck.cs, find this method around line 149:
Code:public static bool CheckSkill
In that method, it uses a value called gc, which stands for "gain chance" and is going to be compared to a random double value later in the method. What you will want to do is, somewhere around line 169, before this line:
Code:if( AllowGain(from, skill, amObj) )
...you will want to change gc to make the chance greater. You can either multiply gc by some number, or simply set it to the chance you want to give the players.
A value of "1.0" should be ALWAYS-GAIN, and a value of "0.01" is VERY-HARD-GAIN.
There are other ways to do it, and you could probably find some on these forums or searching the old RunUO forums - I know we discussed gains many times over there back in the day, and the SkillCheck script has not changed all that much in many years.
i found misc/skillcheck.cs
just found it this scripts
if (from.Skills.Cap == 0)
return false;
bool success = (chance >= Utility.RandomDouble());
double gc = (double)(from.Skills.Cap - from.Skills.Total) / from.Skills.Cap;
gc += (skill.Cap - skill.Base) / skill.Cap;
gc /= 2; <<This one
gc += (1.0 - chance) * (success ? 0.5 : (Core.AOS ? 0.0 : 0.2));
gc /= 2; <<This one
gc *= skill.Info.GainFactor;
if (gc < 0.01)
gc = 0.01;
if (from is BaseCreature && ((BaseCreature)from).Controlled)
gc *= 2;
if (from.Alive && ((gc >= Utility.RandomDouble() && AllowGain(from, skill, amObj)) || skill.Base < 10.0))
Gain(from, skill);
return success;
so i need edit which part?
so i edit all 2 change 0.25 is faster than now?
We use essential cookies to make this site work, and optional cookies to enhance your experience.