All pastes #1198408 Raw Edit

selin_fireheart_door.diff

public diff v1 · immutable
#1198408 ·published 2008-09-09 19:07 UTC
rendered paste body
Index: scripts/zone/magisters_terrace/boss_selin_fireheart.cpp===================================================================--- scripts/zone/magisters_terrace/boss_selin_fireheart.cpp	(Revision 632)+++ scripts/zone/magisters_terrace/boss_selin_fireheart.cpp	(Arbeitskopie)@@ -115,10 +115,14 @@                 }             } -            GameObject* Door = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_SELIN_ENCOUNTER_DOOR));-            if(Door)-                Door->SetGoState(0); // Close the door. Open it only in JustDied.+            GameObject* EncounterDoor = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_SELIN_ENCOUNTER_DOOR));+            if(EncounterDoor)+                EncounterDoor->SetGoState(1); // Close the door behind selin. Open it only in JustDied. +	    GameObject* Door = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_SELIN_DOOR));+    	    if(Door)+    		Door->SetGoState(0); // Open the door infront selin. Close it when aggro.+             pInstance->SetData(DATA_SELIN_EVENT, NOT_STARTED); // Set Inst data for encounter         }else error_log(ERROR_INST_DATA); @@ -193,6 +197,10 @@     {         DoYell(SAY_AGGRO, LANG_UNIVERSAL, NULL);         DoPlaySoundToSet(m_creature, SOUND_AGGRO);+        GameObject* Door = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_SELIN_DOOR));+        if(Door)+            Door->SetGoState(1); // Close the door infront selin. Open it in JustDied again.+     }      void KilledUnit(Unit* victim)@@ -246,7 +254,11 @@         pInstance->SetData(DATA_SELIN_EVENT, DONE); // Encounter complete!         GameObject* EncounterDoor = GameObject::GetGameObject((*m_creature), pInstance->GetData64(DATA_SELIN_ENCOUNTER_DOOR));         if(EncounterDoor)-            EncounterDoor->SetGoState(1); // Open the door+            EncounterDoor->SetGoState(0); // Open the door behind selin+	+	GameObject* Door = GameObject::GetGameObject(*m_creature, pInstance->GetData64(DATA_SELIN_DOOR));+        if(Door)+    	    Door->SetGoState(0); // Open the door infront selin again.          ShatterRemainingCrystals();     }Index: scripts/zone/magisters_terrace/instance_magisters_terrace.cpp===================================================================--- scripts/zone/magisters_terrace/instance_magisters_terrace.cpp	(Revision 632)+++ scripts/zone/magisters_terrace/instance_magisters_terrace.cpp	(Arbeitskopie)@@ -170,8 +170,8 @@         switch(go->GetEntry())         {             case 187896:  VexallusDoorGUID = go->GetGUID();       break;-            case 187979:  SelinDoorGUID = go->GetGUID();          break;-            case 188118:  SelinEncounterDoorGUID = go->GetGUID(); break;+            case 188065:  SelinDoorGUID = go->GetGUID();          break;+            case 187979:  SelinEncounterDoorGUID = go->GetGUID(); break;             case 187770:  DelrissaDoorGUID = go->GetGUID();       break;             case 188165:  KaelStatue[0] = go->GetGUID();          break;             case 188166:  KaelStatue[1] = go->GetGUID();          break;