aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/ghostlands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/EasternKingdoms/ghostlands.cpp')
-rw-r--r--src/server/scripts/EasternKingdoms/ghostlands.cpp101
1 files changed, 55 insertions, 46 deletions
diff --git a/src/server/scripts/EasternKingdoms/ghostlands.cpp b/src/server/scripts/EasternKingdoms/ghostlands.cpp
index 841e577e333..8859dff1c77 100644
--- a/src/server/scripts/EasternKingdoms/ghostlands.cpp
+++ b/src/server/scripts/EasternKingdoms/ghostlands.cpp
@@ -139,52 +139,61 @@ public:
switch (i)
{
- case 0:
- {
- me->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
- if (GameObject* Cage = me->FindNearestGameObject(GO_CAGE, 20))
- Cage->SetGoState(GO_STATE_ACTIVE);
- DoScriptText(SAY_START, me, player);
- break;
- }
- case 5:
- DoScriptText(SAY_PROGRESS1, me, player);
- case 11:
- DoScriptText(SAY_PROGRESS2, me, player);
- me->SetOrientation(4.762841f);
- break;
- case 18:
- {
- DoScriptText(SAY_PROGRESS3, me, player);
- Creature* Summ1 = me->SummonCreature(16342, 7627.083984f, -7532.538086f, 152.128616f, 1.082733f, TEMPSUMMON_DEAD_DESPAWN, 0);
- Creature* Summ2 = me->SummonCreature(16343, 7620.432129f, -7532.550293f, 152.454865f, 0.827478f, TEMPSUMMON_DEAD_DESPAWN, 0);
- if (Summ1 && Summ2)
- {
- Summ1->Attack(me, true);
- Summ2->Attack(player, true);
- }
- me->AI()->AttackStart(Summ1);
- break;
- }
- case 19: me->SetWalk(false);
- break;
- case 25: me->SetWalk(true);
- break;
- case 30:
- if (player && player->GetTypeId() == TYPEID_PLAYER)
- CAST_PLR(player)->GroupEventHappens(QUEST_ESCAPE_FROM_THE_CATACOMBS, me);
- break;
- case 32:
- me->SetOrientation(2.978281f);
- DoScriptText(SAY_END1, me, player);
- break;
- case 33:
- me->SetOrientation(5.858011f);
- DoScriptText(SAY_END2, me, player);
- Unit* CaptainHelios = me->FindNearestCreature(NPC_CAPTAIN_HELIOS, 50);
- if (CaptainHelios)
- DoScriptText(SAY_CAPTAIN_ANSWER, CaptainHelios, player);
- break;
+ case 0:
+ me->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
+ if (GameObject* Cage = me->FindNearestGameObject(GO_CAGE, 20))
+ Cage->SetGoState(GO_STATE_ACTIVE);
+ DoScriptText(SAY_START, me, player);
+ break;
+
+ case 5:
+ DoScriptText(SAY_PROGRESS1, me, player);
+ break;
+
+ case 11:
+ DoScriptText(SAY_PROGRESS2, me, player);
+ me->SetOrientation(4.762841f);
+ break;
+
+ case 18:
+ {
+ DoScriptText(SAY_PROGRESS3, me, player);
+ Creature* Summ1 = me->SummonCreature(16342, 7627.083984f, -7532.538086f, 152.128616f, 1.082733f, TEMPSUMMON_DEAD_DESPAWN, 0);
+ Creature* Summ2 = me->SummonCreature(16343, 7620.432129f, -7532.550293f, 152.454865f, 0.827478f, TEMPSUMMON_DEAD_DESPAWN, 0);
+ if (Summ1 && Summ2)
+ {
+ Summ1->Attack(me, true);
+ Summ2->Attack(player, true);
+ }
+ me->AI()->AttackStart(Summ1);
+ }
+ break;
+
+ case 19:
+ me->SetWalk(false);
+ break;
+
+ case 25:
+ me->SetWalk(true);
+ break;
+
+ case 30:
+ if (player->GetTypeId() == TYPEID_PLAYER)
+ CAST_PLR(player)->GroupEventHappens(QUEST_ESCAPE_FROM_THE_CATACOMBS, me);
+ break;
+
+ case 32:
+ me->SetOrientation(2.978281f);
+ DoScriptText(SAY_END1, me, player);
+ break;
+
+ case 33:
+ me->SetOrientation(5.858011f);
+ DoScriptText(SAY_END2, me, player);
+ Unit* CaptainHelios = me->FindNearestCreature(NPC_CAPTAIN_HELIOS, 50);
+ if (CaptainHelios)
+ DoScriptText(SAY_CAPTAIN_ANSWER, CaptainHelios, player);
+ break;
}
}