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...
It keeps saying "You "skill" is to high for this power scroll"
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"