Players should use Scroll of Escape to exit hunting zones.
This commit is contained in:
@@ -52,7 +52,14 @@ public class ExRequestTeleport implements IClientIncomingPacket
|
|||||||
final TeleportListHolder teleport = TeleportListData.getInstance().getTeleport(_teleportId);
|
final TeleportListHolder teleport = TeleportListData.getInstance().getTeleport(_teleportId);
|
||||||
if (teleport == null)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -52,7 +52,14 @@ public class ExRequestTeleport implements IClientIncomingPacket
|
|||||||
final TeleportListHolder teleport = TeleportListData.getInstance().getTeleport(_teleportId);
|
final TeleportListHolder teleport = TeleportListData.getInstance().getTeleport(_teleportId);
|
||||||
if (teleport == null)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user