I'm trying to get custom power scrolls but I can't seem to tweak this file to get it to work.

My servers skill cap is set to 1000 and I want the power scrolls to raise it in 250 skill point increments all the way to 2000 skill cap.

a wonderous scroll of (1250 Skill)
an exalted scroll of (1500 Skill)
a mythical scroll (1750 Skill)
a legendary scroll (2000 Skill)

This is what I tried... It does nothing at all...

return new PowerScroll(skillName, 1000 + (Utility.RandomMinMax(min, max) * 250));
}
public override void AddNameProperty(ObjectPropertyList list)
{
double level = (this.Value - 1250.0) / 250.0;
if (level >= 0.0 && level <= 3.0 && this.Value % 25.0 == 0.0)
list.Add(1049639 + (int)level, this.GetNameLocalized()); /* a wonderous scroll of ~1_type~ (105 Skill) OR
* an exalted scroll of ~1_type~ (110 Skill) OR
* a mythical scroll of ~1_type~ (115 Skill) OR
* a legendary scroll of ~1_type~ (120 Skill) */
else
list.Add("a power scroll of {0} ({1} Skill)", this.GetName(), this.Value);
}
public override void OnSingleClick(Mobile from)
{
double level = (this.Value - 1250.0) / 250.0;
if (level >= 0.0 && level <= 3.0 && this.Value % 25.0 == 0.0)
base.LabelTo(from, 1049639 + (int)level, this.GetNameLocalized());
else
base.LabelTo(from, "a power scroll of {0} ({1} Skill)", this.GetName(), this.Value);
Post automatically merged:

It keeps saying "You "skill" is to high for this power scroll"
 
I got it to work...

BaseChampion.cs (for custom power scrolls)

C#:
        private static PowerScroll CreateRandomPowerScroll()
        {
            int level;
            double random = Utility.RandomDouble();

            if (0.05 >= random)
                level = 1900;
            else if (0.4 >= random)
                level = 1650;
            else
                level = 1400;

Harrower.cs (For custom stat scrolls)

C#:
        private static int RandomStatScrollLevel()
        {
            double random = Utility.RandomDouble();

            if (0.1 >= random)
                return 3000;
            else if (0.25 >= random)
                return 2400;
            else if (0.45 >= random)
                return 1800;
            else if (0.70 >= random)
                return 1200;
            return 600;
 
Back