if (player.getClassId().getId() < 88) // requires to have 3rd class quest completed
return;
if (player.getLevel() < 76) return;
L2Skill skill = SkillTable.getInstance().getInfo(_skillId, _skillLvl);
int counts = 0;
int _requiredSp = 10000000;
int _requiredExp = 100000;
byte _rate = 0;
int _baseLvl = 1;
L2EnchantSkillLearn[] skills = SkillTreeTable.getInstance().getAvailableEnchantSkills(player);
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();