mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Script: update creature_text for Drekthar from sniffs
closes #4693
This commit is contained in:
17
sql/updates/world/2012_01_08_08_world_creature_text.sql
Normal file
17
sql/updates/world/2012_01_08_08_world_creature_text.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- Remove old script text for boss_drekthar.cpp "Not sure if the text actually exist"
|
||||
DELETE FROM `script_texts` WHERE `entry` IN (-1810000,-1810001,-1810002,-1810003,-1810004,-1810005,-1810006,-1810007);
|
||||
-- Add new creature_text for Drek'Thar
|
||||
DELETE FROM `creature_text` WHERE `entry` IN (11946);
|
||||
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
|
||||
-- Aggro
|
||||
(11946,0,0, 'Stormpike filth! In my keep?! Slay them all!',14,0,100,0,0,0, 'Drek''Thar'),
|
||||
-- Reset
|
||||
(11946,1,0, 'You seek to draw the General of the Frostwolf legion out from his fortress? PREPOSTEROUS!',14,0,100,0,0,0, 'Drek''Thar'),
|
||||
-- Raid wipe
|
||||
(11946,2,0, 'Stormpike weaklings, face me in my fortress - if you dare!',14,0,100,0,0,0, 'Drek''Thar'),
|
||||
-- Combat
|
||||
(11946,3,0, 'Your attacks are slowed by the cold, I think!',14,0,100,0,0,0, 'Drek''Thar'),
|
||||
(11946,3,1, 'Today, you will meet your ancestors!',14,0,100,0,0,0, 'Drek''Thar'),
|
||||
(11946,3,2, 'If you will not leave Alterac Valley on your own, then the Frostwolves will force you out!',14,0,100,0,0,0, 'Drek''Thar'),
|
||||
(11946,3,3, 'You cannot defeat the Frostwolf clan!',14,0,100,0,0,0, 'Drek''Thar'),
|
||||
(11946,3,4, 'You are no match for the strength of the Horde!',14,0,100,0,0,0, 'Drek''Thar');
|
||||
@@ -31,14 +31,10 @@ enum Spells
|
||||
|
||||
enum Yells
|
||||
{
|
||||
YELL_AGGRO = -1810000,
|
||||
YELL_EVADE = -1810001,
|
||||
YELL_RESPAWN = -1810002,
|
||||
YELL_RANDOM1 = -1810003,
|
||||
YELL_RANDOM2 = -1810004,
|
||||
YELL_RANDOM3 = -1810005,
|
||||
YELL_RANDOM4 = -1810006,
|
||||
YELL_RANDOM5 = -1810007
|
||||
YELL_AGGRO = 0,
|
||||
YELL_EVADE = 1,
|
||||
YELL_RESPAWN = 2,
|
||||
YELL_RANDOM = 3
|
||||
};
|
||||
|
||||
class boss_drekthar : public CreatureScript
|
||||
@@ -69,13 +65,13 @@ public:
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
DoScriptText(YELL_AGGRO, me);
|
||||
Talk(YELL_AGGRO);
|
||||
}
|
||||
|
||||
void JustRespawned()
|
||||
{
|
||||
Reset();
|
||||
DoScriptText(YELL_RESPAWN, me);
|
||||
Talk(YELL_RESPAWN);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
@@ -109,7 +105,7 @@ public:
|
||||
|
||||
if (YellTimer <= diff)
|
||||
{
|
||||
DoScriptText(RAND(YELL_RANDOM1, YELL_RANDOM2, YELL_RANDOM3, YELL_RANDOM4, YELL_RANDOM5), me);
|
||||
Talk(YELL_RANDOM);
|
||||
YellTimer = urand(20 * IN_MILLISECONDS, 30 * IN_MILLISECONDS); //20 to 30 seconds
|
||||
} else YellTimer -= diff;
|
||||
|
||||
@@ -119,7 +115,7 @@ public:
|
||||
if (me->GetDistance2d(me->GetHomePosition().GetPositionX(), me->GetHomePosition().GetPositionY()) > 50)
|
||||
{
|
||||
EnterEvadeMode();
|
||||
DoScriptText(YELL_EVADE, me);
|
||||
Talk(YELL_EVADE);
|
||||
}
|
||||
ResetTimer = 5 * IN_MILLISECONDS;
|
||||
} else ResetTimer -= diff;
|
||||
|
||||
Reference in New Issue
Block a user