mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/Scripts: Convert MillHouse Manastorm texts to creature_texts.
This commit is contained in:
18
sql/updates/world/2012_01_13_01_world_creature_texts.sql
Normal file
18
sql/updates/world/2012_01_13_01_world_creature_texts.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Remove old script text for npc_millhouse_manastorm
|
||||
DELETE FROM `script_texts` WHERE `entry` IN (-1552010, -1552022);
|
||||
|
||||
-- Add new creature_text for Millhouse ManaStorm
|
||||
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
|
||||
(20977, 0, 0, 'Where in Bonzo\'\'s brass buttons am I? And who are-- yaaghh, that\'\'s one mother of a headache!', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 1, 0, '"Lowly"? I don\'\'t care who you are friend, no one refers to the mighty Millhouse Manastorm as "Lowly"! I have no idea what goes on here, but I will gladly join your fight against this impudent imbecile! Prepare to defend yourself, cretin!', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 2, 0, 'I just need to get some things ready first. You guys go ahead and get started. I need to summon up some water...', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 3, 0, 'Fantastic! Next, some protective spells. Yes! Now we\'\'re cookin\'\'', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 4, 0, 'And of course i\'\'ll need some mana. You guys are gonna love this, just wait.', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 5, 0, 'Aaalllriiiight!! Who ordered up an extra large can of whoop-ass?', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 6, 0, 'I didn\'\'t even break a sweat on that one.', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 7, 0, 'You guys, feel free to jump in anytime.', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 8, 0, 'I\'\'m gonna light you up, sweet cheeks!', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 9, 0, 'Ice, ice, baby!', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 10, 0, 'Heal me! Oh, for the love of all that is holy, HEAL me! I\'\'m dying!', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 11, 0, 'You\'\'ll be hearing from my lawyer...', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm'),
|
||||
(20977, 12, 0, 'Who\'\'s bad? Who\'\'s bad? That\'\'s right: we bad!', 0, 0, 100, 0, 0, 0, 'Millhouse Manastorm');
|
||||
@@ -38,19 +38,19 @@ EndContentData */
|
||||
|
||||
enum eMillhouseSays
|
||||
{
|
||||
SAY_INTRO_1 = -1552010,
|
||||
SAY_INTRO_2 = -1552011,
|
||||
SAY_WATER = -1552012,
|
||||
SAY_BUFFS = -1552013,
|
||||
SAY_DRINK = -1552014,
|
||||
SAY_READY = -1552015,
|
||||
SAY_KILL_1 = -1552016,
|
||||
SAY_KILL_2 = -1552017,
|
||||
SAY_PYRO = -1552018,
|
||||
SAY_ICEBLOCK = -1552019,
|
||||
SAY_LOWHP = -1552020,
|
||||
SAY_DEATH = -1552021,
|
||||
SAY_COMPLETE = -1552022,
|
||||
SAY_INTRO_1 = 0,
|
||||
SAY_INTRO_2 = 1,
|
||||
SAY_WATER = 2,
|
||||
SAY_BUFFS = 3,
|
||||
SAY_DRINK = 4,
|
||||
SAY_READY = 5,
|
||||
SAY_KILL_1 = 6,
|
||||
SAY_KILL_2 = 7,
|
||||
SAY_PYRO = 8,
|
||||
SAY_ICEBLOCK = 9,
|
||||
SAY_LOWHP = 10,
|
||||
SAY_DEATH = 11,
|
||||
SAY_COMPLETE = 12,
|
||||
};
|
||||
|
||||
enum eMillhouseSpells
|
||||
@@ -107,7 +107,7 @@ class npc_millhouse_manastorm : public CreatureScript
|
||||
Init = true;
|
||||
|
||||
if (instance->GetData(TYPE_HARBINGERSKYRISS) == DONE)
|
||||
DoScriptText(SAY_COMPLETE, me);
|
||||
Talk(SAY_COMPLETE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,12 +126,13 @@ class npc_millhouse_manastorm : public CreatureScript
|
||||
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(RAND(SAY_KILL_1, SAY_KILL_2), me);
|
||||
Talk(SAY_KILL_1);
|
||||
Talk(SAY_KILL_2);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
Talk(SAY_DEATH);
|
||||
|
||||
/*for questId 10886 (heroic mode only)
|
||||
if (instance && instance->GetData(TYPE_HARBINGERSKYRISS) != DONE)
|
||||
@@ -149,30 +150,30 @@ class npc_millhouse_manastorm : public CreatureScript
|
||||
switch (Phase)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_INTRO_1, me);
|
||||
Talk(SAY_INTRO_1);
|
||||
EventProgress_Timer = 18000;
|
||||
break;
|
||||
case 2:
|
||||
DoScriptText(SAY_INTRO_2, me);
|
||||
Talk(SAY_INTRO_2);
|
||||
EventProgress_Timer = 18000;
|
||||
break;
|
||||
case 3:
|
||||
DoScriptText(SAY_WATER, me);
|
||||
Talk(SAY_WATER);
|
||||
DoCast(me, SPELL_CONJURE_WATER);
|
||||
EventProgress_Timer = 7000;
|
||||
break;
|
||||
case 4:
|
||||
DoScriptText(SAY_BUFFS, me);
|
||||
Talk(SAY_BUFFS);
|
||||
DoCast(me, SPELL_ICE_ARMOR);
|
||||
EventProgress_Timer = 7000;
|
||||
break;
|
||||
case 5:
|
||||
DoScriptText(SAY_DRINK, me);
|
||||
Talk(SAY_DRINK);
|
||||
DoCast(me, SPELL_ARCANE_INTELLECT);
|
||||
EventProgress_Timer = 7000;
|
||||
break;
|
||||
case 6:
|
||||
DoScriptText(SAY_READY, me);
|
||||
Talk(SAY_READY);
|
||||
EventProgress_Timer = 6000;
|
||||
break;
|
||||
case 7:
|
||||
@@ -192,7 +193,7 @@ class npc_millhouse_manastorm : public CreatureScript
|
||||
return;
|
||||
if (!LowHp && HealthBelowPct(20))
|
||||
{
|
||||
DoScriptText(SAY_LOWHP, me);
|
||||
Talk(SAY_LOWHP);
|
||||
LowHp = true;
|
||||
}
|
||||
|
||||
@@ -201,7 +202,7 @@ class npc_millhouse_manastorm : public CreatureScript
|
||||
if (me->IsNonMeleeSpellCasted(false))
|
||||
return;
|
||||
|
||||
DoScriptText(SAY_PYRO, me);
|
||||
Talk(SAY_PYRO);
|
||||
|
||||
DoCast(me->getVictim(), SPELL_PYROBLAST);
|
||||
Pyroblast_Timer = 40000;
|
||||
@@ -555,6 +556,7 @@ class mob_zerekethvoidzone : public CreatureScript
|
||||
return new mob_zerekethvoidzoneAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_arcatraz()
|
||||
{
|
||||
new npc_millhouse_manastorm();
|
||||
|
||||
Reference in New Issue
Block a user