Package lineage2.gameserver.network.serverpackets

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


    {
      NpcHtmlMessage html = new NpcHtmlMessage(activeChar, null);
      html.setFile("olympiad/monument_hero_info.htm");
      html.replace("%title%", StringHolder.getInstance().getNotNull(activeChar, "hero.diary"));
      html.replace("%heroname%", Olympiad.getNobleName(charid));
      html.replace("%message%", _heroMessage.get(charid));
      List<HeroDiary> list = new ArrayList<>(mainlist);
      Collections.reverse(list);
      boolean color = true;
      final StringBuilder fList = new StringBuilder(500);
      int counter = 0;
View Full Code Here


          break;
        }
      }
      if (breakat < (list.size() - 1))
      {
        html.replace("%buttprev%", HtmlUtils.PREV_BUTTON);
        html.replace("%prev_bypass%", "_diary?class=" + heroclass + "&page=" + (page + 1));
      }
      else
      {
        html.replace("%buttprev%", StringUtils.EMPTY);
View Full Code Here

        }
      }
      if (breakat < (list.size() - 1))
      {
        html.replace("%buttprev%", HtmlUtils.PREV_BUTTON);
        html.replace("%prev_bypass%", "_diary?class=" + heroclass + "&page=" + (page + 1));
      }
      else
      {
        html.replace("%buttprev%", StringUtils.EMPTY);
      }
View Full Code Here

        html.replace("%buttprev%", HtmlUtils.PREV_BUTTON);
        html.replace("%prev_bypass%", "_diary?class=" + heroclass + "&page=" + (page + 1));
      }
      else
      {
        html.replace("%buttprev%", StringUtils.EMPTY);
      }
      if (page > 1)
      {
        html.replace("%buttnext%", HtmlUtils.NEXT_BUTTON);
        html.replace("%next_bypass%", "_diary?class=" + heroclass + "&page=" + (page - 1));
View Full Code Here

      {
        html.replace("%buttprev%", StringUtils.EMPTY);
      }
      if (page > 1)
      {
        html.replace("%buttnext%", HtmlUtils.NEXT_BUTTON);
        html.replace("%next_bypass%", "_diary?class=" + heroclass + "&page=" + (page - 1));
      }
      else
      {
        html.replace("%buttnext%", StringUtils.EMPTY);
View Full Code Here

        html.replace("%buttprev%", StringUtils.EMPTY);
      }
      if (page > 1)
      {
        html.replace("%buttnext%", HtmlUtils.NEXT_BUTTON);
        html.replace("%next_bypass%", "_diary?class=" + heroclass + "&page=" + (page - 1));
      }
      else
      {
        html.replace("%buttnext%", StringUtils.EMPTY);
      }
View Full Code Here

        html.replace("%buttnext%", HtmlUtils.NEXT_BUTTON);
        html.replace("%next_bypass%", "_diary?class=" + heroclass + "&page=" + (page - 1));
      }
      else
      {
        html.replace("%buttnext%", StringUtils.EMPTY);
      }
      html.replace("%list%", fList.toString());
      activeChar.sendPacket(html);
    }
  }
View Full Code Here

      }
      else
      {
        html.replace("%buttnext%", StringUtils.EMPTY);
      }
      html.replace("%list%", fList.toString());
      activeChar.sendPacket(html);
    }
  }
 
  /**
 
View Full Code Here

  @Override
  public void showChatWindow(Player player, int val, Object... arg)
  {
    NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
    msg.setFile("custom/31860.htm");
    msg.replace("%classmaster%", makeMessage(player));
    player.sendPacket(msg);
  }
 
  /**
   * Method onBypassFeedback.
View Full Code Here

   */
  public void showHtmlFile(Player player, String file)
  {
    NpcHtmlMessage html = new NpcHtmlMessage(player, this);
    html.setFile("SepulcherNpc/" + file);
    html.replace("%npcname%", getName());
    player.sendPacket(html);
  }
 
  /**
   * Method hasPartyAKey.
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.