BWL Raid Saving
Instance BWL Raid Saving
void instance_blackwing_lair::OnCreatureCreate(Creature* pCreature)
{
switch (pCreature->GetEntry())
{
case NPC_BLACKWING_TECHNICIAN:
// Sort creatures so we can get only the ones near Vaelastrasz
if (pCreature->IsWithinDist2d(aNefariusSpawnLoc[0], aNefariusSpawnLoc[1], 50.0f))
{
m_lTechnicianGuids.push_back(pCreature->GetObjectGuid());
}
break;
case NPC_MONSTER_GENERATOR:
m_vGeneratorGuids.push_back(pCreature->GetObjectGuid());
break;
case NPC_BLACKWING_LEGIONNAIRE:
case NPC_BLACKWING_MAGE:
case NPC_DRAGONSPAWN:
m_lDefendersGuids.push_back(pCreature->GetObjectGuid());
break;
case NPC_RAZORGORE:
if (m_auiEncounter[TYPE_RAZORGORE] == DONE)
{
pCreature->Despawn();
break;
}
case NPC_VAELASTRASZ:
if (m_auiEncounter[TYPE_VAELASTRASZ] == DONE)
{
pCreature->Despawn();
break;
}
case NPC_LASHLAYER:
if (m_auiEncounter[TYPE_LASHLAYER] == DONE)
{
pCreature->Despawn();
break;
}
case NPC_FIREMAW:
if (m_auiEncounter[TYPE_FIREMAW] == DONE)
{
pCreature->Despawn();
break;
}
case NPC_EBONROC:
if (m_auiEncounter[TYPE_EBONROC] == DONE)
{
pCreature->Despawn();
break;
}
case NPC_FLAMEGOR:
if (m_auiEncounter[TYPE_FLAMEGOR] == DONE)
{
pCreature->Despawn();
break;
}
case NPC_CHROMAGGUS:
if (m_auiEncounter[TYPE_CHROMAGGUS] == DONE)
{
pCreature->Despawn();
break;
}
case NPC_LORD_VICTOR_NEFARIUS:
if (m_auiEncounter[TYPE_NEFARIAN] == DONE)
{
pCreature->Despawn();
break;
}
case NPC_BLACKWING_ORB_TRIGGER:
case NPC_NEFARIANS_TROOPS:
m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid();
break;
}
}
Instance BWL .h header file
enum
{
MAX_ENCOUNTER = 8,
TYPE_RAZORGORE = 0,
TYPE_VAELASTRASZ = 1,
TYPE_LASHLAYER = 2,
TYPE_FIREMAW = 3,
TYPE_EBONROC = 4,
TYPE_FLAMEGOR = 5,
TYPE_CHROMAGGUS = 6,
TYPE_NEFARIAN = 7,
DATA_DRAGON_EGG = 1, // track the used eggs
NPC_RAZORGORE = 12435,
NPC_VAELASTRASZ = 13020,
NPC_LASHLAYER = 12017,
NPC_FIREMAW = 11983,
NPC_EBONROC = 14601,
NPC_FLAMEGOR = 11981,
NPC_CHROMAGGUS = 14020,
NPC_NEFARIAN = 11583,
NPC_LORD_VICTOR_NEFARIUS = 10162,
NPC_BLACKWING_TECHNICIAN = 13996, // Flees at Vael intro event
// Razorgore event related
NPC_GRETHOK_CONTROLLER = 12557,
NPC_BLACKWING_ORB_TRIGGER = 14449,
NPC_NEFARIANS_TROOPS = 14459,
NPC_MONSTER_GENERATOR = 12434,
NPC_BLACKWING_LEGIONNAIRE = 12416, // one spawn per turn
NPC_BLACKWING_MAGE = 12420, // one spawn per turn
NPC_DRAGONSPAWN = 12422, // two spawns per turn
GO_DOOR_RAZORGORE_ENTER = 176964,
GO_DOOR_RAZORGORE_EXIT = 176965,
GO_DOOR_NEFARIAN = 176966,
// GO_DOOR_CHROMAGGUS_ENTER = 179115,
// GO_DOOR_CHROMAGGUS_SIDE = 179116,
GO_DOOR_CHROMAGGUS_EXIT = 179117,
GO_DOOR_VAELASTRASZ = 179364,
GO_DOOR_LASHLAYER = 179365,
GO_ORB_OF_DOMINATION = 177808, // trigger 19832 on Razorgore
GO_BLACK_DRAGON_EGG = 177807,
GO_DRAKONID_BONES = 179804,
EMOTE_ORB_SHUT_OFF = -1469035,
EMOTE_TROOPS_FLEE = -1469033, // emote by Nefarian's Troops npc
MAX_EGGS_DEFENDERS = 4,
};
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now