Prevent Antharas and Baium from moving during intros.
Contributed by Sahar.
This commit is contained in:
		@@ -267,6 +267,8 @@ public class Antharas extends AbstractNpcAI
 | 
			
		||||
			}
 | 
			
		||||
			case "SPAWN_ANTHARAS":
 | 
			
		||||
			{
 | 
			
		||||
				_antharas.disableCoreAI(true);
 | 
			
		||||
				_antharas.setRandomWalking(false);
 | 
			
		||||
				_antharas.teleToLocation(181323, 114850, -7623, 32542);
 | 
			
		||||
				setStatus(IN_FIGHT);
 | 
			
		||||
				_lastAttack = System.currentTimeMillis();
 | 
			
		||||
@@ -313,6 +315,9 @@ public class Antharas extends AbstractNpcAI
 | 
			
		||||
			}
 | 
			
		||||
			case "START_MOVE":
 | 
			
		||||
			{
 | 
			
		||||
				_antharas.disableCoreAI(false);
 | 
			
		||||
				_antharas.setRandomWalking(true);
 | 
			
		||||
				
 | 
			
		||||
				for (PlayerInstance players : World.getInstance().getVisibleObjectsInRange(npc, PlayerInstance.class, 4000))
 | 
			
		||||
				{
 | 
			
		||||
					if (players.isHero())
 | 
			
		||||
 
 | 
			
		||||
@@ -205,6 +205,7 @@ public class Baium extends AbstractNpcAI
 | 
			
		||||
					setStatus(IN_FIGHT);
 | 
			
		||||
					_baium = (GrandBossInstance) addSpawn(BAIUM, BAIUM_LOC, false, 0);
 | 
			
		||||
					_baium.disableCoreAI(true);
 | 
			
		||||
					_baium.setRandomWalking(false);
 | 
			
		||||
					addBoss(_baium);
 | 
			
		||||
					_lastAttack = System.currentTimeMillis();
 | 
			
		||||
					startQuestTimer("WAKEUP_ACTION", 50, _baium, null);
 | 
			
		||||
@@ -290,6 +291,7 @@ public class Baium extends AbstractNpcAI
 | 
			
		||||
			case "SPAWN_ARCHANGEL":
 | 
			
		||||
			{
 | 
			
		||||
				_baium.disableCoreAI(false);
 | 
			
		||||
				_baium.setRandomWalking(true);
 | 
			
		||||
				
 | 
			
		||||
				for (Location loc : ARCHANGEL_LOC)
 | 
			
		||||
				{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user