Package l2p.gameserver.serverpackets

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


          {
            support_list += "<br>";
          }
        }
        html.replace("%magicList%", support_list);
        html.replace("%mp%", String.valueOf(Math.round(getCurrentMp())));
        html.replace("%all%", Config.ALT_CH_ALL_BUFFS ? "<a action=\"bypass -h npc_%objectId%_support all\">Give all</a><br1><a action=\"bypass -h npc_%objectId%_support allW\">Give warrior</a><br1><a action=\"bypass -h npc_%objectId%_support allM\">Give mystic</a><br>" : "");
        sendHtmlMessage(player, html);
      }
      else if(val.equalsIgnoreCase("back"))
      {
View Full Code Here


            support_list += "<br>";
          }
        }
        html.replace("%magicList%", support_list);
        html.replace("%mp%", String.valueOf(Math.round(getCurrentMp())));
        html.replace("%all%", Config.ALT_CH_ALL_BUFFS ? "<a action=\"bypass -h npc_%objectId%_support all\">Give all</a><br1><a action=\"bypass -h npc_%objectId%_support allW\">Give warrior</a><br1><a action=\"bypass -h npc_%objectId%_support allM\">Give mystic</a><br>" : "");
        sendHtmlMessage(player, html);
      }
      else if(val.equalsIgnoreCase("back"))
      {
        showChatWindow(player, 0);
View Full Code Here

      {
        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
        html.setFile("data/html/residence/functions.htm");
        if(getResidence().isFunctionActive(ResidenceFunction.RESTORE_EXP))
        {
          html.replace("%xp_regen%", String.valueOf(getResidence().getFunction(ResidenceFunction.RESTORE_EXP).getLevel()) + "%");
        }
        else
        {
          html.replace("%xp_regen%", "0%");
        }
View Full Code Here

        {
          html.replace("%xp_regen%", String.valueOf(getResidence().getFunction(ResidenceFunction.RESTORE_EXP).getLevel()) + "%");
        }
        else
        {
          html.replace("%xp_regen%", "0%");
        }
        if(getResidence().isFunctionActive(ResidenceFunction.RESTORE_HP))
        {
          html.replace("%hp_regen%", String.valueOf(getResidence().getFunction(ResidenceFunction.RESTORE_HP).getLevel()) + "%");
        }
View Full Code Here

        {
          html.replace("%xp_regen%", "0%");
        }
        if(getResidence().isFunctionActive(ResidenceFunction.RESTORE_HP))
        {
          html.replace("%hp_regen%", String.valueOf(getResidence().getFunction(ResidenceFunction.RESTORE_HP).getLevel()) + "%");
        }
        else
        {
          html.replace("%hp_regen%", "0%");
        }
View Full Code Here

        {
          html.replace("%hp_regen%", String.valueOf(getResidence().getFunction(ResidenceFunction.RESTORE_HP).getLevel()) + "%");
        }
        else
        {
          html.replace("%hp_regen%", "0%");
        }
        if(getResidence().isFunctionActive(ResidenceFunction.RESTORE_MP))
        {
          html.replace("%mp_regen%", String.valueOf(getResidence().getFunction(ResidenceFunction.RESTORE_MP).getLevel()) + "%");
        }
View Full Code Here

        {
          html.replace("%hp_regen%", "0%");
        }
        if(getResidence().isFunctionActive(ResidenceFunction.RESTORE_MP))
        {
          html.replace("%mp_regen%", String.valueOf(getResidence().getFunction(ResidenceFunction.RESTORE_MP).getLevel()) + "%");
        }
        else
        {
          html.replace("%mp_regen%", "0%");
        }
View Full Code Here

        {
          html.replace("%mp_regen%", String.valueOf(getResidence().getFunction(ResidenceFunction.RESTORE_MP).getLevel()) + "%");
        }
        else
        {
          html.replace("%mp_regen%", "0%");
        }
        sendHtmlMessage(player, html);
      }
    }
    else if(actualCommand.equalsIgnoreCase("manage"))
View Full Code Here

    }
    if(skill.getMpConsume() > getCurrentMp())
    {
      NpcHtmlMessage html = new NpcHtmlMessage(player, this);
      html.setFile("data/html/residence/NeedCoolTime.htm");
      html.replace("%mp%", String.valueOf(Math.round(getCurrentMp())));
      sendHtmlMessage(player, html);
      return false;
    }
    altUseSkill(skill, player);
    if(Config.ALT_BUFF_SUMMON && skill.getSkillType() != SkillType.SUMMON && player.getPet() != null && !player.getPet().isDead())
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
        {
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.