1. void DoorOpen(uint32 type)
  2. {
  3. //Map::GetGameObject;
  4. //for (Map::GetGameObject itr = map.begin(); itr != map.end(); ++itr)
  5. //{
  6. TRINITY_READ_GUARD(HashMapHolder<GameObject>::LockType, *HashMapHolder<GameObject>::GetLock());
  7. HashMapHolder<GameObject>::MapType const& m = ObjectAccessor::GetGameObjects();
  8. std::list<GameObject*> list;
  9. for (std::list<GameObject*>::const_iterator it = list.begin(); it != list.end(); ++it)
  10. {
  11. if (GameObject* obj = //Need help here maybe)
  12. {
  13. obj->SetLootState(GO_ACTIVATED);
  14. obj->SetGoState(GO_STATE_ACTIVE);
  15. TC_LOG_ERROR(LOG_FILTER_GENERAL, "[DEBUG] DoorOpen activado");
  16. }
  17. else
  18. TC_LOG_ERROR(LOG_FILTER_GENERAL, "DoorOpen: door gameobject (type: 15, GUID: %u) not found for BG (map: %u, Templo de Agaron)!", obj->GetGUID(), obj->GetMapId());
  19. }
  20. }