Core: Scripting: Convert Text for boss Archaedas to creature text

This commit is contained in:
Malcrom
2013-01-07 15:54:11 -03:30
parent 9d1ad8ab3a
commit 74b4dbec3f
3 changed files with 18 additions and 19 deletions

View File

@@ -0,0 +1,7 @@
-- Texts for Archaedas
DELETE FROM `creature_text` WHERE `entry`= 2748;
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
(2748,0,0, 'Who dares awaken Archaedas? Who dares the wrath of the makers!',14,0,100,0,0,5855, 'Archaedas On Aggro'),
(2748,1,0, 'Awake ye servants, defend the discs!',14,0,100,0,0,5856, 'Archaedas On Summon Guardians'),
(2748,2,0, 'To my side, brothers. For the makers!',14,0,100,0,0,5857, 'Archaedas On Summon Vault Walkers'),
(2748,3,0, 'Reckless mortal.',14,0,100,0,0,5858, 'Archaedas On Player Kill');

View File

@@ -31,17 +31,13 @@ EndScriptData */
#include "uldaman.h"
#include "Player.h"
#define SAY_AGGRO "Who dares awaken Archaedas? Who dares the wrath of the makers!"
#define SOUND_AGGRO 5855
#define SAY_SUMMON "Awake ye servants, defend the discs!"
#define SOUND_SUMMON 5856
#define SAY_SUMMON2 "To my side, brothers. For the makers!"
#define SOUND_SUMMON2 5857
#define SAY_KILL "Reckless mortal."
#define SOUND_KILL 5858
enum Says
{
SAY_AGGRO = 0,
SAY_SUMMON_GUARDIANS = 1,
SAY_SUMMON_VAULT_WALKERS = 2,
SAY_KILL = 3
};
enum eSpells
{
@@ -122,8 +118,7 @@ class boss_archaedas : public CreatureScript
// Being woken up from the altar, start the awaken sequence
if (spell == sSpellMgr->GetSpellInfo(SPELL_ARCHAEDAS_AWAKEN))
{
me->MonsterYell(SAY_AGGRO, LANG_UNIVERSAL, 0);
DoPlaySoundToSet(me, SOUND_AGGRO);
Talk(SAY_AGGRO);
iAwakenTimer = 4000;
bWakingUp = true;
}
@@ -131,8 +126,7 @@ class boss_archaedas : public CreatureScript
void KilledUnit(Unit* /*victim*/)
{
me->MonsterYell(SAY_KILL, LANG_UNIVERSAL, 0);
DoPlaySoundToSet(me, SOUND_KILL);
Talk(SAY_KILL);
}
void UpdateAI(const uint32 uiDiff)
@@ -172,8 +166,7 @@ class boss_archaedas : public CreatureScript
ActivateMinion(instance->GetData64(8), true); // EarthenGuardian4
ActivateMinion(instance->GetData64(9), true); // EarthenGuardian5
ActivateMinion(instance->GetData64(10), false); // EarthenGuardian6
me->MonsterYell(SAY_SUMMON, LANG_UNIVERSAL, 0);
DoPlaySoundToSet(me, SOUND_SUMMON);
Talk(SAY_SUMMON_GUARDIANS);
bGuardiansAwake = true;
}
@@ -184,8 +177,7 @@ class boss_archaedas : public CreatureScript
ActivateMinion(instance->GetData64(2), true); // VaultWalker2
ActivateMinion(instance->GetData64(3), true); // VaultWalker3
ActivateMinion(instance->GetData64(4), false); // VaultWalker4
me->MonsterYell(SAY_SUMMON2, LANG_UNIVERSAL, 0);
DoPlaySoundToSet(me, SOUND_SUMMON2);
Talk(SAY_SUMMON_VAULT_WALKERS);
bVaultWalkersAwake = true;
}