Stop movement when trying to talk to a moving NPC.
This commit is contained in:
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -112,6 +112,13 @@ public class NpcAction implements IActionHandler
|
|||||||
{
|
{
|
||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.isEventMob())
|
if (npc.isEventMob())
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
@@ -115,6 +115,13 @@ public class NpcAction implements IActionHandler
|
|||||||
npc.onRandomAnimation(Rnd.get(8));
|
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
|
// Open a chat window on client with the text of the Npc
|
||||||
if (npc.getVariables().getBoolean("eventmob", false))
|
if (npc.getVariables().getBoolean("eventmob", false))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user