Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.AquireSkillList


  }

  public void showSkillList(L2PcInstance player)
  {
    L2SkillLearn[] skills = SkillTreeTable.getInstance().getAvailableSkills(player);
    AquireSkillList asl = new AquireSkillList(AquireSkillList.skillType.Fishing);

    int counts = 0;

        for (L2SkillLearn s : skills)
    {
      L2Skill sk = SkillTable.getInstance().getInfo(s.getId(), s.getLevel());

      if (sk == null)
        continue;

      counts++;
      asl.addSkill(s.getId(), s.getLevel(), s.getLevel(), s.getSpCost(), 1);
    }

    if (counts == 0)
    {
        NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
View Full Code Here


      return;
    }

    L2SkillLearn[] skills = SkillTreeTable.getInstance().getAvailableSkills(player, classId);
    AquireSkillList asl = new AquireSkillList(AquireSkillList.skillType.Usual);
    int counts = 0;

    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++;

      asl.addSkill(s.getId(), s.getLevel(), s.getLevel(), cost, 0);
    }

    if (counts == 0)
    {
        int minlevel = SkillTreeTable.getInstance().getMinLevelForNewSkill(player, classId);
View Full Code Here

        if (Config.DEBUG)
            _log.fine("PledgeSkillList activated on: "+getObjectId());
        if(player.getClan() == null) return;

        L2PledgeSkillLearn[] skills = SkillTreeTable.getInstance().getAvailablePledgeSkills(player);
        AquireSkillList asl = new AquireSkillList(AquireSkillList.skillType.Clan);
        int counts = 0;

        for (L2PledgeSkillLearn s: skills)
        {
            int cost = s.getRepCost();
            counts++;

            asl.addSkill(s.getId(), s.getLevel(), s.getLevel(), cost, 0);
        }

        if (counts == 0)
        {
            NpcHtmlMessage html = new NpcHtmlMessage(1);
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.AquireSkillList

Copyright © 2018 www.massapicom. 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.