예제 #1
0
	void OnLoad()
	{
		_unit->SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE, 1771);
		SetFlyMode(true);
		SetCanMove(false);
		ParentClass::OnLoad();
	}
예제 #2
0
	void AIUpdate()
	{
		if(SpawnTimer && IsTimerFinished(SpawnTimer))
		{
			switch(GetPhase())
			{
				case 2: Moccasin(); ResetTimer(SpawnTimer,100000); SetPhase(3); break;
				case 3: Ectoplasm(); ResetTimer(SpawnTimer,100000); SetPhase(4); break;
				case 4: BMutanus(); ResetTimer(SpawnTimer,100000); SetPhase(5); break;
			}
		}
		if(GetPhase() == 5 && (!Mutanus || !Mutanus->GetUnit()->isAlive()))
		{
			MoonScriptCreatureAI* Naralex = GetNearestCreature(3679);
			if(Naralex && Naralex->IsAlive())
			{
				SetDisplayId(17089);
				Naralex->SetDisplayId(17089);
				Naralex->Emote("I am awake... at last", Text_Say, 5789);
				Naralex->GetUnit()->SetStandState(STANDSTATE_STAND);
				SetFlyMode(true);
				Naralex->SetFlyMode(true);
				MoveTo(-6.704030f, 200.308838f, -26.938824f);
				Naralex->MoveTo(-6.704030f, 200.308838f, -26.938824f);
			}
			SetPhase(6);
		}
		ParentClass::AIUpdate();
	}
예제 #3
0
	void OnLoad()
	{
		_unit->SetUInt64Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_ATTACKABLE_9);
		_unit->GetAIInterface()->SetAllowedToEnterCombat(false);
		SetFlyMode(true);
		_unit->CastSpell(_unit, SPELL_ANVEENA_PRISON, true);
		KilJaedan = GetNearestCreature(CREATURE_KILJAEDEN);
		ParentClass::OnLoad();
	}
예제 #4
0
	void OnLoad()
	{
		RegisterAIUpdateEvent(1000);
		_unit->Despawn( 11500, 0 );
		SetFlyMode(true);
		SetCanEnterCombat(false);
		_unit->SetUInt64Value(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
		
		
		_unit->CastSpell(_unit, dbcSpell.LookupEntry(TSUNAMI), true);
		_unit->CastSpell(_unit, dbcSpell.LookupEntry(TSUNAMI_VISUAL), true);

		ParentClass::OnLoad();
	};
예제 #5
0
파일: kil'jaeden.cpp 프로젝트: Tulba/wowtbc
	AnveenaAI(Creature* pCreature) :MoonScriptBossAI(pCreature)
	{
		SetFlyMode( true );
		SetCanMove( false );
		RegisterAIUpdateEvent( 500 );
	};