Players should use Scroll of Escape to exit hunting zones.

This commit is contained in:
MobiusDevelopment 2020-01-23 01:41:06 +00:00
parent 1de26d2fa6
commit 12456c3e91
2 changed files with 16 additions and 2 deletions

View File

@ -52,7 +52,14 @@ public class ExRequestTeleport implements IClientIncomingPacket
final TeleportListHolder teleport = TeleportListData.getInstance().getTeleport(_teleportId);
if (teleport == null)
{
LOGGER.info("No registered teleport location for id: " + _teleportId);
LOGGER.warning("No registered teleport location for id: " + _teleportId);
return;
}
// Players should use Scroll of Escape to exit hunting zones.
if (player.isInTimedHuntingZone())
{
player.sendPacket(SystemMessageId.YOU_CANNOT_TELEPORT_RIGHT_NOW);
return;
}

View File

@ -52,7 +52,14 @@ public class ExRequestTeleport implements IClientIncomingPacket
final TeleportListHolder teleport = TeleportListData.getInstance().getTeleport(_teleportId);
if (teleport == null)
{
LOGGER.info("No registered teleport location for id: " + _teleportId);
LOGGER.warning("No registered teleport location for id: " + _teleportId);
return;
}
// Players should use Scroll of Escape to exit hunting zones.
if (player.isInTimedHuntingZone())
{
player.sendMessage("You cannot teleport right now.");
return;
}