Fixed climbing walls and stuck inside water.
Contributed by Sahar.
This commit is contained in:
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -3397,7 +3397,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -3397,7 +3397,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
+9
-1
@@ -3397,7 +3397,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
+9
-1
@@ -5530,7 +5530,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -5576,7 +5576,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -4339,7 +4339,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -4341,7 +4341,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
+9
-1
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -849,6 +849,10 @@
|
|||||||
<node X="43136" Y="169984" />
|
<node X="43136" Y="169984" />
|
||||||
<node X="44608" Y="170624" />
|
<node X="44608" Y="170624" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
|
||||||
|
<node X="32768" Y="196608" />
|
||||||
|
<node X="65536" Y="229376" />
|
||||||
|
</zone>
|
||||||
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
||||||
<node X="32768" Y="229379" />
|
<node X="32768" Y="229379" />
|
||||||
<node X="65536" Y="262147" />
|
<node X="65536" Y="262147" />
|
||||||
|
|||||||
+9
-1
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -849,6 +849,10 @@
|
|||||||
<node X="43136" Y="169984" />
|
<node X="43136" Y="169984" />
|
||||||
<node X="44608" Y="170624" />
|
<node X="44608" Y="170624" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
|
||||||
|
<node X="32768" Y="196608" />
|
||||||
|
<node X="65536" Y="229376" />
|
||||||
|
</zone>
|
||||||
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
||||||
<node X="32768" Y="229379" />
|
<node X="32768" Y="229379" />
|
||||||
<node X="65536" Y="262147" />
|
<node X="65536" Y="262147" />
|
||||||
|
|||||||
+9
-1
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -849,6 +849,10 @@
|
|||||||
<node X="43136" Y="169984" />
|
<node X="43136" Y="169984" />
|
||||||
<node X="44608" Y="170624" />
|
<node X="44608" Y="170624" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
|
||||||
|
<node X="32768" Y="196608" />
|
||||||
|
<node X="65536" Y="229376" />
|
||||||
|
</zone>
|
||||||
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
||||||
<node X="32768" Y="229379" />
|
<node X="32768" Y="229379" />
|
||||||
<node X="65536" Y="262147" />
|
<node X="65536" Y="262147" />
|
||||||
|
|||||||
+9
-1
@@ -3411,7 +3411,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -849,6 +849,10 @@
|
|||||||
<node X="43136" Y="169984" />
|
<node X="43136" Y="169984" />
|
||||||
<node X="44608" Y="170624" />
|
<node X="44608" Y="170624" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
|
||||||
|
<node X="32768" Y="196608" />
|
||||||
|
<node X="65536" Y="229376" />
|
||||||
|
</zone>
|
||||||
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
||||||
<node X="32768" Y="229379" />
|
<node X="32768" Y="229379" />
|
||||||
<node X="65536" Y="262147" />
|
<node X="65536" Y="262147" />
|
||||||
|
|||||||
+9
-1
@@ -3411,7 +3411,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -849,6 +849,10 @@
|
|||||||
<node X="43136" Y="169984" />
|
<node X="43136" Y="169984" />
|
||||||
<node X="44608" Y="170624" />
|
<node X="44608" Y="170624" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
|
||||||
|
<node X="32768" Y="196608" />
|
||||||
|
<node X="65536" Y="229376" />
|
||||||
|
</zone>
|
||||||
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
||||||
<node X="32768" Y="229379" />
|
<node X="32768" Y="229379" />
|
||||||
<node X="65536" Y="262147" />
|
<node X="65536" Y="262147" />
|
||||||
|
|||||||
+9
-1
@@ -3410,7 +3410,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -849,6 +849,10 @@
|
|||||||
<node X="43136" Y="169984" />
|
<node X="43136" Y="169984" />
|
||||||
<node X="44608" Y="170624" />
|
<node X="44608" Y="170624" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
|
||||||
|
<node X="32768" Y="196608" />
|
||||||
|
<node X="65536" Y="229376" />
|
||||||
|
</zone>
|
||||||
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
||||||
<node X="32768" Y="229379" />
|
<node X="32768" Y="229379" />
|
||||||
<node X="65536" Y="262147" />
|
<node X="65536" Y="262147" />
|
||||||
|
|||||||
+9
-1
@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -849,6 +849,10 @@
|
|||||||
<node X="43136" Y="169984" />
|
<node X="43136" Y="169984" />
|
||||||
<node X="44608" Y="170624" />
|
<node X="44608" Y="170624" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
|
||||||
|
<node X="32768" Y="196608" />
|
||||||
|
<node X="65536" Y="229376" />
|
||||||
|
</zone>
|
||||||
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
||||||
<node X="32768" Y="229379" />
|
<node X="32768" Y="229379" />
|
||||||
<node X="65536" Y="262147" />
|
<node X="65536" Y="262147" />
|
||||||
|
|||||||
+9
-1
@@ -3413,7 +3413,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -849,6 +849,10 @@
|
|||||||
<node X="43136" Y="169984" />
|
<node X="43136" Y="169984" />
|
||||||
<node X="44608" Y="170624" />
|
<node X="44608" Y="170624" />
|
||||||
</zone>
|
</zone>
|
||||||
|
<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
|
||||||
|
<node X="32768" Y="196608" />
|
||||||
|
<node X="65536" Y="229376" />
|
||||||
|
</zone>
|
||||||
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
|
||||||
<node X="32768" Y="229379" />
|
<node X="32768" Y="229379" />
|
||||||
<node X="65536" Y="262147" />
|
<node X="65536" Y="262147" />
|
||||||
|
|||||||
+9
-1
@@ -3420,7 +3420,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
|
||||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||||
{
|
{
|
||||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
if (isPlayer() && !_isFlying && !isInWater)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||||
// {
|
// {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user