if (Rnd.chance(rate))
{
activeChar.addSkill(skill, true);
activeChar.addExpAndSp(0, -1 * requiredSp);
Functions.removeItem(activeChar, 57, requiredAdena);
activeChar.sendPacket(new SystemMessage(SystemMessage.SP_HAS_DECREASED_BY_S1).addNumber(requiredSp), new SystemMessage(SystemMessage.SUCCEEDED_IN_ENCHANTING_SKILL_S1).addSkillName(_skillId, _skillLvl), new ExEnchantSkillResult(1));
activeChar.sendSkillList();
RequestExEnchantSkill.updateSkillShortcuts(activeChar, _skillId, _skillLvl);
Log.add(activeChar.getName() + "|Successfully safe enchanted|" + _skillId + "|to+" + _skillLvl + "|" + rate, "enchant_skills");
}
else