|
@@ -37,6 +37,7 @@ import com.l2jserver.gameserver.model.actor.L2Character;
|
|
import com.l2jserver.gameserver.model.actor.L2Npc;
|
|
import com.l2jserver.gameserver.model.actor.L2Npc;
|
|
import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
|
|
import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
|
|
import com.l2jserver.gameserver.model.interfaces.IIdentifiable;
|
|
import com.l2jserver.gameserver.model.interfaces.IIdentifiable;
|
|
|
|
+import com.l2jserver.gameserver.model.interfaces.ILocational;
|
|
import com.l2jserver.gameserver.model.interfaces.IPositionable;
|
|
import com.l2jserver.gameserver.model.interfaces.IPositionable;
|
|
import com.l2jserver.gameserver.model.zone.type.NpcSpawnTerritory;
|
|
import com.l2jserver.gameserver.model.zone.type.NpcSpawnTerritory;
|
|
import com.l2jserver.util.Rnd;
|
|
import com.l2jserver.util.Rnd;
|
|
@@ -251,7 +252,9 @@ public class L2Spawn implements IPositionable, IIdentifiable
|
|
|
|
|
|
/**
|
|
/**
|
|
* Set the x, y, z position of the spawn point.
|
|
* Set the x, y, z position of the spawn point.
|
|
- * @param z the z coordinate
|
|
|
|
|
|
+ * @param x The x coordinate.
|
|
|
|
+ * @param y The y coordinate.
|
|
|
|
+ * @param z The z coordinate.
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public void setXYZ(int x, int y, int z)
|
|
public void setXYZ(int x, int y, int z)
|
|
@@ -261,6 +264,17 @@ public class L2Spawn implements IPositionable, IIdentifiable
|
|
setZ(z);
|
|
setZ(z);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Set the x, y, z position of the spawn point.
|
|
|
|
+ * @param loc The location.
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public void setXYZ(ILocational loc)
|
|
|
|
+ {
|
|
|
|
+ setXYZ(loc.getX(), loc.getY(), loc.getZ());
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @return the heading of L2NpcInstance when they are spawned.
|
|
* @return the heading of L2NpcInstance when they are spawned.
|
|
*/
|
|
*/
|