casucristy

ss

Jul 21st, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.72 KB | None | 0 0
  1. From a377a3cc218a2d7f63960c7a9fc864ec7875a517 Mon Sep 17 00:00:00 2001
  2. From: unknown <cristi@cristis-PC.(none)>
  3. Date: Sat, 21 Jul 2012 19:40:34 +0300
  4. Subject: [PATCH] Fix quest Breaking the Bonds.
  5.  
  6. ---
  7.  src/server/scripts/Maelstrom/deepholm.cpp |   33 +++++++++++++++++++++++++++++
  8.  1 file changed, 33 insertions(+)
  9.  
  10. diff --git a/src/server/scripts/Maelstrom/deepholm.cpp b/src/server/scripts/Maelstrom/deepholm.cpp
  11. index f664257..09af097 100644
  12. --- a/src/server/scripts/Maelstrom/deepholm.cpp
  13. +++ b/src/server/scripts/Maelstrom/deepholm.cpp
  14. @@ -925,6 +925,38 @@ class npc_bound_elemental : public CreatureScript
  15.         }
  16.  };
  17.  
  18. +/*######
  19. +## Quest 25514: Breaking the Bonds
  20. +## go_rod_of_subjugations
  21. +######*/
  22. +
  23. +enum PreparingTheSoilEntries
  24. +{
  25. +    QUEST_BREAKING_THE_BONDS                    =  25502,
  26. +   GO_FIRST_ROD_OF_SUBJUGATION                 =   202954,
  27. +   GO_SECOND_ROD_OF_SUBJUGATION                =   202955,
  28. +   CREDIT_FIRST_ROD                            =   40544,
  29. +   CREDIT_SECOND_ROD                           =   40545
  30. +};
  31. +
  32. +class go_rod_of_subjugations : public GameObjectScript
  33. +{
  34. +public:
  35. +    go_rod_of_subjugations() : GameObjectScript("go_rod_of_subjugations") {}
  36. +
  37. +    bool OnGossipHello(Player* player, GameObject* go)
  38. +    {
  39. +       switch(go->GetEntry())
  40. +       {
  41. +           case GO_FIRST_ROD_OF_SUBJUGATION: player->KilledMonsterCredit(CREDIT_FIRST_ROD,0); break;
  42. +           case GO_SECOND_ROD_OF_SUBJUGATION : player->KilledMonsterCredit(CREDIT_SECOND_ROD,0); break;
  43. +           default: break;
  44. +       }
  45. +      
  46. +        return true;
  47. +    }
  48. +};
  49. +
  50.  void AddSC_deepholm()
  51.  {
  52.      new npc_lodestone();
  53. @@ -944,4 +976,5 @@ void AddSC_deepholm()
  54.     new spell_stonefather_banner();
  55.     new npc_fly_over_bunny();
  56.     new npc_bound_elemental();
  57. +   new go_rod_of_subjugations();
  58.  }
  59. --
  60. 1.7.10.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment