From 6281f1f6bfa6cd9761bf8932741a0defeae40b18 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sat, 18 Sep 2021 15:02:19 +0000 Subject: [PATCH] TranscendentZone monster wave adjustments. --- .../instances/TranscendentZone/TranscendentZone.java | 6 ++++-- .../instances/TranscendentZone/TranscendentZone.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java index 1160c4448f..3db3b11e28 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java @@ -23,6 +23,7 @@ import java.util.concurrent.ScheduledFuture; import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.util.Rnd; +import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.TimedHuntingZoneData; import org.l2jmobius.gameserver.enums.ShortcutType; @@ -291,7 +292,7 @@ public class TranscendentZone extends AbstractInstance final ScheduledFuture spawnTask = ThreadPool.scheduleAtFixedRate(() -> { - if (!instance.getParameters().getBoolean("PlayerIsOut", false)) + if (!instance.getParameters().getBoolean("PlayerIsOut", false) && (instance.getAliveNpcs().size() == 1)) { if (Rnd.get(5) == 0) { @@ -307,12 +308,13 @@ public class TranscendentZone extends AbstractInstance { if (npc.isAttackable()) { + ((AttackableAI) npc.getAI()).setGlobalAggro(0); ((Attackable) npc).addDamageHate(player, 0, 9999); } } } } - }, 0, 30000); + }, 0, 10000); ThreadPool.schedule(() -> { diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java index 1160c4448f..3db3b11e28 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java @@ -23,6 +23,7 @@ import java.util.concurrent.ScheduledFuture; import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.util.Rnd; +import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.TimedHuntingZoneData; import org.l2jmobius.gameserver.enums.ShortcutType; @@ -291,7 +292,7 @@ public class TranscendentZone extends AbstractInstance final ScheduledFuture spawnTask = ThreadPool.scheduleAtFixedRate(() -> { - if (!instance.getParameters().getBoolean("PlayerIsOut", false)) + if (!instance.getParameters().getBoolean("PlayerIsOut", false) && (instance.getAliveNpcs().size() == 1)) { if (Rnd.get(5) == 0) { @@ -307,12 +308,13 @@ public class TranscendentZone extends AbstractInstance { if (npc.isAttackable()) { + ((AttackableAI) npc.getAI()).setGlobalAggro(0); ((Attackable) npc).addDamageHate(player, 0, 9999); } } } } - }, 0, 30000); + }, 0, 10000); ThreadPool.schedule(() -> {