Package l2p.gameserver.serverpackets

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


      int val = Integer.parseInt(command.substring(10));
      if(val == 9)
      {
        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
        html.setFile("data/html/npc-friend/personal.htm");
        html.replace("%npcname%", getName());
        player.sendPacket(html);
      }
      else
      {
        showRetrieveWindow(player, val);
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

      {
        if(CastleManorManager.getInstance().isDisabled())
        {
          NpcHtmlMessage html = new NpcHtmlMessage(player, this);
          html.setFile("data/html/npcdefault.htm");
          html.replace("%objectId%", String.valueOf(getObjectId()));
          html.replace("%npcname%", getName());
          player.sendPacket(html);
        }
        else if(!player.isGM() // Player is not GM
          && player.isClanLeader() // Player is clan leader of clan (then he is the lord)
View Full Code Here

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

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

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

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

  {
    NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
    html.setFile("data/html/SepulcherNpc/" + file);
    if(member != null)
    {
      html.replace("%member%", member.getName());
    }
    player.sendPacket(html);
  }

  private static boolean isPlayersAnnihilated()
View Full Code Here

          player.sendPacket(html);
          break;
        case 3:
          int points = Olympiad.getNoblePoints(player.getObjectId());
          html.setFile(Olympiad.OLYMPIAD_HTML_PATH + "noble_points1.htm");
          html.replace("%points%", String.valueOf(points));
          player.sendPacket(html);
          break;
        case 4:
          Olympiad.registerNoble(player, CompType.NON_CLASSED);
          break;
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.