Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Skill.canTeachBy()


        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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.