void EnterCombat(Unit * /*pWho*/) { DoScriptText(SAY_AGGRO, me); if (pInstance) { pInstance->SetData(DATA_ANUBARAK_EVENT, IN_PROGRESS); pInstance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT); } }
void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); if (pInstance) { pInstance->SetData(DATA_HERALD_VOLAZJ, IN_PROGRESS); pInstance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_QUICK_DEMISE_START_EVENT); } }
void EnterCombat(Unit* pWho) { DoScriptText(SAY_AGGRO, me); me->SetInCombatWithZone(); if (m_pInstance) { m_pInstance->SetData(DATA_ONYXIA, IN_PROGRESS); m_pInstance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT); sLog.outBasic("[Onyxia] DoStartTimedAchievement(%u,%u)",ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT); } }
void Aggro(Unit* /*pWho*/) override { DoScriptText(SAY_AGGRO, m_creature); DoCastSpellIfCan(m_creature, SPELL_WHISPER_AGGRO); if (m_pInstance) { m_pInstance->SetData(TYPE_VOLAZJ, IN_PROGRESS); // Start achievement only on first aggro m_pInstance->DoStartTimedAchievement(ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE, ACHIEV_START_VOLAZJ_ID); } }
void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); me->Mount(DATA_MOUNT); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->GetMotionMaster()->MovePoint(uiWaypointId, 340.259, -510.541, 120.869); Phase = FLYING; if (pInstance) { pInstance->SetData(DATA_SKADI_THE_RUTHLESS_EVENT, IN_PROGRESS); pInstance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT); } }
void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); if (pInstance) { if (GameObject *pDoor = pInstance->instance->GetGameObject(pInstance->GetData64(DATA_MAIDEN_DOOR))) if (pDoor->GetGoState() == GO_STATE_READY) { EnterEvadeMode(); return; } pInstance->SetData(DATA_MAIDEN_OF_GRIEF_EVENT, IN_PROGRESS); pInstance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_GOOD_GRIEF_START_EVENT); } }
void EnterCombat(Unit* /*who*/) { DoScriptText(SAY_AGGRO, me); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE); Phase = FLYING; m_uiMovementTimer = 1000; m_uiSummonTimer = 10000; me->SetInCombatWithZone(); if (m_pInstance) { m_pInstance->SetData(DATA_SKADI_THE_RUTHLESS_EVENT, IN_PROGRESS); m_pInstance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT); me->GetMotionMaster()->MoveJump(Location[0].GetPositionX(), Location[0].GetPositionY(), Location[0].GetPositionZ(), 5.0f, 10.0f); me->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE); m_uiMountTimer = 1000; Summons.DespawnEntry(CREATURE_GRAUF); } }