Addition of timed hunting zones.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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());
|
||||
|
@@ -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>
|
||||
|
28
L2J_Mobius_8.0_Homunculus/dist/game/data/zones/timed_hunting.xml
vendored
Normal file
28
L2J_Mobius_8.0_Homunculus/dist/game/data/zones/timed_hunting.xml
vendored
Normal 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>
|
Reference in New Issue
Block a user