diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/html/npcdefault.htm b/L2J_Mobius_1.0_Ertheia/dist/game/data/html/npcdefault.htm index 1aa1f2ea31..54b48dc398 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/html/npcdefault.htm +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/html/npcdefault.htm @@ -1,3 +1,4 @@ -I have nothing to say to you.
+%npcname%:
+I have nothing to say to you.
\ No newline at end of file diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/L2Npc.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/L2Npc.java index 8c8def011b..9a0b9afcc9 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/L2Npc.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/L2Npc.java @@ -848,6 +848,7 @@ public class L2Npc extends L2Character // 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("%npcname%", getName()); html.replace("%objectId%", String.valueOf(getObjectId())); player.sendPacket(html); diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/html/npcdefault.htm b/L2J_Mobius_2.5_Underground/dist/game/data/html/npcdefault.htm index 1aa1f2ea31..54b48dc398 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/html/npcdefault.htm +++ b/L2J_Mobius_2.5_Underground/dist/game/data/html/npcdefault.htm @@ -1,3 +1,4 @@ -I have nothing to say to you.
+%npcname%:
+I have nothing to say to you.
\ No newline at end of file diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/L2Npc.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/L2Npc.java index 6d3cc44c65..198ad58f98 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/L2Npc.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/L2Npc.java @@ -848,6 +848,7 @@ public class L2Npc extends L2Character // 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("%npcname%", getName()); html.replace("%objectId%", String.valueOf(getObjectId())); player.sendPacket(html); diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/html/npcdefault.htm b/L2J_Mobius_3.0_Helios/dist/game/data/html/npcdefault.htm index 1aa1f2ea31..54b48dc398 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/html/npcdefault.htm +++ b/L2J_Mobius_3.0_Helios/dist/game/data/html/npcdefault.htm @@ -1,3 +1,4 @@ -I have nothing to say to you.
+%npcname%:
+I have nothing to say to you.
\ No newline at end of file diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/L2Npc.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/L2Npc.java index 6d3cc44c65..198ad58f98 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/L2Npc.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/L2Npc.java @@ -848,6 +848,7 @@ public class L2Npc extends L2Character // 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("%npcname%", getName()); html.replace("%objectId%", String.valueOf(getObjectId())); player.sendPacket(html); diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/npcdefault.htm b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/npcdefault.htm index 1aa1f2ea31..54b48dc398 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/npcdefault.htm +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/html/npcdefault.htm @@ -1,3 +1,4 @@ -I have nothing to say to you.
+%npcname%:
+I have nothing to say to you.
\ No newline at end of file diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/L2Npc.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/L2Npc.java index 6d3cc44c65..198ad58f98 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/L2Npc.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/L2Npc.java @@ -848,6 +848,7 @@ public class L2Npc extends L2Character // 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("%npcname%", getName()); html.replace("%objectId%", String.valueOf(getObjectId())); player.sendPacket(html); diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/npcdefault.htm b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/npcdefault.htm index bed65a84b9..084eb43331 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/npcdefault.htm +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/html/npcdefault.htm @@ -1,3 +1,4 @@ -I have nothing to say to you
+%npcname%:
+I have nothing to say to you.
Quest \ No newline at end of file diff --git a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/L2Npc.java b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/L2Npc.java index 01d98cc804..69b82d443d 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/L2Npc.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/L2Npc.java @@ -1179,6 +1179,7 @@ public class L2Npc extends L2Character } } + html.replace("%npcname%", String.valueOf(getName())); html.replace("%objectId%", String.valueOf(getObjectId())); html.replace("%festivalMins%", SevenSignsFestival.getInstance().getTimeToNextFestivalStr()); player.sendPacket(html); diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/npcdefault.htm b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/npcdefault.htm index 1aa1f2ea31..54b48dc398 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/npcdefault.htm +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/html/npcdefault.htm @@ -1,3 +1,4 @@ -I have nothing to say to you.
+%npcname%:
+I have nothing to say to you.
\ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/L2Npc.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/L2Npc.java index 87387f0f95..62fb2f64c8 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/L2Npc.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/L2Npc.java @@ -848,6 +848,7 @@ public class L2Npc extends L2Character // 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("%npcname%", getName()); html.replace("%objectId%", String.valueOf(getObjectId())); player.sendPacket(html);