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);
}
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
Storm War
Nuestro servidor cuenta con el sistema de subclase acumulativa. Al alcanzar el nivel 75 en cada subclase, se crea el personaje y se obtiene la primera y segunda profesión. Al llegar al nivel 75, se debe hacer la subclase, repitiendo este proceso tres veces. La última subclase será la principal, que es la que debe avanzar a la tercera profesión y con la cual se participará en las olimpiadas. Cabe recordar que no se puede cambiar ninguna subclase una vez elegida. Las subclases se realizan en el NPC ubicado en Giran.
https://www.storm-war.com.ar/
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
Link to comment
Share on other sites
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.