Prevent Antharas and Baium from moving during intros.
Contributed by Sahar.
This commit is contained in:
		| @@ -268,6 +268,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(); | ||||
| @@ -314,6 +316,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()) | ||||
|   | ||||
| @@ -207,6 +207,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); | ||||
| @@ -284,6 +285,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
	 MobiusDevelopment
					MobiusDevelopment