Increased spawn z values by a fixed value (64) to fix spawn zone issues.

This commit is contained in:
MobiusDevelopment
2021-03-12 14:14:47 +00:00
parent 4267cab18f
commit 18800e1b65
23 changed files with 23 additions and 23 deletions

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -445,7 +445,7 @@ public class Spawn
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true) < 300)
{

View File

@@ -445,7 +445,7 @@ public class Spawn
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true) < 300)
{

View File

@@ -402,7 +402,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -402,7 +402,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{

View File

@@ -408,7 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
// Correct Z of monsters. Do not correct Z of flying NPCs.
if (npc.isMonster() && !npc.isFlying())
{
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
final int geoZ = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz) + 64;
// Do not correct Z distances greater than 300.
if (Util.calculateDistance(newlocx, newlocy, newlocz, newlocx, newlocy, geoZ, true, false) < 300)
{