Browse Source

BETA: Fixed GrandBosses respawn times formula.

MELERIX 13 years ago
parent
commit
1cadc4ec19

+ 2 - 1
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Antharas.java

@@ -948,7 +948,8 @@ public class Antharas extends L2AttackableAIScript
 			npc.broadcastPacket(new PlaySound(1, "BS01_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
 			_cubeSpawnTask = ThreadPoolManager.getInstance().scheduleGeneral(new CubeSpawn(0), 10000);
 			GrandBossManager.getInstance().setBossStatus(npc.getNpcId(), DEAD);
-			long respawnTime = (long) Config.Interval_Of_Antharas_Spawn + getRandom(Config.Random_Of_Antharas_Spawn);
+			// Respawn time is 264 Hours - 72 Random Hours
+			long respawnTime = (long) Config.Interval_Of_Antharas_Spawn - getRandom(Config.Random_Of_Antharas_Spawn);
 			ThreadPoolManager.getInstance().scheduleGeneral(new UnlockAntharas(npc.getNpcId()), respawnTime);
 			// also save the respawn time so that the info is maintained past reboots
 			StatsSet info = GrandBossManager.getInstance().getStatsSet(npc.getNpcId());

+ 2 - 2
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Baium.java

@@ -437,8 +437,8 @@ public class Baium extends L2AttackableAIScript
 		npc.broadcastPacket(new PlaySound(1, "BS01_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
 		// spawn the "Teleportation Cubic" for 15 minutes (to allow players to exit the lair)
 		addSpawn(29055, 115203, 16620, 10078, 0, false, 900000); // //should we teleport everyone out if the cubic despawns??
-		// "lock" baium for 5 days and 1 to 8 hours [i.e. 432,000,000 + 1*3,600,000 + random-less-than(8*3,600,000) millisecs]
-		long respawnTime = (long) Config.Interval_Of_Baium_Spawn + getRandom(Config.Random_Of_Baium_Spawn);
+		// Respawn time is 168 Hours - 48 Random Hours
+		long respawnTime = (long) Config.Interval_Of_Baium_Spawn - getRandom(Config.Random_Of_Baium_Spawn);
 		GrandBossManager.getInstance().setBossStatus(LIVE_BAIUM, DEAD);
 		startQuestTimer("baium_unlock", respawnTime, null, null);
 		// also save the respawn time so that the info is maintained past reboots

+ 2 - 1
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Beleth.java

@@ -424,7 +424,8 @@ public class Beleth extends L2AttackableAIScript
 				belethKiller = killer;
 			}
 			GrandBossManager.getInstance().setBossStatus(29118, 3);
-			long respawnTime = (long) Config.INTERVAL_OF_BELETH_SPAWN + getRandom(Config.RANDOM_OF_BELETH_SPAWN);
+			// Respawn time is 192 Hours - 148 Random Hours
+			long respawnTime = (long) Config.INTERVAL_OF_BELETH_SPAWN - getRandom(Config.RANDOM_OF_BELETH_SPAWN);
 			StatsSet info = GrandBossManager.getInstance().getStatsSet(29118);
 			info.set("respawn_time", System.currentTimeMillis() + respawnTime);
 			GrandBossManager.getInstance().setStatsSet(29118, info);

+ 2 - 2
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Core.java

@@ -198,8 +198,8 @@ public class Core extends L2AttackableAIScript
 			addSpawn(31842, 16502, 110165, -6394, 0, false, 900000);
 			addSpawn(31842, 18948, 110166, -6397, 0, false, 900000);
 			GrandBossManager.getInstance().setBossStatus(CORE, DEAD);
-			// time is 60hour +/- 23hour
-			long respawnTime = (long) Config.Interval_Of_Core_Spawn + getRandom(Config.Random_Of_Core_Spawn);
+			// Respawn time is 60 Hours - 24 Random Hours
+			long respawnTime = (long) Config.Interval_Of_Core_Spawn - getRandom(Config.Random_Of_Core_Spawn);
 			startQuestTimer("core_unlock", respawnTime, null, null);
 			// also save the respawn time so that the info is maintained past reboots
 			StatsSet info = GrandBossManager.getInstance().getStatsSet(CORE);

+ 2 - 2
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Orfen.java

@@ -314,8 +314,8 @@ public class Orfen extends L2AttackableAIScript
 		{
 			npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
 			GrandBossManager.getInstance().setBossStatus(ORFEN, DEAD);
-			// time is 48hour +/- 20hour
-			long respawnTime = (long) Config.Interval_Of_Orfen_Spawn + getRandom(Config.Random_Of_Orfen_Spawn);
+			// Respawn time is 48 Hours - 20 Random Hours
+			long respawnTime = (long) Config.Interval_Of_Orfen_Spawn - getRandom(Config.Random_Of_Orfen_Spawn);
 			startQuestTimer("orfen_unlock", respawnTime, null, null);
 			// also save the respawn time so that the info is maintained past reboots
 			StatsSet info = GrandBossManager.getInstance().getStatsSet(ORFEN);

+ 2 - 2
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/QueenAnt.java

@@ -326,8 +326,8 @@ public class QueenAnt extends L2AttackableAIScript
 		{
 			npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
 			GrandBossManager.getInstance().setBossStatus(QUEEN, DEAD);
-			// time is 36hour +/- 17hour
-			long respawnTime = (long) Config.Interval_Of_QueenAnt_Spawn + getRandom(Config.Random_Of_QueenAnt_Spawn);
+			// Respawn time is 36 Hours - 17 Random Hours
+			long respawnTime = (long) Config.Interval_Of_QueenAnt_Spawn - getRandom(Config.Random_Of_QueenAnt_Spawn);
 			startQuestTimer("queen_unlock", respawnTime, null, null);
 			cancelQuestTimer("action", npc, null);
 			cancelQuestTimer("heal", null, null);

+ 2 - 1
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Valakas.java

@@ -983,7 +983,8 @@ public class Valakas extends L2AttackableAIScript
 		npc.broadcastPacket(new SpecialCamera(npc.getObjectId(), 1700, 2000, 130, -1, 0, 10000, -20, 1, 1));
 		npc.broadcastPacket(new PlaySound(1, "B03_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
 		GrandBossManager.getInstance().setBossStatus(VALAKAS, DEAD);
-		long respawnTime = (long) Config.Interval_Of_Valakas_Spawn + getRandom(Config.Random_Of_Valakas_Spawn);
+		// Respawn time is 264 Hours - 72 Random Hours
+		long respawnTime = (long) Config.Interval_Of_Valakas_Spawn - getRandom(Config.Random_Of_Valakas_Spawn);
 		startQuestTimer("valakas_unlock", respawnTime, null, null);
 		// also save the respawn time so that the info is maintained past reboots
 		StatsSet info = GrandBossManager.getInstance().getStatsSet(VALAKAS);

+ 2 - 2
L2J_DataPack_BETA/dist/game/data/scripts/ai/individual/Zaken.java

@@ -878,8 +878,8 @@ public class Zaken extends L2AttackableAIScript
 		{
 			npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
 			GrandBossManager.getInstance().setBossStatus(ZAKEN, DEAD);
-			// time is 36hour +/- 17hour
-			long respawnTime = (long) Config.Interval_Of_Zaken_Spawn + getRandom(Config.Random_Of_Zaken_Spawn);
+			// Respawn time is 60 Hours - 20 Random Hours
+			long respawnTime = (long) Config.Interval_Of_Zaken_Spawn - getRandom(Config.Random_Of_Zaken_Spawn);
 			startQuestTimer("zaken_unlock", respawnTime, null, null);
 			cancelQuestTimer("1001", npc, null);
 			cancelQuestTimer("1003", npc, null);