Package l2p.gameserver.serverpackets

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


          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:
          int points = Olympiad.getNoblePoints(player.getObjectId());
View Full Code Here


    html.setFile(filename);
    for(int i = 0; i < 8; i++)
    {
      int n = i + 1;
      search = "Mob" + n;
      html.replace(search, MonsterRace.getInstance().getMonsters()[i].getTemplate().name);
    }
    html.replace("1race", String.valueOf(_raceNumber));
    player.sendPacket(html);
    player.sendActionFailed();
  }
View Full Code Here

    {
      int n = i + 1;
      search = "Mob" + n;
      html.replace(search, MonsterRace.getInstance().getMonsters()[i].getTemplate().name);
    }
    html.replace("1race", String.valueOf(_raceNumber));
    player.sendPacket(html);
    player.sendActionFailed();
  }

  public void showMonsterInfo(L2Player player)
View Full Code Here

    html.setFile(filename);
    for(int i = 0; i < 8; i++)
    {
      int n = i + 1;
      search = "Mob" + n;
      html.replace(search, MonsterRace.getInstance().getMonsters()[i].getTemplate().name);
    }
    player.sendPacket(html);
    player.sendActionFailed();
  }
View Full Code Here

      html.setFile(filename);
      for(int i = 0; i < 8; i++)
      {
        int n = i + 1;
        search = "Mob" + n;
        html.replace(search, MonsterRace.getInstance().getMonsters()[i].getTemplate().name);
      }
      search = "No1";
      if(val == 0)
      {
        html.replace(search, "");
View Full Code Here

        html.replace(search, MonsterRace.getInstance().getMonsters()[i].getTemplate().name);
      }
      search = "No1";
      if(val == 0)
      {
        html.replace(search, "");
      }
      else
      {
        html.replace(search, "" + val);
        player.setRace(0, val);
View Full Code Here

      {
        html.replace(search, "");
      }
      else
      {
        html.replace(search, "" + val);
        player.setRace(0, val);
      }
    }
    else if(val < 20)
    {
View Full Code Here

      {
        return;
      }
      filename = getHtmlPath(npcId, 3);
      html.setFile(filename);
      html.replace("0place", "" + player.getRace(0));
      search = "Mob1";
      replace = MonsterRace.getInstance().getMonsters()[player.getRace(0) - 1].getTemplate().name;
      html.replace(search, replace);
      search = "0adena";
      if(val == 10)
View Full Code Here

      filename = getHtmlPath(npcId, 3);
      html.setFile(filename);
      html.replace("0place", "" + player.getRace(0));
      search = "Mob1";
      replace = MonsterRace.getInstance().getMonsters()[player.getRace(0) - 1].getTemplate().name;
      html.replace(search, replace);
      search = "0adena";
      if(val == 10)
      {
        html.replace(search, "");
      }
View Full Code Here

      replace = MonsterRace.getInstance().getMonsters()[player.getRace(0) - 1].getTemplate().name;
      html.replace(search, replace);
      search = "0adena";
      if(val == 10)
      {
        html.replace(search, "");
      }
      else
      {
        html.replace(search, "" + cost[val - 11]);
        player.setRace(1, val - 10);
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.