Package l2p.gameserver.serverpackets

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


      {
        html.replace(search, "");
      }
      else
      {
        html.replace(search, "" + cost[val - 11]);
        player.setRace(1, val - 10);
      }
    }
    else if(val == 20)
    {
View Full Code Here


      {
        return;
      }
      filename = getHtmlPath(npcId, 4);
      html.setFile(filename);
      html.replace("0place", "" + player.getRace(0));
      search = "Mob1";
      replace = MonsterRace.getInstance().getMonsters()[player.getRace(0) - 1].getTemplate().name;
      html.replace(search, replace);
      search = "0adena";
      int price = cost[player.getRace(1) - 1];
View Full Code Here

      filename = getHtmlPath(npcId, 4);
      html.setFile(filename);
      html.replace("0place", "" + player.getRace(0));
      search = "Mob1";
      replace = MonsterRace.getInstance().getMonsters()[player.getRace(0) - 1].getTemplate().name;
      html.replace(search, replace);
      search = "0adena";
      int price = cost[player.getRace(1) - 1];
      html.replace(search, "" + price);
      search = "0tax";
      int tax = 0;
View Full Code Here

      search = "Mob1";
      replace = MonsterRace.getInstance().getMonsters()[player.getRace(0) - 1].getTemplate().name;
      html.replace(search, replace);
      search = "0adena";
      int price = cost[player.getRace(1) - 1];
      html.replace(search, "" + price);
      search = "0tax";
      int tax = 0;
      html.replace(search, "" + tax);
      search = "0total";
      int total = price + tax;
View Full Code Here

      search = "0adena";
      int price = cost[player.getRace(1) - 1];
      html.replace(search, "" + price);
      search = "0tax";
      int tax = 0;
      html.replace(search, "" + tax);
      search = "0total";
      int total = price + tax;
      html.replace(search, "" + total);
    }
    else
View Full Code Here

      search = "0tax";
      int tax = 0;
      html.replace(search, "" + tax);
      search = "0total";
      int total = price + tax;
      html.replace(search, "" + total);
    }
    else
    {
      if(player.getRace(0) == 0 || player.getRace(1) == 0)
      {
View Full Code Here

      item.setCustomType1(ticket);
      item.setCustomType2(cost[priceId - 1] / 100);
      player.getInventory().addItem(item);
      return;
    }
    html.replace("1race", String.valueOf(_raceNumber));
    player.sendPacket(html);
    player.sendActionFailed();
  }

  public class Race
View Full Code Here

          break;
      }
    }
    NpcHtmlMessage html = new NpcHtmlMessage(player, this, filename, val);
    L2Clan clanowner = ClanTable.getInstance().getClan(getClanHall().getOwnerId());
    html.replace("%clanname%", clanowner != null ? clanowner.getName() : "NPC");
    html.replace("%clanlidername%", clanowner != null ? clanowner.getLeaderName() : "NPC");
    player.sendPacket(html);
  }

  protected int validateCondition(L2Player player)
View Full Code Here

      }
    }
    NpcHtmlMessage html = new NpcHtmlMessage(player, this, filename, val);
    L2Clan clanowner = ClanTable.getInstance().getClan(getClanHall().getOwnerId());
    html.replace("%clanname%", clanowner != null ? clanowner.getName() : "NPC");
    html.replace("%clanlidername%", clanowner != null ? clanowner.getLeaderName() : "NPC");
    player.sendPacket(html);
  }

  protected int validateCondition(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);
    }
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.