本文整理汇总了C++中instance_gundrak::SetData方法的典型用法代码示例。如果您正苦于以下问题:C++ instance_gundrak::SetData方法的具体用法?C++ instance_gundrak::SetData怎么用?C++ instance_gundrak::SetData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类instance_gundrak
的用法示例。
在下文中一共展示了instance_gundrak::SetData方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Aggro
void Aggro(Unit* /*pWho*/) override
{
DoScriptText(SAY_AGGRO, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_GALDARAH , IN_PROGRESS);
}
示例2: Aggro
void Aggro(Unit* /*pWho*/) override
{
DoCastSpellIfCan(m_creature, m_bIsRegularMode ? SPELL_MORTAL_STRIKES : SPELL_MORTAL_STRIKES_H);
if (m_pInstance)
m_pInstance->SetData(TYPE_COLOSSUS, IN_PROGRESS);
}
示例3: JustDied
void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_GALDARAH, DONE);
}
示例4: JustDied
void JustDied(Unit* pKiller)
{
DoScriptText(SAY_DEATH, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_MOORABI, DONE);
}
示例5: Aggro
void Aggro(Unit* pWho)
{
DoScriptText(SAY_AGGRO, m_creature);
DoCastSpellIfCan(m_creature, SPELL_MOJO_FRENZY);
if (m_pInstance)
m_pInstance->SetData(TYPE_MOORABI, IN_PROGRESS);
}
示例6: JustSummoned
void JustSummoned(Creature* pSummoned) override
{
if (pSummoned->GetEntry() == NPC_RHINO_SPIRIT)
{
if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 1, m_bIsRegularMode ? SPELL_STAMPEDE_RHINO : SPELL_STAMPEDE_RHINO_H, SELECT_FLAG_PLAYER))
{
pSummoned->CastSpell(pTarget, m_bIsRegularMode ? SPELL_STAMPEDE_RHINO : SPELL_STAMPEDE_RHINO_H, false, NULL, NULL, m_creature->GetObjectGuid());
// Store the player guid in order to count it for the achievement
if (m_pInstance)
m_pInstance->SetData(TYPE_ACHIEV_SHARE_LOVE, pTarget->GetGUIDLow());
}
}
}
示例7: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_COLOSSUS, FAIL);
}
示例8: JustDied
void JustDied(Unit* /*pKiller*/) override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_COLOSSUS, DONE);
}
示例9: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_GALDARAH, FAIL);
}
示例10: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_SLADRAN, FAIL);
}
示例11: JustReachedHome
void JustReachedHome()
{
if (m_pInstance)
m_pInstance->SetData(TYPE_GALDARAH, NOT_STARTED);
}