DB/Creature_Text: Convert script_texts to creature_text for boss Volkhan, Halls of Lightning.

This commit is contained in:
Malcrom
2012-02-29 21:56:22 -03:30
parent 67e6f9afab
commit c531cbc695
2 changed files with 29 additions and 18 deletions
@@ -0,0 +1,15 @@
-- NPC talk text insert from sniff
DELETE FROM `script_texts` WHERE `npc_entry`=28587;
DELETE FROM `creature_text` WHERE `entry`=28587;
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
(28587,0,0, 'It is you who have destroyed my children? You... shall... pay!',14,0,100,0,0,13960, 'Volkhan'),
(28587,1,0, 'Life from lifelessness... death for you.',14,0,100,0,0,13961, 'Volkhan'),
(28587,1,1, 'Nothing is wasted in the process. You will see....',14,0,100,0,0,13962, 'Volkhan'),
(28587,2,0, 'I will crush you beneath my boots!',14,0,100,0,0,13963, 'Volkhan'),
(28587,2,1, 'All my work... undone!',14,0,100,0,0,13964, 'Volkhan'),
(28587,3,0, 'The armies of iron will conquer all!',14,0,100,0,0,13965, 'Volkhan'),
(28587,3,1, 'Ha, pathetic!',14,0,100,0,0,13966, 'Volkhan'),
(28587,3,2, 'You have cost me too much work!',14,0,100,0,0,13967, 'Volkhan'),
(28587,4,0, 'The master was right... to be concerned.',14,0,100,0,0,13968, 'Volkhan'),
(28587,5,0, '%s runs to his anvil!',41,0,100,0,0,0, 'Volkhan'),
(28587,6,0, '%s prepares to shatter his Brittle Golems!',41,0,100,0,0,0, 'Volkhan');
@@ -28,17 +28,13 @@ EndScriptData */
enum eEnums enum eEnums
{ {
SAY_AGGRO = -1602032, SAY_AGGRO = 0,
SAY_SLAY_1 = -1602033, SAY_FORGE = 1,
SAY_SLAY_2 = -1602034, SAY_STOMP = 2,
SAY_SLAY_3 = -1602035, SAY_SLAY = 3,
SAY_DEATH = -1602036, SAY_DEATH = 4,
SAY_STOMP_1 = -1602037, EMOTE_TO_ANVIL = 5,
SAY_STOMP_2 = -1602038, EMOTE_SHATTER = 6,
SAY_FORGE_1 = -1602039,
SAY_FORGE_2 = -1602040,
EMOTE_TO_ANVIL = -1602041,
EMOTE_SHATTER = -1602042,
SPELL_HEAT_N = 52387, SPELL_HEAT_N = 52387,
SPELL_HEAT_H = 59528, SPELL_HEAT_H = 59528,
@@ -127,7 +123,7 @@ public:
void EnterCombat(Unit* /*who*/) void EnterCombat(Unit* /*who*/)
{ {
DoScriptText(SAY_AGGRO, me); Talk(SAY_AGGRO);
if (m_instance) if (m_instance)
m_instance->SetData(TYPE_VOLKHAN, IN_PROGRESS); m_instance->SetData(TYPE_VOLKHAN, IN_PROGRESS);
@@ -148,7 +144,7 @@ public:
void JustDied(Unit* /*killer*/) void JustDied(Unit* /*killer*/)
{ {
DoScriptText(SAY_DEATH, me); Talk(SAY_DEATH);
DespawnGolem(); DespawnGolem();
if (m_instance) if (m_instance)
@@ -172,7 +168,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 DespawnGolem() void DespawnGolem()
@@ -263,11 +259,11 @@ public:
if (m_uiShatteringStomp_Timer <= uiDiff) if (m_uiShatteringStomp_Timer <= uiDiff)
{ {
// Should he stomp even if he has no brittle golem to shatter? // Should he stomp even if he has no brittle golem to shatter?
DoScriptText(RAND(SAY_STOMP_1, SAY_STOMP_2), me); Talk(SAY_STOMP);
DoCast(me, SPELL_SHATTERING_STOMP_N); DoCast(me, SPELL_SHATTERING_STOMP_N);
DoScriptText(EMOTE_SHATTER, me); Talk(EMOTE_SHATTER);
m_uiShatteringStomp_Timer = 30000; m_uiShatteringStomp_Timer = 30000;
m_bCanShatterGolem = true; m_bCanShatterGolem = true;
@@ -297,7 +293,7 @@ public:
if (me->IsNonMeleeSpellCasted(false)) if (me->IsNonMeleeSpellCasted(false))
me->InterruptNonMeleeSpells(false); me->InterruptNonMeleeSpells(false);
DoScriptText(RAND(SAY_FORGE_1, SAY_FORGE_2), me); Talk(SAY_FORGE);
m_bHasTemper = true; m_bHasTemper = true;
@@ -308,7 +304,7 @@ public:
{ {
case 1: case 1:
// 1 - Start run to Anvil // 1 - Start run to Anvil
DoScriptText(EMOTE_TO_ANVIL, me); Talk(EMOTE_TO_ANVIL);
me->GetMotionMaster()->MoveTargetedHome(); me->GetMotionMaster()->MoveTargetedHome();
m_uiSummonPhase = 2; // Set Next Phase m_uiSummonPhase = 2; // Set Next Phase
break; break;