本文整理汇总了C++中instance_icecrown_citadel::SetData方法的典型用法代码示例。如果您正苦于以下问题:C++ instance_icecrown_citadel::SetData方法的具体用法?C++ instance_icecrown_citadel::SetData怎么用?C++ instance_icecrown_citadel::SetData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类instance_icecrown_citadel
的用法示例。
在下文中一共展示了instance_icecrown_citadel::SetData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_ROTFACE, FAIL);
DoCastSpellIfCan(m_creature, SPELL_OOZE_FLOOD_REMOVE, CAST_TRIGGERED);
}
示例2: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_SINDRAGOSA, FAIL);
m_creature->GetMotionMaster()->MovePoint(SINDRAGOSA_POINT_AIR_EAST, SindragosaPosition[8][0], SindragosaPosition[8][1], SindragosaPosition[8][2], false);
}
示例3: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_FESTERGUT, FAIL);
DoCastSpellIfCan(m_creature, SPELL_REMOVE_INOCULENT, CAST_TRIGGERED);
}
示例4: MovementInform
void MovementInform(uint32 uiMoveType, uint32 uiPointId) override
{
if (uiMoveType != POINT_MOTION_TYPE)
return;
if (uiPointId == POINT_ID_EVADE)
{
m_creature->SetFacingTo(fIntroPosition[3]);
if (m_pInstance)
m_pInstance->SetData(TYPE_DEATHBRINGER_SAURFANG, FAIL);
}
else if (uiPointId == POINT_ID_INTRO)
{
if (m_pInstance)
m_pInstance->DoUseDoorOrButton(GO_SAURFANG_DOOR);
// Note: this should be done only after the intro event is finished
// ToDo: move this to the proper place after the intro will be implemented
// Also the faction needs to be checked if it should be handled in database
m_creature->setFaction(FACTION_ID_UNDEAD);
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_PASSIVE);
m_creature->SetInCombatWithZone();
}
}
示例5: JustDied
void JustDied(Unit* /*pKiller*/) override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_ROTFACE, DONE);
DoScriptText(SAY_DEATH, m_creature);
}
示例6: Aggro
void Aggro(Unit* /*pWho*/) override
{
DoScriptText(SAY_AGGRO, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_MARROWGAR, IN_PROGRESS);
}
示例7: JustDied
void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
if (m_pInstance)
m_pInstance->SetData(TYPE_MARROWGAR, DONE);
}
示例8: JustDied
void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
DoCastSpellIfCan(m_creature, SPELL_REMOVE_MARKS, CAST_TRIGGERED);
if (m_pInstance)
m_pInstance->SetData(TYPE_DEATHBRINGER_SAURFANG, DONE);
}
示例9: Aggro
void Aggro(Unit* /*pWho*/) override
{
DoScriptText(SAY_AGGRO, m_creature);
DoCastSpellIfCan(m_creature, SPELL_BLOOD_POWER, CAST_TRIGGERED);
if (m_pInstance)
m_pInstance->SetData(TYPE_DEATHBRINGER_SAURFANG, IN_PROGRESS);
}
示例10: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_DEATHBRINGER_SAURFANG, FAIL);
DoCastSpellIfCan(m_creature, SPELL_REMOVE_MARKS, CAST_TRIGGERED);
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
}
示例11: JustDied
void JustDied(Unit* /*pKiller*/) override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_FESTERGUT, DONE);
DoScriptText(SAY_DEATH, m_creature);
DoCastSpellIfCan(m_creature, SPELL_REMOVE_INOCULENT, CAST_TRIGGERED);
}
示例12: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
{
m_pInstance->SetData(TYPE_LADY_DEATHWHISPER, FAIL);
m_pInstance->SetSpecialAchievementCriteria(ACHIEVE_FULL_HOUSE, false);
}
}
示例13: JustReachedHome
void JustReachedHome() override
{
if (m_pInstance)
{
m_pInstance->SetData(TYPE_MARROWGAR, FAIL);
m_pInstance->SetSpecialAchievementCriteria(ACHIEVE_BONED, false);
}
}
示例14: Aggro
void Aggro(Unit* /*pWho*/) override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_LICH_KING, IN_PROGRESS);
DoScriptText(SAY_AGGRO, m_creature);
m_uiPhase = PHASE_ONE;
}
示例15: JustDied
void JustDied(Unit* /*pKiller*/) override
{
if (m_pInstance)
m_pInstance->SetData(TYPE_LICH_KING, DONE);
DoScriptText(SAY_OUTRO_14, m_creature);
// TODO: finish event, after around 8 seconds play cinematic
}