Because of this post
https://l2jmobius.org/forum/index.php?topic=4504 I want to have source l2j geodata.
Try this with the geodata I shared.
Check both if monsters are killable and town NPCs.
Index: java/org/l2jmobius/gameserver/model/spawn/Spawn.java
===================================================================
--- java/org/l2jmobius/gameserver/model/spawn/Spawn.java (revision 7034)
+++ java/org/l2jmobius/gameserver/model/spawn/Spawn.java (working copy)
@@ -378,7 +378,6 @@
if (_template.getType().equalsIgnoreCase("Pet") || _template.getType().equalsIgnoreCase("Minion"))
{
_currentCount++;
-
return npc;
}
@@ -412,10 +411,6 @@
return npc;
}
- /**
- * @param npc
- * @return
- */
private NpcInstance initializeNpcInstance(NpcInstance npc)
{
int newlocx;
@@ -446,8 +441,8 @@
newlocz = _locZ;
}
- // Do not correct z of flying NPCs.
- if (!npc.isFlying())
+ // 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);
// Do not correct Z distances greater than 300.