Package l2p.gameserver.model.base

Examples of l2p.gameserver.model.base.ClassId


    short MARK_OF_MAESTRO_ID = 2867;
    short MARK_OF_GUILDSMAN_ID = 3119;
    short MARK_OF_PROSPERITY_ID = 3238;
    short event = Short.parseShort(args[0]);
    int Level = pl.getLevel();
    ClassId classId = pl.getClassId();
    String htmltext = "No Quest";
    if(event == 57 && classId == ClassId.artisan)
    {
      if(Level <= 39)
      {
View Full Code Here


    {
      show("I have nothing to say you", pl, npc);
      return;
    }
    String htmltext;
    ClassId classId = pl.getClassId();
    if(classId == ClassId.orcFighter)
    {
      htmltext = "01.htm";
    }
    else if(classId == ClassId.orcRaider || classId == ClassId.orcMonk || classId == ClassId.orcShaman)
View Full Code Here

    {
      show("I have nothing to say you", pl, npc);
      return;
    }
    String htmltext;
    ClassId classId = pl.getClassId();
    if(classId == ClassId.elvenKnight)
    {
      htmltext = "01.htm";
    }
    else if(classId == ClassId.knight)
View Full Code Here

    short MARK_OF_CHAMPION_ID = 3276;
    short MARK_OF_SAGITTARIUS_ID = 3293;
    short MARK_OF_WITCHCRAFT_ID = 3307;
    short event = Short.parseShort(args[0]);
    int Level = pl.getLevel();
    ClassId classId = pl.getClassId();
    String htmltext = "No Quest";
    if(event == 20 && classId == ClassId.elvenKnight)
    {
      if(Level <= 39)
      {
View Full Code Here

    {
      show("I have nothing to say you", pl, npc);
      return;
    }
    String htmltext;
    ClassId classId = pl.getClassId();
    if(classId == ClassId.elvenWizard)
    {
      htmltext = "01.htm";
    }
    else if(classId == ClassId.wizard)
    {
      htmltext = "08.htm";
    }
    else if(classId == ClassId.sorceror || classId == ClassId.necromancer || classId == ClassId.warlock)
    {
      htmltext = "39.htm";
    }
    else if(classId == ClassId.spellsinger || classId == ClassId.elementalSummoner)
    {
      htmltext = "39.htm";
    }
    else if((pl.getRace() == Race.elf || pl.getRace() == Race.human) && classId.isMage())
    {
      htmltext = "38.htm";
    }
    else
    {
View Full Code Here

  }

  private String showCareer(int objectId)
  {
    L2Player player = L2ObjectsStorage.getPlayer(objectId);
    ClassId classId = player.getClassId();
    int jobLevel = classId.getLevel();
    int level = player.getLevel();
    TextBuilder html = new TextBuilder("");
    html.append("<br>");
    html.append("<table width=600>");
    html.append("<tr><td>");
    if(Config.ALLOW_CLASS_MASTERS_LIST.isEmpty() || !Config.ALLOW_CLASS_MASTERS_LIST.contains(jobLevel))
    {
      jobLevel = 4;
    }
    if((level >= 20 && jobLevel == 1 || level >= 40 && jobLevel == 2 || level >= 76 && jobLevel == 3) && Config.ALLOW_CLASS_MASTERS_LIST.contains(jobLevel))
    {
      L2Item item = ItemTable.getInstance().getTemplate(Config.CLASS_MASTERS_PRICE_ITEM);
      html.append("Вы должны заплатить: <font color=\"LEVEL\">");
      html.append(Util.formatAdena(Config.CLASS_MASTERS_PRICE_LIST[jobLevel])).append("</font> <font color=\"LEVEL\">").append(item.getName()).append("</font> для смены профессии<br>");
      html.append("<center><table width=600><tr>");
      for(ClassId cid : ClassId.values())
      {
        if(cid == ClassId.inspector)
        {
          continue;
        }
        if(cid.childOf(classId) && cid.level() == classId.level() + 1)
        {
          html.append("<td><center><button value=\"").append(cid.name()).append("\" action=\"bypass -h _bbscareerclass ").append(cid.getId()).append(" ").append(Config.CLASS_MASTERS_PRICE_LIST[jobLevel]).append("\" width=150 height=25 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_CT1.Button_DF\"></center></td>");
        }
      }
      html.append("</tr></table></center>");
View Full Code Here

    short MARK_OF_LIFE_ID = 3140;
    short MARK_OF_WITCHCRFAT_ID = 3307;
    short MARK_OF_SUMMONER_ID = 3336;
    short event = Short.parseShort(args[0]);
    int Level = pl.getLevel();
    ClassId classId = pl.getClassId();
    String htmltext = "No Quest";
    if(event == 27 && classId == ClassId.elvenWizard)
    {
      if(Level <= 39)
      {
View Full Code Here

    {
      show("I have nothing to say you", pl, npc);
      return;
    }
    String htmltext;
    ClassId classId = pl.getClassId();
    if(classId == ClassId.oracle)
    {
      htmltext = "01.htm";
    }
    else if(classId == ClassId.cleric)
    {
      htmltext = "05.htm";
    }
    else if(classId == ClassId.elder || classId == ClassId.bishop || classId == ClassId.prophet)
    {
      htmltext = "25.htm";
    }
    else if((pl.getRace() == Race.human || pl.getRace() == Race.elf) && classId.isMage())
    {
      htmltext = "24.htm";
    }
    else
    {
View Full Code Here

    short MARK_OF_HEALER_ID = 2820;
    short MARK_OF_REFORMER_ID = 2821;
    short MARK_OF_LIFE_ID = 3140;
    short event = Short.parseShort(args[0]);
    int Level = pl.getLevel();
    ClassId classId = pl.getClassId();
    String htmltext = "No Quest";
    if(event == 30 || classId == ClassId.oracle)
    {
      if(Level <= 39)
      {
View Full Code Here

    {
      show("I have nothing to say you", pl, npc);
      return;
    }
    String htmltext;
    ClassId classId = pl.getClassId();
    if(classId == ClassId.orcFighter)
    {
      htmltext = "01.htm";
    }
    else if(classId == ClassId.orcMage)
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.base.ClassId

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.