Examples of replaceNpcString()


Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

    {
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/watering_manager005.htm");
      if (_generated == -1)
      {
        msg.replaceNpcString("%word%", NpcString.UNDECIDED);
      }
      else
      {
        msg.replace("%word%", WORLD_LIST[_generated].getName());
      }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

        {
          msg.replace("%clan_" + i + "%", siegeClan.getClan().getName());
        }
        else
        {
          msg.replaceNpcString("%clan_" + i + "%", NpcString.__UNREGISTERED__);
        }
        msg.replace("%clan_count_" + i + "%", siegeClan == null ? StringUtils.EMPTY : String.valueOf(siegeClan.getPlayers().size()));
      }
      player.sendPacket(msg);
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

      Fortress fortress = getFortress();
      if (fortress.getContractState() == Fortress.CONTRACT_WITH_CASTLE)
      {
        html.setFile("residence2/fortress/fortress_steward022.htm");
        html.replace("%castle_name%", HtmlUtils.htmlResidenceName(getFortress().getCastleId()));
        html.replaceNpcString("%contract%", NpcString.CONTRACT_STATE);
        long leftTime = (REWARD_CYCLE - (3600 - fortress.getCycleDelay()) - (fortress.getPaidCycle() * 3600)) / 60;
        html.replace("%rent_cost%", String.valueOf(Fortress.CASTLE_FEE));
        html.replace("%next_hour%", String.valueOf(leftTime / 60));
        html.replace("%next_min%", String.valueOf(leftTime % 60));
      }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

      }
      else
      {
        html.setFile("residence2/fortress/fortress_steward023.htm");
      }
      html.replaceNpcString("%time_remained%", NpcString.S1HOUR_S2MINUTE, ownedTime / 60, ownedTime % 60);
      player.sendPacket(html);
    }
    else
    {
      super.onBypassFeedback(player, command);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

              {
                player.getInventory().addItem(ItemFunctions.createItem(34925));
                NpcHtmlMessage html = new NpcHtmlMessage(player, this);
                html.setFile("castle/CourtMagician/CourtMagician-givecloak.htm");
                html.replace("%CharName%", player.getName());
                html.replaceNpcString("%FeudName%", player.getCastle().getNpcStringName());
                player.sendPacket(html);
              }
              else
              {
                NpcHtmlMessage html = new NpcHtmlMessage(player, this);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

              {
                player.getInventory().addItem(ItemFunctions.createItem(34926));
                NpcHtmlMessage html = new NpcHtmlMessage(player, this);
                html.setFile("castle/CourtMagician/CourtMagician-givecloak.htm");
                html.replace("%CharName%", player.getName());
                html.replaceNpcString("%FeudName%", player.getCastle().getNpcStringName());
                player.sendPacket(html);
              }
              else
              {
                NpcHtmlMessage html = new NpcHtmlMessage(player, this);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

        {
          msg.replace("%clan_" + i + "%", siegeClan.getClan().getName());
        }
        else
        {
          msg.replaceNpcString("%clan_" + i + "%", NpcString.__UNREGISTERED__);
        }
        msg.replace("%clan_count_" + i + "%", siegeClan == null ? StringUtils.EMPTY : String.valueOf(siegeClan.getPlayers().size()));
      }
      player.sendPacket(msg);
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

        player.getInventory().addItem(ItemFunctions.createItem(6841));

        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
        html.setFile("castle/chamberlain/chamberlain-givecrown.htm");
        html.replace("%CharName%", player.getName());
        html.replaceNpcString("%FeudName%", castle.getNpcStringName());
        player.sendPacket(html);
      }
      else
      {
        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

        player.getInventory().addItem(ItemFunctions.createItem(34996));

        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
        html.setFile("castle/chamberlain/chamberlain-givecloak.htm");
        html.replace("%CharName%", player.getName());
        html.replaceNpcString("%FeudName%", castle.getNpcStringName());
        player.sendPacket(html);
      }
      else
      {
        NpcHtmlMessage html = new NpcHtmlMessage(player, this);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcHtmlMessage.replaceNpcString()

        return;
      }

      NpcHtmlMessage html = new NpcHtmlMessage(player, this);
      html.setFile("castle/chamberlain/chamberlain-report.htm");
      html.replaceNpcString("%FeudName%", castle.getNpcStringName());
      html.replace("%CharClan%", player.getClan().getName());
      html.replace("%CharName%", player.getName());
      player.sendPacket(html);
    }
    else if(actualCommand.equalsIgnoreCase("fortressStatus"))
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.