MichaelCrow

Untitled

May 11th, 2013
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. using std::string;
  4. using std::pair;
  5. using std::make_pair;
  6. using std::map;
  7.  
  8. enum Type
  9. {
  10. CONTESTED = 0,
  11. ALLIANCE = 1,
  12. HORDE = 2,
  13. };
  14.  
  15. struct SoulwellInfo
  16. {
  17. uint32 LastHeld;
  18. uint32 SoulwellCounter;
  19. };
  20.  
  21. struct StoredSouls
  22. {
  23. uint32 Resilient;
  24. uint32 Resourceful;
  25. uint32 Zealous;
  26. };
  27.  
  28. static map<uint32, SoulwellInfo> Soulwells;
  29. static map<pair<uint32, uint32>, StoredSouls> SoulStorage;
  30.  
  31.  
  32. class ExperienceSystem : public PlayerScript
  33. {
  34. public:
  35. ExperienceSystem() : PlayerScript("ExperienceSystem") {}
  36.  
  37.  
  38. void OnPvPKill(Player *pKiller, Player *pVictim)
  39. {
  40. uint32 faction = pKiller->getFaction();
  41.  
  42. if (pKiller->GetAreaId() == 1)
  43. {
  44. }
  45.  
  46. }
  47. };
  48.  
  49. class Soulwell1 : public GameObjectScript
  50. {
  51. public:
  52. Soulwell1() : GameObjectScript("Soulwell_1") { }
  53.  
  54. bool OnGossipHello(Player* player, GameObject* go)
  55. {
  56. uint32 faction = player->getFaction();
  57.  
  58. if (!Soulwells[faction].SoulwellCounter >= 3)
  59. {
  60. Soulwells[faction].SoulwellCounter++;
  61. }
  62. }
  63. };
  64.  
  65. class Soulwell2 : public GameObjectScript
  66. {
  67. public:
  68. Soulwell2() : GameObjectScript("Soulwell_2") { }
  69.  
  70. bool OnGossipHello(Player* player, GameObject* go)
  71. {
  72. uint32 faction = player->getFaction();
  73. }
  74. };
  75.  
  76. class Soulwell3 : public GameObjectScript
  77. {
  78. public:
  79. Soulwell3() : GameObjectScript("Soulwell_3") { }
  80.  
  81. bool OnGossipHello(Player* player, GameObject* go)
  82. {
  83. uint32 faction = player->getFaction();
  84. }
  85. };
  86.  
  87.  
  88. void AddSC_System()
  89. {
  90. new ExperienceSystem;
  91. new Soulwell1;
  92. new Soulwell2;
  93. new Soulwell3;
  94. }
Advertisement
Add Comment
Please, Sign In to add comment