Pelf

pitofsaron1

Jul 10th, 2011
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.34 KB | None | 0 0
  1. diff --git a/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/instance_pit_of_saron.cpp b/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/instance_pit_of_saron.cpp
  2. index 2bf8876..e960b1d 100644
  3. --- a/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/instance_pit_of_saron.cpp
  4. +++ b/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/instance_pit_of_saron.cpp
  5. @@ -41,6 +41,7 @@ class instance_pit_of_saron : public InstanceMapScript
  6.                  _jainaOrSylvanas1GUID = 0;
  7.                  _jainaOrSylvanas2GUID = 0;
  8.                  _teamInInstance = 0;
  9. +               _icewallGUID = 0;
  10.              }
  11.  
  12.              void OnPlayerEnter(Player* player)
  13. @@ -49,6 +50,16 @@ class instance_pit_of_saron : public InstanceMapScript
  14.                      _teamInInstance = player->GetTeam();
  15.              }
  16.  
  17. +           void OnGameObjectCreate(GameObject* go)
  18. +           {
  19. +               switch (go->GetEntry())
  20. +               {
  21. +                   case GO_ICE_WALL:
  22. +                       _icewallGUID = go->GetGUID();
  23. +                       break;
  24. +               }
  25. +           }
  26. +
  27.              void OnCreatureCreate(Creature* creature)
  28.              {
  29.                  if (!_teamInInstance)
  30. @@ -171,6 +182,11 @@ class instance_pit_of_saron : public InstanceMapScript
  31.                                  else
  32.                                      summoner->SummonCreature(NPC_GORKUN_IRONSKULL_2, SlaveLeaderPos, TEMPSUMMON_MANUAL_DESPAWN);
  33.                              }
  34. +                           if (GameObject* pGo = instance->GetGameObject(_icewallGUID))
  35. +                            {
  36. +                               pGo->SetGoState(GO_STATE_ACTIVE);
  37. +                           }
  38. +
  39.                          }
  40.                          break;
  41.                      case DATA_TYRANNUS:
  42. @@ -277,6 +293,7 @@ class instance_pit_of_saron : public InstanceMapScript
  43.              }
  44.  
  45.          private:
  46. +           uint64 _icewallGUID;
  47.              uint64 _garfrostGUID;
  48.              uint64 _krickGUID;
  49.              uint64 _ickGUID;
  50. diff --git a/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.h b/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.h
  51. index e4282df..946d9cc 100644
  52. --- a/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.h
  53. +++ b/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.h
  54. @@ -90,6 +90,7 @@ enum CreatureIds
  55.  enum GameObjectIds
  56.  {
  57.      GO_SARONITE_ROCK                            = 196485,
  58. +   GO_ICE_WALL                                 = 201885,
  59.  };
  60.  
  61.  #endif
Advertisement
Add Comment
Please, Sign In to add comment