Package com.l2jfrozen.gameserver.model.base

Examples of com.l2jfrozen.gameserver.model.base.ClassLevel


    {
      final L2ClassMasterInstance master_instance = L2ClassMasterInstance.getInstance();
     
      if(master_instance != null){
       
        ClassLevel lvlnow = PlayerClass.values()[activeChar.getClassId().getId()].getLevel();
 
        if(activeChar.getLevel() >= 20 && lvlnow == ClassLevel.First)
          L2ClassMasterInstance.getInstance().onAction(activeChar);
        else if(activeChar.getLevel() >= 40 && lvlnow == ClassLevel.Second)
          L2ClassMasterInstance.getInstance().onAction(activeChar);
View Full Code Here


    {
      final L2ClassMasterInstance master_instance = L2ClassMasterInstance.getInstance();
     
      if(master_instance != null){
       
        ClassLevel lvlnow = PlayerClass.values()[getActiveChar().getClassId().getId()].getLevel();
        if(getLevel() >= 20 && lvlnow == ClassLevel.First)
        {
          L2ClassMasterInstance.getInstance().onAction(getActiveChar());
        }
        else if(getLevel() >= 40 && lvlnow == ClassLevel.Second)
View Full Code Here

      else
      {
        ClassId classId = player.getClassId();
        int jobLevel = 0;
        int level = player.getLevel();
        ClassLevel lvl = PlayerClass.values()[classId.getId()].getLevel();
        switch(lvl)
        {
          case First:
            jobLevel = 1;
            break;
View Full Code Here

      int jobLevel = 0;
      int newJobLevel = 0;

      player.setTarget(player);

      ClassLevel lvlnow = PlayerClass.values()[classId.getId()].getLevel();

      if(player.isGM())
      {
        changeClass(player, val);
        player.rewardSkills();

        if(val >= 88)
        {
          player.sendPacket(new SystemMessage(SystemMessageId.THIRD_CLASS_TRANSFER)); // system sound 3rd occupation
        }
        else
        {
          player.sendPacket(new SystemMessage(SystemMessageId.CLASS_TRANSFER)); // system sound for 1st and 2nd occupation
        }

        NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
        TextBuilder sb = new TextBuilder();
        sb.append("<html><title>Class Manager</title><body><center><img src=preciousTex.logo2 width=252 height=128><br><br><br><img src=L2UI_CH3.herotower_deco width=256 height=32></center><br><br>");
        sb.append("<center>You have now become a <font color=\"LEVEL\">" + CharTemplateTable.getClassNameById(player.getClassId().getId()) + "</font>.</center>");
        sb.append("<br><center><img src=L2UI_CH3.herotower_deco width=256 height=32></center></body></html>");

        html.setHtml(sb.toString());
        player.sendPacket(html);
        html = null;
        sb = null;
        return;
      }
      switch(lvlnow)
      {
        case First:
          jobLevel = 1;
          break;
        case Second:
          jobLevel = 2;
          break;
        case Third:
          jobLevel = 3;
          break;
        default:
          jobLevel = 4;
      }

      if(jobLevel == 4)
        return; // no more job changes

      ClassLevel lvlnext = PlayerClass.values()[val].getLevel();
      switch(lvlnext)
      {
        case First:
          newJobLevel = 1;
          break;
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.base.ClassLevel

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.