diff options
| author | Malcrom <malcromdev@gmail.com> | 2013-01-07 19:27:35 -0330 |
|---|---|---|
| committer | Malcrom <malcromdev@gmail.com> | 2013-01-07 19:27:35 -0330 |
| commit | 5ce88118eee8cbb84a01b8db853bbb895b6a8f38 (patch) | |
| tree | fba97688f0a4ae09ea38c0bdf045790011d4df86 | |
| parent | 8c58184535600aeac2007945b837d0c7a5456afa (diff) | |
Core/Scripting: Move Text for Timmy the Cruel to creature text
| -rw-r--r-- | sql/updates/world/2013_01_07_13_world_creature_text.sql | 4 | ||||
| -rw-r--r-- | src/server/scripts/EasternKingdoms/Stratholme/boss_timmy_the_cruel.cpp | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/sql/updates/world/2013_01_07_13_world_creature_text.sql b/sql/updates/world/2013_01_07_13_world_creature_text.sql new file mode 100644 index 00000000000..60d69e3c32a --- /dev/null +++ b/sql/updates/world/2013_01_07_13_world_creature_text.sql @@ -0,0 +1,4 @@ +-- Texts for Timmy the Cruel +DELETE FROM `creature_text` WHERE `entry`= 10808; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES +(10808,0,0, 'TIMMY!',14,0,100,0,0,0, 'Timmy the Cruel - Yell on Spawn'); diff --git a/src/server/scripts/EasternKingdoms/Stratholme/boss_timmy_the_cruel.cpp b/src/server/scripts/EasternKingdoms/Stratholme/boss_timmy_the_cruel.cpp index 8090c5a7d29..bd7c3519926 100644 --- a/src/server/scripts/EasternKingdoms/Stratholme/boss_timmy_the_cruel.cpp +++ b/src/server/scripts/EasternKingdoms/Stratholme/boss_timmy_the_cruel.cpp @@ -26,9 +26,15 @@ EndScriptData */ #include "ScriptMgr.h" #include "ScriptedCreature.h" -#define SAY_SPAWN "TIMMY!" +enum Says +{ + SAY_SPAWN = 0 +}; -#define SPELL_RAVENOUSCLAW 17470 +enum Spells +{ + SPELL_RAVENOUSCLAW = 17470 +}; class boss_timmy_the_cruel : public CreatureScript { @@ -57,7 +63,7 @@ public: { if (!HasYelled) { - me->MonsterYell(SAY_SPAWN, LANG_UNIVERSAL, 0); + Talk(SAY_SPAWN); HasYelled = true; } } |
