Core/Script: update creature_text for Galvangar from sniffs
closes #4694
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
-- Remove old script text for boss_galvangar.cpp "Not sure if the text actually exist"
|
||||||
|
DELETE FROM `script_texts` WHERE `entry` IN (-1810021,-1810022);
|
||||||
|
-- Add new creature_text for Captain Galvangar
|
||||||
|
DELETE FROM `creature_text` WHERE `entry` IN (11947);
|
||||||
|
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
|
||||||
|
-- Aggro
|
||||||
|
(11947,0,0, 'Die! Your kind has no place in Alterac Valley!',14,0,100,0,0,0, 'Captain Galvangar'),
|
||||||
|
-- Reset
|
||||||
|
(11947,1,0, 'I''ll never fall for that, fool! If you want a battle it will be on my terms and in my lair!',14,0,100,0,0,0, 'Captain Galvangar'),
|
||||||
|
-- Casting Fury of the Frostwolf
|
||||||
|
(11947,2,0, 'Now is the time to attack! For the Horde!',14,0,100,0,0,0, 'Captain Galvangar');
|
||||||
@@ -28,8 +28,8 @@ enum Spells
|
|||||||
|
|
||||||
enum Yells
|
enum Yells
|
||||||
{
|
{
|
||||||
YELL_AGGRO = -1810021,
|
YELL_AGGRO = 0,
|
||||||
YELL_EVADE = -1810022
|
YELL_EVADE = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
class boss_galvangar : public CreatureScript
|
class boss_galvangar : public CreatureScript
|
||||||
@@ -60,7 +60,7 @@ public:
|
|||||||
|
|
||||||
void EnterCombat(Unit* /*who*/)
|
void EnterCombat(Unit* /*who*/)
|
||||||
{
|
{
|
||||||
DoScriptText(YELL_AGGRO, me);
|
Talk(YELL_AGGRO);
|
||||||
}
|
}
|
||||||
|
|
||||||
void JustRespawned()
|
void JustRespawned()
|
||||||
@@ -109,7 +109,7 @@ public:
|
|||||||
if (me->GetDistance2d(me->GetHomePosition().GetPositionX(), me->GetHomePosition().GetPositionY()) > 50)
|
if (me->GetDistance2d(me->GetHomePosition().GetPositionX(), me->GetHomePosition().GetPositionY()) > 50)
|
||||||
{
|
{
|
||||||
EnterEvadeMode();
|
EnterEvadeMode();
|
||||||
DoScriptText(YELL_EVADE, me);
|
Talk(YELL_EVADE);
|
||||||
}
|
}
|
||||||
ResetTimer = 5 * IN_MILLISECONDS;
|
ResetTimer = 5 * IN_MILLISECONDS;
|
||||||
} else ResetTimer -= diff;
|
} else ResetTimer -= diff;
|
||||||
|
|||||||
Reference in New Issue
Block a user