mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Scripts/Onyxias Lair: Convert script_texts in creature_text
This commit is contained in:
8
sql/updates/world/2012_08_14_01_world_creature_text.sql
Normal file
8
sql/updates/world/2012_08_14_01_world_creature_text.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
DELETE FROM `script_texts` WHERE `npc_entry`=10184;
|
||||
DELETE FROM `creature_text` WHERE `entry`=10184;
|
||||
INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
|
||||
(10184, 0, 0, 'How fortuitous. Usually, I must leave my lair in order to feed.', 14, 0, 100, 0, 0, 0, 'Onyxia - Aggro'),
|
||||
(10184, 1, 0, 'Learn your place mortal!', 14, 0, 100, 0, 0, 0, 'Onyxia - Kill Player'),
|
||||
(10184, 2, 0, 'This meaningless exertion bores me. I''ll incinerate you all from above!', 14, 0, 100, 0, 0, 0, 'Onyxia - Phase 2'),
|
||||
(10184, 3, 0, 'It seems you''ll need another lesson, mortals!', 14, 0, 100, 0, 0, 0, 'Onyxia - Phase 3'),
|
||||
(10184, 4, 0, '%s takes in a deep breath...', 41, 0, 100, 0, 0, 0, 'Onyxia - Deep Breath Emote');
|
||||
@@ -35,11 +35,14 @@ EndScriptData */
|
||||
|
||||
enum Yells
|
||||
{
|
||||
SAY_AGGRO = -1249000,
|
||||
SAY_KILL = -1249001,
|
||||
SAY_PHASE_2_TRANS = -1249002,
|
||||
SAY_PHASE_3_TRANS = -1249003,
|
||||
EMOTE_BREATH = -1249004,
|
||||
// Say
|
||||
SAY_AGGRO = 0,
|
||||
SAY_KILL = 1,
|
||||
SAY_PHASE_2_TRANS = 2,
|
||||
SAY_PHASE_3_TRANS = 3,
|
||||
|
||||
// Emote
|
||||
EMOTE_BREATH = 4,
|
||||
};
|
||||
|
||||
enum Spells
|
||||
@@ -184,7 +187,7 @@ public:
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(SAY_AGGRO, me);
|
||||
Talk(SAY_AGGRO);
|
||||
me->SetInCombatWithZone();
|
||||
|
||||
if (instance)
|
||||
@@ -227,7 +230,7 @@ public:
|
||||
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
DoScriptText(SAY_KILL, me);
|
||||
Talk(SAY_KILL);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*pCaster*/, const SpellInfo* Spell)
|
||||
@@ -269,7 +272,7 @@ public:
|
||||
me->SetCanFly(true);
|
||||
me->GetMotionMaster()->MovePoint(11, Phase2Location.GetPositionX(), Phase2Location.GetPositionY(), Phase2Location.GetPositionZ()+25);
|
||||
me->SetSpeed(MOVE_FLIGHT, 1.0f);
|
||||
DoScriptText(SAY_PHASE_2_TRANS, me);
|
||||
Talk(SAY_PHASE_2_TRANS);
|
||||
if (instance)
|
||||
instance->SetData(DATA_ONYXIA_PHASE, Phase);
|
||||
WhelpTimer = 5000;
|
||||
@@ -416,7 +419,7 @@ public:
|
||||
Phase = PHASE_END;
|
||||
if (instance)
|
||||
instance->SetData(DATA_ONYXIA_PHASE, Phase);
|
||||
DoScriptText(SAY_PHASE_3_TRANS, me);
|
||||
Talk(SAY_PHASE_3_TRANS);
|
||||
|
||||
SetCombatMovement(true);
|
||||
me->SetCanFly(false);
|
||||
@@ -432,7 +435,7 @@ public:
|
||||
if (me->IsNonMeleeSpellCasted(false))
|
||||
me->InterruptNonMeleeSpells(false);
|
||||
|
||||
DoScriptText(EMOTE_BREATH, me);
|
||||
Talk(EMOTE_BREATH);
|
||||
DoCast(me, PointData->SpellId);
|
||||
DeepBreathTimer = 70000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user