예제 #1
0
    void EnterCombat(Unit * /*who*/)
    {
        DoScriptText(RAND(SAY_AGGRO_1,SAY_AGGRO_2,SAY_AGGRO_3), me);

        DoZoneInCombat();
        summons.DoZoneInCombat();
    }
        void EnterCombat(Unit* /*who*/)
        {
            Talk(SAY_AGGRO);

            DoZoneInCombat();
            summons.DoZoneInCombat();
        }
예제 #3
0
파일: boss_anzu.cpp 프로젝트: boom8866/new
			void JustSummoned(Creature* summon)
			{
				if (summon->GetEntry() == NPC_BROOD_OF_ANZU)
				{
					Summons.Summon(summon);
					Summons.DoZoneInCombat();
				}
			}
			void EnterCombat(Unit*)
			{
				Talk(SAY_AGGRO);

				me->SetInCombatWithZone();
				summons.DoZoneInCombat();

				events.ScheduleEvent(EVENT_SPELL_BEACON, 10000);
				events.ScheduleEvent(EVENT_SPELL_FR_FI, 4000);
				events.ScheduleEvent(EVENT_SPELL_FROST_NOVA, 15000);
			}
예제 #5
0
		//When entering combat:
        void EnterCombat(Unit* who)
		{
		    me->MonsterYell("My powers are renewed!", LANG_UNIVERSAL, me->GetGUID());
            DoPlaySoundToSet(me, SOUND_ONAGGRO);
            me->MonsterTextEmote(EMOTE_ONAGGRO, 0, true);

            me->InterruptSpell(CURRENT_CHANNELED_SPELL);
            me->RemoveAllAuras(); 
            DoZoneInCombat();
            summons.DoZoneInCombat();
        }
예제 #6
0
        void StartEvent()
        {
            if (pInstance)
            {
                if (pInstance->GetData(DATA_MAGTHERIDON_EVENT) != NOT_STARTED)
                    return;

                pInstance->SetData(DATA_MAGTHERIDON_EVENT, IN_PROGRESS);
            }

            me->MonsterTextEmote(EMOTE_BONDS_WEAKEN, 0);
            me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
            me->SetInCombatWithZone();
            Summons.DoZoneInCombat();
        }
예제 #7
0
            void EnterCombat(Unit* who)
            {
				events.Reset();
				if (summons.size() < 4)
					ResetSummons();

                summons.DoZoneInCombat();

                events.ScheduleEvent(EVENT_CHAIN_LIGHTNING, 5000);
                events.ScheduleEvent(EVENT_LIGHTNING_NOVA, 40000);
                events.ScheduleEvent(EVENT_BERSERK, 360000);
                events.ScheduleEvent(EVENT_OVERCHARGE, 47000);

				if (pInstance)
					pInstance->SetData(EVENT_EMALON, IN_PROGRESS);
            }
예제 #8
0
		void EnterCombat(Unit* who)
		{
			if (m_pInstance)
				m_pInstance->SetData(TYPE_AURIAYA, IN_PROGRESS);

			events.ScheduleEvent(EVENT_TERRIFYING_SCREECH, 35000);
			events.ScheduleEvent(EVENT_SONIC_SCREECH, 45000);
			events.ScheduleEvent(EVENT_GUARDIAN_SWARM, 70000);
			events.ScheduleEvent(EVENT_SUMMON_FERAL_DEFENDER, 60000);
			events.ScheduleEvent(EVENT_SENTINEL_BLAST, 36000);
			events.ScheduleEvent(EVENT_ENRAGE, 600000);

			summons.DoZoneInCombat(NPC_SANCTUM_SENTRY);

			me->MonsterYell("Some things are better left alone!", LANG_UNIVERSAL, 0);
			me->PlayDirectSound(SOUND_AGGRO);
			me->setActive(true);
		}