Jump to content
  • Instance Naxx Raiding


    Arkadus
    • Status: In Progress
      Main Category: Dungeons and Raids
      Sub-Category: raid-boss
      Version: 0.20 Milestone: 20 Priority: Normal
      Implemented Version: 0.20

    Instance Naxx Raiding

    Instance Naxxramas .cpp

    void instance_naxxramas::OnCreatureCreate(Creature* pCreature)
    {
    switch (pCreature->GetEntry())
    {
    case NPC_ANUB_REKHAN:
    if (m_auiEncounter[TYPE_ANUB_REKHAN] == DONE)
    {
    pCreature->Despawn();
    break;
    }
    m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid();
    break;
    case NPC_FAERLINA:
    if (m_auiEncounter[TYPE_FAERLINA] == DONE)
    {
    pCreature->Despawn();
    break;
    }
    m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid();
    break;
    case NPC_THADDIUS:
    case NPC_STALAGG:
    case NPC_FEUGEN:
    if (m_auiEncounter[TYPE_THADDIUS] == DONE)
    {
    pCreature->Despawn();
    break;
    }
    m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid();
    break;
    case NPC_ZELIEK:
    case NPC_THANE:
    case NPC_BLAUMEUX:
    case NPC_MOGRAINE:
    if (m_auiEncounter[TYPE_FOUR_HORSEMEN] == DONE)
    {
    pCreature->Despawn();
    break;
    }
    m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid();
    break;
    case NPC_SPIRIT_OF_BLAUMEUX:
    case NPC_SPIRIT_OF_MOGRAINE:
    case NPC_SPIRIT_OF_KORTHAZZ:
    case NPC_SPIRIT_OF_ZELIREK:
    m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid();
    break;
    case NPC_GOTHIK:
    if (m_auiEncounter[TYPE_GOTHIK] == DONE)
    {
    pCreature->Despawn();
    break;
    }
    case NPC_SAPPHIRON:
    if (m_auiEncounter[TYPE_SAPPHIRON] == DONE)
    {
    pCreature->Despawn();
    break;
    }
    case NPC_KELTHUZAD:
    if (m_auiEncounter[TYPE_KELTHUZAD] == DONE)
    {
    pCreature->Despawn();
    break;
    }
    case NPC_THE_LICHKING:
    m_mNpcEntryGuidStore[pCreature->GetEntry()] = pCreature->GetObjectGuid();
    break;
    case NPC_SUB_BOSS_TRIGGER:
    m_lGothTriggerList.push_back(pCreature->GetObjectGuid());
    break;
    case NPC_TESLA_COIL:
    m_lThadTeslaCoilList.push_back(pCreature->GetObjectGuid());
    break;
    }
    }


    User Feedback

    Recommended Comments

    It was complaining about the Sleep() function call (in one or two of your pieces of work, not necessarily this one), saying it was not defined in that scope. Total baldy crap. Nothing wrong with that.

    I built the server on both VS (MS Windows) and CMAKE (Linux) and it had no problems!

    I'll try again soonish, unless someone else wants at it :)

    Link to comment
    Share on other sites



    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use