From d8b39e9bae8c1e4a4a6e021cf9cd1cc00bb74fc4 Mon Sep 17 00:00:00 2001 From: Malcrom Date: Mon, 8 Jul 2013 16:31:29 -0230 Subject: Core/Scripting: Fix some errors in Shade of Akama script. --- sql/updates/world/2013_07_08_02_world_misc.sql | 2 ++ .../scripts/Outland/BlackTemple/boss_shade_of_akama.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 sql/updates/world/2013_07_08_02_world_misc.sql diff --git a/sql/updates/world/2013_07_08_02_world_misc.sql b/sql/updates/world/2013_07_08_02_world_misc.sql new file mode 100644 index 00000000000..782d4620e56 --- /dev/null +++ b/sql/updates/world/2013_07_08_02_world_misc.sql @@ -0,0 +1,2 @@ +UPDATE `creature_template` SET `ScriptName` = 'npc_ashtongue_channeler' WHERE `entry`=23421; +DELETE FROM `waypoint_data` WHERE `id`=847160; diff --git a/src/server/scripts/Outland/BlackTemple/boss_shade_of_akama.cpp b/src/server/scripts/Outland/BlackTemple/boss_shade_of_akama.cpp index e3d7ff110b0..cb95f4e12e0 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_shade_of_akama.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_shade_of_akama.cpp @@ -555,14 +555,14 @@ public: // Ashtongue Channeler // ######################################################## -class mob_ashtongue_channeler : public CreatureScript +class npc_ashtongue_channeler : public CreatureScript { public: - mob_ashtongue_channeler() : CreatureScript("mob_ashtongue_channeler") { } + npc_ashtongue_channeler() : CreatureScript("npc_ashtongue_channeler") { } - struct mob_ashtongue_channelerAI : public ScriptedAI + struct npc_ashtongue_channelerAI : public ScriptedAI { - mob_ashtongue_channelerAI(Creature* creature) : ScriptedAI(creature) + npc_ashtongue_channelerAI(Creature* creature) : ScriptedAI(creature) { instance = creature->GetInstanceScript(); } @@ -625,7 +625,7 @@ public: CreatureAI* GetAI(Creature* creature) const { - return new mob_ashtongue_channelerAI(creature); + return new npc_ashtongue_channelerAI(creature); } }; @@ -1033,7 +1033,7 @@ void AddSC_boss_shade_of_akama() { new boss_shade_of_akama(); new npc_akama_shade(); - new mob_ashtongue_channeler(); + new npc_ashtongue_channeler(); new npc_creature_generator_akama(); new npc_ashtongue_sorcerer(); new npc_ashtongue_defender(); -- cgit v1.2.3