Players should not be able to teleport out of special locations.
This commit is contained in:
parent
3563a89445
commit
a64eb2a297
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user