mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
DB/Scripts: Implemented creature_text for Infinite Corruptor
This commit is contained in:
5
sql/updates/world/2012_12_18_00_world_creature_text.sql
Normal file
5
sql/updates/world/2012_12_18_00_world_creature_text.sql
Normal 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');
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user