Core/Scripting: Move Text for Timmy the Cruel to creature text

This commit is contained in:
Malcrom
2013-01-07 19:27:35 -03:30
parent 8c58184535
commit 5ce88118ee
2 changed files with 13 additions and 3 deletions

View File

@@ -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');

View File

@@ -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;
}
}