aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortartalo <none@none>2009-10-18 19:39:58 +0200
committertartalo <none@none>2009-10-18 19:39:58 +0200
commit3844d20e89e017f94eedc6272fc249cd686dadbc (patch)
tree803a550d4af4ec0eececb2eb5b507af60a1b4161 /src
parentecf2813c20e7c67a54e1a8d6a6fc65581e66339f (diff)
Violet Hold: Fix door handling
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/northrend/violet_hold/instance_violet_hold.cpp45
1 files changed, 25 insertions, 20 deletions
diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/instance_violet_hold.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/instance_violet_hold.cpp
index 7734571ce70..61c9f16e3f7 100644
--- a/src/bindings/scripts/scripts/northrend/violet_hold/instance_violet_hold.cpp
+++ b/src/bindings/scripts/scripts/northrend/violet_hold/instance_violet_hold.cpp
@@ -28,6 +28,20 @@ enum Creatures
CREATURE_CYANIGOSA = 31134,
CREATURE_SINCLARI = 30658
};
+enum GameObjects
+{
+ GO_MAIN_DOOR = 191723,
+ GO_XEVOZZ_DOOR = 191556,
+ GO_LAVANTHOR_DOOR = 191566,
+ GO_ICHORON_DOOR = 191557,
+ GO_ZURAMAT_DOOR = 191565,
+ GO_EREKEM_DOOR = 191564,
+ GO_EREKEM_GUARD_1_DOOR = 191563,
+ GO_EREKEM_GUARD_2_DOOR = 191562,
+ GO_MORAGG_DOOR = 191606,
+ GO_INTRO_ACTIVATION_CRYSTAL = 193615,
+ GO_ACTIVATION_CRYSTAL_1 = 193611
+};
struct Location
{
float x,y,z,orientation;
@@ -144,41 +158,32 @@ struct TRINITY_DLL_DECL instance_violet_hold : public ScriptedInstance
{
switch(pGo->GetEntry())
{
- case 191562:
+ case GO_EREKEM_GUARD_1_DOOR:
uiErekemLeftGuardCell = pGo->GetGUID();
break;
- case 191563:
+ case GO_EREKEM_GUARD_2_DOOR:
uiErekemRightGuardCell = pGo->GetGUID();
break;
- case 191564:
+ case GO_EREKEM_DOOR:
uiErekemCell = pGo->GetGUID();
- if (m_auiEncounter[1] == DONE)
- HandleGameObject(NULL, true, pGo);
break;
- case 191565:
+ case GO_ZURAMAT_DOOR:
uiZuramatCell = pGo->GetGUID();
- if (m_auiEncounter[5] == DONE)
- HandleGameObject(NULL, true, pGo);
break;
- case 191566:
+ case GO_LAVANTHOR_DOOR:
uiLavanthorCell = pGo->GetGUID();
- if (m_auiEncounter[3] == DONE)
- HandleGameObject(NULL, true, pGo);
break;
- case 191606:
+ case GO_MORAGG_DOOR:
uiMoraggCell = pGo->GetGUID();
- if (m_auiEncounter[0] == DONE)
- HandleGameObject(NULL, true, pGo);
break;
- case 191722:
+ case GO_ICHORON_DOOR:
uiIchoronCell = pGo->GetGUID();
- if (m_auiEncounter[2] == DONE)
- HandleGameObject(NULL, true, pGo);
break;
- case 191723:
+ case GO_XEVOZZ_DOOR:
uiXevozzCell = pGo->GetGUID();
- if (m_auiEncounter[4] == DONE)
- HandleGameObject(NULL, true, pGo);
+ break;
+ case GO_MAIN_DOOR:
+ uiMainDoor = pGo->GetGUID();
break;
}
}