Core/Scripting: Move Text for Shirrak the Dead Watcher to creature text

This commit is contained in:
Malcrom
2013-01-07 19:50:31 -03:30
parent 5ce88118ee
commit 1c77eee917
2 changed files with 9 additions and 8 deletions

View File

@@ -0,0 +1,4 @@
-- Texts for Shirrak the Dead Watcher
DELETE FROM `creature_text` WHERE `entry`= 18371;
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
(18371,0,0, '%s focuses on $n!',41,0,100,0,0,0, 'Shirrak the Dead Watcher - Emote Focus');

View File

@@ -40,7 +40,10 @@ EndScriptData */
#define SPELL_FIERY_BLAST DUNGEON_MODE(N_SPELL_FIERY_BLAST, H_SPELL_FIERY_BLAST)
#define SPELL_FOCUS_FIRE_VISUAL 42075 //need to find better visual
#define EMOTE_FOCUSES_ON "focuses on "
enum Emote
{
EMOTE_FOCUSE = 0
};
class boss_shirrak_the_dead_watcher : public CreatureScript
{
@@ -143,13 +146,7 @@ public:
{
FocusedTargetGUID = target->GetGUID();
me->SummonCreature(ENTRY_FOCUS_FIRE, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 5500);
// TODO: Find better way to handle emote
// Emote
std::string emote(EMOTE_FOCUSES_ON);
emote.append(target->GetName());
emote.push_back('!');
me->MonsterTextEmote(emote.c_str(), 0, true);
Talk(EMOTE_FOCUSE);
}
FocusFire_Timer = 15000+(rand()%5000);
} else FocusFire_Timer -= diff;