DB/Creature_Text: Convert script_texts to creature_text for boss Ionar, Halls of Lightning.
This commit is contained in:
@@ -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
|
enum Yells
|
||||||
{
|
{
|
||||||
SAY_AGGRO = -1602011,
|
SAY_AGGRO = 0,
|
||||||
SAY_SLAY_1 = -1602012,
|
SAY_SPLIT = 1,
|
||||||
SAY_SLAY_2 = -1602013,
|
SAY_SLAY = 2,
|
||||||
SAY_SLAY_3 = -1602014,
|
SAY_DEATH = 3
|
||||||
SAY_DEATH = -1602015,
|
|
||||||
SAY_SPLIT_1 = -1602016,
|
|
||||||
SAY_SPLIT_2 = -1602017
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum Creatures
|
enum Creatures
|
||||||
@@ -122,7 +119,7 @@ public:
|
|||||||
|
|
||||||
void EnterCombat(Unit* /*who*/)
|
void EnterCombat(Unit* /*who*/)
|
||||||
{
|
{
|
||||||
DoScriptText(SAY_AGGRO, me);
|
Talk(SAY_AGGRO);
|
||||||
|
|
||||||
if (instance)
|
if (instance)
|
||||||
instance->SetData(TYPE_IONAR, IN_PROGRESS);
|
instance->SetData(TYPE_IONAR, IN_PROGRESS);
|
||||||
@@ -130,7 +127,7 @@ public:
|
|||||||
|
|
||||||
void JustDied(Unit* /*killer*/)
|
void JustDied(Unit* /*killer*/)
|
||||||
{
|
{
|
||||||
DoScriptText(SAY_DEATH, me);
|
Talk(SAY_DEATH);
|
||||||
|
|
||||||
lSparkList.DespawnAll();
|
lSparkList.DespawnAll();
|
||||||
|
|
||||||
@@ -140,7 +137,7 @@ public:
|
|||||||
|
|
||||||
void KilledUnit(Unit* /*victim*/)
|
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)
|
void SpellHit(Unit* /*caster*/, const SpellInfo* spell)
|
||||||
@@ -278,7 +275,7 @@ public:
|
|||||||
{
|
{
|
||||||
bHasDispersed = true;
|
bHasDispersed = true;
|
||||||
|
|
||||||
DoScriptText(RAND(SAY_SPLIT_1, SAY_SPLIT_2), me);
|
Talk(SAY_SPLIT);
|
||||||
|
|
||||||
if (me->IsNonMeleeSpellCasted(false))
|
if (me->IsNonMeleeSpellCasted(false))
|
||||||
me->InterruptNonMeleeSpells(false);
|
me->InterruptNonMeleeSpells(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user