mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 05:11:55 +01:00
DB/Creature_Text: Convert script_texts to creature_text for boss Ionar, Halls of Lightning.
This commit is contained in:
11
sql/updates/world/2012_02_29_04_world_creature_text.sql
Normal file
11
sql/updates/world/2012_02_29_04_world_creature_text.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- NPC talk text insert from sniff
|
||||
DELETE FROM `script_texts` WHERE `npc_entry`=28546;
|
||||
DELETE FROM `creature_text` WHERE `entry`=28546;
|
||||
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
|
||||
(28546,0,0, 'You wish to confront the master? You must first weather the storm!',14,0,100,0,0,14453, 'Ionar'),
|
||||
(28546,1,0, 'The slightest spark shall be your undoing.',14,0,100,0,0,14454, 'Ionar'),
|
||||
(28546,1,1, 'No one is safe!',14,0,100,0,0,14455, 'Ionar'),
|
||||
(28546,2,0, 'Shocking ... I know!',14,0,100,0,0,14456, 'Ionar'),
|
||||
(28546,2,1, 'You atempt the unpossible.',14,0,100,0,0,14457, 'Ionar'),
|
||||
(28546,2,2, 'Your spark of light is ... extinguish.',14,0,100,0,0,14458, 'Ionar'),
|
||||
(28546,3,0, 'Master... you have guests.',14,0,100,0,0,14459, 'Ionar');
|
||||
@@ -41,13 +41,10 @@ enum Spells
|
||||
|
||||
enum Yells
|
||||
{
|
||||
SAY_AGGRO = -1602011,
|
||||
SAY_SLAY_1 = -1602012,
|
||||
SAY_SLAY_2 = -1602013,
|
||||
SAY_SLAY_3 = -1602014,
|
||||
SAY_DEATH = -1602015,
|
||||
SAY_SPLIT_1 = -1602016,
|
||||
SAY_SPLIT_2 = -1602017
|
||||
SAY_AGGRO = 0,
|
||||
SAY_SPLIT = 1,
|
||||
SAY_SLAY = 2,
|
||||
SAY_DEATH = 3
|
||||
};
|
||||
|
||||
enum Creatures
|
||||
@@ -122,7 +119,7 @@ public:
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
Talk(SAY_AGGRO);
|
||||
|
||||
if (instance)
|
||||
instance->SetData(TYPE_IONAR, IN_PROGRESS);
|
||||
@@ -130,7 +127,7 @@ public:
|
||||
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
Talk(SAY_DEATH);
|
||||
|
||||
lSparkList.DespawnAll();
|
||||
|
||||
@@ -140,7 +137,7 @@ public:
|
||||
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_SLAY_1, SAY_SLAY_2, SAY_SLAY_3), me);
|
||||
Talk(SAY_SLAY);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spell)
|
||||
@@ -278,7 +275,7 @@ public:
|
||||
{
|
||||
bHasDispersed = true;
|
||||
|
||||
DoScriptText(RAND(SAY_SPLIT_1, SAY_SPLIT_2), me);
|
||||
Talk(SAY_SPLIT);
|
||||
|
||||
if (me->IsNonMeleeSpellCasted(false))
|
||||
me->InterruptNonMeleeSpells(false);
|
||||
|
||||
Reference in New Issue
Block a user