ScriptError
Member
public override bool CanUse(Mobile from)
{
if (!base.CanUse(from))
return false;
Skill skill = from.Skills[this.Skill];
if (skill == null)
return false;
if (skill.Cap >= this.Value)
{
from.SendLocalizedMessage(1049511, this.GetNameLocalized()); // Your ~1_type~ is too high for this power scroll.
return false;
}
// They need to have a cap exactly 5 less than this power scroll.
if (skill.Cap < (this.Value - 5))
{
from.SendMessage("Your {0} is too low for this power scroll.", this.GetNameLocalized());
return false;
}
return true;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.