Example #1
0
 void OnCreatureCreate(Creature* creature)
 {
     switch(creature->GetEntry()) {
         case 4857:    // Stone Keeper
             SetFrozenState (creature);
             vStoneKeeper.push_back(creature->GetGUID());
             break;
         case 7309:    // Earthen Custodian
             vArchaedasWallMinions.push_back(creature->GetGUID());
             break;
         case 7077:    // Earthen Hallshaper
             vArchaedasWallMinions.push_back(creature->GetGUID());
             break;
         case 7076:    // Earthen Guardian
             vEarthenGuardian.push_back(creature->GetGUID());
             break;
         case 7228:    // Ironaya
             uiIronayaGUID = creature->GetGUID();
             if(m_auiEncounter[2] != DONE)
                 SetFrozenState (creature);
             break;
         case 10120:    // Vault Walker
             vVaultWalker.push_back(creature->GetGUID());
             break;
         case 2748:    // Archaedas
             uiArchaedasGUID = creature->GetGUID();
             break;
     }
 }
            void OnCreatureCreate(Creature* pCreature, bool /*add*/)
            {
                switch (pCreature->GetEntry()) {
                    case 4857:    // Stone Keeper
                        SetFrozenState (pCreature);
                        stoneKeeper.push_back(pCreature->GetGUID());
                        break;

                    case 7309:    // Earthen Custodian
                        archaedasWallMinions.push_back(pCreature->GetGUID());
                        break;

                    case 7077:    // Earthen Hallshaper
                        archaedasWallMinions.push_back(pCreature->GetGUID());
                        break;

                    case 7076:    // Earthen Guardian
                        earthenGuardian.push_back(pCreature->GetGUID());
                        break;

                    case 10120:    // Vault Walker
                        vaultWalker.push_back(pCreature->GetGUID());
                        break;

                    case 2748:    // Archaedas
                        archaedasGUID = pCreature->GetGUID();
                        break;

                } // end switch
            } // end OnCreatureCreate
Example #3
0
            void RespawnMinions()
            {
                // first respawn any aggroed wall minions
                for (std::vector<uint64>::const_iterator i = archaedasWallMinions.begin(); i != archaedasWallMinions.end(); ++i)
                {
                    Creature* target = instance->GetCreature(*i);
                    if (target && target->isDead())
                    {
                        target->Respawn();
                        target->GetMotionMaster()->MoveTargetedHome();
                        SetFrozenState(target);
                    }
                }

                // Vault Walkers
                for (std::vector<uint64>::const_iterator i = vaultWalkers.begin(); i != vaultWalkers.end(); ++i)
                {
                    Creature* target = instance->GetCreature(*i);
                    if (target && target->isDead())
                    {
                        target->Respawn();
                        target->GetMotionMaster()->MoveTargetedHome();
                        SetFrozenState(target);
                    }
                }

                // Earthen Guardians
                for (std::vector<uint64>::const_iterator i = earthenGuardians.begin(); i != earthenGuardians.end(); ++i)
                {
                    Creature* target = instance->GetCreature(*i);
                    if (target && target->isDead())
                    {
                        target->Respawn();
                        target->GetMotionMaster()->MoveTargetedHome();
                        SetFrozenState(target);
                    }
                }
            }
Example #4
0
    void OnCreatureCreate (Creature *creature, uint32 creature_entry)
    {
        switch (creature_entry) {
            case 4857:    // Stone Keeper
                SetFrozenState (creature);
                stoneKeeper.push_back(creature->GetGUID());
                break;

            case 7309:    // Earthen Custodian
                archaedasWallMinions.push_back(creature->GetGUID());
                break;

            case 7077:    // Earthen Hallshaper
                archaedasWallMinions.push_back(creature->GetGUID());
                break;

            case 7076:    // Earthen Guardian
                earthenGuardian.push_back(creature->GetGUID());
                break;
        
            case 7228:   // Ironaya
                ironayaGUID = creature->GetGUID();
                
                if(Encounters[2] != DONE)
                    SetFrozenState (creature);
                break;

            case 10120:    // Vault Walker
                vaultWalker.push_back(creature->GetGUID());
                break;

            case 2748:    // Archaedas
                archaedasGUID = creature->GetGUID();
                break;

        } // end switch
    } // end OnCreatureCreate