Prevent stopping key movement when facing doors.
This commit is contained in:
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -94,7 +94,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Mobius: Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceId()))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceId()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -94,7 +94,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mobius: Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Mobius: Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceId()))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceId()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -77,7 +77,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceId(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceId()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -77,7 +77,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceId(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceId()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -77,7 +77,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceId(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceId()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
@@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
|
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
|
||||||
{
|
{
|
||||||
player.stopMove(player.getLastServerPosition());
|
player.stopMove(player.getLastServerPosition());
|
||||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
|
Reference in New Issue
Block a user