Prevent Antharas and Baium from moving during intros.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2020-07-18 00:20:31 +00:00
parent 3301ac72e4
commit 7c0153b401
34 changed files with 119 additions and 0 deletions

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -200,6 +200,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -277,6 +278,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -205,6 +205,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -290,6 +291,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -267,6 +267,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -313,6 +315,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -205,6 +205,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -290,6 +291,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {

View File

@@ -268,6 +268,8 @@ public class Antharas extends AbstractNpcAI
} }
case "SPAWN_ANTHARAS": case "SPAWN_ANTHARAS":
{ {
_antharas.disableCoreAI(true);
_antharas.setRandomWalking(false);
_antharas.teleToLocation(181323, 114850, -7623, 32542); _antharas.teleToLocation(181323, 114850, -7623, 32542);
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
@@ -314,6 +316,9 @@ public class Antharas extends AbstractNpcAI
} }
case "START_MOVE": case "START_MOVE":
{ {
_antharas.disableCoreAI(false);
_antharas.setRandomWalking(true);
for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000)) for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
{ {
if (players.isHero()) if (players.isHero())

View File

@@ -207,6 +207,7 @@ public class Baium extends AbstractNpcAI
setStatus(IN_FIGHT); setStatus(IN_FIGHT);
_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0); _baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
_baium.disableCoreAI(true); _baium.disableCoreAI(true);
_baium.setRandomWalking(false);
addBoss(_baium); addBoss(_baium);
_lastAttack = System.currentTimeMillis(); _lastAttack = System.currentTimeMillis();
startQuestTimer("WAKEUP_ACTION", 50, _baium, null); startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
@@ -284,6 +285,7 @@ public class Baium extends AbstractNpcAI
case "SPAWN_ARCHANGEL": case "SPAWN_ARCHANGEL":
{ {
_baium.disableCoreAI(false); _baium.disableCoreAI(false);
_baium.setRandomWalking(true);
for (Location loc : ARCHANGEL_LOC) for (Location loc : ARCHANGEL_LOC)
{ {