Skip to content

Commit

Permalink
Mechanar: Port all texts to bct
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 15, 2023
1 parent 671d0a8 commit 3ef8ce1
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 72 deletions.
32 changes: 0 additions & 32 deletions sql/scriptdev2/scriptdev2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4182,38 +4182,6 @@ INSERT INTO script_texts (entry,content_default,sound,type,language,emote,broadc
-- -1 553 000 THE BOTANICA

-- -1 554 000 THE MECHANAR
INSERT INTO script_texts (entry,content_default,sound,type,language,emote,broadcast_text_id,comment) VALUES
('-1554000','Think you can hurt me, huh? Think I''m afraid a'' you?','11165','1','0','0','19955','Say on Ability use 1'),
('-1554001','Go ahead, gimme your best shot. I can take it!','11166','1','0','0','19956','Say on Ability use 2'),
('-1554002','Bully!','11167','1','0','0','19957','Say on Death'),
('-1554003','Can''t say I didn''t warn you....','11163','1','0','0','19953','Say on Player Kill 2'),
('-1554004','Damn, I''m good!','11164','1','0','0','19954','Say on Player Kill 1'),
('-1554005','You should split while you can.','11162','1','0','0','19952','Say on Aggro'),
('-1554006','REUSE_ME','0','0','0','0','0','REUSE_ME'),
('-1554007','REUSE_ME','0','0','0','0','0','REUSE_ME'),
('-1554008','REUSE_ME','0','0','0','0','0','REUSE_ME'),
('-1554009','REUSE_ME','0','0','0','0','0','REUSE_ME'),
('-1554010','REUSE_ME','0','0','0','0','0','REUSE_ME'),
('-1554011','REUSE_ME','0','0','0','0','0','REUSE_ME'),
('-1554012','REUSE_ME','0','0','0','0','0','REUSE_ME'),

('-1554013','Don''t value your life very much, do you?','11186','1','0','0','19959','sepethrea SAY_AGGRO'),
('-1554014','I am not alone.','11191','1','0','0','19965','sepethrea SAY_SUMMON'),
('-1554015','Think you can take the heat?','11189','1','0','0','19963','sepethrea SAY_DRAGONS_BREATH_1'),
('-1554016','Anar''endal dracon!','11190','1','0','0','19964','sepethrea SAY_DRAGONS_BREATH_2'),
('-1554017','And don''t come back!','11187','1','0','0','19961','sepethrea SAY_SLAY1'),
('-1554018','Endala finel endal!','11188','1','0','0','19962','sepethrea SAY_SLAY2'),
('-1554019','Anu... bala belore...alon.','11192','1','0','0','19966','sepethrea SAY_DEATH'),

('-1554020','We are on a strict timetable. You will not interfere!','11193','1','0','0','20041','pathaleon SAY_AGGRO'),
('-1554021','I''m looking for a team player...','11197','1','0','0','18716','pathaleon SAY_DOMINATION_1'),
('-1554022','You work for me now!','11198','1','0','0','20040','pathaleon SAY_DOMINATION_2'),
('-1554023','Time to supplement my work force.','11196','1','0','0','18717','pathaleon SAY_SUMMON'),
('-1554024','I prefer to be hands-on...','11199','1','0','0','18725','pathaleon SAY_ENRAGE'),
('-1554025','A minor inconvenience.','11194','1','0','0','20042','pathaleon SAY_SLAY_1'),
('-1554026','Looks like you lose.','11195','1','0','0','20043','pathaleon SAY_SLAY_2'),
('-1554027','The project will... continue.','11200','1','0','0','20044','pathaleon SAY_DEATH'),
('-1554028','I have been waiting for you!','0','1','0','53','19059','pathaleon SAY_INTRO');

-- -1 555 000 SHADOW LABYRINTH
INSERT INTO script_texts (entry,content_default,sound,type,language,emote,broadcast_text_id,comment) VALUES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ EndScriptData */

enum
{
SAY_AGGRO = -1554005,
SAY_DEATH = -1554002,
SAY_ABILITY_USE_1 = -1554000,
SAY_ABILITY_USE_2 = -1554001,
SAY_PLAYER_KILL_1 = -1554003,
SAY_PLAYER_KILL_2 = -1554004,
SAY_AGGRO = 19952,
SAY_DEATH = 19957,
SAY_ABILITY_USE_1 = 19955,
SAY_ABILITY_USE_2 = 19956,
SAY_PLAYER_KILL_1 = 19953,
SAY_PLAYER_KILL_2 = 19954,

SPELL_SUMMON_NETHER_CHARGE_NE = 35153,
SPELL_SUMMON_NETHER_CHARGE_NW = 35904,
Expand Down Expand Up @@ -80,18 +80,18 @@ struct boss_mechano_lord_capacitusAI : public ScriptedAI

void Aggro(Unit* /*pWho*/) override
{
DoScriptText(SAY_AGGRO, m_creature);
DoBroadcastText(SAY_AGGRO, m_creature);
}

void KilledUnit(Unit* pVictim) override
{
if (pVictim->GetTypeId() == TYPEID_PLAYER)
DoScriptText(urand(0, 1) ? SAY_PLAYER_KILL_1 : SAY_PLAYER_KILL_2, m_creature);
DoBroadcastText(urand(0, 1) ? SAY_PLAYER_KILL_1 : SAY_PLAYER_KILL_2, m_creature);
}

void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
DoBroadcastText(SAY_DEATH, m_creature);
DespawnNetherCharges();
}

Expand Down Expand Up @@ -144,8 +144,8 @@ struct boss_mechano_lord_capacitusAI : public ScriptedAI

switch (urand(0, 3))
{
case 0: DoScriptText(SAY_ABILITY_USE_1, m_creature); break;
case 1: DoScriptText(SAY_ABILITY_USE_2, m_creature); break;
case 0: DoBroadcastText(SAY_ABILITY_USE_1, m_creature); break;
case 1: DoBroadcastText(SAY_ABILITY_USE_2, m_creature); break;
default: break;
}
}
Expand All @@ -170,8 +170,8 @@ struct boss_mechano_lord_capacitusAI : public ScriptedAI

switch (urand(0, 3))
{
case 0: DoScriptText(SAY_ABILITY_USE_1, m_creature); break;
case 1: DoScriptText(SAY_ABILITY_USE_2, m_creature); break;
case 0: DoBroadcastText(SAY_ABILITY_USE_1, m_creature); break;
case 1: DoBroadcastText(SAY_ABILITY_USE_2, m_creature); break;
default: break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ EndScriptData */

enum
{
SAY_AGGRO = -1554013,
SAY_SUMMON = -1554014,
SAY_DRAGONS_BREATH_1 = -1554015,
SAY_DRAGONS_BREATH_2 = -1554016,
SAY_SLAY1 = -1554017,
SAY_SLAY2 = -1554018,
SAY_DEATH = -1554019,
SAY_AGGRO = 19959,
SAY_SUMMON = 19965,
SAY_DRAGONS_BREATH_1 = 19963,
SAY_DRAGONS_BREATH_2 = 19964,
SAY_SLAY1 = 19961,
SAY_SLAY2 = 19962,
SAY_DEATH = 19966,

SPELL_SUMMON_RAGING_FLAMES = 35275,
SPELL_SUMMON_RAGING_FLAMES_H = 39084,
Expand Down Expand Up @@ -72,7 +72,7 @@ struct boss_nethermancer_sepethreaAI : public ScriptedAI
void Aggro(Unit* /*pWho*/) override
{
m_creature->SetInCombatWithZone();
DoScriptText(SAY_AGGRO, m_creature);
DoBroadcastText(SAY_AGGRO, m_creature);
DoCastSpellIfCan(nullptr, SPELL_FROST_ATTACK, CAST_TRIGGERED | CAST_AURA_NOT_PRESENT);
DoCastSpellIfCan(m_creature, m_bIsRegularMode ? SPELL_SUMMON_RAGING_FLAMES : SPELL_SUMMON_RAGING_FLAMES_H);

Expand All @@ -82,12 +82,12 @@ struct boss_nethermancer_sepethreaAI : public ScriptedAI

void KilledUnit(Unit* /*pVictim*/) override
{
DoScriptText(urand(0, 1) ? SAY_SLAY1 : SAY_SLAY2, m_creature);
DoBroadcastText(urand(0, 1) ? SAY_SLAY1 : SAY_SLAY2, m_creature);
}

void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
DoBroadcastText(SAY_DEATH, m_creature);

if (m_pInstance)
m_pInstance->SetData(TYPE_SEPETHREA, DONE);
Expand Down Expand Up @@ -123,7 +123,7 @@ struct boss_nethermancer_sepethreaAI : public ScriptedAI
if (DoCastSpellIfCan(m_creature, SPELL_DRAGONS_BREATH) == CAST_OK)
{
if (urand(0, 1))
DoScriptText(urand(0, 1) ? SAY_DRAGONS_BREATH_1 : SAY_DRAGONS_BREATH_2, m_creature);
DoBroadcastText(urand(0, 1) ? SAY_DRAGONS_BREATH_1 : SAY_DRAGONS_BREATH_2, m_creature);

m_uiDragonsBreathTimer = urand(20000, 35000);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ EndScriptData */

enum
{
SAY_AGGRO = -1554020,
SAY_DOMINATION_1 = -1554021,
SAY_DOMINATION_2 = -1554022,
SAY_SUMMON = -1554023,
SAY_ENRAGE = -1554024,
SAY_SLAY_1 = -1554025,
SAY_SLAY_2 = -1554026,
SAY_DEATH = -1554027,
SAY_AGGRO = 20041,
SAY_DOMINATION_1 = 18716,
SAY_DOMINATION_2 = 20040,
SAY_SUMMON = 18717,
SAY_ENRAGE = 18725,
SAY_SLAY_1 = 20042,
SAY_SLAY_2 = 20043,
SAY_DEATH = 20044,

// Spells to be casted
SPELL_MANA_TAP = 36021,
Expand Down Expand Up @@ -90,17 +90,17 @@ struct boss_pathaleon_the_calculatorAI : public ScriptedAI

void Aggro(Unit* /*pWho*/) override
{
DoScriptText(SAY_AGGRO, m_creature);
DoBroadcastText(SAY_AGGRO, m_creature);
}

void KilledUnit(Unit* /*pVictim*/) override
{
DoScriptText(urand(0, 1) ? SAY_SLAY_1 : SAY_SLAY_2, m_creature);
DoBroadcastText(urand(0, 1) ? SAY_SLAY_1 : SAY_SLAY_2, m_creature);
}

void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
DoBroadcastText(SAY_DEATH, m_creature);

m_creature->RemoveGuardians();

Expand Down Expand Up @@ -153,7 +153,7 @@ struct boss_pathaleon_the_calculatorAI : public ScriptedAI
{
if (DoCastSpellIfCan(pTarget, SPELL_DOMINATION) == CAST_OK)
{
DoScriptText(urand(0, 1) ? SAY_DOMINATION_1 : SAY_DOMINATION_2, m_creature);
DoBroadcastText(urand(0, 1) ? SAY_DOMINATION_1 : SAY_DOMINATION_2, m_creature);
m_uiDominationTimer = urand(25000, 30000);
}
}
Expand All @@ -178,7 +178,7 @@ struct boss_pathaleon_the_calculatorAI : public ScriptedAI
if (DoCastSpellIfCan(m_creature, SPELL_FRENZY) == CAST_OK)
{
DoCastSpellIfCan(m_creature, SPELL_SUICIDE, CAST_TRIGGERED);
DoScriptText(SAY_ENRAGE, m_creature);
DoBroadcastText(SAY_ENRAGE, m_creature);
m_bIsEnraged = true;
}
}
Expand All @@ -192,7 +192,7 @@ struct boss_pathaleon_the_calculatorAI : public ScriptedAI
for (uint8 i = 0; i < uiMaxWraith; ++i)
DoCastSpellIfCan(m_creature, aWraithSummonSpells[i], CAST_TRIGGERED);

DoScriptText(SAY_SUMMON, m_creature);
DoBroadcastText(SAY_SUMMON, m_creature);
m_uiSummonTimer = urand(45000, 50000);
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void instance_mechanar::DoSpawnBridgeWave()
break;
case 6: // Pathaleon
SetData(TYPE_BRIDGEEVENT, DONE);
DoScriptText(SAY_PATHALEON_INTRO, temp);
DoBroadcastText(SAY_PATHALEON_INTRO, temp);
m_pathaleonEngageTimer = 30000;
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ enum

SPELL_ETHEREAL_TELEPORT = 34427,

SAY_PATHALEON_INTRO = -1554028,
SAY_PATHALEON_INTRO = 19059,
};

struct SpawnLocation
Expand Down

0 comments on commit 3ef8ce1

Please sign in to comment.