Reset initial monster position on delete.
This commit is contained in:
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2468,6 +2468,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1721,6 +1721,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1721,6 +1721,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1721,6 +1721,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1722,6 +1722,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set world region to null.
|
// Set world region to null.
|
||||||
setWorldRegion(null);
|
setWorldRegion(null);
|
||||||
|
|
||||||
|
// Reset initial monster position.
|
||||||
|
if (isMonster() && (((Npc) this).getSpawn() != null))
|
||||||
|
{
|
||||||
|
ThreadPool.schedule(() ->
|
||||||
|
{
|
||||||
|
setXYZ(0, 0, -10000);
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user