Package lineage2.gameserver.network.serverpackets

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


      msg.replace("%description%", clanHall.getAuctionDescription());
      msg.replace("%min_bid%", String.valueOf(clanHall.getAuctionMinBid()));
     
      Calendar c = auctionEvent.getEndSiegeDate();
     
      msg.replace("%date%", DATE_FORMAT.format(c.getTimeInMillis()));
      msg.replace("%hour%", String.valueOf(c.get(Calendar.HOUR_OF_DAY)));
     
      int remainingTime = (int) ((c.getTimeInMillis() - System.currentTimeMillis()) / 60000L);
     
      msg.replace("%remaining_hour%", String.valueOf(remainingTime / 60));
View Full Code Here


      msg.replace("%min_bid%", String.valueOf(clanHall.getAuctionMinBid()));
     
      Calendar c = auctionEvent.getEndSiegeDate();
     
      msg.replace("%date%", DATE_FORMAT.format(c.getTimeInMillis()));
      msg.replace("%hour%", String.valueOf(c.get(Calendar.HOUR_OF_DAY)));
     
      int remainingTime = (int) ((c.getTimeInMillis() - System.currentTimeMillis()) / 60000L);
     
      msg.replace("%remaining_hour%", String.valueOf(remainingTime / 60));
      msg.replace("%remaining_minutes%", String.valueOf(remainingTime % 60));
View Full Code Here

      msg.replace("%date%", DATE_FORMAT.format(c.getTimeInMillis()));
      msg.replace("%hour%", String.valueOf(c.get(Calendar.HOUR_OF_DAY)));
     
      int remainingTime = (int) ((c.getTimeInMillis() - System.currentTimeMillis()) / 60000L);
     
      msg.replace("%remaining_hour%", String.valueOf(remainingTime / 60));
      msg.replace("%remaining_minutes%", String.valueOf(remainingTime % 60));
     
      if (siegeClan != null)
      {
        msg.replace("%my_bid%", String.valueOf(siegeClan.getParam()));
View Full Code Here

      msg.replace("%hour%", String.valueOf(c.get(Calendar.HOUR_OF_DAY)));
     
      int remainingTime = (int) ((c.getTimeInMillis() - System.currentTimeMillis()) / 60000L);
     
      msg.replace("%remaining_hour%", String.valueOf(remainingTime / 60));
      msg.replace("%remaining_minutes%", String.valueOf(remainingTime % 60));
     
      if (siegeClan != null)
      {
        msg.replace("%my_bid%", String.valueOf(siegeClan.getParam()));
      }
View Full Code Here

      msg.replace("%remaining_hour%", String.valueOf(remainingTime / 60));
      msg.replace("%remaining_minutes%", String.valueOf(remainingTime % 60));
     
      if (siegeClan != null)
      {
        msg.replace("%my_bid%", String.valueOf(siegeClan.getParam()));
      }
     
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("bidder_list"))
View Full Code Here

        max = attackers.size();
      }
     
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_bidder_list.htm");
      msg.replace("%id%", String.valueOf(id));
     
      StringBuilder b = new StringBuilder();
      for (int i = min; i < max; i++)
      {
        AuctionSiegeClanObject siegeClan = attackers.get(i);
View Full Code Here

      {
        AuctionSiegeClanObject siegeClan = attackers.get(i);
        String t = BIDDER_IN_LIST.replace("%id%", String.valueOf(id)).replace("%clan_name%", siegeClan.getClan().getName()).replace("%date%", DATE_FORMAT.format(siegeClan.getDate()));
        b.append(t);
      }
      msg.replace("%list%", b.toString());
     
      if (attackers.size() > max)
      {
        msg.replace("%next_button%", "<td>" + HtmlUtils.NEXT_BUTTON + "</td>");
        msg.replace("%next_bypass%", "-h npc_%objectId%_bidder_list " + id + " " + (page + 1));
View Full Code Here

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

      msg.replace("%list%", b.toString());
     
      if (attackers.size() > max)
      {
        msg.replace("%next_button%", "<td>" + HtmlUtils.NEXT_BUTTON + "</td>");
        msg.replace("%next_bypass%", "-h npc_%objectId%_bidder_list " + id + " " + (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%_bidder_list " + id + " " + (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

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.