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) 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -24,14 +24,19 @@ SDCategory: Blackwing Lair
|
|||||||
EndScriptData */
|
EndScriptData */
|
||||||
|
|
||||||
#include "ScriptPCH.h"
|
#include "ScriptPCH.h"
|
||||||
|
enum Say
|
||||||
|
{
|
||||||
|
SAY_AGGRO = -1469000,
|
||||||
|
SAY_LEASH = -1469001
|
||||||
|
};
|
||||||
|
|
||||||
#define SAY_AGGRO -1469000
|
enum Spells
|
||||||
#define SAY_LEASH -1469001
|
{
|
||||||
|
SPELL_CLEAVE = 26350,
|
||||||
#define SPELL_CLEAVE 26350
|
SPELL_BLASTWAVE = 23331,
|
||||||
#define SPELL_BLASTWAVE 23331
|
SPELL_MORTALSTRIKE = 24573,
|
||||||
#define SPELL_MORTALSTRIKE 24573
|
SPELL_KNOCKBACK = 25778
|
||||||
#define SPELL_KNOCKBACK 25778
|
};
|
||||||
|
|
||||||
class boss_broodlord : public CreatureScript
|
class boss_broodlord : public CreatureScript
|
||||||
{
|
{
|
||||||
@@ -45,7 +50,7 @@ public:
|
|||||||
|
|
||||||
struct boss_broodlordAI : public ScriptedAI
|
struct boss_broodlordAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
boss_broodlordAI(Creature* c) : ScriptedAI(c) {}
|
boss_broodlordAI(Creature* creature) : ScriptedAI(creature) {}
|
||||||
|
|
||||||
uint32 Cleave_Timer;
|
uint32 Cleave_Timer;
|
||||||
uint32 BlastWave_Timer;
|
uint32 BlastWave_Timer;
|
||||||
@@ -54,7 +59,7 @@ public:
|
|||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
Cleave_Timer = 8000; //These times are probably wrong
|
Cleave_Timer = 8000; // These times are probably wrong
|
||||||
BlastWave_Timer = 12000;
|
BlastWave_Timer = 12000;
|
||||||
MortalStrike_Timer = 20000;
|
MortalStrike_Timer = 20000;
|
||||||
KnockBack_Timer = 30000;
|
KnockBack_Timer = 30000;
|
||||||
@@ -108,7 +113,6 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_broodlord()
|
void AddSC_boss_broodlord()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
|
|
||||||
struct boss_chromaggusAI : public ScriptedAI
|
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
|
//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
|
//5 possiblities for the first breath, 4 for the second, 20 total possiblites
|
||||||
@@ -197,9 +197,7 @@ public:
|
|||||||
Enraged = false;
|
Enraged = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnterCombat(Unit* /*who*/)
|
void EnterCombat(Unit* /*who*/) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
{
|
{
|
||||||
@@ -297,7 +295,6 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_chromaggus()
|
void AddSC_boss_chromaggus()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -42,7 +42,7 @@ public:
|
|||||||
|
|
||||||
struct boss_ebonrocAI : public ScriptedAI
|
struct boss_ebonrocAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
boss_ebonrocAI(Creature* c) : ScriptedAI(c) {}
|
boss_ebonrocAI(Creature* creature) : ScriptedAI(creature) {}
|
||||||
|
|
||||||
uint32 ShadowFlame_Timer;
|
uint32 ShadowFlame_Timer;
|
||||||
uint32 WingBuffet_Timer;
|
uint32 WingBuffet_Timer;
|
||||||
@@ -100,7 +100,6 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_ebonroc()
|
void AddSC_boss_ebonroc()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
struct boss_firemawAI : public ScriptedAI
|
struct boss_firemawAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
boss_firemawAI(Creature* c) : ScriptedAI(c) {}
|
boss_firemawAI(Creature* creature) : ScriptedAI(creature) {}
|
||||||
|
|
||||||
uint32 ShadowFlame_Timer;
|
uint32 ShadowFlame_Timer;
|
||||||
uint32 WingBuffet_Timer;
|
uint32 WingBuffet_Timer;
|
||||||
@@ -91,7 +91,6 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_firemaw()
|
void AddSC_boss_firemaw()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -25,11 +25,17 @@ EndScriptData */
|
|||||||
|
|
||||||
#include "ScriptPCH.h"
|
#include "ScriptPCH.h"
|
||||||
|
|
||||||
#define EMOTE_FRENZY -1469031
|
enum Emotes
|
||||||
|
{
|
||||||
|
EMOTE_FRENZY = -1469031
|
||||||
|
};
|
||||||
|
|
||||||
#define SPELL_SHADOWFLAME 22539
|
enum Spells
|
||||||
#define SPELL_WINGBUFFET 23339
|
{
|
||||||
#define SPELL_FRENZY 23342 //This spell periodically triggers fire nova
|
SPELL_SHADOWFLAME = 22539,
|
||||||
|
SPELL_WINGBUFFET = 23339,
|
||||||
|
SPELL_FRENZY = 23342 //This spell periodically triggers fire nova
|
||||||
|
};
|
||||||
|
|
||||||
class boss_flamegor : public CreatureScript
|
class boss_flamegor : public CreatureScript
|
||||||
{
|
{
|
||||||
@@ -43,7 +49,7 @@ public:
|
|||||||
|
|
||||||
struct boss_flamegorAI : public ScriptedAI
|
struct boss_flamegorAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
boss_flamegorAI(Creature* c) : ScriptedAI(c) {}
|
boss_flamegorAI(Creature* creature) : ScriptedAI(creature) {}
|
||||||
|
|
||||||
uint32 ShadowFlame_Timer;
|
uint32 ShadowFlame_Timer;
|
||||||
uint32 WingBuffet_Timer;
|
uint32 WingBuffet_Timer;
|
||||||
@@ -94,7 +100,6 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_flamegor()
|
void AddSC_boss_flamegor()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -25,40 +25,46 @@ EndScriptData */
|
|||||||
|
|
||||||
#include "ScriptPCH.h"
|
#include "ScriptPCH.h"
|
||||||
|
|
||||||
#define SAY_AGGRO -1469007
|
enum Say
|
||||||
#define SAY_XHEALTH -1469008
|
{
|
||||||
#define SAY_SHADOWFLAME -1469009
|
SAY_AGGRO = -1469007,
|
||||||
#define SAY_RAISE_SKELETONS -1469010
|
SAY_XHEALTH = -1469008,
|
||||||
#define SAY_SLAY -1469011
|
SAY_SHADOWFLAME = -1469009,
|
||||||
#define SAY_DEATH -1469012
|
SAY_RAISE_SKELETONS = -1469010,
|
||||||
|
SAY_SLAY = -1469011,
|
||||||
|
SAY_DEATH = -1469012,
|
||||||
|
|
||||||
#define SAY_MAGE -1469013
|
SAY_MAGE = -1469013,
|
||||||
#define SAY_WARRIOR -1469014
|
SAY_WARRIOR = -1469014,
|
||||||
#define SAY_DRUID -1469015
|
SAY_DRUID = -1469015,
|
||||||
#define SAY_PRIEST -1469016
|
SAY_PRIEST = -1469016,
|
||||||
#define SAY_PALADIN -1469017
|
SAY_PALADIN = -1469017,
|
||||||
#define SAY_SHAMAN -1469018
|
SAY_SHAMAN = -1469018,
|
||||||
#define SAY_WARLOCK -1469019
|
SAY_WARLOCK = -1469019,
|
||||||
#define SAY_HUNTER -1469020
|
SAY_HUNTER = -1469020,
|
||||||
#define SAY_ROGUE -1469021
|
SAY_ROGUE = -1469021
|
||||||
|
};
|
||||||
|
|
||||||
#define SPELL_SHADOWFLAME_INITIAL 22972
|
enum Spells
|
||||||
#define SPELL_SHADOWFLAME 22539
|
{
|
||||||
#define SPELL_BELLOWINGROAR 22686
|
SPELL_SHADOWFLAME_INITIAL = 22972,
|
||||||
#define SPELL_VEILOFSHADOW 7068
|
SPELL_SHADOWFLAME = 22539,
|
||||||
#define SPELL_CLEAVE 20691
|
SPELL_BELLOWINGROAR = 22686,
|
||||||
#define SPELL_TAILLASH 23364
|
SPELL_VEILOFSHADOW = 7068,
|
||||||
#define SPELL_BONECONTRUST 23363 //23362, 23361
|
SPELL_CLEAVE = 20691,
|
||||||
|
SPELL_TAILLASH = 23364,
|
||||||
|
SPELL_BONECONTRUST = 23363, //23362, 23361
|
||||||
|
|
||||||
#define SPELL_MAGE 23410 //wild magic
|
SPELL_MAGE = 23410, //wild magic
|
||||||
#define SPELL_WARRIOR 23397 //beserk
|
SPELL_WARRIOR = 23397, //beserk
|
||||||
#define SPELL_DRUID 23398 // cat form
|
SPELL_DRUID = 23398, // cat form
|
||||||
#define SPELL_PRIEST 23401 // corrupted healing
|
SPELL_PRIEST = 23401, // corrupted healing
|
||||||
#define SPELL_PALADIN 23418 //syphon blessing
|
SPELL_PALADIN = 23418, //syphon blessing
|
||||||
#define SPELL_SHAMAN 23425 //totems
|
SPELL_SHAMAN = 23425, //totems
|
||||||
#define SPELL_WARLOCK 23427 //infernals
|
SPELL_WARLOCK = 23427, //infernals
|
||||||
#define SPELL_HUNTER 23436 //bow broke
|
SPELL_HUNTER = 23436, //bow broke
|
||||||
#define SPELL_ROGUE 23414 //Paralise
|
SPELL_ROGUE = 23414 //Paralise
|
||||||
|
};
|
||||||
|
|
||||||
class boss_nefarian : public CreatureScript
|
class boss_nefarian : public CreatureScript
|
||||||
{
|
{
|
||||||
@@ -72,7 +78,7 @@ public:
|
|||||||
|
|
||||||
struct boss_nefarianAI : public ScriptedAI
|
struct boss_nefarianAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
boss_nefarianAI(Creature* c) : ScriptedAI(c) {}
|
boss_nefarianAI(Creature* creature) : ScriptedAI(creature) {}
|
||||||
|
|
||||||
uint32 ShadowFlame_Timer;
|
uint32 ShadowFlame_Timer;
|
||||||
uint32 BellowingRoar_Timer;
|
uint32 BellowingRoar_Timer;
|
||||||
@@ -86,12 +92,12 @@ public:
|
|||||||
|
|
||||||
void Reset()
|
void Reset()
|
||||||
{
|
{
|
||||||
ShadowFlame_Timer = 12000; //These times are probably wrong
|
ShadowFlame_Timer = 12000; // These times are probably wrong
|
||||||
BellowingRoar_Timer = 30000;
|
BellowingRoar_Timer = 30000;
|
||||||
VeilOfShadow_Timer = 15000;
|
VeilOfShadow_Timer = 15000;
|
||||||
Cleave_Timer = 7000;
|
Cleave_Timer = 7000;
|
||||||
TailLash_Timer = 10000;
|
TailLash_Timer = 10000;
|
||||||
ClassCall_Timer = 35000; //35-40 seconds
|
ClassCall_Timer = 35000; // 35-40 seconds
|
||||||
Phase3 = false;
|
Phase3 = false;
|
||||||
|
|
||||||
DespawnTimer = 5000;
|
DespawnTimer = 5000;
|
||||||
@@ -227,7 +233,6 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_nefarian()
|
void AddSC_boss_nefarian()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -27,15 +27,21 @@ EndScriptData */
|
|||||||
|
|
||||||
//Razorgore Phase 2 Script
|
//Razorgore Phase 2 Script
|
||||||
|
|
||||||
#define SAY_EGGS_BROKEN1 -1469022
|
enum Say
|
||||||
#define SAY_EGGS_BROKEN2 -1469023
|
{
|
||||||
#define SAY_EGGS_BROKEN3 -1469024
|
SAY_EGGS_BROKEN1 = -1469022,
|
||||||
#define SAY_DEATH -1469025
|
SAY_EGGS_BROKEN2 = -1469023,
|
||||||
|
SAY_EGGS_BROKEN3 = -1469024,
|
||||||
|
SAY_DEATH = -1469025
|
||||||
|
};
|
||||||
|
|
||||||
#define SPELL_CLEAVE 22540
|
enum Spells
|
||||||
#define SPELL_WARSTOMP 24375
|
{
|
||||||
#define SPELL_FIREBALLVOLLEY 22425
|
SPELL_CLEAVE = 22540,
|
||||||
#define SPELL_CONFLAGRATION 23023
|
SPELL_WARSTOMP = 24375,
|
||||||
|
SPELL_FIREBALLVOLLEY = 22425,
|
||||||
|
SPELL_CONFLAGRATION = 23023
|
||||||
|
};
|
||||||
|
|
||||||
class boss_razorgore : public CreatureScript
|
class boss_razorgore : public CreatureScript
|
||||||
{
|
{
|
||||||
@@ -49,7 +55,7 @@ public:
|
|||||||
|
|
||||||
struct boss_razorgoreAI : public ScriptedAI
|
struct boss_razorgoreAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
boss_razorgoreAI(Creature* c) : ScriptedAI(c) {}
|
boss_razorgoreAI(Creature* creature) : ScriptedAI(creature) {}
|
||||||
|
|
||||||
uint32 Cleave_Timer;
|
uint32 Cleave_Timer;
|
||||||
uint32 WarStomp_Timer;
|
uint32 WarStomp_Timer;
|
||||||
@@ -120,7 +126,6 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_razorgore()
|
void AddSC_boss_razorgore()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -25,40 +25,46 @@ EndScriptData */
|
|||||||
|
|
||||||
#include "ScriptPCH.h"
|
#include "ScriptPCH.h"
|
||||||
|
|
||||||
#define SAY_LINE1 -1469026
|
enum Says
|
||||||
#define SAY_LINE2 -1469027
|
{
|
||||||
#define SAY_LINE3 -1469028
|
SAY_LINE1 = -1469026,
|
||||||
#define SAY_HALFLIFE -1469029
|
SAY_LINE2 = -1469027,
|
||||||
#define SAY_KILLTARGET -1469030
|
SAY_LINE3 = -1469028,
|
||||||
|
SAY_HALFLIFE = -1469029,
|
||||||
|
SAY_KILLTARGET = -1469030
|
||||||
|
};
|
||||||
|
|
||||||
#define GOSSIP_ITEM "Start Event <Needs Gossip Text>"
|
#define GOSSIP_ITEM "Start Event <Needs Gossip Text>"
|
||||||
|
|
||||||
#define SPELL_ESSENCEOFTHERED 23513
|
enum Spells
|
||||||
#define SPELL_FLAMEBREATH 23461
|
{
|
||||||
#define SPELL_FIRENOVA 23462
|
SPELL_ESSENCEOFTHERED = 23513,
|
||||||
#define SPELL_TAILSWIPE 15847
|
SPELL_FLAMEBREATH = 23461,
|
||||||
#define SPELL_BURNINGADRENALINE 23620
|
SPELL_FIRENOVA = 23462,
|
||||||
#define SPELL_CLEAVE 20684 //Chain cleave is most likely named something different and contains a dummy effect
|
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
|
class boss_vaelastrasz : public CreatureScript
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
boss_vaelastrasz() : CreatureScript("boss_vaelastrasz") { }
|
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();
|
player->CLOSE_GOSSIP_MENU();
|
||||||
CAST_AI(boss_vaelastrasz::boss_vaelAI, creature->AI())->BeginSpeech(player);
|
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();
|
player->PlayerTalkClass->ClearMenus();
|
||||||
if (uiSender == GOSSIP_SENDER_MAIN)
|
if (Sender == GOSSIP_SENDER_MAIN)
|
||||||
SendDefaultMenu(player, creature, uiAction);
|
SendDefaultMenu(player, creature, Action);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -81,11 +87,11 @@ public:
|
|||||||
|
|
||||||
struct boss_vaelAI : public ScriptedAI
|
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);
|
creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||||
c->setFaction(35);
|
creature->setFaction(35);
|
||||||
c->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64 PlayerGUID;
|
uint64 PlayerGUID;
|
||||||
@@ -258,7 +264,6 @@ public:
|
|||||||
DoMeleeAttackIfReady();
|
DoMeleeAttackIfReady();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_vael()
|
void AddSC_boss_vael()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -25,22 +25,28 @@ EndScriptData */
|
|||||||
|
|
||||||
#include "ScriptPCH.h"
|
#include "ScriptPCH.h"
|
||||||
|
|
||||||
#define SAY_GAMESBEGIN_1 -1469004
|
enum Says
|
||||||
#define SAY_GAMESBEGIN_2 -1469005
|
{
|
||||||
#define SAY_VAEL_INTRO -1469006 //when he corrupts Vaelastrasz
|
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_1 "I've made no mistakes."
|
||||||
#define GOSSIP_ITEM_2 "You have lost your mind, Nefarius. You speak in riddles."
|
#define GOSSIP_ITEM_2 "You have lost your mind, Nefarius. You speak in riddles."
|
||||||
#define GOSSIP_ITEM_3 "Please do."
|
#define GOSSIP_ITEM_3 "Please do."
|
||||||
|
|
||||||
#define CREATURE_BRONZE_DRAKANOID 14263
|
enum Creatures
|
||||||
#define CREATURE_BLUE_DRAKANOID 14261
|
{
|
||||||
#define CREATURE_RED_DRAKANOID 14264
|
CREATURE_BRONZE_DRAKANOID = 14263,
|
||||||
#define CREATURE_GREEN_DRAKANOID 14262
|
CREATURE_BLUE_DRAKANOID = 14261,
|
||||||
#define CREATURE_BLACK_DRAKANOID 14265
|
CREATURE_RED_DRAKANOID = 14264,
|
||||||
|
CREATURE_GREEN_DRAKANOID = 14262,
|
||||||
|
CREATURE_BLACK_DRAKANOID = 14265,
|
||||||
|
|
||||||
#define CREATURE_CHROMATIC_DRAKANOID 14302
|
CREATURE_CHROMATIC_DRAKANOID = 14302,
|
||||||
#define CREATURE_NEFARIAN 11583
|
CREATURE_NEFARIAN = 11583
|
||||||
|
};
|
||||||
|
|
||||||
#define ADD_X1 -7591.151855f
|
#define ADD_X1 -7591.151855f
|
||||||
#define ADD_X2 -7514.598633f
|
#define ADD_X2 -7514.598633f
|
||||||
@@ -57,8 +63,11 @@ EndScriptData */
|
|||||||
#define HIDE_Y -1264
|
#define HIDE_Y -1264
|
||||||
#define HIDE_Z 481
|
#define HIDE_Z 481
|
||||||
|
|
||||||
#define SPELL_SHADOWBOLT 21077
|
enum Spells
|
||||||
#define SPELL_FEAR 26070
|
{
|
||||||
|
SPELL_SHADOWBOLT = 21077,
|
||||||
|
SPELL_FEAR = 26070
|
||||||
|
};
|
||||||
|
|
||||||
//This script is complicated
|
//This script is complicated
|
||||||
//Instead of morphing Victor Nefarius we will have him control phase 1
|
//Instead of morphing Victor Nefarius we will have him control phase 1
|
||||||
@@ -74,10 +83,10 @@ class boss_victor_nefarius : public CreatureScript
|
|||||||
public:
|
public:
|
||||||
boss_victor_nefarius() : CreatureScript("boss_victor_nefarius") { }
|
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();
|
player->PlayerTalkClass->ClearMenus();
|
||||||
switch (uiAction)
|
switch (Action)
|
||||||
{
|
{
|
||||||
case GOSSIP_ACTION_INFO_DEF+1:
|
case GOSSIP_ACTION_INFO_DEF+1:
|
||||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2);
|
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
|
struct boss_victor_nefariusAI : public ScriptedAI
|
||||||
{
|
{
|
||||||
boss_victor_nefariusAI(Creature* c) : ScriptedAI(c)
|
boss_victor_nefariusAI(Creature* creature) : ScriptedAI(creature)
|
||||||
{
|
{
|
||||||
NefarianGUID = 0;
|
NefarianGUID = 0;
|
||||||
switch (urand(0, 19))
|
switch (urand(0, 19))
|
||||||
@@ -378,7 +387,6 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_boss_victor_nefarius()
|
void AddSC_boss_victor_nefarius()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
|
* 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
|
* 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
|
* under the terms of the GNU General Public License as published by the
|
||||||
@@ -24,4 +24,3 @@ SDCategory: Blackwing Lair
|
|||||||
EndScriptData */
|
EndScriptData */
|
||||||
|
|
||||||
#include "ScriptPCH.h"
|
#include "ScriptPCH.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user