Package com.l2jfrozen.gameserver.network.serverpackets

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


    for(int i = 0; i < format.length(); i++)
    {
      replyMSG.append(" \\$v" + i);
    }

    adminReply.replace("%send%", replyMSG.toString());
    activeChar.sendPacket(adminReply);

    replyMSG = null;
    adminReply = null;
  }
View Full Code Here


  private void showPage3(L2PcInstance activeChar, String format, String command)
  {
    NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
    adminReply.setFile("data/html/admin/pforge3.htm");
    adminReply.replace("%format%", format);
    adminReply.replace("%command%", command);
    activeChar.sendPacket(adminReply);
    adminReply = null;
  }
View Full Code Here

  private void showPage3(L2PcInstance activeChar, String format, String command)
  {
    NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
    adminReply.setFile("data/html/admin/pforge3.htm");
    adminReply.replace("%format%", format);
    adminReply.replace("%command%", command);
    activeChar.sendPacket(adminReply);
    adminReply = null;
  }

  @Override
View Full Code Here

        // If player is a lord of this manor, alternative message from NPC
        if(CastleManorManager.getInstance().isDisabled())
        {
          NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
          html.setFile("data/html/npcdefault.htm");
          html.replace("%objectId%", String.valueOf(getObjectId()));
          html.replace("%npcname%", getName());
          player.sendPacket(html);
          html = null;
        }
        else if(!player.isGM() // Player is not GM
View Full Code Here

        if(CastleManorManager.getInstance().isDisabled())
        {
          NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
          html.setFile("data/html/npcdefault.htm");
          html.replace("%objectId%", String.valueOf(getObjectId()));
          html.replace("%npcname%", getName());
          player.sendPacket(html);
          html = null;
        }
        else if(!player.isGM() // Player is not GM
            && getCastle() != null && getCastle().getCastleId() > 0 // Verification of castle
View Full Code Here

  private void showMessageWindow(L2PcInstance player, String filename)
  {
    NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
    html.setFile(getHtmlPath() + filename);
    html.replace("%objectId%", String.valueOf(getObjectId()));
    html.replace("%npcId%", String.valueOf(getNpcId()));
    html.replace("%npcname%", getName());
    player.sendPacket(html);
    html = null;
  }
View Full Code Here

  private void showMessageWindow(L2PcInstance player, String filename)
  {
    NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
    html.setFile(getHtmlPath() + filename);
    html.replace("%objectId%", String.valueOf(getObjectId()));
    html.replace("%npcId%", String.valueOf(getNpcId()));
    html.replace("%npcname%", getName());
    player.sendPacket(html);
    html = null;
  }
}
View Full Code Here

  {
    NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
    html.setFile(getHtmlPath() + filename);
    html.replace("%objectId%", String.valueOf(getObjectId()));
    html.replace("%npcId%", String.valueOf(getNpcId()));
    html.replace("%npcname%", getName());
    player.sendPacket(html);
    html = null;
  }
}
View Full Code Here

    NpcHtmlMessage adminReply = new NpcHtmlMessage(1);
    adminReply.setFile("data/html/admin/bk.htm");
   
    if (bookmarks == null)
    {
      adminReply.replace("%locs%", "<tr><td>No bookmarks are currently registered.</td></tr>");
      activeChar.sendPacket(adminReply);
      return;
    }
   
    if (page > bookmarks.length / PAGE_LIMIT + 1 || page < 1)
View Full Code Here

        replyMSG.append("</a>|");
      }
    }
    replyMSG.append("</td></tr>");
   
    adminReply.replace("%locs%", replyMSG.toString());
    activeChar.sendPacket(adminReply);
  }
 
  @Override
  public String[] getAdminCommandList()
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.