How i can set L2Npc.Java for add %playername& to add this in texts?
I have edited this method
public void showChatWindow(L2PcInstance player, String filename)
{
// Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
html.setFile(player.getHtmlPrefix(), filename);
html.replace("%objectId%", String.valueOf(getObjectId()));
html.replace("%exp%", String.valueOf((Config.RATE_XP)));
html.replace("%sp%", String.valueOf((Config.RATE_SP)));
html.replace("%drop%", String.valueOf((Config.RATE_DEATH_DROP_AMOUNT_MULTIPLIER)));
html.replace("%type%", String.valueOf(player.isPremium() ? "Premium" : "Normal"));
player.sendPacket(html);
// Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
player.sendPacket(ActionFailed.STATIC_PACKET);
}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
While I respect every other admin who launches a server, including L2Gold, I can proudly say that we’ve built a community where each season brings significant changes and numerous updates. We had anywhere from a few hundred players to nearly one thousand unique players (season 2).
The server has already been rebuilt three times on different client protocols, each time introducing something fresh to the table. L2Gold Essence against most other servers; you’ll notice the difference immediately: no lag, no odd movement bugs, the best geodata (which we’ve continually improved), high FPS during mass PvP, and overall smooth gameplay. Just a single in-game click makes the contrast clear compared to servers that still feel stuck in 2007 in terms of innovation. There were times when things went very wrong due to major code reworks, refactors, and the lack of proper testing, but everything was eventually resolved.
Not only that, but we’ve also attracted CPs and clans that had never played L2Gold before. That’s one of the main reasons why we reached a higher player count than any gold-style server when compared to the original one back in the days.
100~ videos playlist:
Gmail account pricing has been updated - just 12 cents each, with discounts available for bulk purchases.
Our new Telegram channel for news, discounts, and updates - https://t.me/exfanet
New Numbers Available for Rent!
We’ve added USA Unlimited 30-day and Unlimited 7-day numbers.
📩 With these numbers, you can receive an unlimited number of messages from various services convenient and reliable!
Website link — https://vibe-sms.net/
Our Telegram channel — https://t.me/vibe_sms
sell adena
l2rebon signature x1 - 1kk = 1 dollars
l2reborn x10 - 500kk = 4 dollars
E-Global x Lu4 - 1kk = 2 dollars
BOHPTS - x20-x500 TOP PRICE
DISCORD - GODDARDSHOP
TELEGRAM - MMOPROMO
Also on sale are Epic jewelry, Clothes at a very good price
Question
InFocus
How i can set L2Npc.Java for add %playername& to add this in texts?
I have edited this method
public void showChatWindow(L2PcInstance player, String filename) { // Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(player.getHtmlPrefix(), filename); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%exp%", String.valueOf((Config.RATE_XP))); html.replace("%sp%", String.valueOf((Config.RATE_SP))); html.replace("%drop%", String.valueOf((Config.RATE_DEATH_DROP_AMOUNT_MULTIPLIER))); html.replace("%type%", String.valueOf(player.isPremium() ? "Premium" : "Normal")); player.sendPacket(html); // Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet player.sendPacket(ActionFailed.STATIC_PACKET); }
and in game html says %exp% not the exp rate
18 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.