for (L2EnchantSkillLearn s : skills)
{
L2Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel());
if (sk == null || sk != skill || !sk.getCanLearn(player.getClassId())
|| !sk.canTeachBy(npcid)) continue;
counts++;
_requiredSp = s.getSpCost();
_requiredExp = s.getExp();
_rate = s.getRate(player);
_baseLvl = s.getBaseLevel();