aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent_Michael <Vincent_Michael@gmx.de>2013-02-27 18:22:12 +0100
committerVincent_Michael <Vincent_Michael@gmx.de>2013-02-27 18:24:22 +0100
commit052e47780ef9852665287fe76edd51a5911674b0 (patch)
tree230d783b9f5087c3a5c6b19aa40777e9e688a7f2
parent1a1c53d889fdeec8b6d384cf5f3a0f51d8047eed (diff)
Core/ZulGurub: Move mondokir hardcoded spawn in db
-rw-r--r--sql/updates/world/2013_02_27_00_world_creature_summon_groups_434.sql10
-rw-r--r--src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp16
2 files changed, 13 insertions, 13 deletions
diff --git a/sql/updates/world/2013_02_27_00_world_creature_summon_groups_434.sql b/sql/updates/world/2013_02_27_00_world_creature_summon_groups_434.sql
new file mode 100644
index 00000000000..4cdd26a83e8
--- /dev/null
+++ b/sql/updates/world/2013_02_27_00_world_creature_summon_groups_434.sql
@@ -0,0 +1,10 @@
+DELETE FROM `creature_summon_groups` WHERE `summonerId`=52151 AND `groupId`=0;
+INSERT INTO `creature_summon_groups` (`summonerId`, `summonerType`, `groupId`, `entry`, `position_x`, `position_y`, `position_z`, `orientation`, `summonType`, `summonTime`) VALUES
+(52151, 0, 0, 52156, -12330.3, -1878.41, 127.32, 3.89208, 8, 0),
+(52151, 0, 0, 52156, -12351.94, -1861.51, 127.4807, 4.677482, 8, 0),
+(52151, 0, 0, 52156, -12326.71, -1904.328, 127.4111, 2.75762, 8, 0),
+(52151, 0, 0, 52156, -12347.41, -1917.535, 127.3196, 1.553343, 8, 0),
+(52151, 0, 0, 52156, -12378.57, -1861.222, 127.5416, 5.340707, 8, 0),
+(52151, 0, 0, 52156, -12397.79, -1887.731, 127.5453, 0.03490658, 8, 0),
+(52151, 0, 0, 52156, -12372.36, -1918.844, 127.343, 1.151917, 8, 0),
+(52151, 0, 0, 52156, -12391.23, -1905.273, 127.3196, 0.6108652, 8, 0);
diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp
index 3cc4cf77cb7..116fd18e458 100644
--- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp
+++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp
@@ -94,17 +94,9 @@ enum Misc
FACTION_NONE = 1665
};
-// ToDo: Need better respawn support
-Position const ChainedSpiritsSpawnPos[8] =
+enum SummonGroups
{
- { -12330.34f, -1878.406f, 127.3196f, 3.892084f },
- { -12351.94f, -1861.51f, 127.4807f, 4.677482f },
- { -12326.71f, -1904.328f, 127.4111f, 2.75762f },
- { -12347.41f, -1917.535f, 127.3196f, 1.553343f },
- { -12378.57f, -1861.222f, 127.5416f, 5.340707f },
- { -12397.79f, -1887.731f, 127.5453f, 0.03490658f },
- { -12372.36f, -1918.844f, 127.343f, 1.151917f },
- { -12391.23f, -1905.273f, 127.3196f, 0.6108652f }
+ SUMMON_GROUP_CHAINED_SPIRIT = 0
};
class boss_mandokir : public CreatureScript
@@ -123,9 +115,7 @@ class boss_mandokir : public CreatureScript
_Reset();
- for (uint8 i = 0; i < 8; ++i)
- me->SummonCreature(NPC_CHAINED_SPIRIT, ChainedSpiritsSpawnPos[i]);
-
+ me->SummonCreatureGroup(SUMMON_GROUP_CHAINED_SPIRIT);
_ohganotSoFast = true;
_reanimateOhganCooldown = false;
_reviveGUID = 0;