Package lineage2.gameserver.network.serverpackets

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


      msg.replace("%min_bid%", String.valueOf(minBid));
     
      Calendar c = auctionEvent.getEndSiegeDate();
     
      msg.replace("%date%", DATE_FORMAT.format(c.getTimeInMillis()));
      msg.replace("%hour%", String.valueOf(c.get(Calendar.HOUR_OF_DAY)));
     
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("bid_confirm"))
    {
View Full Code Here


      }
     
      long returnVal = siegeClan.getParam() - (long) (siegeClan.getParam() * 0.1);
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_bid_cancel.htm");
      msg.replace("%id%", String.valueOf(id));
      msg.replace("%bid%", String.valueOf(siegeClan.getParam()));
      msg.replace("%return%", String.valueOf(returnVal));
     
      player.sendPacket(msg);
    }
View Full Code Here

     
      long returnVal = siegeClan.getParam() - (long) (siegeClan.getParam() * 0.1);
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_bid_cancel.htm");
      msg.replace("%id%", String.valueOf(id));
      msg.replace("%bid%", String.valueOf(siegeClan.getParam()));
      msg.replace("%return%", String.valueOf(returnVal));
     
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("cancel_bid_confirm"))
View Full Code Here

      long returnVal = siegeClan.getParam() - (long) (siegeClan.getParam() * 0.1);
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_bid_cancel.htm");
      msg.replace("%id%", String.valueOf(id));
      msg.replace("%bid%", String.valueOf(siegeClan.getParam()));
      msg.replace("%return%", String.valueOf(returnVal));
     
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("cancel_bid_confirm"))
    {
View Full Code Here

        return;
      }
     
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_clanhall_register_start.htm");
      msg.replace("%id%", String.valueOf(player.getClan().getHasHideout()));
      msg.replace("%adena%", String.valueOf(player.getClan().getWarehouse().getCountOf(ItemTemplate.ITEM_ID_ADENA)));
      msg.replace("%deposit%", String.valueOf(clanHall.getDeposit()));
     
      player.sendPacket(msg);
    }
View Full Code Here

      }
     
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_clanhall_register_start.htm");
      msg.replace("%id%", String.valueOf(player.getClan().getHasHideout()));
      msg.replace("%adena%", String.valueOf(player.getClan().getWarehouse().getCountOf(ItemTemplate.ITEM_ID_ADENA)));
      msg.replace("%deposit%", String.valueOf(clanHall.getDeposit()));
     
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("register_next"))
View Full Code Here

     
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_clanhall_register_start.htm");
      msg.replace("%id%", String.valueOf(player.getClan().getHasHideout()));
      msg.replace("%adena%", String.valueOf(player.getClan().getWarehouse().getCountOf(ItemTemplate.ITEM_ID_ADENA)));
      msg.replace("%deposit%", String.valueOf(clanHall.getDeposit()));
     
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("register_next"))
    {
View Full Code Here

        return;
      }
     
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_clanhall_register_next.htm");
      msg.replace("%min_bid%", String.valueOf(clanHall.getBaseMinBid()));
      msg.replace("%last_bid%", String.valueOf(clanHall.getBaseMinBid())); // TODO [VISTALL] get last bid
     
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("register_next2"))
View Full Code Here

      }
     
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_clanhall_register_next.htm");
      msg.replace("%min_bid%", String.valueOf(clanHall.getBaseMinBid()));
      msg.replace("%last_bid%", String.valueOf(clanHall.getBaseMinBid())); // TODO [VISTALL] get last bid
     
      player.sendPacket(msg);
    }
    else if (actualCommand.equalsIgnoreCase("register_next2"))
    {
View Full Code Here

      Calendar cal = Calendar.getInstance();
      cal.add(Calendar.HOUR_OF_DAY, day);
     
      NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
      msg.setFile("residence2/clanhall/auction_clanhall_register_confirm.htm");
      msg.replace("%description%", comment);
      msg.replace("%day%", String.valueOf(day));
      msg.replace("%bid%", String.valueOf(bid));
      msg.replace("%base_bid%", String.valueOf(clanHall.getBaseMinBid()));
      msg.replace("%hour%", String.valueOf(cal.get(Calendar.HOUR_OF_DAY)));
      msg.replace("%date%", DATE_FORMAT.format(cal.getTimeInMillis()));
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.