Addition of timed hunting zones.

This commit is contained in:
MobiusDevelopment
2020-10-28 21:23:18 +00:00
parent a9f4efffd0
commit 14c5c79053
52 changed files with 420 additions and 156 deletions

View File

@@ -135,7 +135,7 @@ public class CallPc extends AbstractEffect
return false;
}
if (target.isFlyingMounted() || target.isCombatFlagEquipped() || target.isInTraingCamp() || target.isInTimedHuntingZone() || effector.isInTimedHuntingZone())
if (target.isFlyingMounted() || target.isCombatFlagEquipped() || target.isInTraingCamp() || target.isInsideZone(ZoneId.TIMED_HUNTING) || effector.isInsideZone(ZoneId.TIMED_HUNTING))
{
effector.sendPacket(SystemMessageId.YOU_CANNOT_USE_SUMMONING_OR_TELEPORTING_IN_THIS_AREA);
return false;
@@ -158,7 +158,7 @@ public class CallPc extends AbstractEffect
}
final Instance instance = effector.getInstanceWorld();
if (((instance != null) && !instance.isPlayerSummonAllowed()) || effector.isInTimedHuntingZone())
if ((instance != null) && !instance.isPlayerSummonAllowed())
{
effector.sendPacket(SystemMessageId.YOU_MAY_NOT_SUMMON_FROM_YOUR_CURRENT_LOCATION);
return false;

View File

@@ -109,7 +109,7 @@ public class TeleportToPlayer extends AbstractEffect
}
final Instance instance = target.getInstanceWorld();
if (((instance != null) && !instance.isPlayerSummonAllowed()) || target.isInTimedHuntingZone())
if (((instance != null) && !instance.isPlayerSummonAllowed()) || target.isInsideZone(ZoneId.TIMED_HUNTING))
{
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_IS_IN_AN_AREA_WHICH_BLOCKS_SUMMONING_OR_TELEPORTING);
sm.addString(target.getName());

View File

@@ -173,6 +173,7 @@
<xs:enumeration value="SayuneZone" />
<xs:enumeration value="UndyingZone" />
<xs:enumeration value="TeleportZone" />
<xs:enumeration value="TimedHuntingZone" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<list enabled="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/zones.xsd">
<!-- Timed Hunting Zones -->
<zone name="storm_isle_hz" type="TimedHuntingZone" shape="Cuboid" minZ="-16000" maxZ="10000">
<node X="163840" Y="176604" />
<node X="196607" Y="196607" />
</zone>
<zone name="primeval_isle_hz" type="TimedHuntingZone" shape="Cuboid" minZ="-16000" maxZ="10000">
<node X="0" Y="-32768" />
<node X="32767" Y="-1" />
</zone>
<zone name="golden_altar_hz" type="TimedHuntingZone" shape="Cuboid" minZ="-16000" maxZ="10000">
<node X="-131072" Y="65536" />
<node X="-98305" Y="98303" />
</zone>
<zone name="coal_mines_hz" type="TimedHuntingZone" shape="Cuboid" minZ="-16000" maxZ="10000">
<node X="131072" Y="-196608" />
<node X="163839" Y="-163841" />
</zone>
<zone name="toi_hz" type="TimedHuntingZone" shape="Cuboid" minZ="-16000" maxZ="10000">
<node X="-98304" Y="0" />
<node X="-65537" Y="32767" />
</zone>
<zone name="imperial_tomb_hz" type="TimedHuntingZone" shape="Cuboid" minZ="-16000" maxZ="10000">
<node X="163840" Y="-98304" />
<node X="196607" Y="-65537" />
</zone>
</list>