sLv = set.getInteger("onCast_skill_lvl");
int sCh = set.getInteger("onCast_skill_chance");
if(sId > 0 && sLv > 0 && sCh > 0)
{
L2Skill skill = SkillTable.getInstance().getInfo(sId, sLv);
skill.attach(new ConditionGameChance(sCh),true);
attachOnCast(skill);
}
sId = set.getInteger("onCrit_skill_id");
sLv = set.getInteger("onCrit_skill_lvl");
sCh = set.getInteger("onCrit_skill_chance");
if(sId > 0 && sLv > 0 && sCh > 0)
{
L2Skill skill = SkillTable.getInstance().getInfo(sId, sLv);
skill.attach(new ConditionGameChance(sCh),true);
attachOnCrit(skill);
}
}