Examples of canTeachBy()


Examples of com.l2jfrozen.gameserver.model.L2Skill.canTeachBy()

      L2SkillLearn[] skills = SkillTreeTable.getInstance().getAvailableSkills(player, player.getSkillLearningClassId());

      for(L2SkillLearn s : skills)
      {
        L2Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel());
        if(sk == null || sk != skill || !sk.getCanLearn(player.getSkillLearningClassId()) || !sk.canTeachBy(npcid))
        {
          continue;
        }
        counts++;
        _requiredSp = SkillTreeTable.getInstance().getSkillCost(player, skill);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Skill.canTeachBy()

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

Examples of com.l2jfrozen.gameserver.model.L2Skill.canTeachBy()

   
    for (L2SkillLearn s : skills)
    {
      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);
View Full Code Here

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

Examples of lineage2.gameserver.model.Skill.canTeachBy()

    final AcquireSkillList asl = new AcquireSkillList(AcquireType.NORMAL, skills.size());
    int counts = 0;
    for (SkillLearn s : skills)
    {
      Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel());
      if ((sk == null) || !sk.getCanLearn(player.getClassId()) || !sk.canTeachBy(npcId))
      {
        continue;
      }
      counts++;
      asl.addSkill(s.getId(), s.getLevel(), s.getLevel(), s.getCost(), 0);
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Skill.canTeachBy()

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

Examples of net.sf.l2j.gameserver.model.L2Skill.canTeachBy()

    for (L2SkillLearn s: skills)
    {
      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++;
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2Skill.canTeachBy()

      {
        L2Skill sk = SkillTable.getInstance().getInfo(s.getId(),
            s.getLevel());
        if (sk == null || sk != skill
            || !sk.getCanLearn(player.getSkillLearningClassId())
            || !sk.canTeachBy(npcid))
          continue;
        counts++;
        _requiredSp = SkillTreeTable.getInstance().getSkillCost(player,
            skill);
      }
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.