Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.23 KB | None | 0 0
  1. struct Choice
  2. {
  3. uint32 action;
  4. uint8 classId;
  5. const char* talentName;
  6. };
  7.  
  8. Choice TalentChoice[] =
  9. {
  10. /* Paladin */
  11. { 1, CLASS_PALADIN, "Retribution | Righteous Vengeace - Judgements of the Wise - Sheath of Light - The Art of War - Crusader Strike - Repentance" },
  12. { 2, CLASS_PALADIN, "Holy | Judgements of the Pure - Enlightened Judgements - Light's Grace - Cleanse - Divine Favor - Holy Shock" },
  13. { 3, CLASS_PALADIN, "Protection | Shield of the Templar - Ardent Defender - Guarded by the Light - Avenger's Shield - Divine Plea - Holy Shield" },
  14. /* Mage */
  15. { 4, CLASS_MAGE, "Arcane | Arcane Empowerment - Incanter's Absorption - Arcane Mind - Arcane Barrage - Arcane Power" },
  16. { 5, CLASS_MAGE, "Fire | Fiery Payback - Blazing Speed - Critical Mass - Blast Wave" },
  17. { 6, CLASS_MAGE, "Frost | Empowered Frostbolt - Ice Barrier - Ice Lance" },
  18. /* Warrior */
  19. { 7, CLASS_WARRIOR, "Arms | Weapon Mastery - Unrelenting Assaul - Warbringer - Second Wind" },
  20. { 8, CLASS_WARRIOR, "Fury | Improved Intercept - Rampage - Bloodsurge - Berserker Stance - Intercept - Pummel - Bloodthirst" },
  21. { 9, CLASS_WARRIOR, "Protection | Warbringer - Improved Spell Reflection - Focused Rage - Concussion Blow - Shield Slam" },
  22. /* Priest */
  23. { 10, CLASS_PRIEST, "Holy | Body and Soul - Empowered Renew - Meditation - Prayer of Mending" },
  24. { 11, CLASS_PRIEST, "Discipline | Soul Warding - Rupture - Focused Will - Pain Suppression - Power Infusion" },
  25. { 12, CLASS_PRIEST, "Shadow | Twisted Faith - Improved Shadowform - Misery - Dispersion - Shadowform" },
  26. /* Hunter */
  27. { 13, CLASS_HUNTER, "Marksman | Wild Quiver - Master Marksman - Noxious Stings - Readiness - Silencing Shot" },
  28. { 14, CLASS_HUNTER, "Survival | Expose Weakness - Hunting Party - Explosive Shot" },
  29. { 15, CLASS_HUNTER, "Beastmaster | Ferocious Inspiration - Serpent's Swiftness - Kindred Spirits - Spirit Bond - Kill Command - Intimidation" },
  30. /* Rogue */
  31. { 16, CLASS_ROGUE, "Subtlety | Cheat Death - Slaughter from the Shadows - Waylay - Shadowstep - Preparation - Hemorrhage" },
  32. { 17, CLASS_ROGUE, "Assassination | Master Poisoner - Fleet Footed - Focused Attacks - Dirty Tricks - Mutilate - Envenom" },
  33. { 18, CLASS_ROGUE, "Combat | Aggression - Improved Sprint - Surprise Attacks - Dirty Tricks . Adrenaline Rush - Blade Flurry" },
  34. /* Shaman */
  35. { 19, CLASS_SHAMAN, "Restoration | Nature's Guardian - Focused Mind - Improved Ghost Wolf - Purification - Nature's Swiftness - Cleanse Spirit" },
  36. { 20, CLASS_SHAMAN, "Enhancement | Mental Quickness - Dual Wield - Mental Dexterity - Frozen Power - Stormstrike - Shamanistic Rage" },
  37. { 21, CLASS_SHAMAN, "Elemental | Lightning Overload - Storm, Earth and Fire - Lightning Mastery - Improved Ghost Wolf - Chain Lightning - Elemental Mastery" },
  38. /* Warlock */
  39. { 22, CLASS_WARLOCK, "Affliction | Contagion - Improved Howl of Terror - Everlasting Affliction - Siphon Life" },
  40. { 23, CLASS_WARLOCK, "Demonology | Nether Protection - Backlash - Decimation - Bane - Molten Core - Soul Fire" },
  41. { 24, CLASS_WARLOCK, "Destruction | Backdraft - Fire and Brimstone - Devastation - Conflagrate" },
  42. /* Druid */
  43. { 25, CLASS_DRUID, "Feral | King of the Jungle - Nurturing Instinct - Primal Gore - Primal Fury - Mangle - Pounce" },
  44. { 26, CLASS_DRUID, "Balance | Earth and Moon - Dreamstate - Barkskin - Insect Swarm - Moonkin Form" },
  45. { 27, CLASS_DRUID, "Restoration | Revitalize - Improved Barkskin - Gift of Nature - Swiftmend" },
  46. { 28, CLASS_DRUID, "Guardian | Survival of the Fittest - Protector of the Pack - Natural Reaction - Swipe (Rank 3) - Mangle" },
  47. };
  48.  
  49. class talent_chooser : public CreatureScript
  50. {
  51. public:
  52. talent_chooser() : CreatureScript("talent_chooser") { } // Remember, CreatureScript("") <-- Whatever is in there is your ScriptName
  53.  
  54. bool OnGossipHello(Player* player, Creature* creature)
  55. {
  56. for (int i = 0; i < sizeof(TalentChoice) / sizeof(uint32); i++)
  57. if (player->getClass() == TalentChoice[i].classId)
  58. player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, TalentChoice[i].talentName, GOSSIP_SENDER_MAIN, TalentChoice[i].action);
  59. player->ADD_GOSSIP_ITEM(1, "Reset Talents", GOSSIP_SENDER_MAIN, 6969);
  60. player->PlayerTalkClass->SendGossipMenu(1, creature->GetGUID());
  61. return true;
  62. }
  63.  
  64. bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 actions)
  65. {
  66. player->PlayerTalkClass->ClearMenus();
  67.  
  68. switch (actions)
  69. {
  70.  
  71. case 6969:
  72. player->ResetTalents(false);
  73. player->SendTalentsInfoData(false);
  74. break;
  75. /* Paladin */
  76. case 1: // Retrubition
  77. // Add Spells
  78. player->LearnSpell(31878, false); // Judgements of the Wise
  79. player->LearnSpell(53502, false); // Sheath of Light
  80. player->LearnSpell(53488, false); // The Art of War
  81. player->LearnSpell(35395, false); // Crusader Strike
  82. player->LearnSpell(20066, false); // Repentance
  83. player->LearnSpell(31881, false); // Fanaticism
  84. player->LearnSpell(53382, false); // Righteous Vengeance
  85.  
  86. // Remove Spells from other specs
  87. player->RemoveSpell(54155, false); // Judgements of the Pure
  88. player->RemoveSpell(53557, false); // Enlightened Judgements
  89. player->RemoveSpell(31836, false); // Light's Grace
  90. player->RemoveSpell(4987, false); // Cleanse
  91. player->RemoveSpell(20216, false); // Divine Favor
  92. player->RemoveSpell(53711, false); // Shield of The Templar
  93. player->RemoveSpell(31852, false); // Ardent Defender
  94. player->RemoveSpell(53585, false); // Guarded by the Light
  95. player->RemoveSpell(31935, false); // Avenger's Shield
  96. player->RemoveSpell(54428, false); // Divine Plea
  97. player->RemoveSpell(20925, false); // Holy Shield . -
  98. player->RemoveSpell(20473, false); // Holy Shock
  99. player->RemoveSpell(53563, false); // Beacon of Light
  100. player->RemoveSpell(53576, false); // Infusion of Light
  101. player->RemoveSpell(53385, false); // Divine Storm
  102. player->RemoveSpell(53585, false); // Hammer of The Righteous
  103. player->RemoveSpell(33776, false); // Spiritual Attunement
  104. player->RemoveSpell(20473, false); // Holy Shock
  105.  
  106. break;
  107.  
  108. case 2: // Holy
  109. // Add Spells
  110. player->LearnSpell(54155, false); // Judgements of the Pure
  111. player->LearnSpell(53557, false); // Enlightened Judgements
  112. player->LearnSpell(31836, false); // Light's Grace
  113. player->LearnSpell(4987, false); // Cleanse
  114. player->LearnSpell(20216, false); // Divine Favor
  115. player->LearnSpell(20473, false); // Holy Shock
  116.  
  117. // Remove Spells from other specs
  118. player->RemoveSpell(31878, false); // Judgements of the Wise
  119. player->RemoveSpell(53502, false); // Sheath of Light
  120. player->RemoveSpell(53488, false); // The Art of War
  121. player->RemoveSpell(35395, false); // Crusader Strike
  122. player->RemoveSpell(20066, false); // Repentance
  123. player->RemoveSpell(53711, false); // Shield of The Templar
  124. player->RemoveSpell(31852, false); // Ardent Defender
  125. player->RemoveSpell(53585, false); // Guarded by the Light
  126. player->RemoveSpell(31935, false); // Avenger's Shield
  127. player->RemoveSpell(54428, false); // Divine Plea
  128. player->RemoveSpell(20925, false); // Holy Shield
  129. player->RemoveSpell(20473, false); // Holy Shock
  130. player->RemoveSpell(53563, false); // Beacon of Light
  131. player->RemoveSpell(53576, false); // Infusion of Light
  132. player->RemoveSpell(53385, false); // Divine Storm
  133. player->RemoveSpell(53585, false); // Hammer of The Righteous
  134. player->RemoveSpell(33776, false); // Spiritual Attunement
  135. player->RemoveSpell(31881, false); // Fanaticism
  136. player->RemoveSpell(53382, false); // Righteous Vengeance
  137. break;
  138.  
  139. case 3: // Protection
  140. // Add Spells
  141. player->LearnSpell(53711, false); // Shield of The Templar
  142. player->LearnSpell(31852, false); // Ardent Defender
  143. player->LearnSpell(53585, false); // Guarded by the Light
  144. player->LearnSpell(31935, false); // Avenger's Shield
  145. player->LearnSpell(54428, false); // Divine Plea
  146. player->LearnSpell(20925, false); // Holy Shield
  147.  
  148.  
  149. // Remove Spells from other specs
  150. player->RemoveSpell(54155, false); // Judgements of the Pure
  151. player->RemoveSpell(53557, false); // Enlightened Judgements
  152. player->RemoveSpell(31836, false); // Light's Grace
  153. player->RemoveSpell(4987, false); // Cleanse
  154. player->RemoveSpell(20216, false); // Divine Favor
  155. player->RemoveSpell(31878, false); // Judgements of the Wise
  156. player->RemoveSpell(53502, false); // Sheath of Light
  157. player->RemoveSpell(53488, false); // The Art of War
  158. player->RemoveSpell(35395, false); // Crusader Strike
  159. player->RemoveSpell(20066, false); // Repentance
  160. player->RemoveSpell(20473, false); // Holy Shock
  161. player->RemoveSpell(53563, false); // Beacon of Light
  162. player->RemoveSpell(53576, false); // Infusion of Light
  163. player->RemoveSpell(53385, false); // Divine Storm
  164. player->RemoveSpell(53585, false); // Hammer of The Righteous
  165. player->RemoveSpell(33776, false); // Spiritual Attunement
  166. player->RemoveSpell(31881, false); // Fanaticism
  167. player->RemoveSpell(53382, false); // Righteous Vengeance
  168. player->RemoveSpell(20473, false); // Holy Shock
  169.  
  170. break;
  171.  
  172.  
  173.  
  174.  
  175. /* Mage */
  176. case 4: // Arcane
  177. // Add Spells
  178. player->LearnSpell(31583, false); // Arcane Empowerment
  179. player->LearnSpell(44396, false); // Incanter's Absorption
  180. player->LearnSpell(12503, false); // Arcane Mind
  181. player->LearnSpell(44425, false); // Arcane Barrage
  182. player->LearnSpell(12042, false); // Arcane Power
  183.  
  184. // Remove Spells from other specs
  185. player->RemoveSpell(64357, false); // Fiery Payback
  186. player->RemoveSpell(31642, false); // Blazing Speed
  187. player->RemoveSpell(11368, false); // Critical Mass
  188. player->RemoveSpell(11113, false); // Blast Wave
  189. player->RemoveSpell(31683, false); // Empowered Frostbolt
  190. player->RemoveSpell(11426, false); // Ice Barrier
  191. player->RemoveSpell(30455, false); // Ice Lance
  192. player->RemoveSpell(11129, false); // Combustion
  193. player->RemoveSpell(44443, false); // Firestarter
  194. player->RemoveSpell(31661, false); // Dragon's Breath
  195. player->RemoveSpell(54787, false); // Shattered Barrier
  196. player->RemoveSpell(31589, false); // Slow
  197. break;
  198.  
  199. case 5: // Fire
  200. // Add Spells
  201. player->LearnSpell(64357, false); // Fiery Payback
  202. player->LearnSpell(31642, false); // Blazing Speed
  203. player->LearnSpell(11368, false); // Critical Mass
  204. player->LearnSpell(11113, false); // Blast Wave
  205.  
  206. // Remove Spells from other specs
  207. player->RemoveSpell(31583, false); // Arcane Empowerment
  208. player->RemoveSpell(44396, false); // Incanter's Absorption
  209. player->RemoveSpell(12503, false); // Arcane Mind
  210. player->RemoveSpell(44425, false); // Arcane Barrage
  211. player->RemoveSpell(12042, false); // Arcane Power
  212. player->RemoveSpell(31683, false); // Empowered Frostbolt
  213. player->RemoveSpell(11426, false); // Ice Barrier
  214. player->RemoveSpell(30455, false); // Ice Lance
  215. player->RemoveSpell(11129, false); // Combustion
  216. player->RemoveSpell(44443, false); // Firestarter
  217. player->RemoveSpell(31661, false); // Dragon's Breath
  218. player->RemoveSpell(54787, false); // Shattered Barrier
  219. player->RemoveSpell(44425, false); // Arcane Barrage
  220. player->RemoveSpell(31589, false); // Slow
  221. break;
  222.  
  223. case 6: // Frost
  224. // Add Spells
  225. player->LearnSpell(31683, false); // Empowered Frostbolt
  226. player->LearnSpell(11426, false); // Ice Barrier
  227. player->LearnSpell(30455, false); // Ice Lance
  228.  
  229. // Remove Spells from other specs
  230. player->RemoveSpell(31583, false); // Arcane Empowerment
  231. player->RemoveSpell(44396, false); // Incanter's Absorption
  232. player->RemoveSpell(12503, false); // Arcane Mind
  233. player->RemoveSpell(44425, false); // Arcane Barrage
  234. player->RemoveSpell(12042, false); // Arcane Power
  235. player->RemoveSpell(64357, false); // Fiery Payback
  236. player->RemoveSpell(31642, false); // Blazing Speed
  237. player->RemoveSpell(11368, false); // Critical Mass
  238. player->RemoveSpell(11113, false); // Blast Wave
  239. player->RemoveSpell(11129, false); // Combustion
  240. player->RemoveSpell(44443, false); // Firestarter
  241. player->RemoveSpell(31661, false); // Dragon's Breath
  242. player->RemoveSpell(54787, false); // Shattered Barrier
  243. player->RemoveSpell(44425, false); // Arcane Barrage
  244. player->RemoveSpell(31589, false); // Slow
  245. break;
  246.  
  247.  
  248.  
  249.  
  250.  
  251. /* Warrior */
  252. case 7: // Arms
  253. // Add Spells
  254. player->LearnSpell(20505, false); // Weapon Mastery
  255. player->LearnSpell(46860, false); // Unrelenting Assault
  256. player->LearnSpell(57499, false); // Warbringer
  257. player->LearnSpell(29838, false); // Second Wind
  258.  
  259. // Remove Spells from other specs
  260. player->RemoveSpell(29889, false); // Improved Intercept
  261. player->RemoveSpell(29801, false); // Rampage
  262. player->RemoveSpell(46915, false); // Bloodsurge
  263. player->RemoveSpell(2458, false); // Berserker Stance
  264. player->RemoveSpell(20252, false); // Intercept
  265. player->RemoveSpell(6552, false); // Pummel
  266. player->RemoveSpell(23881, false); // Bloodthirst
  267. player->RemoveSpell(59089, false); // Improved Spell Reflection
  268. player->RemoveSpell(29792, false); // Focused Rage
  269. player->RemoveSpell(12809, false); // Concussion Blow
  270. player->RemoveSpell(23922, false); // Shield Slam
  271. player->RemoveSpell(58874, false); // Damage Shield
  272. player->RemoveSpell(46968, false); // Shockwave
  273. player->RemoveSpell(50720, false); // Vigilance
  274. player->RemoveSpell(20243, false); // Devastate
  275. player->RemoveSpell(46917, false); // Titan's Grip
  276. player->RemoveSpell(12294, false); // Mortal Strike
  277. player->RemoveSpell(35449, false); // Improved Mortal Strike
  278. break;
  279.  
  280. case 8: // Fury
  281. // Add Spells
  282. player->LearnSpell(29889, false); // Improved Intercept
  283. player->LearnSpell(29801, false); // Rampage
  284. player->LearnSpell(46915, false); // Bloodsurge
  285. player->LearnSpell(2458, false); // Berserker Stance
  286. player->LearnSpell(20252, false); // Intercept
  287. player->LearnSpell(6552, false); // Pummel
  288. player->LearnSpell(23881, false); // Bloodthirst
  289.  
  290. // Remove Spells from other specs
  291. player->RemoveSpell(20505, false); // Weapon Mastery
  292. player->RemoveSpell(46860, false); // Unrelenting Assault
  293. player->RemoveSpell(57499, false); // Warbringer
  294. player->RemoveSpell(29838, false); // Second Wind
  295. player->RemoveSpell(57499, false); // Warbringer
  296. player->RemoveSpell(59089, false); // Improved Spell Reflection
  297. player->RemoveSpell(29792, false); // Focused Rage
  298. player->RemoveSpell(12809, false); // Concussion Blow
  299. player->RemoveSpell(23922, false); // Shield Slam
  300. player->RemoveSpell(58874, false); // Damage Shield
  301. player->RemoveSpell(46968, false); // Shockwave
  302. player->RemoveSpell(50720, false); // Vigilance
  303. player->RemoveSpell(20243, false); // Devastate
  304. player->RemoveSpell(46917, false); // Titan's Grip
  305. player->RemoveSpell(12294, false); // Mortal Strike
  306. player->RemoveSpell(35449, false); // Improved Mortal Strike
  307. break;
  308.  
  309. case 9: // Protection
  310. // Add Spells
  311. player->LearnSpell(57499, false); // Warbringer
  312. player->LearnSpell(59089, false); // Improved Spell Reflection
  313. player->LearnSpell(29792, false); // Focused Rage
  314. player->LearnSpell(12809, false); // Concussion Blow
  315. player->LearnSpell(23922, false); // Shield Slam
  316.  
  317. // Remove Spells from other specs
  318. player->RemoveSpell(20505, false); // Weapon Mastery
  319. player->RemoveSpell(46860, false); // Unrelenting Assault
  320. player->RemoveSpell(29838, false); // Second Wind
  321. player->RemoveSpell(29889, false); // Improved Intercept
  322. player->RemoveSpell(29801, false); // Rampage
  323. player->RemoveSpell(46915, false); // Bloodsurge
  324. player->RemoveSpell(2458, false); // Berserker Stance
  325. player->RemoveSpell(20252, false); // Intercept
  326. player->RemoveSpell(6552, false); // Pummel
  327. player->RemoveSpell(23881, false); // Bloodthirst
  328. player->RemoveSpell(58874, false); // Damage Shield
  329. player->RemoveSpell(46968, false); // Shockwave
  330. player->RemoveSpell(50720, false); // Vigilance
  331. player->RemoveSpell(20243, false); // Devastate
  332. player->RemoveSpell(46917, false); // Titan's Grip
  333. player->RemoveSpell(12294, false); // Mortal Strike
  334. player->RemoveSpell(35449, false); // Improved Mortal Strike
  335. break;
  336.  
  337.  
  338.  
  339.  
  340.  
  341. /* Priest */
  342. case 10: // Holy
  343. // Add Spells
  344. player->LearnSpell(64129, false); // Body and Soul
  345. player->LearnSpell(63543, false); // Empowered Renew
  346. player->LearnSpell(14777, false); // Meditation
  347. player->LearnSpell(33076, false); // Prayer of Mending
  348.  
  349. // Remove Spells from other specs
  350. player->RemoveSpell(63574, false); // Soul Warding
  351. player->RemoveSpell(47537, false); // Rapture
  352. player->RemoveSpell(45241, false); // Focused Will
  353. player->RemoveSpell(33206, false); // Pain Suppression
  354. player->RemoveSpell(10060, false); // Power Infusion
  355. player->RemoveSpell(51167, false); // Twisted Faith
  356. player->RemoveSpell(47570, false); // Improved Shadowform
  357. player->RemoveSpell(33193, false); // Misery
  358. player->RemoveSpell(47585, false); // Dispersion
  359. player->RemoveSpell(15473, false); // Shadowform
  360. player->RemoveSpell(47540, false); // Penance
  361. player->RemoveSpell(52800, false); // Borrowed Time
  362. player->RemoveSpell(34914, false); // Vampiric Touch
  363. player->RemoveSpell(33225, false); // Shadow Power
  364. player->RemoveSpell(33154, false); // Surge of Light
  365. player->RemoveSpell(47788, false); // Guardian Spirit
  366. break;
  367.  
  368. case 11: // Discipline
  369. // Add Spells
  370. player->LearnSpell(63574, false); // Soul Warding
  371. player->LearnSpell(47537, false); // Rapture
  372. player->LearnSpell(45243, false); // Focused Will
  373. player->LearnSpell(33206, false); // Pain Suppression
  374. player->LearnSpell(10060, false); // Power Infusion
  375.  
  376. // Remove Spells from other specs
  377. player->RemoveSpell(64129, false); // Body and Soul
  378. player->RemoveSpell(63543, false); // Empowered Renew
  379. player->RemoveSpell(14777, false); // Meditation
  380. player->RemoveSpell(33076, false); // Prayer of Mending
  381. player->RemoveSpell(51167, false); // Twisted Faith
  382. player->RemoveSpell(47570, false); // Improved Shadowform
  383. player->RemoveSpell(33193, false); // Misery
  384. player->RemoveSpell(47585, false); // Dispersion
  385. player->RemoveSpell(15473, false); // Shadowform
  386. player->RemoveSpell(47540, false); // Penance
  387. player->RemoveSpell(52800, false); // Borrowed Time
  388. player->RemoveSpell(34914, false); // Vampiric Touch
  389. player->RemoveSpell(33225, false); // Shadow Power
  390. player->RemoveSpell(33154, false); // Surge of Light
  391. player->RemoveSpell(47788, false); // Guardian Spirit
  392. break;
  393.  
  394. case 12: // Shadow
  395. // Add Spells
  396. player->LearnSpell(51167, false); // Twisted Faith
  397. player->LearnSpell(47570, false); // Improved Shadowform
  398. player->LearnSpell(33193, false); // Misery
  399. player->LearnSpell(47585, false); // Dispersion
  400. player->LearnSpell(15473, false); // Shadowform
  401.  
  402. // Remove Spells from other specs
  403. player->RemoveSpell(64129, false); // Body and Soul
  404. player->RemoveSpell(63543, false); // Empowered Renew
  405. player->RemoveSpell(14777, false); // Meditation
  406. player->RemoveSpell(33076, false); // Prayer of Mending
  407. player->RemoveSpell(63574, false); // Soul Warding
  408. player->RemoveSpell(47537, false); // Rapture
  409. player->RemoveSpell(45241, false); // Focused Will
  410. player->RemoveSpell(33206, false); // Pain Suppression
  411. player->RemoveSpell(10060, false); // Power Infusion
  412. player->RemoveSpell(47540, false); // Penance
  413. player->RemoveSpell(52800, false); // Borrowed Time
  414. player->RemoveSpell(34914, false); // Vampiric Touch
  415. player->RemoveSpell(33225, false); // Shadow Power
  416. player->RemoveSpell(33154, false); // Surge of Light
  417. player->RemoveSpell(47788, false); // Guardian Spirit
  418. break;
  419.  
  420.  
  421.  
  422. /* Hunter */
  423. case 13: // Marksman
  424. // Add Spells
  425. player->LearnSpell(53217, false); // Wild Quiver
  426. player->LearnSpell(34489, false); // Master Marksman
  427. player->LearnSpell(53297, false); // Noxious Stings
  428. player->LearnSpell(23989, false); // Readiness
  429. player->LearnSpell(34490, false); // Silencing Shot
  430.  
  431. // Remove Spells from other specs
  432. player->RemoveSpell(53301, false); // Explosive Shot
  433. player->RemoveSpell(53292, false); // Hunting Party
  434. player->RemoveSpell(34503, false); // Expose Weaknes
  435. player->RemoveSpell(34460, false); // Ferocious Inspiration
  436. player->RemoveSpell(34470, false); // Serpent's Swiftness
  437. player->RemoveSpell(56318, false); // Kindred Spirits
  438. player->RemoveSpell(20895, false); // Spirit Bond
  439. player->RemoveSpell(34026, false); // Kill Command
  440. player->RemoveSpell(19577, false); // Intimidation
  441. player->RemoveSpell(53209, false); // Chimera Shot
  442. player->RemoveSpell(53270, false); // Exotic Beasts
  443. player->RemoveSpell(34692, false); // The Beast Within
  444. player->RemoveSpell(19574, false); // Bestial Wrath
  445. break;
  446.  
  447. case 14: // Survival
  448. // Add Spells
  449. player->LearnSpell(53301, false); // Explosive Shot
  450. player->LearnSpell(53292, false); // Hunting Party
  451. player->LearnSpell(34503, false); // Expose Weakness
  452.  
  453. // Remove Spells from other specs
  454. player->RemoveSpell(53217, false); // Wild Quiver
  455. player->RemoveSpell(34489, false); // Master Marksman
  456. player->RemoveSpell(53297, false); // Noxious Stings
  457. player->RemoveSpell(23989, false); // Readiness
  458. player->RemoveSpell(34490, false); // Silencing Shot
  459. player->RemoveSpell(34460, false); // Ferocious Inspiration
  460. player->RemoveSpell(34470, false); // Serpent's Swiftness
  461. player->RemoveSpell(56318, false); // Kindred Spirits
  462. player->RemoveSpell(20895, false); // Spirit Bond
  463. player->RemoveSpell(34026, false); // Kill Command
  464. player->RemoveSpell(19577, false); // Intimidation
  465. player->RemoveSpell(53209, false); // Chimera Shot
  466. player->RemoveSpell(53270, false); // Exotic Beasts
  467. player->RemoveSpell(34692, false); // The Beast Within
  468. player->RemoveSpell(19574, false); // Bestial Wrath
  469. break;
  470.  
  471. case 15: // Beastmaster
  472. // Add Spells
  473. player->LearnSpell(34460, false); // Ferocious Inspiration
  474. player->LearnSpell(34470, false); // Serpent's Swiftness
  475. player->LearnSpell(56318, false); // Kindred Spirits
  476. player->LearnSpell(20895, false); // Spirit Bond
  477. player->LearnSpell(34026, false); // Kill Command
  478. player->LearnSpell(19577, false); // Intimidation
  479.  
  480. // Remove Spells from other specs
  481. player->RemoveSpell(53217, false); // Wild Quiver
  482. player->RemoveSpell(34489, false); // Master Marksman
  483. player->RemoveSpell(53297, false); // Noxious Stings
  484. player->RemoveSpell(23989, false); // Readiness
  485. player->RemoveSpell(34490, false); // Silencing Shot
  486. player->RemoveSpell(53301, false); // Explosive Shot
  487. player->RemoveSpell(53292, false); // Hunting Party
  488. player->RemoveSpell(34503, false); // Expose Weakness
  489. player->RemoveSpell(53209, false); // Chimera Shot
  490. player->RemoveSpell(53270, false); // Exotic Beasts
  491. player->RemoveSpell(34692, false); // The Beast Within
  492. player->RemoveSpell(19574, false); // Bestial Wrath
  493. break;
  494.  
  495. /* Rogue */
  496. case 16: // Sub
  497. // Add Spells
  498. player->LearnSpell(31230, false); // Cheat Death
  499. player->LearnSpell(51710, false); // Slaughter from the Shadows
  500. player->LearnSpell(51696, false); // Waylay
  501. player->LearnSpell(36554, false); // Shadowstep
  502. player->LearnSpell(14185, false); // Preparation
  503. player->LearnSpell(16511, false); // Hemorrhage
  504.  
  505. // Remove Spells from other specs
  506. player->RemoveSpell(58410, false); // Master Poisoner
  507. player->RemoveSpell(31209, false); // Fleet footed
  508. player->RemoveSpell(51636, false); // Focused Attacks
  509. player->RemoveSpell(14094, false); // Dirty Tricks
  510. player->RemoveSpell(1329, false); // Mutilate
  511. player->RemoveSpell(32645, false); // Envenom
  512. player->RemoveSpell(18429, false); // Aggression
  513. player->RemoveSpell(13875, false); // Improved Sprint
  514. player->RemoveSpell(32601, false); // Surprise Attacks
  515. player->RemoveSpell(14094, false); // Dirty Tricks
  516. player->RemoveSpell(13750, false); // Adrenaline Rush
  517. player->RemoveSpell(13877, false); // Blade Flurry
  518. player->RemoveSpell(58415, false); // Filthy Tricks
  519. player->RemoveSpell(14117, false); // Improved Poisoner
  520. break;
  521.  
  522. case 17: // Assassination
  523. // Add Spells
  524. player->LearnSpell(58410, false); // Master Poisoner
  525. player->LearnSpell(31209, false); // Fleet footed
  526. player->LearnSpell(51636, false); // Focused Attacks
  527. player->LearnSpell(14094, false); // Dirty Tricks
  528. player->LearnSpell(1329, false); // Mutilate
  529. player->LearnSpell(32645, false); // Envenom
  530.  
  531. // Remove Spells from other specs
  532. player->RemoveSpell(31230, false); // Cheat Death
  533. player->RemoveSpell(51710, false); // Slaughter from the Shadows
  534. player->RemoveSpell(51696, false); // Waylay
  535. player->RemoveSpell(36554, false); // Shadowstep
  536. player->RemoveSpell(14185, false); // Preparation
  537. player->RemoveSpell(16511, false); // Hemorrhage
  538. player->RemoveSpell(18429, false); // Aggression
  539. player->RemoveSpell(13875, false); // Improved Sprint
  540. player->RemoveSpell(32601, false); // Surprise Attacks
  541. player->RemoveSpell(14094, false); // Dirty Tricks
  542. player->RemoveSpell(13750, false); // Adrenaline Rush
  543. player->RemoveSpell(13877, false); // Blade Flurry
  544. player->RemoveSpell(58415, false); // Filthy Tricks
  545. player->RemoveSpell(14117, false); // Improved Poisoner
  546. break;
  547.  
  548. case 18: // Combat
  549. // Add Spells
  550. player->LearnSpell(18429, false); // Aggression
  551. player->LearnSpell(13875, false); // Improved Sprint
  552. player->LearnSpell(32601, false); // Surprise Attacks
  553. player->LearnSpell(14094, false); // Dirty Tricks
  554. player->LearnSpell(13750, false); // Adrenaline Rush
  555. player->LearnSpell(13877, false); // Blade Flurry
  556.  
  557. // Remove Spells from other specs
  558. player->RemoveSpell(31230, false); // Cheat Death
  559. player->RemoveSpell(51710, false); // Slaughter from the Shadows
  560. player->RemoveSpell(51696, false); // Waylay
  561. player->RemoveSpell(36554, false); // Shadowstep
  562. player->RemoveSpell(14185, false); // Preparation
  563. player->RemoveSpell(16511, false); // Hemorrhage
  564. player->RemoveSpell(58410, false); // Master Poisoner
  565. player->RemoveSpell(31209, false); // Fleet footed
  566. player->RemoveSpell(51636, false); // Focused Attacks
  567. player->RemoveSpell(14094, false); // Dirty Tricks
  568. player->RemoveSpell(1329, false); // Mutilate
  569. player->RemoveSpell(32645, false); // Envenom
  570. player->RemoveSpell(58415, false); // Filthy Tricks
  571. player->RemoveSpell(14117, false); // Improved Poisoner
  572. break;
  573.  
  574. /* Shaman */
  575. case 19: // Restoration
  576. // Add Spells
  577. player->LearnSpell(30886, false); // Nature's Guardian
  578. player->LearnSpell(30866, false); // Focused Mind
  579. player->LearnSpell(16213, false); // Purification
  580. player->LearnSpell(16188, false); // Nature's Swiftness
  581. player->LearnSpell(51886, false); // Cleanse Spirit
  582.  
  583. // Remove Spells from other specs
  584. player->RemoveSpell(30814, false); // Mental Quickness
  585. player->RemoveSpell(30798, false); // Dual Wield
  586. player->RemoveSpell(51885, false); // Mental Dexterity
  587. player->RemoveSpell(63374, false); // Frozen Power
  588. player->RemoveSpell(17364, false); // Stormstrike
  589. player->RemoveSpell(30823, false); // Shamanistic Rage
  590. player->RemoveSpell(30679, false); // Lightning Overload
  591. player->RemoveSpell(51486, false); // Storm, Earth and Fire
  592. player->RemoveSpell(16582, false); // Lightning Mastery
  593. player->RemoveSpell(421, false); // Chain Lightning
  594. player->RemoveSpell(16166, false); // Elemental Mastery
  595. player->RemoveSpell(51566, false); // Tidal Waves
  596. player->RemoveSpell(61295, false); // Riptide
  597. player->RemoveSpell(974, false); // Earth Shield
  598. player->RemoveSpell(60103, false); // Lava Lash
  599. player->RemoveSpell(51505, false); // Lava Burst
  600. player->RemoveSpell(51482, false); // Lava Flows
  601. player->RemoveSpell(51470, false); // Elemental Oath
  602. break;
  603.  
  604. case 20: // Enchancement
  605. // Add Spells
  606. player->LearnSpell(30814, false); // Mental Quickness
  607. player->LearnSpell(30798, false); // Dual Wield
  608. player->LearnSpell(51885, false); // Mental Dexterity
  609. player->LearnSpell(63374, false); // Frozen Power
  610. player->LearnSpell(17364, false); // Stormstrike
  611. player->LearnSpell(30823, false); // Shamanistic Rage
  612.  
  613. // Remove Spells from other specs
  614. player->RemoveSpell(30886, false); // Nature's Guardian
  615. player->RemoveSpell(30866, false); // Focused Mind
  616. player->RemoveSpell(16213, false); // Purification
  617. player->RemoveSpell(16188, false); // Nature's Swiftness
  618. player->RemoveSpell(51886, false); // Cleanse Spirit
  619. player->RemoveSpell(30679, false); // Lightning Overload
  620. player->RemoveSpell(51486, false); // Storm, Earth and Fire
  621. player->RemoveSpell(16582, false); // Lightning Mastery
  622. player->RemoveSpell(16287, false); // Improved Ghost Wolf
  623. player->RemoveSpell(421, false); // Chain Lightning
  624. player->RemoveSpell(16166, false); // Elemental Mastery
  625. player->RemoveSpell(51566, false); // Tidal Waves
  626. player->RemoveSpell(61295, false); // Riptide
  627. player->RemoveSpell(974, false); // Earth Shield
  628. player->RemoveSpell(60103, false); // Lava Lash
  629. player->RemoveSpell(51505, false); // Lava Burst
  630. player->RemoveSpell(51482, false); // Lava Flows
  631. player->RemoveSpell(51470, false); // Elemental Oath
  632. break;
  633.  
  634. case 21: // Elemental
  635. // Add Spells
  636. player->LearnSpell(30679, false); // Lightning Overload
  637. player->LearnSpell(51486, false); // Storm, Earth and Fire
  638. player->LearnSpell(16582, false); // Lightning Mastery
  639. player->LearnSpell(421, false); // Chain Lightning
  640. player->LearnSpell(16166, false); // Elemental Mastery
  641.  
  642. // Remove Spells from other specs
  643. player->RemoveSpell(30886, false); // Nature's Guardian
  644. player->RemoveSpell(30866, false); // Focused Mind
  645. player->RemoveSpell(16213, false); // Purification
  646. player->RemoveSpell(16188, false); // Nature's Swiftness
  647. player->RemoveSpell(51886, false); // Cleanse Spirit
  648. player->RemoveSpell(30814, false); // Mental Quickness
  649. player->RemoveSpell(30798, false); // Dual Wield
  650. player->RemoveSpell(51885, false); // Mental Dexterity
  651. player->RemoveSpell(63374, false); // Frozen Power
  652. player->RemoveSpell(17364, false); // Stormstrike
  653. player->RemoveSpell(30823, false); // Shamanistic Rage
  654. player->RemoveSpell(51566, false); // Tidal Waves
  655. player->RemoveSpell(61295, false); // Riptide
  656. player->RemoveSpell(974, false); // Earth Shield
  657. player->RemoveSpell(60103, false); // Lava Lash
  658. player->RemoveSpell(51505, false); // Lava Burst
  659. player->RemoveSpell(51482, false); // Lava Flows
  660. player->RemoveSpell(51470, false); // Elemental Oath
  661. break;
  662.  
  663. /* Warlock */
  664. case 22: // Affliction
  665. // Add Spells
  666. player->LearnSpell(30064, false); // Contagion
  667. player->LearnSpell(30057, false); // Improved Howl of Terror
  668. player->LearnSpell(47205, false); // Everlasting Affliction
  669. player->LearnSpell(63108, false); // Death Coil
  670.  
  671. // Remove Spells from other specs
  672. player->RemoveSpell(30302, false); // Nether Protection
  673. player->RemoveSpell(34939, false); // Backlash
  674. player->RemoveSpell(63158, false); // Decimation
  675. player->RemoveSpell(17792, false); // Bane
  676. player->RemoveSpell(47247, false); // Molten Core
  677. player->RemoveSpell(6353, false); // Soul Fire
  678. player->RemoveSpell(47260, false); // Backdraft
  679. player->RemoveSpell(47270, false); // Fire and Brimstone
  680. player->RemoveSpell(18130, false); // Devastation
  681. player->RemoveSpell(17962, false); // Conflagrate
  682. player->RemoveSpell(48181, false); // Haunt
  683. player->RemoveSpell(30108, false); // Unstable Affliction
  684. player->RemoveSpell(58425, false); // Pandemic
  685. player->RemoveSpell(59672, false); // Metamorphosis
  686. player->RemoveSpell(29722, false); // Incinerate
  687. break;
  688.  
  689. case 23: // Demonology
  690. // Add Spells
  691. player->LearnSpell(30302, false); // Nether Protection
  692. player->LearnSpell(34939, false); // Backlash
  693. player->LearnSpell(63158, false); // Decimation
  694. player->LearnSpell(17792, false); // Bane
  695. player->LearnSpell(47247, false); // Molten Core
  696. player->LearnSpell(6353, false); // Soul Fire
  697.  
  698. // Remove Spells from other specs
  699. player->RemoveSpell(30064, false); // Contagion
  700. player->RemoveSpell(30057, false); // Improved Howl of Terror
  701. player->RemoveSpell(47205, false); // Everlasting Affliction
  702. player->RemoveSpell(63108, false); // Death Coil
  703. player->RemoveSpell(47260, false); // Backdraft
  704. player->RemoveSpell(47270, false); // Fire and Brimstone
  705. player->RemoveSpell(18130, false); // Devastation
  706. player->RemoveSpell(17962, false); // Conflagrate
  707. player->RemoveSpell(48181, false); // Haunt
  708. player->RemoveSpell(30108, false); // Unstable Affliction
  709. player->RemoveSpell(58425, false); // Pandemic
  710. player->RemoveSpell(59672, false); // Metamorphosis
  711. player->RemoveSpell(29722, false); // Incinerate
  712. break;
  713.  
  714. case 24: // Destruction
  715. // Add Spells
  716. player->LearnSpell(47260, false); // Backdraft
  717. player->LearnSpell(47270, false); // Fire and Brimstone
  718. player->LearnSpell(18130, false); // Devastation
  719. player->LearnSpell(17962, false); // Conflagrate
  720.  
  721. // Remove Spells from other specs
  722. player->RemoveSpell(30064, false); // Contagion
  723. player->RemoveSpell(30057, false); // Improved Howl of Terror
  724. player->RemoveSpell(47205, false); // Everlasting Affliction
  725. player->RemoveSpell(63108, false); // Death Coil
  726. player->RemoveSpell(30302, false); // Nether Protection
  727. player->RemoveSpell(34939, false); // Backlash
  728. player->RemoveSpell(63158, false); // Decimation
  729. player->RemoveSpell(17792, false); // Bane
  730. player->RemoveSpell(47247, false); // Molten Core
  731. player->RemoveSpell(6353, false); // Soul Fire
  732. player->RemoveSpell(48181, false); // Haunt
  733. player->RemoveSpell(30108, false); // Unstable Affliction
  734. player->RemoveSpell(58425, false); // Pandemic
  735. player->RemoveSpell(59672, false); // Metamorphosis
  736. player->RemoveSpell(29722, false); // Incinerate
  737. break;
  738.  
  739. /* Druid */
  740. case 25: // Feral
  741. // Add Spells
  742. player->LearnSpell(48495, false); // King of the Jungle
  743. player->LearnSpell(33873, false); // Nurturing Instinct
  744. player->LearnSpell(63503, false); // Primal Gore
  745. player->LearnSpell(37117, false); // Primal Fury
  746. player->LearnSpell(33917, false); // Mangle
  747. player->LearnSpell(9005, false); // Pounce
  748. player->LearnSpell(9634, false); // Dire Bear Form
  749.  
  750. // Remove Spells from other specs
  751. player->RemoveSpell(48511, false); // Earth and Moon
  752. player->RemoveSpell(48525, false); // Eclipse
  753. player->RemoveSpell(16899, false); // Moonfury
  754. player->RemoveSpell(24858, false); // Moonkin For
  755. player->RemoveSpell(48545, false); // Revitalize
  756. player->RemoveSpell(63411, false); // Improved Barkskin
  757. player->RemoveSpell(24946, false); // Gift of Nature
  758. player->RemoveSpell(18562, false); // Swiftmend
  759. player->RemoveSpell(33856, false); // Survival of the Fittest
  760. player->RemoveSpell(57877, false); // Protector of the Pack
  761. player->RemoveSpell(57881, false); // Natural Reaction
  762. player->RemoveSpell(769, false); // Swipe
  763. player->RemoveSpell(50334, false); // Berserk
  764. player->RemoveSpell(48393, false); // Owlkin Frenzy
  765. player->RemoveSpell(5570, false); // Insect Swarm
  766. player->RemoveSpell(48438, false); // Wild Growth
  767. player->RemoveSpell(65139, false); // Tree of Life
  768. player->RemoveSpell(33956, false); // Dreamstate
  769. player->RemoveSpell(22812, false); // Barkskin
  770. break;
  771.  
  772. case 26: // Balance
  773. // Add Spells
  774. player->LearnSpell(48511, false); // Earth and Moon
  775. player->LearnSpell(33956, false); // Dreamstate
  776. player->LearnSpell(24858, false); // Moonkin Form
  777. player->LearnSpell(22812, false); // Barkskin
  778. player->LearnSpell(5570, false); // Insect Swarm
  779.  
  780. // Remove Spells from other specs
  781. player->RemoveSpell(48495, false); // King of the Jungle
  782. player->RemoveSpell(33873, false); // Nurturing Instinct
  783. player->RemoveSpell(63503, false); // Primal Gore
  784. player->RemoveSpell(37117, false); // Primal Fury
  785. player->RemoveSpell(33917, false); // Mangle
  786. player->RemoveSpell(9005, false); // Pounce
  787. player->RemoveSpell(48545, false); // Revitalize
  788. player->RemoveSpell(63411, false); // Improved Barkskin
  789. player->RemoveSpell(24946, false); // Gift of Nature
  790. player->RemoveSpell(18562, false); // Swiftmend
  791. player->RemoveSpell(33856, false); // Survival of the Fittest
  792. player->RemoveSpell(57877, false); // Protector of the Pack
  793. player->RemoveSpell(57881, false); // Natural Reaction
  794. player->RemoveSpell(769, false); // Swipe
  795. player->RemoveSpell(33917, false); // Mangle
  796. player->RemoveSpell(50334, false); // Berserk
  797. player->RemoveSpell(9634, false); // Dire Bear Form
  798. player->RemoveSpell(48393, false); // Owlkin Frenzy
  799. player->RemoveSpell(48438, false); // Wild Growth
  800. player->RemoveSpell(65139, false); // Tree of Life
  801. break;
  802.  
  803. case 27: // Restoration
  804. // Add Spells
  805. player->LearnSpell(48545, false); // Revitalize
  806. player->LearnSpell(63411, false); // Improved Barkskin
  807. player->LearnSpell(22812, false); // Barkskin
  808. player->LearnSpell(24946, false); // Gift of Nature
  809. player->LearnSpell(18562, false); // Swiftmend
  810.  
  811. // Remove Spells from other specs
  812. player->RemoveSpell(48495, false); // King of the Jungle
  813. player->RemoveSpell(33873, false); // Nurturing Instinct
  814. player->RemoveSpell(63503, false); // Primal Gore
  815. player->RemoveSpell(37117, false); // Primal Fury
  816. player->RemoveSpell(33917, false); // Mangle
  817. player->RemoveSpell(9005, false); // Pounce
  818. player->RemoveSpell(48511, false); // Earth and Moon
  819. player->RemoveSpell(48525, false); // Eclipse
  820. player->RemoveSpell(16899, false); // Moonfury
  821. player->RemoveSpell(24858, false); // Moonkin Form
  822. player->RemoveSpell(33856, false); // Survival of the Fittest
  823. player->RemoveSpell(57877, false); // Protector of the Pack
  824. player->RemoveSpell(57881, false); // Natural Reaction
  825. player->RemoveSpell(769, false); // Swipe
  826. player->RemoveSpell(33917, false); // Mangle
  827. player->RemoveSpell(50334, false); // Berserk
  828. player->RemoveSpell(9634, false); // Dire Bear Form
  829. player->RemoveSpell(48393, false); // Owlkin Frenzy
  830. player->RemoveSpell(5570, false); // Insect Swarm
  831. player->RemoveSpell(48438, false); // Wild Growth
  832. player->RemoveSpell(65139, false); // Tree of Life
  833. player->RemoveSpell(33956, false); // Dreamstate
  834. break;
  835.  
  836. case 28: // Guardian
  837. // Add Spells
  838. player->LearnSpell(33856, false); // Survival of the Fittest
  839. player->LearnSpell(57877, false); // Protector of the Pack
  840. player->LearnSpell(57881, false); // Natural Reaction
  841. player->LearnSpell(769, false); // Swipe
  842. player->LearnSpell(33917, false); // Mangle
  843. player->LearnSpell(9634, false); // Dire Bear Form
  844.  
  845. // Remove Spells from other specs
  846. player->RemoveSpell(48495, false); // King of the Jungle
  847. player->RemoveSpell(33873, false); // Nurturing Instinct
  848. player->RemoveSpell(63503, false); // Primal Gore
  849. player->RemoveSpell(37117, false); // Primal Fury
  850. player->RemoveSpell(9005, false); // Pounce
  851. player->RemoveSpell(48545, false); // Revitalize
  852. player->RemoveSpell(63411, false); // Improved Barkskin
  853. player->RemoveSpell(24946, false); // Gift of Nature
  854. player->RemoveSpell(18562, false); // Swiftmend
  855. player->RemoveSpell(48511, false); // Earth and Moon
  856. player->RemoveSpell(48525, false); // Eclipse
  857. player->RemoveSpell(16899, false); // Moonfury
  858. player->RemoveSpell(24858, false); // Moonkin Form
  859. player->RemoveSpell(50334, false); // Berserk
  860. player->RemoveSpell(48393, false); // Owlkin Frenzy
  861. player->RemoveSpell(5570, false); // Insect Swarm
  862. player->RemoveSpell(48438, false); // Wild Growth
  863. player->RemoveSpell(65139, false); // Tree of Life
  864. player->RemoveSpell(33956, false); // Dreamstate
  865. player->RemoveSpell(22812, false); // Barkskin
  866. break;
  867. }
  868. player->CLOSE_GOSSIP_MENU();
  869. return true;
  870. }
  871. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement