Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replace()


    int newClassId = AwakingManager.getInstance().childOf(player.getClassId());
    if (command.equalsIgnoreCase("Awaken"))
    {
      int essencesCount = AwakingManager.getInstance().giveGiantEssences(player, true);
      NpcHtmlMessage htmlMessage = new NpcHtmlMessage(getObjectId());
      htmlMessage.replace("%SP%", String.valueOf(Rnd.get(10000000)));
      htmlMessage.replace("%ESSENCES%", String.valueOf(essencesCount));
      String transferData = new String();
      if(_NPC.get(getNpcId()) != newClassId)
      {
        newClassId = _NPC.get(getNpcId());
View Full Code Here


    if (command.equalsIgnoreCase("Awaken"))
    {
      int essencesCount = AwakingManager.getInstance().giveGiantEssences(player, true);
      NpcHtmlMessage htmlMessage = new NpcHtmlMessage(getObjectId());
      htmlMessage.replace("%SP%", String.valueOf(Rnd.get(10000000)));
      htmlMessage.replace("%ESSENCES%", String.valueOf(essencesCount));
      String transferData = new String();
      if(_NPC.get(getNpcId()) != newClassId)
      {
        newClassId = _NPC.get(getNpcId());
        oldClassId = _DESTINYCHANGECLASSES.get(newClassId);
View Full Code Here

      else
      {     
        oldClassId = player.getClassId().getId();
        transferData = "You are not strong enough to receive the giant's power. You need to choose between the giant's power and the god's power.<br>In other words, you should be in the best shape to obtain all the power from the giant. Come back when you are ready.";
      }
      htmlMessage.replace("%TRANSFERDATA%", transferData);
      htmlMessage.setFile("default/" + getNpcId() + "-4.htm");
      player.sendPacket(htmlMessage);
    }
    else if (command.equalsIgnoreCase("Awaken1"))
    {
View Full Code Here

          continue;
        }
        skillList = skillList + "<tr><td width=34 height=34><img src="+ iconData +" width=32 height=32></td><td width=200> " + name + " </td></tr><tr><td colspan=2><br></td></tr>";
      }
      skillList = skillList +"</table>";
      htmlMessage.replace("%SKILLIST%", skillList);
      htmlMessage.setFile("default/" + getNpcId() + "-5.htm");
      player.sendPacket(htmlMessage);
    }
    else if (command.equalsIgnoreCase("Awaken2"))
    {
View Full Code Here

    String actualCommand = tokenizer.nextToken();
    if (actualCommand.equalsIgnoreCase("map"))
    {
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile(getMapDialog());
      msg.replace("%lang%", player.getLang());
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("list_all"))
    {
      int page = Integer.parseInt(tokenizer.nextToken());
View Full Code Here

        String out = CH_IN_LIST.replace("%id%", String.valueOf(event.getId())).replace("%min_bid%", String.valueOf(event.getResidence().getAuctionMinBid())).replace("%size%", String.valueOf(attackers.size())).replace("%date%", DATE_FORMAT.format(endDate.getTimeInMillis()));
       
        b.append(out);
      }
     
      msg.replace("%list%", b.toString());
      if (events.size() > max)
      {
        msg.replace("%next_button%", "<td>" + HtmlUtils.NEXT_BUTTON + "</td>");
        msg.replace("%next_bypass%", "-h npc_%objectId%_list_all " + (page + 1));
      }
View Full Code Here

      }
     
      msg.replace("%list%", b.toString());
      if (events.size() > max)
      {
        msg.replace("%next_button%", "<td>" + HtmlUtils.NEXT_BUTTON + "</td>");
        msg.replace("%next_bypass%", "-h npc_%objectId%_list_all " + (page + 1));
      }
      else
      {
        msg.replace("%next_button%", StringUtils.EMPTY);
View Full Code Here

     
      msg.replace("%list%", b.toString());
      if (events.size() > max)
      {
        msg.replace("%next_button%", "<td>" + HtmlUtils.NEXT_BUTTON + "</td>");
        msg.replace("%next_bypass%", "-h npc_%objectId%_list_all " + (page + 1));
      }
      else
      {
        msg.replace("%next_button%", StringUtils.EMPTY);
      }
View Full Code Here

        msg.replace("%next_button%", "<td>" + HtmlUtils.NEXT_BUTTON + "</td>");
        msg.replace("%next_bypass%", "-h npc_%objectId%_list_all " + (page + 1));
      }
      else
      {
        msg.replace("%next_button%", StringUtils.EMPTY);
      }
     
      if (page != 0)
      {
        msg.replace("%prev_button%", "<td>" + HtmlUtils.PREV_BUTTON + "</td>");
View Full Code Here

        msg.replace("%next_button%", StringUtils.EMPTY);
      }
     
      if (page != 0)
      {
        msg.replace("%prev_button%", "<td>" + HtmlUtils.PREV_BUTTON + "</td>");
        msg.replace("%prev_bypass%", "-h npc_%objectId%_list_all " + (page - 1));
      }
      else
      {
        msg.replace("%prev_button%", StringUtils.EMPTY);
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.