Correct Z of monsters.
This commit is contained in:
parent
3d3d4c30cd
commit
6145503dd6
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -462,7 +462,7 @@ public class Spawn
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -462,7 +462,7 @@ public class Spawn
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -402,7 +402,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -402,7 +402,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Correct Z of monsters.
|
// Correct Z of monsters.
|
||||||
if (!npc.isFlying() && (water == null))
|
if (npc.isMonster() && !npc.isFlying() && (water == null))
|
||||||
{
|
{
|
||||||
// Do not correct Z distances greater than 300.
|
// Do not correct Z distances greater than 300.
|
||||||
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
||||||
|
Loading…
Reference in New Issue
Block a user