Core/Script: update creature_text for Balinda from sniffs

closes #4692
This commit is contained in:
malcrom
2012-01-08 11:43:35 +01:00
committed by ZxBiohazardZx
parent d608c1f43a
commit b6f9caff6b
2 changed files with 16 additions and 4 deletions
@@ -0,0 +1,11 @@
-- Remove old script text for boss_balinda.cpp "Not sure if the text actually exist"
DELETE FROM `script_texts` WHERE `entry` IN (-1810023,-1810024);
-- Add new creature_text for Captain Balinda Stonehearth <Stormpike Captain>
DELETE FROM `creature_text` WHERE `entry` IN (11949);
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
-- Aggro
(11949,0,0, 'Begone, uncouth scum! The Alliance shall prevail in Alterac Valley!',14,0,100,0,0,0, 'Captain Balinda Stonehearth'),
-- Reset
(11949,1,0, 'Filthy Frostwolf cowards! If you want a fight, you''ll have to come to me!',14,0,100,0,0,0, 'Captain Balinda Stonehearth'),
-- (Alliance players receives Stormpike's Salvation buff (+20% health points for 2 minutes))
(11949,2,0, 'Take heart, Alliance! Throw these villains from Alterac Valley!',14,0,100,0,0,0, 'Captain Balinda Stonehearth');
@@ -27,8 +27,9 @@ enum Spells
enum Yells
{
YELL_AGGRO = -1810023,
YELL_EVADE = -1810024
YELL_AGGRO = 0,
YELL_EVADE = 1,
YELL_SALVATION = 2,
};
enum Creatures
@@ -122,7 +123,7 @@ public:
void EnterCombat(Unit* /*who*/)
{
DoScriptText(YELL_AGGRO, me);
Talk(YELL_AGGRO);
}
void JustRespawned()
@@ -185,7 +186,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;