Scripts/EasterKingdoms: Blackwing Lair
* code-style cleanup * Fixed copyright header * Fixed defines in enums todo: make the necessary changes for script_text-> Creature_texts.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -24,14 +24,19 @@ SDCategory: Blackwing Lair
|
||||
EndScriptData */
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
enum Say
|
||||
{
|
||||
SAY_AGGRO = -1469000,
|
||||
SAY_LEASH = -1469001
|
||||
};
|
||||
|
||||
#define SAY_AGGRO -1469000
|
||||
#define SAY_LEASH -1469001
|
||||
|
||||
#define SPELL_CLEAVE 26350
|
||||
#define SPELL_BLASTWAVE 23331
|
||||
#define SPELL_MORTALSTRIKE 24573
|
||||
#define SPELL_KNOCKBACK 25778
|
||||
enum Spells
|
||||
{
|
||||
SPELL_CLEAVE = 26350,
|
||||
SPELL_BLASTWAVE = 23331,
|
||||
SPELL_MORTALSTRIKE = 24573,
|
||||
SPELL_KNOCKBACK = 25778
|
||||
};
|
||||
|
||||
class boss_broodlord : public CreatureScript
|
||||
{
|
||||
@@ -45,7 +50,7 @@ public:
|
||||
|
||||
struct boss_broodlordAI : public ScriptedAI
|
||||
{
|
||||
boss_broodlordAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_broodlordAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 Cleave_Timer;
|
||||
uint32 BlastWave_Timer;
|
||||
@@ -54,10 +59,10 @@ public:
|
||||
|
||||
void Reset()
|
||||
{
|
||||
Cleave_Timer = 8000; //These times are probably wrong
|
||||
BlastWave_Timer = 12000;
|
||||
MortalStrike_Timer = 20000;
|
||||
KnockBack_Timer = 30000;
|
||||
Cleave_Timer = 8000; // These times are probably wrong
|
||||
BlastWave_Timer = 12000;
|
||||
MortalStrike_Timer = 20000;
|
||||
KnockBack_Timer = 30000;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
@@ -108,7 +113,6 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_broodlord()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
struct boss_chromaggusAI : public ScriptedAI
|
||||
{
|
||||
boss_chromaggusAI(Creature* c) : ScriptedAI(c)
|
||||
boss_chromaggusAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
//Select the 2 breaths that we are going to use until despawned
|
||||
//5 possiblities for the first breath, 4 for the second, 20 total possiblites
|
||||
@@ -197,9 +197,7 @@ public:
|
||||
Enraged = false;
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
}
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
@@ -297,7 +295,6 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_chromaggus()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
struct boss_ebonrocAI : public ScriptedAI
|
||||
{
|
||||
boss_ebonrocAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_ebonrocAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 ShadowFlame_Timer;
|
||||
uint32 WingBuffet_Timer;
|
||||
@@ -100,7 +100,6 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_ebonroc()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
struct boss_firemawAI : public ScriptedAI
|
||||
{
|
||||
boss_firemawAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_firemawAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 ShadowFlame_Timer;
|
||||
uint32 WingBuffet_Timer;
|
||||
@@ -91,7 +91,6 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_firemaw()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -25,11 +25,17 @@ EndScriptData */
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
|
||||
#define EMOTE_FRENZY -1469031
|
||||
enum Emotes
|
||||
{
|
||||
EMOTE_FRENZY = -1469031
|
||||
};
|
||||
|
||||
#define SPELL_SHADOWFLAME 22539
|
||||
#define SPELL_WINGBUFFET 23339
|
||||
#define SPELL_FRENZY 23342 //This spell periodically triggers fire nova
|
||||
enum Spells
|
||||
{
|
||||
SPELL_SHADOWFLAME = 22539,
|
||||
SPELL_WINGBUFFET = 23339,
|
||||
SPELL_FRENZY = 23342 //This spell periodically triggers fire nova
|
||||
};
|
||||
|
||||
class boss_flamegor : public CreatureScript
|
||||
{
|
||||
@@ -43,7 +49,7 @@ public:
|
||||
|
||||
struct boss_flamegorAI : public ScriptedAI
|
||||
{
|
||||
boss_flamegorAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_flamegorAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 ShadowFlame_Timer;
|
||||
uint32 WingBuffet_Timer;
|
||||
@@ -94,7 +100,6 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_flamegor()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -25,40 +25,46 @@ EndScriptData */
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
|
||||
#define SAY_AGGRO -1469007
|
||||
#define SAY_XHEALTH -1469008
|
||||
#define SAY_SHADOWFLAME -1469009
|
||||
#define SAY_RAISE_SKELETONS -1469010
|
||||
#define SAY_SLAY -1469011
|
||||
#define SAY_DEATH -1469012
|
||||
enum Say
|
||||
{
|
||||
SAY_AGGRO = -1469007,
|
||||
SAY_XHEALTH = -1469008,
|
||||
SAY_SHADOWFLAME = -1469009,
|
||||
SAY_RAISE_SKELETONS = -1469010,
|
||||
SAY_SLAY = -1469011,
|
||||
SAY_DEATH = -1469012,
|
||||
|
||||
#define SAY_MAGE -1469013
|
||||
#define SAY_WARRIOR -1469014
|
||||
#define SAY_DRUID -1469015
|
||||
#define SAY_PRIEST -1469016
|
||||
#define SAY_PALADIN -1469017
|
||||
#define SAY_SHAMAN -1469018
|
||||
#define SAY_WARLOCK -1469019
|
||||
#define SAY_HUNTER -1469020
|
||||
#define SAY_ROGUE -1469021
|
||||
SAY_MAGE = -1469013,
|
||||
SAY_WARRIOR = -1469014,
|
||||
SAY_DRUID = -1469015,
|
||||
SAY_PRIEST = -1469016,
|
||||
SAY_PALADIN = -1469017,
|
||||
SAY_SHAMAN = -1469018,
|
||||
SAY_WARLOCK = -1469019,
|
||||
SAY_HUNTER = -1469020,
|
||||
SAY_ROGUE = -1469021
|
||||
};
|
||||
|
||||
#define SPELL_SHADOWFLAME_INITIAL 22972
|
||||
#define SPELL_SHADOWFLAME 22539
|
||||
#define SPELL_BELLOWINGROAR 22686
|
||||
#define SPELL_VEILOFSHADOW 7068
|
||||
#define SPELL_CLEAVE 20691
|
||||
#define SPELL_TAILLASH 23364
|
||||
#define SPELL_BONECONTRUST 23363 //23362, 23361
|
||||
enum Spells
|
||||
{
|
||||
SPELL_SHADOWFLAME_INITIAL = 22972,
|
||||
SPELL_SHADOWFLAME = 22539,
|
||||
SPELL_BELLOWINGROAR = 22686,
|
||||
SPELL_VEILOFSHADOW = 7068,
|
||||
SPELL_CLEAVE = 20691,
|
||||
SPELL_TAILLASH = 23364,
|
||||
SPELL_BONECONTRUST = 23363, //23362, 23361
|
||||
|
||||
#define SPELL_MAGE 23410 //wild magic
|
||||
#define SPELL_WARRIOR 23397 //beserk
|
||||
#define SPELL_DRUID 23398 // cat form
|
||||
#define SPELL_PRIEST 23401 // corrupted healing
|
||||
#define SPELL_PALADIN 23418 //syphon blessing
|
||||
#define SPELL_SHAMAN 23425 //totems
|
||||
#define SPELL_WARLOCK 23427 //infernals
|
||||
#define SPELL_HUNTER 23436 //bow broke
|
||||
#define SPELL_ROGUE 23414 //Paralise
|
||||
SPELL_MAGE = 23410, //wild magic
|
||||
SPELL_WARRIOR = 23397, //beserk
|
||||
SPELL_DRUID = 23398, // cat form
|
||||
SPELL_PRIEST = 23401, // corrupted healing
|
||||
SPELL_PALADIN = 23418, //syphon blessing
|
||||
SPELL_SHAMAN = 23425, //totems
|
||||
SPELL_WARLOCK = 23427, //infernals
|
||||
SPELL_HUNTER = 23436, //bow broke
|
||||
SPELL_ROGUE = 23414 //Paralise
|
||||
};
|
||||
|
||||
class boss_nefarian : public CreatureScript
|
||||
{
|
||||
@@ -72,7 +78,7 @@ public:
|
||||
|
||||
struct boss_nefarianAI : public ScriptedAI
|
||||
{
|
||||
boss_nefarianAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_nefarianAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 ShadowFlame_Timer;
|
||||
uint32 BellowingRoar_Timer;
|
||||
@@ -86,15 +92,15 @@ public:
|
||||
|
||||
void Reset()
|
||||
{
|
||||
ShadowFlame_Timer = 12000; //These times are probably wrong
|
||||
BellowingRoar_Timer = 30000;
|
||||
VeilOfShadow_Timer = 15000;
|
||||
Cleave_Timer = 7000;
|
||||
TailLash_Timer = 10000;
|
||||
ClassCall_Timer = 35000; //35-40 seconds
|
||||
ShadowFlame_Timer = 12000; // These times are probably wrong
|
||||
BellowingRoar_Timer = 30000;
|
||||
VeilOfShadow_Timer = 15000;
|
||||
Cleave_Timer = 7000;
|
||||
TailLash_Timer = 10000;
|
||||
ClassCall_Timer = 35000; // 35-40 seconds
|
||||
Phase3 = false;
|
||||
|
||||
DespawnTimer = 5000;
|
||||
DespawnTimer = 5000;
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* Victim)
|
||||
@@ -227,7 +233,6 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_nefarian()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -27,15 +27,21 @@ EndScriptData */
|
||||
|
||||
//Razorgore Phase 2 Script
|
||||
|
||||
#define SAY_EGGS_BROKEN1 -1469022
|
||||
#define SAY_EGGS_BROKEN2 -1469023
|
||||
#define SAY_EGGS_BROKEN3 -1469024
|
||||
#define SAY_DEATH -1469025
|
||||
enum Say
|
||||
{
|
||||
SAY_EGGS_BROKEN1 = -1469022,
|
||||
SAY_EGGS_BROKEN2 = -1469023,
|
||||
SAY_EGGS_BROKEN3 = -1469024,
|
||||
SAY_DEATH = -1469025
|
||||
};
|
||||
|
||||
#define SPELL_CLEAVE 22540
|
||||
#define SPELL_WARSTOMP 24375
|
||||
#define SPELL_FIREBALLVOLLEY 22425
|
||||
#define SPELL_CONFLAGRATION 23023
|
||||
enum Spells
|
||||
{
|
||||
SPELL_CLEAVE = 22540,
|
||||
SPELL_WARSTOMP = 24375,
|
||||
SPELL_FIREBALLVOLLEY = 22425,
|
||||
SPELL_CONFLAGRATION = 23023
|
||||
};
|
||||
|
||||
class boss_razorgore : public CreatureScript
|
||||
{
|
||||
@@ -49,7 +55,7 @@ public:
|
||||
|
||||
struct boss_razorgoreAI : public ScriptedAI
|
||||
{
|
||||
boss_razorgoreAI(Creature* c) : ScriptedAI(c) {}
|
||||
boss_razorgoreAI(Creature* creature) : ScriptedAI(creature) {}
|
||||
|
||||
uint32 Cleave_Timer;
|
||||
uint32 WarStomp_Timer;
|
||||
@@ -120,7 +126,6 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_razorgore()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -25,40 +25,46 @@ EndScriptData */
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
|
||||
#define SAY_LINE1 -1469026
|
||||
#define SAY_LINE2 -1469027
|
||||
#define SAY_LINE3 -1469028
|
||||
#define SAY_HALFLIFE -1469029
|
||||
#define SAY_KILLTARGET -1469030
|
||||
enum Says
|
||||
{
|
||||
SAY_LINE1 = -1469026,
|
||||
SAY_LINE2 = -1469027,
|
||||
SAY_LINE3 = -1469028,
|
||||
SAY_HALFLIFE = -1469029,
|
||||
SAY_KILLTARGET = -1469030
|
||||
};
|
||||
|
||||
#define GOSSIP_ITEM "Start Event <Needs Gossip Text>"
|
||||
|
||||
#define SPELL_ESSENCEOFTHERED 23513
|
||||
#define SPELL_FLAMEBREATH 23461
|
||||
#define SPELL_FIRENOVA 23462
|
||||
#define SPELL_TAILSWIPE 15847
|
||||
#define SPELL_BURNINGADRENALINE 23620
|
||||
#define SPELL_CLEAVE 20684 //Chain cleave is most likely named something different and contains a dummy effect
|
||||
enum Spells
|
||||
{
|
||||
SPELL_ESSENCEOFTHERED = 23513,
|
||||
SPELL_FLAMEBREATH = 23461,
|
||||
SPELL_FIRENOVA = 23462,
|
||||
SPELL_TAILSWIPE = 15847,
|
||||
SPELL_BURNINGADRENALINE = 23620,
|
||||
SPELL_CLEAVE = 20684 //Chain cleave is most likely named something different and contains a dummy effect
|
||||
};
|
||||
|
||||
class boss_vaelastrasz : public CreatureScript
|
||||
{
|
||||
public:
|
||||
boss_vaelastrasz() : CreatureScript("boss_vaelastrasz") { }
|
||||
|
||||
void SendDefaultMenu(Player* player, Creature* creature, uint32 uiAction)
|
||||
void SendDefaultMenu(Player* player, Creature* creature, uint32 Action)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_INFO_DEF + 1) //Fight time
|
||||
if (Action == GOSSIP_ACTION_INFO_DEF + 1) //Fight time
|
||||
{
|
||||
player->CLOSE_GOSSIP_MENU();
|
||||
CAST_AI(boss_vaelastrasz::boss_vaelAI, creature->AI())->BeginSpeech(player);
|
||||
}
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 uiSender, uint32 uiAction)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 Sender, uint32 Action)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
if (uiSender == GOSSIP_SENDER_MAIN)
|
||||
SendDefaultMenu(player, creature, uiAction);
|
||||
if (Sender == GOSSIP_SENDER_MAIN)
|
||||
SendDefaultMenu(player, creature, Action);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -81,11 +87,11 @@ public:
|
||||
|
||||
struct boss_vaelAI : public ScriptedAI
|
||||
{
|
||||
boss_vaelAI(Creature* c) : ScriptedAI(c)
|
||||
boss_vaelAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
c->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
c->setFaction(35);
|
||||
c->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
creature->setFaction(35);
|
||||
creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
}
|
||||
|
||||
uint64 PlayerGUID;
|
||||
@@ -102,17 +108,17 @@ public:
|
||||
|
||||
void Reset()
|
||||
{
|
||||
PlayerGUID = 0;
|
||||
SpeechTimer = 0;
|
||||
SpeechNum = 0;
|
||||
Cleave_Timer = 8000; //These times are probably wrong
|
||||
FlameBreath_Timer = 11000;
|
||||
BurningAdrenalineCaster_Timer = 15000;
|
||||
BurningAdrenalineTank_Timer = 45000;
|
||||
FireNova_Timer = 5000;
|
||||
TailSwipe_Timer = 20000;
|
||||
HasYelled = false;
|
||||
DoingSpeech = false;
|
||||
PlayerGUID = 0;
|
||||
SpeechTimer = 0;
|
||||
SpeechNum = 0;
|
||||
Cleave_Timer = 8000; //These times are probably wrong
|
||||
FlameBreath_Timer = 11000;
|
||||
BurningAdrenalineCaster_Timer = 15000;
|
||||
BurningAdrenalineTank_Timer = 45000;
|
||||
FireNova_Timer = 5000;
|
||||
TailSwipe_Timer = 20000;
|
||||
HasYelled = false;
|
||||
DoingSpeech = false;
|
||||
}
|
||||
|
||||
void BeginSpeech(Unit* target)
|
||||
@@ -213,7 +219,7 @@ public:
|
||||
Unit* target = NULL;
|
||||
|
||||
uint8 i = 0;
|
||||
while (i < 3) // max 3 tries to get a random target with power_mana
|
||||
while (i < 3) // max 3 tries to get a random target with power_mana
|
||||
{
|
||||
++i;
|
||||
target = SelectTarget(SELECT_TARGET_RANDOM, 1, 100, true); //not aggro leader
|
||||
@@ -258,7 +264,6 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_vael()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -25,40 +25,49 @@ EndScriptData */
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
|
||||
#define SAY_GAMESBEGIN_1 -1469004
|
||||
#define SAY_GAMESBEGIN_2 -1469005
|
||||
#define SAY_VAEL_INTRO -1469006 //when he corrupts Vaelastrasz
|
||||
enum Says
|
||||
{
|
||||
SAY_GAMESBEGIN_1 = -1469004,
|
||||
SAY_GAMESBEGIN_2 = -1469005,
|
||||
SAY_VAEL_INTRO = -1469006 //when he corrupts Vaelastrasz
|
||||
};
|
||||
|
||||
#define GOSSIP_ITEM_1 "I've made no mistakes."
|
||||
#define GOSSIP_ITEM_2 "You have lost your mind, Nefarius. You speak in riddles."
|
||||
#define GOSSIP_ITEM_3 "Please do."
|
||||
|
||||
#define CREATURE_BRONZE_DRAKANOID 14263
|
||||
#define CREATURE_BLUE_DRAKANOID 14261
|
||||
#define CREATURE_RED_DRAKANOID 14264
|
||||
#define CREATURE_GREEN_DRAKANOID 14262
|
||||
#define CREATURE_BLACK_DRAKANOID 14265
|
||||
enum Creatures
|
||||
{
|
||||
CREATURE_BRONZE_DRAKANOID = 14263,
|
||||
CREATURE_BLUE_DRAKANOID = 14261,
|
||||
CREATURE_RED_DRAKANOID = 14264,
|
||||
CREATURE_GREEN_DRAKANOID = 14262,
|
||||
CREATURE_BLACK_DRAKANOID = 14265,
|
||||
|
||||
#define CREATURE_CHROMATIC_DRAKANOID 14302
|
||||
#define CREATURE_NEFARIAN 11583
|
||||
CREATURE_CHROMATIC_DRAKANOID = 14302,
|
||||
CREATURE_NEFARIAN = 11583
|
||||
};
|
||||
|
||||
#define ADD_X1 -7591.151855f
|
||||
#define ADD_X2 -7514.598633f
|
||||
#define ADD_Y1 -1204.051880f
|
||||
#define ADD_Y2 -1150.448853f
|
||||
#define ADD_Z1 476.800476f
|
||||
#define ADD_Z2 476.796570f
|
||||
#define ADD_X1 -7591.151855f
|
||||
#define ADD_X2 -7514.598633f
|
||||
#define ADD_Y1 -1204.051880f
|
||||
#define ADD_Y2 -1150.448853f
|
||||
#define ADD_Z1 476.800476f
|
||||
#define ADD_Z2 476.796570f
|
||||
|
||||
#define NEF_X -7445
|
||||
#define NEF_Y -1332
|
||||
#define NEF_Z 536
|
||||
#define NEF_X -7445
|
||||
#define NEF_Y -1332
|
||||
#define NEF_Z 536
|
||||
|
||||
#define HIDE_X -7592
|
||||
#define HIDE_Y -1264
|
||||
#define HIDE_Z 481
|
||||
#define HIDE_X -7592
|
||||
#define HIDE_Y -1264
|
||||
#define HIDE_Z 481
|
||||
|
||||
#define SPELL_SHADOWBOLT 21077
|
||||
#define SPELL_FEAR 26070
|
||||
enum Spells
|
||||
{
|
||||
SPELL_SHADOWBOLT = 21077,
|
||||
SPELL_FEAR = 26070
|
||||
};
|
||||
|
||||
//This script is complicated
|
||||
//Instead of morphing Victor Nefarius we will have him control phase 1
|
||||
@@ -74,10 +83,10 @@ class boss_victor_nefarius : public CreatureScript
|
||||
public:
|
||||
boss_victor_nefarius() : CreatureScript("boss_victor_nefarius") { }
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*Sender*/, uint32 Action)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
switch (uiAction)
|
||||
switch (Action)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2);
|
||||
@@ -110,7 +119,7 @@ public:
|
||||
|
||||
struct boss_victor_nefariusAI : public ScriptedAI
|
||||
{
|
||||
boss_victor_nefariusAI(Creature* c) : ScriptedAI(c)
|
||||
boss_victor_nefariusAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
NefarianGUID = 0;
|
||||
switch (urand(0, 19))
|
||||
@@ -211,13 +220,13 @@ public:
|
||||
|
||||
void Reset()
|
||||
{
|
||||
SpawnedAdds = 0;
|
||||
AddSpawnTimer = 10000;
|
||||
ShadowBoltTimer = 5000;
|
||||
FearTimer = 8000;
|
||||
ResetTimer = 900000; //On official it takes him 15 minutes(900 seconds) to reset. We are only doing 1 minute to make testing easier
|
||||
NefarianGUID = 0;
|
||||
NefCheckTime = 2000;
|
||||
SpawnedAdds = 0;
|
||||
AddSpawnTimer = 10000;
|
||||
ShadowBoltTimer = 5000;
|
||||
FearTimer = 8000;
|
||||
ResetTimer = 900000; //On official it takes him 15 minutes(900 seconds) to reset. We are only doing 1 minute to make testing easier
|
||||
NefarianGUID = 0;
|
||||
NefCheckTime = 2000;
|
||||
|
||||
me->SetUInt32Value(UNIT_NPC_FLAGS, 1);
|
||||
me->setFaction(35);
|
||||
@@ -378,7 +387,6 @@ public:
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
void AddSC_boss_victor_nefarius()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* Copyright (C) 2006-2012 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
@@ -24,4 +24,3 @@ SDCategory: Blackwing Lair
|
||||
EndScriptData */
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user