Package l2p.gameserver.serverpackets

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


          L2Multisell.getInstance().SeparateAndSend(102, player, 0);
          break;
        case 8:
          int point = Olympiad.getNoblePointsPast(player.getObjectId());
          html.setFile(Olympiad.OLYMPIAD_HTML_PATH + "noble_points2.htm");
          html.replace("%points%", String.valueOf(point));
          player.sendPacket(html);
          break;
        case 9:
          L2Multisell.getInstance().SeparateAndSend(103, player, 0);
          break;
View Full Code Here


                replace.append("<img src=\"L2UI.SquareWhite\" width=270 height=1> <img src=\"L2UI.SquareBlank\" width=1 height=3>");
              }
            }
          }
          reply.setFile(Olympiad.OLYMPIAD_HTML_PATH + "olympiad_observe.htm");
          reply.replace("%arenas%", replace.toString());
          player.sendPacket(reply);
          break;
        case 2:
          // for example >> Olympiad 1_88
          int classId = Integer.parseInt(command.substring(11));
View Full Code Here

            reply.setFile(Olympiad.OLYMPIAD_HTML_PATH + "olympiad_ranking.htm");
            GArray<String> names = OlympiadDatabase.getClassLeaderBoard(classId);
            int index = 1;
            for(String name : names)
            {
              reply.replace("%place" + index + "%", String.valueOf(index));
              reply.replace("%rank" + index + "%", name);
              index++;
              if(index > 10)
              {
                break;
View Full Code Here

            GArray<String> names = OlympiadDatabase.getClassLeaderBoard(classId);
            int index = 1;
            for(String name : names)
            {
              reply.replace("%place" + index + "%", String.valueOf(index));
              reply.replace("%rank" + index + "%", name);
              index++;
              if(index > 10)
              {
                break;
              }
View Full Code Here

                break;
              }
            }
            for(; index <= 10; index++)
            {
              reply.replace("%place" + index + "%", "");
              reply.replace("%rank" + index + "%", "");
            }
            player.sendPacket(reply);
          }
          // TODO Send player each class rank
View Full Code Here

              }
            }
            for(; index <= 10; index++)
            {
              reply.replace("%place" + index + "%", "");
              reply.replace("%rank" + index + "%", "");
            }
            player.sendPacket(reply);
          }
          // TODO Send player each class rank
          break;
View Full Code Here

        int value = Integer.valueOf(st.nextToken());
        if(value == 9)
        {
          NpcHtmlMessage html = new NpcHtmlMessage(player, this);
          html.setFile("data/html/residence/clan.htm");
          html.replace("%npcname%", getName());
          player.sendPacket(html);
        }
        else
        {
          showWithdrawWindowClan(player, value);
View Full Code Here

        String teleport_list = "";
        for(TeleportLocation loc : getResidence().getFunction(ResidenceFunction.TELEPORT).getTeleports())
        {
          teleport_list += template.replaceAll("%loc%", loc._target).replaceAll("%price%", String.valueOf(loc._price)).replaceAll("%name%", loc._name);
        }
        html.replace("%teleList%", teleport_list);
        sendHtmlMessage(player, html);
      }
      else if(val.equalsIgnoreCase("item_creation"))
      {
        if(!getResidence().isFunctionActive(ResidenceFunction.ITEM_CREATE))
View Full Code Here

        }
        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
        html.setFile("data/html/residence/item.htm");
        String template = "<button value=\"Buy Item\" action=\"bypass -h npc_%objectId%_Buy %id%\" width=90 height=25 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\">";
        template = template.replaceAll("%id%", String.valueOf(getResidence().getFunction(ResidenceFunction.ITEM_CREATE).getBuylist()[1])).replace("%objectId%", String.valueOf(getObjectId()));
        html.replace("%itemList%", template);
        sendHtmlMessage(player, html);
      }
      else if(val.equalsIgnoreCase("support"))
      {
        if(!getResidence().isFunctionActive(ResidenceFunction.SUPPORT))
View Full Code Here

          if(++i % 5 == 0)
          {
            support_list += "<br>";
          }
        }
        html.replace("%magicList%", support_list);
        html.replace("%mp%", String.valueOf(Math.round(getCurrentMp())));
        html.replace("%all%", Config.ALT_CH_ALL_BUFFS ? "<a action=\"bypass -h npc_%objectId%_support all\">Give all</a><br1><a action=\"bypass -h npc_%objectId%_support allW\">Give warrior</a><br1><a action=\"bypass -h npc_%objectId%_support allM\">Give mystic</a><br>" : "");
        sendHtmlMessage(player, html);
      }
      else if(val.equalsIgnoreCase("back"))
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.