aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/world/2013_01_07_03_world_creature_text.sql (renamed from sql/updates/world/2013_01_07_03_world_creature_text,sql)0
-rw-r--r--sql/updates/world/2013_01_07_04_world_creature_text.sql7
-rw-r--r--src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp30
3 files changed, 18 insertions, 19 deletions
diff --git a/sql/updates/world/2013_01_07_03_world_creature_text,sql b/sql/updates/world/2013_01_07_03_world_creature_text.sql
index c006dc5ef99..c006dc5ef99 100644
--- a/sql/updates/world/2013_01_07_03_world_creature_text,sql
+++ b/sql/updates/world/2013_01_07_03_world_creature_text.sql
diff --git a/sql/updates/world/2013_01_07_04_world_creature_text.sql b/sql/updates/world/2013_01_07_04_world_creature_text.sql
new file mode 100644
index 00000000000..6fd1d3b95a7
--- /dev/null
+++ b/sql/updates/world/2013_01_07_04_world_creature_text.sql
@@ -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');
diff --git a/src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp b/src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp
index 6d555a52eec..673b168970b 100644
--- a/src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp
+++ b/src/server/scripts/EasternKingdoms/Uldaman/boss_archaedas.cpp
@@ -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;
}