Browse Source

Minor update

Zoey76 10 years ago
parent
commit
2cc3c07c3a

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/custom/NpcLocationInfo/NpcLocationInfo.java

@@ -281,7 +281,7 @@ public final class NpcLocationInfo extends Quest
 			if (Util.contains(NPCRADAR, npcId))
 			{
 				int x = 0, y = 0, z = 0;
-				final L2Spawn spawn = SpawnTable.getInstance().getAnySpawn(npcId);
+				final L2Spawn spawn = SpawnTable.getInstance().findAny(npcId);
 				if (spawn != null)
 				{
 					x = spawn.getX();

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/custom/RaidbossInfo/RaidbossInfo.java

@@ -81,7 +81,7 @@ public final class RaidbossInfo extends Quest
 			
 			if (RAIDS.contains(bossId))
 			{
-				final L2Spawn spawn = SpawnTable.getInstance().getAnySpawn(bossId);
+				final L2Spawn spawn = SpawnTable.getInstance().findAny(bossId);
 				if (spawn != null)
 				{
 					final Location loc = spawn.getLocation();

+ 3 - 3
L2J_DataPack/dist/game/data/scripts/gracia/AI/Lindvior.java

@@ -86,9 +86,9 @@ public class Lindvior extends AbstractNpcAI
 				}
 				break;
 			case "start":
-				_lindviorCamera = SpawnTable.getInstance().getAnySpawn(LINDVIOR_CAMERA).getLastSpawn();
-				_tomaris = SpawnTable.getInstance().getAnySpawn(TOMARIS).getLastSpawn();
-				_artius = SpawnTable.getInstance().getAnySpawn(ARTIUS).getLastSpawn();
+				_lindviorCamera = SpawnTable.getInstance().findAny(LINDVIOR_CAMERA).getLastSpawn();
+				_tomaris = SpawnTable.getInstance().findAny(TOMARIS).getLastSpawn();
+				_artius = SpawnTable.getInstance().findAny(ARTIUS).getLastSpawn();
 				
 				startQuestTimer("tomaris_shout1", 1000, _tomaris, null);
 				startQuestTimer("artius_shout", 60000, _artius, null);

+ 1 - 1
L2J_DataPack/dist/game/data/scripts/quests/Q00625_TheFinestIngredientsPart2/Q00625_TheFinestIngredientsPart2.java

@@ -282,6 +282,6 @@ public final class Q00625_TheFinestIngredientsPart2 extends Quest
 	
 	private static boolean isBumbalumpSpawned()
 	{
-		return SpawnTable.getInstance().getAnySpawn(ICICLE_EMPEROR_BUMBALUMP) != null;
+		return SpawnTable.getInstance().findAny(ICICLE_EMPEROR_BUMBALUMP) != null;
 	}
 }