diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index 000de4be09..05ec2e82c8 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -112,6 +112,13 @@ public class NpcAction implements IActionHandler { npc.onRandomAnimation(Rnd.get(8)); } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.isEventMob()) { diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) { diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java index cfc7bd79fb..9fa69784a5 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/actionhandlers/NpcAction.java @@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler npc.onRandomAnimation(Rnd.get(8)); } } + + // Stop movement when trying to talk to a moving NPC. + if (npc.isMoving()) + { + player.stopMove(null); + } + // Open a chat window on client with the text of the Npc if (npc.getVariables().getBoolean("eventmob", false)) {