mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts/UtgardeKeep): Prince Keleseth not aggroing (#15523)
* fix(Scripts/Instance): Utgarde Keep - Prince Keleseth not aggroing from proximity. * update * zzz * typo * remove broadcast_text update
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
-- Prince Keleseth (Utgarde Keep)
|
||||||
|
DELETE FROM `creature_text` WHERE `CreatureID`=23953 AND `GroupID`=6;
|
||||||
|
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
|
||||||
|
(23953, 6, 0, 'Darkness waits.', 14, 0, 0, 0, 0, 13223, 29591, 0, 'Prince Keleseth - SAY_KILL');
|
||||||
|
|
||||||
|
DELETE FROM `creature_text_locale` WHERE `CreatureID`=23953 AND `GroupID`=6 AND `Locale`='zhCN';
|
||||||
|
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`) VALUES
|
||||||
|
(23953, 6, 0, 'zhCN', '黑暗在等着你呢。');
|
||||||
@@ -29,6 +29,7 @@ enum eTexts
|
|||||||
SAY_SUMMON_SKELETONS = 2,
|
SAY_SUMMON_SKELETONS = 2,
|
||||||
SAY_FROST_TOMB_EMOTE = 4,
|
SAY_FROST_TOMB_EMOTE = 4,
|
||||||
SAY_DEATH = 5,
|
SAY_DEATH = 5,
|
||||||
|
SAY_KILL = 6,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum eNPCs
|
enum eNPCs
|
||||||
@@ -140,14 +141,13 @@ public:
|
|||||||
pInstance->SetData(DATA_KELESETH, NOT_STARTED);
|
pInstance->SetData(DATA_KELESETH, NOT_STARTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveInLineOfSight(Unit* /*who*/) override {}
|
void KilledUnit(Unit* victim) override
|
||||||
|
|
||||||
/*void KilledUnit(Unit * victim)
|
|
||||||
{
|
{
|
||||||
if (victim == me)
|
if (victim->IsPlayer())
|
||||||
return;
|
{
|
||||||
DoScriptText(SAY_KILL, me);
|
Talk(SAY_KILL);
|
||||||
}*/
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void JustDied(Unit* /*killer*/) override
|
void JustDied(Unit* /*killer*/) override
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user