Players should not be able to teleport out of special locations.

This commit is contained in:
MobiusDevelopment 2020-01-23 02:20:11 +00:00
parent 3563a89445
commit a64eb2a297
2 changed files with 4 additions and 4 deletions

View File

@ -56,8 +56,8 @@ public class ExRequestTeleport implements IClientIncomingPacket
return; return;
} }
// Players should use Scroll of Escape to exit hunting zones. // Players should not be able to teleport out of special locations.
if (player.isInTimedHuntingZone()) if (player.isInInstance() || player.isOnEvent() || player.isInOlympiadMode() || player.inObserverMode() || player.isInTraingCamp() || player.isInTimedHuntingZone())
{ {
player.sendPacket(SystemMessageId.YOU_CANNOT_TELEPORT_RIGHT_NOW); player.sendPacket(SystemMessageId.YOU_CANNOT_TELEPORT_RIGHT_NOW);
return; return;

View File

@ -56,8 +56,8 @@ public class ExRequestTeleport implements IClientIncomingPacket
return; return;
} }
// Players should use Scroll of Escape to exit hunting zones. // Players should not be able to teleport out of special locations.
if (player.isInTimedHuntingZone()) if (player.isInInstance() || player.isOnEvent() || player.isInOlympiadMode() || player.inObserverMode() || player.isInTraingCamp() || player.isInTimedHuntingZone())
{ {
player.sendMessage("You cannot teleport right now."); player.sendMessage("You cannot teleport right now.");
return; return;