aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/FULL/world_scripts_full.sql1
-rw-r--r--sql/updates/6686_world_creature_template.sql1
-rw-r--r--src/bindings/scripts/scripts/northrend/zuldrak.cpp33
3 files changed, 35 insertions, 0 deletions
diff --git a/sql/FULL/world_scripts_full.sql b/sql/FULL/world_scripts_full.sql
index 4488b8af8db..d4d45bb7dcc 100644
--- a/sql/FULL/world_scripts_full.sql
+++ b/sql/FULL/world_scripts_full.sql
@@ -1360,6 +1360,7 @@ UPDATE `creature_template` SET `ScriptName`='npc_gurgthock' WHERE `entry`=30007;
UPDATE `creature_template` SET `ScriptName`='npc_orinoko_tuskbreaker' WHERE `entry`= 30020;
UPDATE `creature_template` SET `ScriptName`='npc_korrak_bloodrager' WHERE `entry`=30023;
UPDATE `creature_template` SET `ScriptName`='npc_yggdras' WHERE `entry`=30014;
+UPDATE `creature_template` SET `ScriptName`='npc_released_offspring_harkoa' WHERE `entry`=28526;
/* ZUL'FARRAK */
UPDATE `creature_template` SET `ScriptName`='npc_sergeant_bly' WHERE `entry`=7604;
diff --git a/sql/updates/6686_world_creature_template.sql b/sql/updates/6686_world_creature_template.sql
new file mode 100644
index 00000000000..7315d1e47b3
--- /dev/null
+++ b/sql/updates/6686_world_creature_template.sql
@@ -0,0 +1 @@
+UPDATE `creature_template` SET `ScriptName`='npc_released_offspring_harkoa' WHERE `entry`=28526;
diff --git a/src/bindings/scripts/scripts/northrend/zuldrak.cpp b/src/bindings/scripts/scripts/northrend/zuldrak.cpp
index 66b567b8400..b4ed4db00b2 100644
--- a/src/bindings/scripts/scripts/northrend/zuldrak.cpp
+++ b/src/bindings/scripts/scripts/northrend/zuldrak.cpp
@@ -745,6 +745,34 @@ CreatureAI* GetAI_npc_yggdras(Creature* pCreature)
return new npc_yggdrasAI(pCreature);
}
+/*####
+## npc_released_offspring_harkoa
+####*/
+
+struct TRINITY_DLL_DECL npc_released_offspring_harkoaAI : public ScriptedAI
+{
+ npc_released_offspring_harkoaAI(Creature* pCreature) : ScriptedAI(pCreature) {}
+
+ void Reset()
+ {
+ float x, y, z;
+ m_creature->GetClosePoint(x, y, z, m_creature->GetObjectSize() / 3, 25.0f);
+ m_creature->GetMotionMaster()->MovePoint(0, x, y, z);
+ }
+
+ void MovementInform(uint32 uiType, uint32 uiId)
+ {
+ if (uiType != POINT_MOTION_TYPE)
+ return;
+ m_creature->DisappearAndDie();
+ }
+};
+
+CreatureAI* GetAI_npc_released_offspring_harkoa(Creature* pCreature)
+{
+ return new npc_released_offspring_harkoaAI(pCreature);
+}
+
void AddSC_zuldrak()
{
Script *newscript;
@@ -785,4 +813,9 @@ void AddSC_zuldrak()
newscript->Name = "npc_yggdras";
newscript->GetAI = &GetAI_npc_yggdras;
newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name = "npc_released_offspring_harkoa";
+ newscript->GetAI = &GetAI_npc_released_offspring_harkoa;
+ newscript->RegisterSelf();
}