예제 #1
0
    void JustReachedHome() override
    {
        DespawnIntroCreatures();
        DespawnAdds();

        if (m_pInstance)
            m_pInstance->SetData(TYPE_KELTHUZAD, NOT_STARTED);
    }
예제 #2
0
    void JustDied(Unit* /*pKiller*/) override
    {
        DoScriptText(SAY_DEATH, m_creature);
        DespawnAdds();

        if (m_pInstance)
            m_pInstance->SetData(TYPE_KELTHUZAD, DONE);
    }
예제 #3
0
    void JustDied(Unit* pKiller)
    {
        DoScriptText(SAY_DEATH, m_creature);

        if (m_pInstance)
            m_pInstance->SetData(TYPE_FAERLINA, DONE);

        DespawnAdds();
    }
예제 #4
0
    void Reset()
    {
        // timers need confirmation
        m_uiFrostTombTimer = 20000;
        m_uiSummonTimer = 5000 ;
        m_uiShadowboltTimer = 0;

        DespawnAdds();
    }
예제 #5
0
    void JustDied(Unit* pKiller)
    {
        DoScriptText(SAY_DEATH, m_creature);
        DespawnAdds();

        if (m_pInstance)
        {
            m_pInstance->SetData(TYPE_KELTHUZAD, DONE);

            if (m_uiCantGetEnoughCounter >= 18)
                m_pInstance->SetData(TYPE_ACHI_CANT_GET_ENOUGH, DONE);
        }
    }
예제 #6
0
    void JustDied(Unit* pKiller)
    {
        DoScriptText(SAY_DEATH, m_creature);
        DespawnAdds();

        if (m_pInstance)
            m_pInstance->SetData(TYPE_KELTHUZAD, DONE);

        if(m_uiAbominationsDead >= 18)
        {
            if(m_pInstance)
                m_pInstance->DoCompleteAchievement(m_bIsRegularMode ? ACHIEV_JUST_CANT_GET_ENOUGH : ACHIEV_JUST_CANT_GET_ENOUGH_H);
        }
    }
예제 #7
0
    void JustDied(Unit* pKiller)
    {
        DoScriptText(SAY_DEATH, m_creature);
        DespawnAdds();

		if (m_uiDeadAnominationCount >= 18)
		{
            Map* pMap = m_creature->GetMap();
            if (pMap && pMap->IsDungeon())
            {
                Map::PlayerList const &players = pMap->GetPlayers();
                for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
					itr->getSource()->CompletedAchievement(m_bIsRegularMode ? ACHIEVE_JUST_CANT_GET_ENOUGH_10 : ACHIEVE_JUST_CANT_GET_ENOUGH_25);
            }
        }

        if (m_pInstance)
            m_pInstance->SetData(TYPE_KELTHUZAD, DONE);
    }
예제 #8
0
 void JustDied(Unit* pKiller)
 {
     DoScriptText(SAY_DEATH, m_creature);
     DespawnAdds(lInitiates);
     DespawnAdds(lVolunteers);
 }