Prohibit entering timed zones while having karma or being in combat.
This commit is contained in:
parent
a6e14b324f
commit
169df4d6fc
@ -48,6 +48,16 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.isInCombat())
|
||||
{
|
||||
player.sendMessage("You can only enter in time-limited hunting zones while not in combat.");
|
||||
return;
|
||||
}
|
||||
if (player.getReputation() < 0)
|
||||
{
|
||||
player.sendMessage("You can only enter in time-limited hunting zones when you have positive reputation.");
|
||||
return;
|
||||
}
|
||||
if (player.isMounted())
|
||||
{
|
||||
player.sendMessage("Cannot use time-limited hunting zones while mounted.");
|
||||
|
@ -47,6 +47,16 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.isInCombat())
|
||||
{
|
||||
player.sendMessage("You can only enter in time-limited hunting zones while not in combat.");
|
||||
return;
|
||||
}
|
||||
if (player.getReputation() < 0)
|
||||
{
|
||||
player.sendMessage("You can only enter in time-limited hunting zones when you have positive reputation.");
|
||||
return;
|
||||
}
|
||||
if (player.isMounted())
|
||||
{
|
||||
player.sendMessage("Cannot use time-limited hunting zones while mounted.");
|
||||
|
Loading…
Reference in New Issue
Block a user