Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage.replace()


      }
      else if(res.startsWith("<html>"))
      {
        NpcHtmlMessage npcReply = new NpcHtmlMessage(5);
        npcReply.setHtml(res);
        npcReply.replace("%playername%", player.getName());
        player.sendPacket(npcReply);
        npcReply = null;
      }
      else
      {
View Full Code Here


      //Send message to client if message not empty
      if(content != null)
      {
        NpcHtmlMessage npcReply = new NpcHtmlMessage(5);
        npcReply.setHtml(content);
        npcReply.replace("%playername%", player.getName());
        player.sendPacket(npcReply);
      }
    }
    return content;
  }
View Full Code Here

    {
      player.sendPacket(ActionFailed.STATIC_PACKET);
     
      NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
      html.setFile("/data/html/npcbusy.htm");
      html.replace("%busymessage%", getBusyMessage());
      html.replace("%npcname%", getName());
      html.replace("%playername%", player.getName());
      player.sendPacket(html);
      html = null;
    }
View Full Code Here

      player.sendPacket(ActionFailed.STATIC_PACKET);
     
      NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
      html.setFile("/data/html/npcbusy.htm");
      html.replace("%busymessage%", getBusyMessage());
      html.replace("%npcname%", getName());
      html.replace("%playername%", player.getName());
      player.sendPacket(html);
      html = null;
    }
    else if (command.equalsIgnoreCase("TerritoryStatus"))
View Full Code Here

     
      NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
      html.setFile("/data/html/npcbusy.htm");
      html.replace("%busymessage%", getBusyMessage());
      html.replace("%npcname%", getName());
      html.replace("%playername%", player.getName());
      player.sendPacket(html);
      html = null;
    }
    else if (command.equalsIgnoreCase("TerritoryStatus"))
    {
View Full Code Here

      {
        if (getCastle().getOwnerId() > 0)
        {
          html.setFile("/data/html/territorystatus.htm");
          L2Clan clan = ClanTable.getInstance().getClan(getCastle().getOwnerId());
          html.replace("%clanname%", clan.getName());
          html.replace("%clanleadername%", clan.getLeaderName());
        }
        else
        {
          html.setFile("/data/html/territorynoclan.htm");
View Full Code Here

        if (getCastle().getOwnerId() > 0)
        {
          html.setFile("/data/html/territorystatus.htm");
          L2Clan clan = ClanTable.getInstance().getClan(getCastle().getOwnerId());
          html.replace("%clanname%", clan.getName());
          html.replace("%clanleadername%", clan.getLeaderName());
        }
        else
        {
          html.setFile("/data/html/territorynoclan.htm");
        }
View Full Code Here

      return;
    }

    NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
    adminReply.setFile("data/html/admin/expsp.htm");
    adminReply.replace("%name%", player.getName());
    adminReply.replace("%level%", String.valueOf(player.getLevel()));
    adminReply.replace("%xp%", String.valueOf(player.getExp()));
    adminReply.replace("%sp%", String.valueOf(player.getSp()));
    adminReply.replace("%class%", player.getTemplate().className);
    activeChar.sendPacket(adminReply);
View Full Code Here

        else
        {
          html.setFile("/data/html/territorynoclan.htm");
        }
      }
      html.replace("%castlename%", getCastle().getName());
      html.replace("%taxpercent%", "" + getCastle().getTaxPercent());
      html.replace("%objectId%", String.valueOf(getObjectId()));
      {
        if (getCastle().getCastleId() > 6)
        {
View Full Code Here

    }

    NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
    adminReply.setFile("data/html/admin/expsp.htm");
    adminReply.replace("%name%", player.getName());
    adminReply.replace("%level%", String.valueOf(player.getLevel()));
    adminReply.replace("%xp%", String.valueOf(player.getExp()));
    adminReply.replace("%sp%", String.valueOf(player.getSp()));
    adminReply.replace("%class%", player.getTemplate().className);
    activeChar.sendPacket(adminReply);
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.