Prevent Lindvior scene missing spawn NPE.
This commit is contained in:
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -48,10 +49,6 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
private static boolean ALT_MODE = false;
|
private static boolean ALT_MODE = false;
|
||||||
private static int ALT_MODE_MIN = 60; // schedule delay in minutes if ALT_MODE enabled
|
private static int ALT_MODE_MIN = 60; // schedule delay in minutes if ALT_MODE enabled
|
||||||
|
|
||||||
private Npc _lindviorCamera = null;
|
|
||||||
private Npc _tomaris = null;
|
|
||||||
private Npc _artius = null;
|
|
||||||
|
|
||||||
public LindviorScene()
|
public LindviorScene()
|
||||||
{
|
{
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
@@ -87,13 +84,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
_lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
_tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
_artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
startQuestTimer("tomaris_shout1", 1000, _tomaris, null);
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
startQuestTimer("artius_shout", 60000, _artius, null);
|
{
|
||||||
startQuestTimer("tomaris_shout2", 90000, _tomaris, null);
|
break;
|
||||||
startQuestTimer("lindvior_scene", 120000, _lindviorCamera, null);
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -48,10 +49,6 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
private static boolean ALT_MODE = false;
|
private static boolean ALT_MODE = false;
|
||||||
private static int ALT_MODE_MIN = 60; // schedule delay in minutes if ALT_MODE enabled
|
private static int ALT_MODE_MIN = 60; // schedule delay in minutes if ALT_MODE enabled
|
||||||
|
|
||||||
private Npc _lindviorCamera = null;
|
|
||||||
private Npc _tomaris = null;
|
|
||||||
private Npc _artius = null;
|
|
||||||
|
|
||||||
public LindviorScene()
|
public LindviorScene()
|
||||||
{
|
{
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
@@ -87,13 +84,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
_lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
_tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
_artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
startQuestTimer("tomaris_shout1", 1000, _tomaris, null);
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
startQuestTimer("artius_shout", 60000, _artius, null);
|
{
|
||||||
startQuestTimer("tomaris_shout2", 90000, _tomaris, null);
|
break;
|
||||||
startQuestTimer("lindvior_scene", 120000, _lindviorCamera, null);
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -48,10 +49,6 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
private static boolean ALT_MODE = false;
|
private static boolean ALT_MODE = false;
|
||||||
private static int ALT_MODE_MIN = 60; // schedule delay in minutes if ALT_MODE enabled
|
private static int ALT_MODE_MIN = 60; // schedule delay in minutes if ALT_MODE enabled
|
||||||
|
|
||||||
private Npc _lindviorCamera = null;
|
|
||||||
private Npc _tomaris = null;
|
|
||||||
private Npc _artius = null;
|
|
||||||
|
|
||||||
public LindviorScene()
|
public LindviorScene()
|
||||||
{
|
{
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
@@ -87,13 +84,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
_lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
_tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
_artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
startQuestTimer("tomaris_shout1", 1000, _tomaris, null);
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
startQuestTimer("artius_shout", 60000, _artius, null);
|
{
|
||||||
startQuestTimer("tomaris_shout2", 90000, _tomaris, null);
|
break;
|
||||||
startQuestTimer("lindvior_scene", 120000, _lindviorCamera, null);
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -85,13 +86,26 @@ public class LindviorScene extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -89,13 +90,26 @@ public class Lindvior extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,7 @@ import org.l2jmobius.commons.util.Chronos;
|
|||||||
import org.l2jmobius.gameserver.data.SpawnTable;
|
import org.l2jmobius.gameserver.data.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.enums.Movie;
|
import org.l2jmobius.gameserver.enums.Movie;
|
||||||
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
import org.l2jmobius.gameserver.model.World;
|
import org.l2jmobius.gameserver.model.World;
|
||||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||||
import org.l2jmobius.gameserver.model.actor.Player;
|
import org.l2jmobius.gameserver.model.actor.Player;
|
||||||
@@ -89,13 +90,26 @@ public class Lindvior extends AbstractNpcAI
|
|||||||
}
|
}
|
||||||
case "start":
|
case "start":
|
||||||
{
|
{
|
||||||
final Npc lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
|
final Spawn cameraSpawn = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA);
|
||||||
final Npc tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
|
final Spawn tomarisSpawn = SpawnTable.getInstance().getAnySpawn(TOMARIS);
|
||||||
final Npc artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
|
final Spawn artiusSpawn = SpawnTable.getInstance().getAnySpawn(ARTIUS);
|
||||||
|
if ((cameraSpawn == null) || (tomarisSpawn == null) || (artiusSpawn == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Npc camera = cameraSpawn.getLastSpawn();
|
||||||
|
final Npc tomaris = tomarisSpawn.getLastSpawn();
|
||||||
|
final Npc artius = artiusSpawn.getLastSpawn();
|
||||||
|
if ((camera == null) || (tomaris == null) || (artius == null))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
startQuestTimer("tomaris_shout1", 1000, tomaris, null);
|
||||||
startQuestTimer("artius_shout", 60000, artius, null);
|
startQuestTimer("artius_shout", 60000, artius, null);
|
||||||
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
startQuestTimer("tomaris_shout2", 90000, tomaris, null);
|
||||||
startQuestTimer("lindvior_scene", 120000, lindviorCamera, null);
|
startQuestTimer("lindvior_scene", 120000, camera, null);
|
||||||
scheduleNextLindviorVisit();
|
scheduleNextLindviorVisit();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user