Advertisement
WIXXZI

Aspire Projects© Talent Path Chooser

Oct 6th, 2012
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.41 KB | None | 0 0
  1. ------------------------
  2. -- Aspire Projects© --
  3. ------------------------
  4. function TalentGenerator_OnGossip(pUnit,event,player)
  5. if (player:GetPlayerClass() == "Warrior") then
  6. pUnit:GossipCreateMenu(100, player, 0)
  7. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  8. pUnit:GossipMenuAddItem(3, "Arms |cFF8B0000(Bladestorm)",1,0)
  9. pUnit:GossipMenuAddItem(3, "Fury |cFF8B0000(Heroic Fury)",2,0)
  10. pUnit:GossipMenuAddItem(3, "Protection |cFF8B0000(Devastate)",3,0)
  11. pUnit:GossipSendMenu(player)
  12. elseif (player:GetPlayerClass() == "Paladin") then
  13. pUnit:GossipCreateMenu(100, player, 0)
  14. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  15. pUnit:GossipMenuAddItem(3, "Holy |cFF8B0000(Divine Illumination)",4,0)
  16. pUnit:GossipMenuAddItem(3, "Protection |cFF8B0000(Avengers Shield)",5,0)
  17. pUnit:GossipMenuAddItem(3, "Retribution |cFF8B0000(Crusader Strike)",6,0)
  18. pUnit:GossipSendMenu(player)
  19. elseif (player:GetPlayerClass() == "Hunter") then
  20. pUnit:GossipCreateMenu(100, player, 0)
  21. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  22. pUnit:GossipMenuAddItem(3, "Beast Mastery",7,0)
  23. pUnit:GossipMenuAddItem(3, "Marksmanship |cFF8B0000(Silencing Shot)",8,0)
  24. pUnit:GossipMenuAddItem(3, "Survival |cFF8B0000(Black Arrow)",9,0)
  25. pUnit:GossipSendMenu(player)
  26. elseif (player:GetPlayerClass() == "Rogue") then
  27. pUnit:GossipCreateMenu(100, player, 0)
  28. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  29. pUnit:GossipMenuAddItem(3, "Asassination |cFF8B0000(Mutilate)",10,0)
  30. pUnit:GossipMenuAddItem(3, "Combat |cFF8B0000(Surprise Attacks)",11,0)
  31. pUnit:GossipMenuAddItem(3, "Subtlety |cFF8B0000(Shadowstep)",12,0)
  32. pUnit:GossipSendMenu(player)
  33. elseif (player:GetPlayerClass() == "Priest") then
  34. pUnit:GossipCreateMenu(100, player, 0)
  35. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  36. pUnit:GossipMenuAddItem(3, "Discipline |cFF8B0000(Pain Supression)",13,0)
  37. pUnit:GossipMenuAddItem(3, "Holy |cFF8B0000(Circle of Healing)",14,0)
  38. pUnit:GossipMenuAddItem(3, "Shadow |cFF8B0000(Vampiric Touch)",15,0)
  39. pUnit:GossipSendMenu(player)
  40. elseif (player:GetPlayerClass() == "Shaman") then
  41. pUnit:GossipCreateMenu(100, player, 0)
  42. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  43. pUnit:GossipMenuAddItem(3, "Elemental |cFF8B0000(Totem of Wrath)",16,0)
  44. pUnit:GossipMenuAddItem(3, "Enhancement |cFF8B0000(Shamanistic Rage)",17,0)
  45. pUnit:GossipMenuAddItem(3, "Restoration |cFF8B0000(Earth Shield)",18,0)
  46. pUnit:GossipSendMenu(player)
  47. elseif (player:GetPlayerClass() == "Mage") then
  48. pUnit:GossipCreateMenu(100, player, 0)
  49. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  50. pUnit:GossipMenuAddItem(3, "Frost |cFF8B0000(Summon Water Elemental)",19,0)
  51. pUnit:GossipMenuAddItem(3, "Fire |cFF8B0000(Dragon's Breath)",20,0)
  52. pUnit:GossipMenuAddItem(3, "Arcane |cFF8B0000(Slow)",21,0)
  53. pUnit:GossipSendMenu(player)
  54. elseif (player:GetPlayerClass() == "Warlock") then
  55. pUnit:GossipCreateMenu(100, player, 0)
  56. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  57. pUnit:GossipMenuAddItem(3,"Affliction",22,0)
  58. pUnit:GossipMenuAddItem(3,"Demonology",23,0)
  59. pUnit:GossipMenuAddItem(3,"Destruction",24,0)
  60. pUnit:GossipSendMenu(player)
  61. elseif (player:GetPlayerClass() == "Druid") then
  62. pUnit:GossipCreateMenu(100, player, 0)
  63. pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
  64. pUnit:GossipMenuAddItem(3,"Balance |cFF8B0000(Typhoon)",25,0)
  65. pUnit:GossipMenuAddItem(3,"Feral Combat |cFF8B0000(Mangle)",26,0)
  66. pUnit:GossipMenuAddItem(3,"Restoration |cFF8B0000(Tree of Life",27,0)
  67. pUnit:GossipSendMenu(player)
  68. end
  69. end
  70.  
  71.  
  72. function TalentGenerator_OnSelect(pUnit,event,player,id,intid,code)
  73. if (intid == 1) then ---- Warrior starts here ----
  74. player:LearnSpell(46924)
  75. player:UnlearnSpell(60970)
  76. player:UnlearnSpell(20243)
  77. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Arms!")
  78. end
  79.  
  80. if (intid == 2) then
  81. player:LearnSpell(60970)
  82. player:UnlearnSpell(29623)
  83. player:UnlearnSpell(20243)
  84. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Fury!")
  85. end
  86.  
  87. if (intid == 3) then
  88. player:LearnSpell(20243)
  89. player:UnlearnSpell(60970)
  90. player:UnlearnSpell(29623)
  91. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Protection!")
  92. end ---- Paladin Starts Here ----
  93.  
  94. if (intid == 4) then
  95. player:LearnSpell(31842)
  96. player:UnlearnSpell(31935)
  97. player:UnlearnSpell(35395)
  98. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Holy!")
  99. end
  100.  
  101. if (intid == 5) then
  102. player:LearnSpell(31935)
  103. player:UnlearnSpell(31842)
  104. player:UnlearnSpell(35395)
  105. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Protection!")
  106. end
  107.  
  108. if (intid == 6) then
  109. player:LearnSpell(35395)
  110. player:UnlearnSpell(31935)
  111. player:UnlearnSpell(31842)
  112. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Retribution!")
  113. end ---- Hunter Starts Here! ----
  114.  
  115. if (intid == 7) then
  116. player:LearnSpell(34692)
  117. player:UnlearnSpell(34490)
  118. player:UnlearnSpell(3674)
  119. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Beast Mastery!")
  120. end
  121.  
  122. if (intid == 8) then
  123. player:LearnSpell(34490)
  124. player:UnlearnSpell(3674)
  125. player:UnlearnSpell(34692)
  126. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Marksmanship!")
  127. end
  128.  
  129. if (intid == 9) then
  130. player:LearnSpell(3674)
  131. player:UnlearnSpell(34490)
  132. player:UnlearnSpell(34692)
  133. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Survival!")
  134. end ---- Rogue Starts Here! ----
  135.  
  136. if (intid == 10) then
  137. player:LearnSpell(1329)
  138. player:UnlearnSpell(32601)
  139. player:UnlearnSpell(36554)
  140. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Asassination!")
  141. end
  142.  
  143. if (intid == 11) then
  144. player:LearnSpell(32601)
  145. player:UnlearnSpell(36554)
  146. player:UnlearnSpell(1329)
  147. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Combat!")
  148. end
  149.  
  150. if (intid == 12) then
  151. player:LearnSpell(36554)
  152. player:UnlearnSpell(1329)
  153. player:UnlearnSpell(32601)
  154. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Subtlety!")
  155. end ---- Priest Starts Here! ----
  156.  
  157. if (intid == 13) then
  158. player:LearnSpell(33206)
  159. player:UnlearnSpell(34861)
  160. player:UnlearnSpell(34914)
  161. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Discipline!")
  162. end
  163.  
  164. if (intid == 14) then
  165. player:LearnSpell(34861)
  166. player:UnlearnSpell(33206)
  167. player:UnlearnSpell(34914)
  168. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Holy!")
  169. end
  170.  
  171. if (intid == 15) then
  172. player:LearnSpell(34914)
  173. player:UnlearnSpell(33206)
  174. player:UnlearnSpell(34861)
  175. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Shadow!")
  176. end ---- Shaman Starts Here! ----
  177.  
  178. if (intid == 16) then
  179. player:LearnSpell(63283)
  180. player:UnlearnSpell(30823)
  181. player:UnlearnSpell(974)
  182. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Elemental!")
  183. end
  184.  
  185. if (intid == 17) then
  186. player:LearnSpell(30823)
  187. player:UnlearnSpell(63283)
  188. player:UnlearnSpell(974)
  189. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Enhancement!")
  190. end
  191.  
  192. if (intid == 18) then
  193. player:LearnSpell(974)
  194. player:UnlearnSpell(30823)
  195. player:UnlearnSpell(63283)
  196. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Restoration!")
  197. end ---- Mage Starts Here! ----
  198.  
  199. if (intid == 19) then
  200. player:LearnSpell(31687)
  201. player:UnlearnSpell(31661)
  202. player:UnlearnSpell(31589)
  203. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Frost!")
  204. end
  205.  
  206. if (intid == 20) then
  207. player:LearnSpell(31661)
  208. player:UnlearnSpell(31589)
  209. player:UnlearnSpell(31687)
  210. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Fire!")
  211. end
  212.  
  213. if (intid == 21) then
  214. player:LearnSpell(31589)
  215. player:UnlearnSpell(31661)
  216. player:UnlearnSpell(31687)
  217. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Arcane!")
  218. end ---- Warlock Starts Here! ----
  219.  
  220. if (intid == 22) then
  221. player:LearnSpell(30108)
  222. player:UnlearnSpell(30146)
  223. player:UnlearnSpell(30283)
  224. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Affliction!")
  225. end
  226.  
  227. if (intid == 23) then
  228. player:LearnSpell(30146)
  229. player:UnlearnSpell(30283)
  230. player:UnlearnSpell(30108)
  231. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Demonology!")
  232. end
  233.  
  234. if (intid == 24) then
  235. player:LearnSpell(30283)
  236. player:UnlearnSpell(30108)
  237. player:UnlearnSpell(30146)
  238. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Destruction!")
  239. end ---- Druid Starts Here! ----
  240.  
  241. if (intid == 25) then
  242. player:LearnSpell(50516)
  243. player:UnlearnSpell(33917)
  244. player:UnlearnSpell(33891)
  245. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Balance!")
  246. end
  247.  
  248. if (intid == 26) then
  249. player:LearnSpell(33917)
  250. player:UnlearnSpell(33891)
  251. player:UnlearnSpell(50516)
  252. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Feral Combat!")
  253. end
  254.  
  255. if (intid == 27) then
  256. player:LearnSpell(33891)
  257. player:UnlearnSPell(33917)
  258. player:UnlearnSpell(50516)
  259. player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Restoration!")
  260. end
  261.  
  262. if (intid == 99) then
  263. player:GossipComplete()
  264. end
  265. end
  266.  
  267.  
  268. RegisterUnitGossipEvent(82004, 1, "TalentGenerator_OnGossip")
  269. RegisterUnitGossipEvent(82004, 2, "TalentGenerator_OnSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement