本文整理汇总了C++中instance_halls_of_stone::DoUseDoorOrButton方法的典型用法代码示例。如果您正苦于以下问题:C++ instance_halls_of_stone::DoUseDoorOrButton方法的具体用法?C++ instance_halls_of_stone::DoUseDoorOrButton怎么用?C++ instance_halls_of_stone::DoUseDoorOrButton使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类instance_halls_of_stone
的用法示例。
在下文中一共展示了instance_halls_of_stone::DoUseDoorOrButton方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WaypointReached
void WaypointReached(uint32 uiPointId) override
{
switch (uiPointId)
{
case 13: // Before Tribunal Event, Continue with Gossip Interaction
DoScriptText(SAY_EVENT_INTRO_1, m_creature);
SetEscortPaused(true);
m_creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
break;
case 17: // Reach Tribunal
SetEscortPaused(true);
m_uiPhaseTimer = 500;
break;
case 18: // Reach Floor Event
SetEscortPaused(true);
if (m_pInstance)
{
if (GameObject* pKonsole = m_pInstance->GetSingleGameObjectFromStorage(GO_TRIBUNAL_CONSOLE))
m_creature->SetFacingToObject(pKonsole);
m_pInstance->DoUseDoorOrButton(GO_TRIBUNAL_FLOOR);
}
m_uiPhaseTimer = 1000;
break;
}
}
示例2: UpdateEscortAI
void UpdateEscortAI(const uint32 uiDiff) override
{
if (m_uiPhaseTimer && m_uiPhaseTimer <= uiDiff)
{
switch (m_uiStep)
{
// Begin Event
case 0:
// TODO, this is wrong, must be "using or similar"
m_creature->SetStandState(UNIT_STAND_STATE_KNEEL);
m_uiPhaseTimer = 1500;
break;
case 1:
DoScriptText(SAY_EVENT_INTRO_2, m_creature);
m_uiPhaseTimer = 2500;
break;
case 2:
if (m_pInstance)
m_pInstance->DoUseDoorOrButton(GO_TRIBUNAL_CONSOLE);
m_uiPhaseTimer = 6500;
break;
case 3:
if (m_pInstance)
m_pInstance->DoFaceSpeak(FACE_ABEDNEUM, SAY_EVENT_INTRO_3_ABED);
m_uiPhaseTimer = 8500;
break;
// Activate Kaddrak
case 4:
DoScriptText(SAY_EVENT_A_1, m_creature);
m_uiPhaseTimer = 6500;
break;
case 5:
if (m_pInstance)
m_pInstance->DoFaceSpeak(FACE_KADDRAK, SAY_EVENT_A_2_KADD);
m_uiPhaseTimer = 12500;
break;
case 6:
DoScriptText(SAY_EVENT_A_3, m_creature);
m_uiPhaseTimer = 6000;
break;
case 7:
if (m_pInstance)
m_pInstance->ActivateFace(FACE_KADDRAK, false);
m_uiPhaseTimer = 5000;
break;
case 8:
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 20000;
break;
// Activate Marnak
case 9:
DoScriptText(SAY_EVENT_B_1, m_creature);
m_uiPhaseTimer = 6000;
break;
case 10:
if (m_pInstance)
m_pInstance->DoFaceSpeak(FACE_MARNAK, SAY_EVENT_B_2_MARN);
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 20000;
break;
case 11:
DoScriptText(SAY_EVENT_B_3, m_creature);
m_uiPhaseTimer = 5000;
break;
case 12:
if (m_pInstance)
m_pInstance->ActivateFace(FACE_MARNAK, false);
m_uiPhaseTimer = 10000;
break;
case 13:
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 10000;
break;
case 14:
SpawnDwarf(NPC_DARK_RUNE_STORMCALLER);
m_uiPhaseTimer = (20000);
break;
case 15:
DoScriptText(SAY_EVENT_C_1, m_creature);
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 10000;
break;
case 16:
SpawnDwarf(NPC_DARK_RUNE_STORMCALLER);
m_uiPhaseTimer = 20000;
break;
// Activate Abedneum
case 17:
if (m_pInstance)
m_pInstance->DoFaceSpeak(FACE_ABEDNEUM, SAY_EVENT_C_2_ABED);
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 20000;
break;
case 18:
DoScriptText(SAY_EVENT_C_3, m_creature);
m_uiPhaseTimer = 5000;
break;
//.........这里部分代码省略.........
示例3: UpdateEscortAI
void UpdateEscortAI(const uint32 uiDiff)
{
if (m_uiPhaseTimer && m_uiPhaseTimer <= uiDiff)
{
switch (m_uiStep)
{
// Begin Event
case 0:
// TODO, this is wrong, must be "using or similar"
m_creature->SetStandState(UNIT_STAND_STATE_KNEEL);
m_uiPhaseTimer = 1500;
break;
case 1:
DoScriptText(SAY_EVENT_INTRO_2, m_creature);
m_uiPhaseTimer = 2500;
break;
case 2:
if (m_pInstance)
m_pInstance->DoUseDoorOrButton(GO_TRIBUNAL_CONSOLE);
m_uiPhaseTimer = 6500;
break;
case 3:
if (m_pInstance)
m_pInstance->DoFaceSpeak(FACE_ABEDNEUM, SAY_EVENT_INTRO_3_ABED);
m_uiPhaseTimer = 8500;
break;
// Activate Kaddrak
case 4:
DoScriptText(SAY_EVENT_A_1, m_creature);
m_uiPhaseTimer = 6500;
break;
case 5:
if (m_pInstance)
m_pInstance->DoFaceSpeak(FACE_KADDRAK, SAY_EVENT_A_2_KADD);
m_uiPhaseTimer = 12500;
break;
case 6:
DoScriptText(SAY_EVENT_A_3, m_creature);
m_uiPhaseTimer = 6000;
break;
case 7:
if (m_pInstance)
m_pInstance->ActivateFace(FACE_KADDRAK, false);
m_uiPhaseTimer = 5000;
break;
case 8:
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 20000;
break;
// Activate Marnak
case 9:
DoScriptText(SAY_EVENT_B_1, m_creature);
m_uiPhaseTimer = 6000;
break;
case 10:
if (m_pInstance)
m_pInstance->DoFaceSpeak(FACE_MARNAK, SAY_EVENT_B_2_MARN);
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 20000;
break;
case 11:
DoScriptText(SAY_EVENT_B_3, m_creature);
m_uiPhaseTimer = 5000;
break;
case 12:
if (m_pInstance)
m_pInstance->ActivateFace(FACE_MARNAK, false);
m_uiPhaseTimer = 10000;
break;
case 13:
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 10000;
break;
case 14:
SpawnDwarf(NPC_DARK_RUNE_STORMCALLER);
m_uiPhaseTimer = (20000);
break;
case 15:
DoScriptText(SAY_EVENT_C_1, m_creature);
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 10000;
break;
case 16:
SpawnDwarf(NPC_DARK_RUNE_STORMCALLER);
m_uiPhaseTimer = 20000;
break;
// Activate Abedneum
case 17:
if (m_pInstance)
m_pInstance->DoFaceSpeak(FACE_ABEDNEUM, SAY_EVENT_C_2_ABED);
SpawnDwarf(NPC_DARK_RUNE_PROTECTOR);
m_uiPhaseTimer = 20000;
break;
case 18:
DoScriptText(SAY_EVENT_C_3, m_creature);
m_uiPhaseTimer = 5000;
break;
//.........这里部分代码省略.........