aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland/HellfireCitadel
diff options
context:
space:
mode:
authorSpp- <u84280@epreinf21.(none)>2011-07-29 14:18:28 +0200
committerSpp- <u84280@epreinf21.(none)>2011-07-29 14:18:28 +0200
commite47b96af3e3a41eae71e3e3da7eeee8bd3de86bc (patch)
tree07d5ff1e6e39d792dbe1a89cc373c06702817787 /src/server/scripts/Outland/HellfireCitadel
parent06b46ba203d30cc5e2abc9741b2fc737ebdd7c38 (diff)
Core: Append single character to stream as character, not as a string
Diffstat (limited to 'src/server/scripts/Outland/HellfireCitadel')
-rw-r--r--src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp73
1 files changed, 39 insertions, 34 deletions
diff --git a/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp b/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp
index 5abc7303c12..8c15bbace2d 100644
--- a/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp
+++ b/src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp
@@ -94,44 +94,49 @@ class instance_blood_furnace : public InstanceMapScript
{
switch(creature->GetEntry())
{
- case 17381: The_MakerGUID = creature->GetGUID(); break;
- case 17380: BroggokGUID = creature->GetGUID(); break;
- case 17377: Kelidan_The_BreakerGUID = creature->GetGUID(); break;
+ case 17381:
+ The_MakerGUID = creature->GetGUID();
+ break;
+ case 17380:
+ BroggokGUID = creature->GetGUID();
+ break;
+ case 17377:
+ Kelidan_The_BreakerGUID = creature->GetGUID();
+ break;
}
}
void OnGameObjectCreate(GameObject* go)
{
-
- if (go->GetEntry() == 181766) //Final exit door
- Door1GUID = go->GetGUID();
- if (go->GetEntry() == 181811) //The Maker Front door
- Door2GUID = go->GetGUID();
- if (go->GetEntry() == 181812) //The Maker Rear door
- Door3GUID = go->GetGUID();
- if (go->GetEntry() == 181822) //Broggok Front door
- Door4GUID = go->GetGUID();
- if (go->GetEntry() == 181819) //Broggok Rear door
- Door5GUID = go->GetGUID();
- if (go->GetEntry() == 181823) //Kelidan exit door
- Door6GUID = go->GetGUID();
-
- if (go->GetEntry() == 181813) //The Maker prison cell front right
- PrisonCell1GUID = go->GetGUID();
- if (go->GetEntry() == 181814) //The Maker prison cell back right
- PrisonCell2GUID = go->GetGUID();
- if (go->GetEntry() == 181816) //The Maker prison cell front left
- PrisonCell3GUID = go->GetGUID();
- if (go->GetEntry() == 181815) //The Maker prison cell back left
- PrisonCell4GUID = go->GetGUID();
- if (go->GetEntry() == 181821) //Broggok prison cell front right
- PrisonCell5GUID = go->GetGUID();
- if (go->GetEntry() == 181818) //Broggok prison cell back right
- PrisonCell6GUID = go->GetGUID();
- if (go->GetEntry() == 181820) //Broggok prison cell front left
- PrisonCell7GUID = go->GetGUID();
- if (go->GetEntry() == 181817) //Broggok prison cell back left
- PrisonCell8GUID = go->GetGUID();
+ if (go->GetEntry() == 181766) //Final exit door
+ Door1GUID = go->GetGUID();
+ if (go->GetEntry() == 181811) //The Maker Front door
+ Door2GUID = go->GetGUID();
+ if (go->GetEntry() == 181812) //The Maker Rear door
+ Door3GUID = go->GetGUID();
+ if (go->GetEntry() == 181822) //Broggok Front door
+ Door4GUID = go->GetGUID();
+ if (go->GetEntry() == 181819) //Broggok Rear door
+ Door5GUID = go->GetGUID();
+ if (go->GetEntry() == 181823) //Kelidan exit door
+ Door6GUID = go->GetGUID();
+
+ if (go->GetEntry() == 181813) //The Maker prison cell front right
+ PrisonCell1GUID = go->GetGUID();
+ if (go->GetEntry() == 181814) //The Maker prison cell back right
+ PrisonCell2GUID = go->GetGUID();
+ if (go->GetEntry() == 181816) //The Maker prison cell front left
+ PrisonCell3GUID = go->GetGUID();
+ if (go->GetEntry() == 181815) //The Maker prison cell back left
+ PrisonCell4GUID = go->GetGUID();
+ if (go->GetEntry() == 181821) //Broggok prison cell front right
+ PrisonCell5GUID = go->GetGUID();
+ if (go->GetEntry() == 181818) //Broggok prison cell back right
+ PrisonCell6GUID = go->GetGUID();
+ if (go->GetEntry() == 181820) //Broggok prison cell front left
+ PrisonCell7GUID = go->GetGUID();
+ if (go->GetEntry() == 181817) //Broggok prison cell back left
+ PrisonCell8GUID = go->GetGUID();
}
uint64 GetData64(uint32 data)
@@ -174,7 +179,7 @@ class instance_blood_furnace : public InstanceMapScript
OUT_SAVE_INST_DATA;
std::ostringstream saveStream;
- saveStream << m_auiEncounter[0] << " " << m_auiEncounter[1] << " " << m_auiEncounter[2];
+ saveStream << m_auiEncounter[0] << ' ' << m_auiEncounter[1] << ' ' << m_auiEncounter[2];
str_data = saveStream.str();