DB/Scripts: Implemented creature_text for Infinite Corruptor

This commit is contained in:
Vincent_Michael
2012-12-18 00:22:35 +01:00
parent 103edb16ea
commit e90ec5608e
2 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
DELETE FROM `creature_text` WHERE `entry`=32273;
INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
(32273, 0, 0, 'How dare you interfere with our work!', 14, 0, 100, 0, 0, 0, 'Infinite Corruptor - SAY_AGGRO'),
(32273, 1, 0, 'My time... has run out...', 14, 0, 100, 0, 0, 0, 'Infinite Corruptor - SAY_DEATH'),
(32273, 2, 0, 'The process is finally complete! My work here is done.', 14, 0, 100, 0, 0, 0, 'Infinite Corruptor - SAY_FAIL');

View File

@@ -27,9 +27,9 @@ enum Spells
enum Yells
{
SAY_AGGRO = -1595045,
SAY_FAIL = -1595046,
SAY_DEATH = -1595047
SAY_AGGRO = 0,
SAY_DEATH = 1,
SAY_FAIL = 2
};
class boss_infinite_corruptor : public CreatureScript
@@ -59,11 +59,12 @@ public:
void EnterCombat(Unit* /*who*/)
{
Talk(SAY_AGGRO);
if (instance)
instance->SetData(DATA_INFINITE_EVENT, IN_PROGRESS);
}
void UpdateAI(const uint32 /*diff*/)
void UpdateAI(uint32 const /*diff*/)
{
//Return since we have no target
if (!UpdateVictim())
@@ -74,6 +75,7 @@ public:
void JustDied(Unit* /*killer*/)
{
Talk(SAY_DEATH);
if (instance)
instance->SetData(DATA_INFINITE_EVENT, DONE);
}