Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.NpcHtmlMessage.replace()


        filename = "data/html/fortress/LogisticsOfficer-" + val + ".htm";
      }
    }
    NpcHtmlMessage html = new NpcHtmlMessage(player, this);
    html.setFile(filename);
    html.replace("%count%", String.valueOf(getAvailableItemsCount(player)));
    html.replace("%objectId%", String.valueOf(getObjectId()));
    html.replace("%npcname%", getName());
    player.sendPacket(html);
  }
View Full Code Here


      }
    }
    NpcHtmlMessage html = new NpcHtmlMessage(player, this);
    html.setFile(filename);
    html.replace("%count%", String.valueOf(getAvailableItemsCount(player)));
    html.replace("%objectId%", String.valueOf(getObjectId()));
    html.replace("%npcname%", getName());
    player.sendPacket(html);
  }

  private long getAvailableItemsCount(L2Player player)
View Full Code Here

    }
    NpcHtmlMessage html = new NpcHtmlMessage(player, this);
    html.setFile(filename);
    html.replace("%count%", String.valueOf(getAvailableItemsCount(player)));
    html.replace("%objectId%", String.valueOf(getObjectId()));
    html.replace("%npcname%", getName());
    player.sendPacket(html);
  }

  private long getAvailableItemsCount(L2Player player)
  {
View Full Code Here

          html.setFile(Olympiad.OLYMPIAD_HTML_PATH + "noble_registered.htm");
          if(Config.ALT_OLY_REG_DISPLAY > 0)
          {
            String FEWER_THAN = new CustomMessage("l2p.gameserver.model.instances.L2OlympiadManagerInstance.Fewer", player, Config.ALT_OLY_REG_DISPLAY).toString();
            String MORE_THAN = new CustomMessage("l2p.gameserver.model.instances.L2OlympiadManagerInstance.More", player, Config.ALT_OLY_REG_DISPLAY).toString();
            html.replace("%listClassed%", classed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassedRandomTeam%", nonClassedRandomTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassedTeam%", nonClassedTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassed%", nonClassed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
          }
          else
View Full Code Here

          if(Config.ALT_OLY_REG_DISPLAY > 0)
          {
            String FEWER_THAN = new CustomMessage("l2p.gameserver.model.instances.L2OlympiadManagerInstance.Fewer", player, Config.ALT_OLY_REG_DISPLAY).toString();
            String MORE_THAN = new CustomMessage("l2p.gameserver.model.instances.L2OlympiadManagerInstance.More", player, Config.ALT_OLY_REG_DISPLAY).toString();
            html.replace("%listClassed%", classed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassedRandomTeam%", nonClassedRandomTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassedTeam%", nonClassedTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassed%", nonClassed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
          }
          else
          {
View Full Code Here

          {
            String FEWER_THAN = new CustomMessage("l2p.gameserver.model.instances.L2OlympiadManagerInstance.Fewer", player, Config.ALT_OLY_REG_DISPLAY).toString();
            String MORE_THAN = new CustomMessage("l2p.gameserver.model.instances.L2OlympiadManagerInstance.More", player, Config.ALT_OLY_REG_DISPLAY).toString();
            html.replace("%listClassed%", classed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassedRandomTeam%", nonClassedRandomTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassedTeam%", nonClassedTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassed%", nonClassed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
          }
          else
          {
            html.replace("%listClassed%", String.valueOf(classed));
View Full Code Here

            String FEWER_THAN = new CustomMessage("l2p.gameserver.model.instances.L2OlympiadManagerInstance.Fewer", player, Config.ALT_OLY_REG_DISPLAY).toString();
            String MORE_THAN = new CustomMessage("l2p.gameserver.model.instances.L2OlympiadManagerInstance.More", player, Config.ALT_OLY_REG_DISPLAY).toString();
            html.replace("%listClassed%", classed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassedRandomTeam%", nonClassedRandomTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassedTeam%", nonClassedTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassed%", nonClassed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
          }
          else
          {
            html.replace("%listClassed%", String.valueOf(classed));
            html.replace("%listNonClassedRandomTeam%", String.valueOf(nonClassedRandomTeam));
View Full Code Here

            html.replace("%listNonClassedTeam%", nonClassedTeam < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
            html.replace("%listNonClassed%", nonClassed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
          }
          else
          {
            html.replace("%listClassed%", String.valueOf(classed));
            html.replace("%listNonClassedRandomTeam%", String.valueOf(nonClassedRandomTeam));
            html.replace("%listNonClassedTeam%", String.valueOf(nonClassedTeam));
            html.replace("%listNonClassed%", String.valueOf(nonClassed));
          }
          player.sendPacket(html);
View Full Code Here

            html.replace("%listNonClassed%", nonClassed < Config.ALT_OLY_REG_DISPLAY ? FEWER_THAN : MORE_THAN);
          }
          else
          {
            html.replace("%listClassed%", String.valueOf(classed));
            html.replace("%listNonClassedRandomTeam%", String.valueOf(nonClassedRandomTeam));
            html.replace("%listNonClassedTeam%", String.valueOf(nonClassedTeam));
            html.replace("%listNonClassed%", String.valueOf(nonClassed));
          }
          player.sendPacket(html);
          break;
View Full Code Here

          }
          else
          {
            html.replace("%listClassed%", String.valueOf(classed));
            html.replace("%listNonClassedRandomTeam%", String.valueOf(nonClassedRandomTeam));
            html.replace("%listNonClassedTeam%", String.valueOf(nonClassedTeam));
            html.replace("%listNonClassed%", String.valueOf(nonClassed));
          }
          player.sendPacket(html);
          break;
        case 3:
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.