Package l2p.gameserver.serverpackets

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


    public void showBusyWindow(L2Player player) {
        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
        html.setFile("data/html/npcbusy.htm");
        html.replace("%npcname%", getName());
        html.replace("%playername%", player.getName());
        html.replace("%busymessage%", _busyMessage);
        player.sendPacket(html);
    }

    public void showSkillList(L2Player player) {
View Full Code Here


    public void showBusyWindow(L2Player player) {
        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
        html.setFile("data/html/npcbusy.htm");
        html.replace("%npcname%", getName());
        html.replace("%playername%", player.getName());
        html.replace("%busymessage%", _busyMessage);
        player.sendPacket(html);
    }

    public void showSkillList(L2Player player) {
        if (player.getTransformation() != 0) {
View Full Code Here

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

  protected int validateCondition(L2Player player)
View Full Code Here

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

  protected int validateCondition(L2Player player)
  {
View Full Code Here

        }
        try {
            if (command.equalsIgnoreCase("TerritoryStatus")) {
                NpcHtmlMessage html = new NpcHtmlMessage(player, this);
                html.setFile("data/html/merchant/territorystatus.htm");
                html.replace("%npcname%", getName());
                Castle castle = getCastle(player);
                if (castle != null && castle.getId() > 0) {
                    html.replace("%castlename%", castle.getName());
                    html.replace("%taxpercent%", String.valueOf(castle.getTaxPercent()));
                    if (castle.getOwnerId() > 0) {
View Full Code Here

                NpcHtmlMessage html = new NpcHtmlMessage(player, this);
                html.setFile("data/html/merchant/territorystatus.htm");
                html.replace("%npcname%", getName());
                Castle castle = getCastle(player);
                if (castle != null && castle.getId() > 0) {
                    html.replace("%castlename%", castle.getName());
                    html.replace("%taxpercent%", String.valueOf(castle.getTaxPercent()));
                    if (castle.getOwnerId() > 0) {
                        L2Clan clan = ClanTable.getInstance().getClan(castle.getOwnerId());
                        if (clan != null) {
                            html.replace("%clanname%", clan.getName());
View Full Code Here

                html.setFile("data/html/merchant/territorystatus.htm");
                html.replace("%npcname%", getName());
                Castle castle = getCastle(player);
                if (castle != null && castle.getId() > 0) {
                    html.replace("%castlename%", castle.getName());
                    html.replace("%taxpercent%", String.valueOf(castle.getTaxPercent()));
                    if (castle.getOwnerId() > 0) {
                        L2Clan clan = ClanTable.getInstance().getClan(castle.getOwnerId());
                        if (clan != null) {
                            html.replace("%clanname%", clan.getName());
                            html.replace("%clanleadername%", clan.getLeaderName());
View Full Code Here

                    html.replace("%castlename%", castle.getName());
                    html.replace("%taxpercent%", String.valueOf(castle.getTaxPercent()));
                    if (castle.getOwnerId() > 0) {
                        L2Clan clan = ClanTable.getInstance().getClan(castle.getOwnerId());
                        if (clan != null) {
                            html.replace("%clanname%", clan.getName());
                            html.replace("%clanleadername%", clan.getLeaderName());
                        } else {
                            html.replace("%clanname%", "unexistant clan");
                            html.replace("%clanleadername%", "None");
                        }
View Full Code Here

                    html.replace("%taxpercent%", String.valueOf(castle.getTaxPercent()));
                    if (castle.getOwnerId() > 0) {
                        L2Clan clan = ClanTable.getInstance().getClan(castle.getOwnerId());
                        if (clan != null) {
                            html.replace("%clanname%", clan.getName());
                            html.replace("%clanleadername%", clan.getLeaderName());
                        } else {
                            html.replace("%clanname%", "unexistant clan");
                            html.replace("%clanleadername%", "None");
                        }
                    } else {
View Full Code Here

                        L2Clan clan = ClanTable.getInstance().getClan(castle.getOwnerId());
                        if (clan != null) {
                            html.replace("%clanname%", clan.getName());
                            html.replace("%clanleadername%", clan.getLeaderName());
                        } else {
                            html.replace("%clanname%", "unexistant clan");
                            html.replace("%clanleadername%", "None");
                        }
                    } else {
                        html.replace("%clanname%", "NPC");
                        html.replace("%clanleadername%", "None");
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.