void SetData(uint32 uiType, uint32 uiData) { switch(uiType) { case TYPE_MALYGOS: if(uiData == IN_PROGRESS) { if(GameObject* m_uiExitPortal = instance->GetGameObject(m_uiExitPortalGUID)) m_uiExitPortal->SetRespawnTime(3600); //+UpdateObjectVisibility(); ? if(GameObject* m_uiFocusingIris = instance->GetGameObject(m_uiFocusingIrisGUID)) m_uiFocusingIris->SetRespawnTime(3600); } if (uiData == NOT_STARTED) { if(GameObject* m_uiExitPortal = instance->GetGameObject(m_uiExitPortalGUID)) m_uiExitPortal->Respawn(); if(GameObject* m_uiFocusingIris = instance->GetGameObject(m_uiFocusingIrisGUID)) m_uiFocusingIris->Respawn(); } m_auiEncounter[0] = uiData; break; case TYPE_OUTRO_CHECK: m_uiOutroCheck = uiData; break; case TYPE_DESTROY_PLATFORM: if(uiData == IN_PROGRESS) { if(GameObject* m_uiMalygosPlatform = instance->GetGameObject(m_uiMalygosPlatformGUID)) m_uiMalygosPlatform->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_DESTROYED); } else if(uiData == NOT_STARTED) { if(GameObject* m_uiMalygosPlatform = instance->GetGameObject(m_uiMalygosPlatformGUID)) { m_uiMalygosPlatform->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_DESTROYED); m_uiMalygosPlatform->Respawn(); } } m_uiMalygosPlatformData = uiData; break; case TYPE_VORTEX: if(uiData) m_bVortex = true; else m_bVortex = false; break; case TYPE_PLAYER_HOVER: if(uiData == DATA_DROP_PLAYERS) dropAllPlayers(); break; } }
void SetData(uint32 uiType, uint32 uiData) { switch(uiType) { case TYPE_MALYGOS: if (uiData == IN_PROGRESS) { if(GameObject* m_uiExitPortal = instance->GetGameObject(m_uiExitPortalGUID)) { m_uiExitPortal->SetPhaseMask(2, true); } if(GameObject* m_uiFocusingIris = instance->GetGameObject(m_uiFocusingIrisGUID)) { m_uiFocusingIris->SetPhaseMask(2, true); } } if (uiData == NOT_STARTED) { //Summon Platform SetData(TYPE_DESTROY_PLATFORM, NOT_STARTED); //Summon focusing iris if(GameObject* pGo = instance->GetGameObject(m_uiFocusingIrisGUID)) { pGo->SetPhaseMask(1, true); } //Summon exit portal if(GameObject* pGo = instance->GetGameObject(m_uiExitPortalGUID)) { pGo->SetPhaseMask(1, true); } } m_auiEncounter[0] = uiData; break; case TYPE_OUTRO_CHECK: m_uiOutroCheck = uiData; break; case TYPE_DESTROY_PLATFORM: if(uiData == IN_PROGRESS) { if(GameObject* m_uiMalygosPlatform = instance->GetGameObject(m_uiMalygosPlatformGUID)) { m_uiMalygosPlatform->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_DESTROYED); } } else if(uiData == NOT_STARTED) { if(GameObject* m_uiMalygosPlatform = instance->GetGameObject(m_uiMalygosPlatformGUID)) { m_uiMalygosPlatform->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_DESTROYED); m_uiMalygosPlatform->Respawn(); } } m_uiMalygosPlatformData = uiData; break; case TYPE_VORTEX: if(uiData) { m_bVortex = true; } else { m_bVortex = false; } break; case TYPE_PLAYER_HOVER: if(uiData == DATA_DROP_PLAYERS) { dropAllPlayers(); } break; } }