本文整理汇总了C++中instance_naxxramas::SetData方法的典型用法代码示例。如果您正苦于以下问题:C++ instance_naxxramas::SetData方法的具体用法?C++ instance_naxxramas::SetData怎么用?C++ instance_naxxramas::SetData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类instance_naxxramas
的用法示例。
在下文中一共展示了instance_naxxramas::SetData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: JustDied
void JustDied(Unit* /*pKiller*/)
{
DoScriptText(SAY_DEATH, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_GOTHIK, DONE);
}
示例2: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_GLUTH, FAIL);
DoCastSpellIfCan(m_creature, SPELL_DOUBLE_ATTACK, CAST_TRIGGERED | CAST_AURA_NOT_PRESENT);
}
示例3: Aggro
void Aggro(Unit* /*pWho*/) override
{
DoCastSpellIfCan(m_creature, m_bIsRegularMode ? SPELL_FROST_AURA : SPELL_FROST_AURA_H);
if (m_pInstance)
m_pInstance->SetData(TYPE_SAPPHIRON, IN_PROGRESS);
}
示例4: JustDied
void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_FAERLINA, DONE);
}
示例5: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
{
m_pInstance->SetData(TYPE_MAEXXNA, FAIL);
}
}
示例6: Aggro
void Aggro(Unit* /*pWho*/) override
{
DoScriptText(urand(0, 1) ? SAY_AGGRO1 : SAY_AGGRO2, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_PATCHWERK, IN_PROGRESS);
}
示例7: Aggro
void Aggro(Unit* /*pWho*/) override
{
if (m_pInstance)
{
m_pInstance->SetData(TYPE_MAEXXNA, IN_PROGRESS);
}
}
示例8: JustDied
void JustDied(Unit* /*pKiller*/) override
{
if (m_pInstance)
{
m_pInstance->SetData(TYPE_MAEXXNA, DONE);
}
}
示例9: JustDied
void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
DespawnAdds();
if (m_pInstance)
m_pInstance->SetData(TYPE_KELTHUZAD, DONE);
}
示例10: ProcessCentralDoor
void ProcessCentralDoor()
{
if (IsCentralDoorClosed())
{
m_pInstance->SetData(TYPE_GOTHIK, SPECIAL);
DoScriptText(EMOTE_GATE, m_creature);
}
}
示例11: Aggro
void Aggro(Unit* /*pWho*/) override
{
DoScriptText(SAY_AGGRO_1, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_FAERLINA, IN_PROGRESS);
}
示例12: JustReachedHome
void JustReachedHome() override
{
DespawnIntroCreatures();
DespawnAdds();
if (m_pInstance)
m_pInstance->SetData(TYPE_KELTHUZAD, NOT_STARTED);
}
示例13: JustDied
void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
DoCastSpellIfCan(m_creature, SPELL_HOPELESS, CAST_TRIGGERED);
if (m_pInstance)
m_pInstance->SetData(TYPE_RAZUVIOUS, DONE);
}
示例14: Aggro
void Aggro(Unit* /*pWho*/) override
{
switch (urand(0, 2))
{
case 0: DoScriptText(SAY_AGGRO1, m_creature); break;
case 1: DoScriptText(SAY_AGGRO2, m_creature); break;
case 2: DoScriptText(SAY_AGGRO3, m_creature); break;
}
if (m_pInstance)
m_pInstance->SetData(TYPE_ANUB_REKHAN, IN_PROGRESS);
}
示例15: Aggro
void Aggro(Unit* /*pWho*/)
{
if (!m_pInstance)
return;
m_pInstance->SetData(TYPE_GOTHIK, IN_PROGRESS);
// Make immune
m_creature->ApplySpellImmune(0, IMMUNITY_DAMAGE, SPELL_SCHOOL_MASK_ALL, true);
m_pInstance->SetGothTriggers();
PrepareSummonPlaces();
}