sb.append("</body></html>");
html.setHtml(sb.toString());
player.sendPacket(html);
return;
}
AcquireSkillList asl = new AcquireSkillList(AcquireSkillList.USUAL);
int counts = 0;
GArray<L2SkillLearn> skills = SkillTreeTable.getInstance().getAvailableSkills(player, classId);
for (L2SkillLearn s : skills) {
if (s.getItemCount() == -1) {
continue;
}
L2Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel());
if (sk == null || !sk.getCanLearn(player.getClassId()) || !sk.canTeachBy(npcId)) {
continue;
}
int cost = SkillTreeTable.getInstance().getSkillCost(player, sk);
counts++;
asl.addSkill(s.getId(), s.getLevel(), s.getLevel(), cost, 0);
}
if (counts == 0) {
NpcHtmlMessage html = new NpcHtmlMessage(player, this);
int minlevel = SkillTreeTable.getInstance().getMinLevelForNewSkill(player, classId);
if (minlevel > 0) {