Guest User

Class trainer

a guest
Apr 2nd, 2010
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.53 KB | None | 0 0
  1. local NPCID = 80102
  2.  
  3. function On_Gossip(pUnit, event, player)
  4. pUnit:GossipCreateMenu(100, player, 0)
  5.  
  6. if (player:GetPlayerClass() == "Warrior") then
  7.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",1,0)
  8.     elseif (player:GetPlayerClass() == "Paladin") then
  9.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",2,0)
  10.     elseif (player:GetPlayerClass() == "Hunter") then
  11.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",3,0)
  12.     elseif (player:GetPlayerClass() == "Rogue") then
  13.     pUnit:GossipMenuAddItem(0,"Learn me all my spells!",4,0)
  14.     elseif (player:GetPlayerClass() == "Priest") then
  15.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",5,0)
  16.     elseif (player:GetPlayerClass() == "Death Knight") then
  17.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",6,0)
  18.     elseif (player:GetPlayerClass() == "Shaman") then
  19.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",7,0)
  20.     elseif (player:GetPlayerClass() == "Mage") then
  21.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",8,0)
  22.     elseif (player:GetPlayerClass() == "Warlock") then
  23.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",9,0)
  24.     elseif (player:GetPlayerClass() == "Druid") then
  25.         pUnit:GossipMenuAddItem(0,"Learn me all my spells!",10,0)
  26. end
  27.     pUnit:GossipMenuAddItem(0,"Reset Talent Points",11,0)
  28.     pUnit:GossipMenuAddItem(0,"Nevermind",999,0)
  29.    
  30. pUnit:GossipSendMenu(player)
  31. end
  32.  
  33. function On_Select(pUnit, event, player, id, intid, code)
  34. if (intid == 1) then -- Warrior
  35.     player:LearnSpell(47436)
  36.     player:LearnSpell(47450)
  37.     player:LearnSpell(11578)
  38.     player:LearnSpell(47465)
  39.     player:LearnSpell(47502)
  40.     player:LearnSpell(34428)
  41.     player:LearnSpell(1715)
  42.     player:LearnSpell(2687)
  43.     player:LearnSpell(71)
  44.     player:LearnSpell(7386)
  45.     player:LearnSpell(355)
  46.     player:LearnSpell(72)
  47.     player:LearnSpell(47437)
  48.     player:LearnSpell(57823)
  49.     player:LearnSpell(694)
  50.     player:LearnSpell(2565)
  51.     player:LearnSpell(676)
  52.     player:LearnSpell(47520)
  53.     player:LearnSpell(20230)
  54.     player:LearnSpell(12678)
  55.     player:LearnSpell(47471)
  56.     player:LearnSpell(1161)
  57.     player:LearnSpell(871)
  58.     player:LearnSpell(2458)
  59.     player:LearnSpell(20252)
  60.     player:LearnSpell(47475)
  61.     player:LearnSpell(18499)
  62.     player:LearnSpell(1680)
  63.     player:LearnSpell(6552)
  64.     player:LearnSpell(47488)
  65.     player:LearnSpell(1719)
  66.     player:LearnSpell(23920)
  67.     player:LearnSpell(47440)
  68.     player:LearnSpell(3411)
  69.     player:LearnSpell(64382)
  70.     player:LearnSpell(55694)
  71.     player:LearnSpell(57755)
  72.     player:LearnSpell(674)
  73.     player:LearnSpell(750)
  74.     player:LearnSpell(5246)
  75.    
  76.     if (player:HasSpell(12294)) then
  77.     player:LearnSpell(47486)
  78.     end
  79.    
  80.     if (player:HasSpell(20243)) then
  81.     player:LearnSpell(47498)
  82.     end
  83.    
  84.     player:GossipComplete()
  85. end
  86.  
  87. if (intid == 2) then -- Paladin
  88.     player:LearnSpell(750)
  89.     player:LearnSpell(48942)
  90.     player:LearnSpell(48782)
  91.     player:LearnSpell(48932)
  92.     player:LearnSpell(20271)
  93.     player:LearnSpell(498)
  94.     player:LearnSpell(853)
  95.     player:LearnSpell(1152)
  96.     player:LearnSpell(10278)
  97.     player:LearnSpell(48788)
  98.     player:LearnSpell(53408)
  99.     player:LearnSpell(48950)
  100.     player:LearnSpell(48936)
  101.     player:LearnSpell(31789)
  102.     player:LearnSpell(62124)
  103.     player:LearnSpell(54043)
  104.     player:LearnSpell(25780)
  105.     player:LearnSpell(1044)
  106.     player:LearnSpell(20217)
  107.     player:LearnSpell(48819)
  108.     player:LearnSpell(48801)
  109.     player:LearnSpell(48785)
  110.     player:LearnSpell(5502)
  111.     player:LearnSpell(20164)
  112.     player:LearnSpell(10326)
  113.     player:LearnSpell(1038)
  114.     player:LearnSpell(53407)
  115.     player:LearnSpell(48943)
  116.     player:LearnSpell(20165)
  117.     player:LearnSpell(48945)
  118.     player:LearnSpell(642)
  119.     player:LearnSpell(48947)
  120.     player:LearnSpell(20166)
  121.     player:LearnSpell(4987)
  122.     player:LearnSpell(48806)
  123.     player:LearnSpell(6940)
  124.     player:LearnSpell(48817)
  125.     player:LearnSpell(48934)
  126.     player:LearnSpell(48938)
  127.     player:LearnSpell(25898)
  128.     player:LearnSpell(25899)
  129.     player:LearnSpell(32223)
  130.     player:LearnSpell(31884)
  131.     player:LearnSpell(54428)
  132.     player:LearnSpell(61411)
  133.     player:LearnSpell(53601)
  134.     player:LearnSpell(33388)
  135.     player:LearnSpell(33391)
  136.     player:LearnSpell(34769)
  137.     player:LearnSpell(34767)
  138.    
  139.     if (player:GetTeam() < 1) then
  140.     player:LearnSpell(31801)
  141.     else
  142.     player:LearnSpell(53736)
  143.     end
  144.    
  145.     if (player:HasSpell(20925)) then
  146.     player:LearnSpell(48952)
  147.     end
  148.    
  149.     if (player:HasSpell(31935)) then
  150.     player:LearnSpell(48827)
  151.     end
  152.    
  153.     if (player:HasSpell(20473)) then
  154.     player:LearnSpell(48825)
  155.     end
  156.    
  157.     player:GossipComplete()
  158. end
  159.  
  160. if (intid == 3) then -- Hunter
  161.     player:LearnSpell(8737)
  162.     player:LearnSpell(1494)
  163.     player:LearnSpell(13163)
  164.     player:LearnSpell(48996)
  165.     player:LearnSpell(49001)
  166.     player:LearnSpell(49045)
  167.     player:LearnSpell(53338)
  168.     player:LearnSpell(5116)
  169.     player:LearnSpell(27044)
  170.     player:LearnSpell(883)
  171.     player:LearnSpell(2641)
  172.     player:LearnSpell(6991)
  173.     player:LearnSpell(982)
  174.     player:LearnSpell(1515)
  175.     player:LearnSpell(19883)
  176.     player:LearnSpell(20736)
  177.     player:LearnSpell(48990)
  178.     player:LearnSpell(2974)
  179.     player:LearnSpell(6197)
  180.     player:LearnSpell(1002)
  181.     player:LearnSpell(14327)
  182.     player:LearnSpell(5118)
  183.     player:LearnSpell(49056)
  184.     player:LearnSpell(53339)
  185.     player:LearnSpell(49048)
  186.     player:LearnSpell(19884)
  187.     player:LearnSpell(34074)
  188.     player:LearnSpell(781)
  189.     player:LearnSpell(14311)
  190.     player:LearnSpell(1462)
  191.     player:LearnSpell(19885)
  192.     player:LearnSpell(19880)
  193.     player:LearnSpell(13809)
  194.     player:LearnSpell(13161)
  195.     player:LearnSpell(5384)
  196.     player:LearnSpell(1543)
  197.     player:LearnSpell(19878)
  198.     player:LearnSpell(49067)
  199.     player:LearnSpell(3034)
  200.     player:LearnSpell(13159)
  201.     player:LearnSpell(19882)
  202.     player:LearnSpell(58434)
  203.     player:LearnSpell(49071)
  204.     player:LearnSpell(49052)
  205.     player:LearnSpell(19879)
  206.     player:LearnSpell(19263)
  207.     player:LearnSpell(19801)
  208.     player:LearnSpell(34026)
  209.     player:LearnSpell(34600)
  210.     player:LearnSpell(34477)
  211.     player:LearnSpell(61006)
  212.     player:LearnSpell(61847)
  213.     player:LearnSpell(53271)
  214.     player:LearnSpell(60192)
  215.     player:LearnSpell(62757)
  216.    
  217.     if (player:HasSpell(19386)) then
  218.     player:LearnSpell(49012)
  219.     end
  220.    
  221.     if (player:HasSpell(53301)) then
  222.     player:LearnSpell(60053)
  223.     end
  224.    
  225.     if (player:HasSpell(19306)) then
  226.     player:LearnSpell(48999)
  227.     end
  228.    
  229.     if (player:HasSpell(19434)) then
  230.     player:LearnSpell(49050)
  231.     end
  232.    
  233.     player:GossipComplete()
  234. end
  235.  
  236. if (intid == 4) then -- Rogue
  237.     player:LearnSpell(674)
  238.     player:LearnSpell(48668)
  239.     player:LearnSpell(48638)
  240.     player:LearnSpell(1784)
  241.     player:LearnSpell(48657)
  242.     player:LearnSpell(921)
  243.     player:LearnSpell(1776)
  244.     player:LearnSpell(26669)
  245.     player:LearnSpell(51724)
  246.     player:LearnSpell(6774)
  247.     player:LearnSpell(11305)
  248.     player:LearnSpell(1766)
  249.     player:LearnSpell(48676)
  250.     player:LearnSpell(48659)
  251.     player:LearnSpell(1804)
  252.     player:LearnSpell(8647)
  253.     player:LearnSpell(48691)
  254.     player:LearnSpell(51722)
  255.     player:LearnSpell(48672)
  256.     player:LearnSpell(1725)
  257.     player:LearnSpell(26889)
  258.     player:LearnSpell(2836)
  259.     player:LearnSpell(1833)
  260.     player:LearnSpell(1842)
  261.     player:LearnSpell(8643)
  262.     player:LearnSpell(2094)
  263.     player:LearnSpell(1860)
  264.     player:LearnSpell(57993)
  265.     player:LearnSpell(48674)
  266.     player:LearnSpell(31224)
  267.     player:LearnSpell(5938)
  268.     player:LearnSpell(57934)
  269.     player:LearnSpell(51723)
  270.    
  271.     if (player:HasSpell(16511)) then
  272.     player:LearnSpell(48660)
  273.     end
  274.    
  275.     if (player:HasSpell(1329)) then
  276.     player:LearnSpell(48666)
  277.     end
  278.    
  279.     player:GossipComplete()
  280. end
  281.  
  282. if (intid == 5) then -- Priest
  283.     player:LearnSpell(2053)
  284.     player:LearnSpell(48161)
  285.     player:LearnSpell(48123)
  286.     player:LearnSpell(48125)
  287.     player:LearnSpell(48066)
  288.     player:LearnSpell(586)
  289.     player:LearnSpell(48068)
  290.     player:LearnSpell(48127)
  291.     player:LearnSpell(48171)
  292.     player:LearnSpell(48168)
  293.     player:LearnSpell(10890)
  294.     player:LearnSpell(6064)
  295.     player:LearnSpell(988)
  296.     player:LearnSpell(48300)
  297.     player:LearnSpell(6346)
  298.     player:LearnSpell(48071)
  299.     player:LearnSpell(48135)
  300.     player:LearnSpell(48078)
  301.     player:LearnSpell(453)
  302.     player:LearnSpell(9484)
  303.     player:LearnSpell(10909)
  304.     player:LearnSpell(8129)
  305.     player:LearnSpell(48073)
  306.     player:LearnSpell(605)
  307.     player:LearnSpell(48072)
  308.     player:LearnSpell(48169)
  309.     player:LearnSpell(552)
  310.     player:LearnSpell(1706)
  311.     player:LearnSpell(48063)
  312.     player:LearnSpell(48162)
  313.     player:LearnSpell(48170)
  314.     player:LearnSpell(48074)
  315.     player:LearnSpell(48158)
  316.     player:LearnSpell(48120)
  317.     player:LearnSpell(34433)
  318.     player:LearnSpell(48113)
  319.     player:LearnSpell(32375)
  320.     player:LearnSpell(64843)
  321.     player:LearnSpell(64901)
  322.     player:LearnSpell(53023)
  323.    
  324.     if (player:HasSpell(34914)) then
  325.     player:LearnSpell(48160)
  326.     end
  327.    
  328.     if (player:HasSpell(47540)) then
  329.     player:LearnSpell(53007)
  330.     end
  331.    
  332.     if (player:HasSpell(724)) then
  333.     player:LearnSpell(48087)
  334.     end
  335.    
  336.     if (player:HasSpell(19236)) then
  337.     player:LearnSpell(48173)
  338.     end
  339.    
  340.     if (player:HasSpell(34861)) then
  341.     player:LearnSpell(48089)
  342.     end
  343.    
  344.     if (player:HasSpell(15407)) then
  345.     player:LearnSpell(48156)
  346.     end
  347.    
  348.     player:GossipComplete()
  349. end
  350.  
  351. if (intid == 6) then -- Death Knight
  352.     player:LearnSpell(50842)
  353.     player:LearnSpell(49941)
  354.     player:LearnSpell(49930)
  355.     player:LearnSpell(47476)
  356.     player:LearnSpell(45529)
  357.     player:LearnSpell(3714)
  358.     player:LearnSpell(56222)
  359.     player:LearnSpell(48743)
  360.     player:LearnSpell(48263)
  361.     player:LearnSpell(49909)
  362.     player:LearnSpell(66188)
  363.     player:LearnSpell(47528)
  364.     player:LearnSpell(45524)
  365.     player:LearnSpell(48792)
  366.     player:LearnSpell(57623)
  367.     player:LearnSpell(56815)
  368.     player:LearnSpell(47568)
  369.     player:LearnSpell(49895)
  370.     player:LearnSpell(50977)
  371.     player:LearnSpell(49576)
  372.     player:LearnSpell(49921)
  373.     player:LearnSpell(46584)
  374.     player:LearnSpell(49938)
  375.     player:LearnSpell(48707)
  376.     player:LearnSpell(48265)
  377.     player:LearnSpell(61999)
  378.     player:LearnSpell(42650)
  379.     player:LearnSpell(53428)
  380.     player:LearnSpell(53331)
  381.     player:LearnSpell(54447)
  382.     player:LearnSpell(53342)
  383.     player:LearnSpell(54446)
  384.     player:LearnSpell(53323)
  385.     player:LearnSpell(53344)
  386.     player:LearnSpell(70164)
  387.     player:LearnSpell(62158)
  388.     player:LearnSpell(33391)
  389.     player:LearnSpell(48778)
  390.     player:LearnSpell(51425)
  391.     player:LearnSpell(49924)
  392.     player:LearnSpell(49924)
  393.    
  394.     if (player:HasSpell(55050)) then
  395.     player:LearnSpell(55262)
  396.     end
  397.    
  398.     if (player:HasSpell(49143)) then
  399.     player:LearnSpell(55268)
  400.     end
  401.    
  402.     if (player:HasSpell(49184)) then
  403.     player:LearnSpell(51411)
  404.     end
  405.    
  406.     if (player:HasSpell(55090)) then
  407.     player:LearnSpell(55271)
  408.     end
  409.    
  410.     if (player:HasSpell(49158)) then
  411.     player:LearnSpell(51328)
  412.     end
  413.  
  414.     player:GossipComplete()
  415. end
  416.  
  417. if (intid == 7) then -- Shaman
  418.     player:LearnSpell(8737)
  419.     player:LearnSpell(49273)
  420.     player:LearnSpell(49238)
  421.     player:LearnSpell(10399)
  422.     player:LearnSpell(49231)
  423.     player:LearnSpell(58753)
  424.     player:LearnSpell(2484)
  425.     player:LearnSpell(49281)
  426.     player:LearnSpell(58582)
  427.     player:LearnSpell(49233)
  428.     player:LearnSpell(58790)
  429.     player:LearnSpell(58704)
  430.     player:LearnSpell(58643)
  431.     player:LearnSpell(49277)
  432.     player:LearnSpell(61657)
  433.     player:LearnSpell(8012)
  434.     player:LearnSpell(526)
  435.     player:LearnSpell(2645)
  436.     player:LearnSpell(57994)
  437.     player:LearnSpell(8143)
  438.     player:LearnSpell(49236)
  439.     player:LearnSpell(58796)
  440.     player:LearnSpell(58757)
  441.     player:LearnSpell(49276)
  442.     player:LearnSpell(57960)
  443.     player:LearnSpell(131)
  444.     player:LearnSpell(58745)
  445.     player:LearnSpell(6196)
  446.     player:LearnSpell(58734)
  447.     player:LearnSpell(58774)
  448.     player:LearnSpell(58739)
  449.     player:LearnSpell(58656)
  450.     player:LearnSpell(546)
  451.     player:LearnSpell(556)
  452.     player:LearnSpell(66842)
  453.     player:LearnSpell(51994)
  454.     player:LearnSpell(8177)
  455.     player:LearnSpell(58749)
  456.     player:LearnSpell(20608)
  457.     player:LearnSpell(36936)
  458.     player:LearnSpell(58804)
  459.     player:LearnSpell(49271)
  460.     player:LearnSpell(8512)
  461.     player:LearnSpell(6495)
  462.     player:LearnSpell(8170)
  463.     player:LearnSpell(66843)
  464.     player:LearnSpell(55459)
  465.     player:LearnSpell(66844)
  466.     player:LearnSpell(3738)
  467.     player:LearnSpell(2894)
  468.     player:LearnSpell(60043)
  469.     player:LearnSpell(51514)
  470.    
  471.     if (player:GetTeam() < 1) then
  472.     player:LearnSpell(32182)
  473.     else
  474.     player:LearnSpell(2825)
  475.     end
  476.    
  477.     if (player:HasSpell(61295)) then
  478.     player:LearnSpell(61301)
  479.     end
  480.    
  481.     if (player:HasSpell(974)) then
  482.     player:LearnSpell(49284)
  483.     end
  484.    
  485.     if (player:HasSpell(30706)) then
  486.     player:LearnSpell(57722)
  487.     end
  488.    
  489.     if (player:HasSpell(51490)) then
  490.     player:LearnSpell(59159)
  491.     end
  492.    
  493.     player:GossipComplete()
  494. end
  495.  
  496. if (intid == 8) then -- Mage
  497.     player:LearnSpell(42995)
  498.     player:LearnSpell(42833)
  499.     player:LearnSpell(27090)
  500.     player:LearnSpell(42842)
  501.     player:LearnSpell(33717)
  502.     player:LearnSpell(42873)
  503.     player:LearnSpell(42846)
  504.     player:LearnSpell(12826)
  505.     player:LearnSpell(28271)
  506.     player:LearnSpell(61780)
  507.     player:LearnSpell(61721)
  508.     player:LearnSpell(28272)
  509.     player:LearnSpell(61305)
  510.     player:LearnSpell(42917)
  511.     player:LearnSpell(43015)
  512.     player:LearnSpell(130)
  513.     player:LearnSpell(42921)
  514.     player:LearnSpell(42926)
  515.     player:LearnSpell(43017)
  516.     player:LearnSpell(475)
  517.     player:LearnSpell(1953)
  518.     player:LearnSpell(42940)
  519.     player:LearnSpell(12051)
  520.     player:LearnSpell(43010)
  521.     player:LearnSpell(43020)
  522.     player:LearnSpell(43012)
  523.     player:LearnSpell(42859)
  524.     player:LearnSpell(2139)
  525.     player:LearnSpell(42931)
  526.     player:LearnSpell(42985)
  527.     player:LearnSpell(43008)
  528.     player:LearnSpell(45438)
  529.     player:LearnSpell(43024)
  530.     player:LearnSpell(43002)
  531.     player:LearnSpell(43046)
  532.     player:LearnSpell(42897)
  533.     player:LearnSpell(42914)
  534.     player:LearnSpell(66)
  535.     player:LearnSpell(58659)
  536.     player:LearnSpell(30449)
  537.     player:LearnSpell(42956)
  538.     player:LearnSpell(47610)
  539.     player:LearnSpell(61316)
  540.     player:LearnSpell(61024)
  541.     player:LearnSpell(55342)
  542.    
  543.         player:LearnSpell(53142)
  544.         if (player:GetTeam() < 1) then -- Alliance Portals
  545.             player:LearnSpell(32271)
  546.             player:LearnSpell(49359)
  547.             player:LearnSpell(3565)
  548.             player:LearnSpell(33690)
  549.             player:LearnSpell(3562)
  550.             player:LearnSpell(3561)
  551.             player:LearnSpell(11419)
  552.             player:LearnSpell(32266)
  553.             player:LearnSpell(11416)
  554.             player:LearnSpell(33691)
  555.             player:LearnSpell(11059)
  556.             player:LearnSpell(49360)
  557.         else -- Horde Portals
  558.             player:LearnSpell(3567)
  559.             player:LearnSpell(35715)
  560.             player:LearnSpell(3566)
  561.             player:LearnSpell(49358)
  562.             player:LearnSpell(32272)
  563.             player:LearnSpell(3563)
  564.             player:LearnSpell(11417)
  565.             player:LearnSpell(35717)
  566.             player:LearnSpell(32267)
  567.             player:LearnSpell(49361)
  568.             player:LearnSpell(11420)
  569.             player:LearnSpell(11418)
  570.         end
  571.        
  572.     if (player:HasSpell(11366)) then
  573.     player:LearnSpell(42891)
  574.     end
  575.    
  576.     if (player:HasSpell(11426)) then
  577.     player:LearnSpell(43039)
  578.     end
  579.    
  580.     if (player:HasSpell(44457)) then
  581.     player:LearnSpell(55360)
  582.     end
  583.    
  584.     if (player:HasSpell(31661)) then
  585.     player:LearnSpell(42950)
  586.     end
  587.    
  588.     if (player:HasSpell(11113)) then
  589.     player:LearnSpell(42945)
  590.     end
  591.    
  592.     if (player:HasSpell(44425)) then
  593.     player:LearnSpell(44781)
  594.     end
  595.        
  596.     player:GossipComplete()
  597. end
  598.  
  599. if (intid == 9) then -- Warlock
  600.     player:LearnSpell(696)
  601.     player:LearnSpell(47811)
  602.     player:LearnSpell(47809)
  603.     player:LearnSpell(688)
  604.     player:LearnSpell(47813)
  605.     player:LearnSpell(50511)
  606.     player:LearnSpell(57946)
  607.     player:LearnSpell(47864)
  608.     player:LearnSpell(6215)
  609.     player:LearnSpell(47878)
  610.     player:LearnSpell(47855)
  611.     player:LearnSpell(697)
  612.     player:LearnSpell(47856)
  613.     player:LearnSpell(47857)
  614.     player:LearnSpell(5697)
  615.     player:LearnSpell(47884)
  616.     player:LearnSpell(47815)
  617.     player:LearnSpell(47889)
  618.     player:LearnSpell(47820)
  619.     player:LearnSpell(698)
  620.     player:LearnSpell(712)
  621.     player:LearnSpell(126)
  622.     player:LearnSpell(5138)
  623.     player:LearnSpell(5500)
  624.     player:LearnSpell(11719)
  625.     player:LearnSpell(132)
  626.     player:LearnSpell(60220)
  627.     player:LearnSpell(18647)
  628.     player:LearnSpell(61191)
  629.     player:LearnSpell(47823)
  630.     player:LearnSpell(691)
  631.     player:LearnSpell(47865)
  632.     player:LearnSpell(47891)
  633.     player:LearnSpell(47888)
  634.     player:LearnSpell(17928)
  635.     player:LearnSpell(47860)
  636.     player:LearnSpell(47825)
  637.     player:LearnSpell(1122)
  638.     player:LearnSpell(47867)
  639.     player:LearnSpell(18540)
  640.     player:LearnSpell(47893)
  641.     player:LearnSpell(47838)
  642.     player:LearnSpell(29858)
  643.     player:LearnSpell(58887)
  644.     player:LearnSpell(47836)
  645.     player:LearnSpell(61290)
  646.     player:LearnSpell(48018)
  647.     player:LearnSpell(48020)
  648.     player:LearnSpell(33388)
  649.     player:LearnSpell(33391)
  650.     player:LearnSpell(23161)
  651.    
  652.     if (player:HasSpell(17877)) then
  653.     player:LearnSpell(47827)
  654.     end
  655.    
  656.     if (player:HasSpell(30283)) then
  657.     player:LearnSpell(47847)
  658.     end
  659.    
  660.     if (player:HasSpell(30108)) then
  661.     player:LearnSpell(47843)
  662.     end
  663.    
  664.     if (player:HasSpell(50796)) then
  665.     player:LearnSpell(59172)
  666.     end
  667.    
  668.     if (player:HasSpell(48181)) then
  669.     player:LearnSpell(59164)
  670.     end
  671.    
  672.     if (player:HasSpell(18220)) then
  673.     player:LearnSpell(59092)
  674.     end
  675.    
  676.     player:GossipComplete()
  677. end
  678.  
  679. if (intid == 10) then -- Druid
  680.     player:LearnSpell(48378)
  681.     player:LearnSpell(48469)
  682.     player:LearnSpell(48461)
  683.     player:LearnSpell(48463)
  684.     player:LearnSpell(48441)
  685.     player:LearnSpell(53307)
  686.     player:LearnSpell(53308)
  687.     player:LearnSpell(5487)
  688.     player:LearnSpell(48560)
  689.     player:LearnSpell(6795)
  690.     player:LearnSpell(48480)
  691.     player:LearnSpell(53312)
  692.     player:LearnSpell(18960)
  693.     player:LearnSpell(5229)
  694.     player:LearnSpell(48443)
  695.     player:LearnSpell(50763)
  696.     player:LearnSpell(8983)
  697.     player:LearnSpell(8946)
  698.     player:LearnSpell(1066)
  699.     player:LearnSpell(48562)
  700.     player:LearnSpell(783)
  701.     player:LearnSpell(770)
  702.     player:LearnSpell(16857)
  703.     player:LearnSpell(18658)
  704.     player:LearnSpell(768)
  705.     player:LearnSpell(1082)
  706.     player:LearnSpell(16979)
  707.     player:LearnSpell(49376)
  708.     player:LearnSpell(5215)
  709.     player:LearnSpell(48477)
  710.     player:LearnSpell(49800)
  711.     player:LearnSpell(48465)
  712.     player:LearnSpell(48572)
  713.     player:LearnSpell(26995)
  714.     player:LearnSpell(48574)
  715.     player:LearnSpell(2782)
  716.     player:LearnSpell(50213)
  717.     player:LearnSpell(2893)
  718.     player:LearnSpell(33357)
  719.     player:LearnSpell(5209)
  720.     player:LearnSpell(48575)
  721.     player:LearnSpell(48447)
  722.     player:LearnSpell(48577)
  723.     player:LearnSpell(48579)
  724.     player:LearnSpell(5225)
  725.     player:LearnSpell(22842)
  726.     player:LearnSpell(49803)
  727.     player:LearnSpell(9634)
  728.     player:LearnSpell(20719)
  729.     player:LearnSpell(48467)
  730.     player:LearnSpell(29166)
  731.     player:LearnSpell(62600)
  732.     player:LearnSpell(22812)
  733.     player:LearnSpell(48470)
  734.     player:LearnSpell(48564)
  735.     player:LearnSpell(48566)
  736.     player:LearnSpell(33891)
  737.     player:LearnSpell(33943)
  738.     player:LearnSpell(49802)
  739.     player:LearnSpell(48451)
  740.     player:LearnSpell(48568)
  741.     player:LearnSpell(33786)
  742.     player:LearnSpell(40120)
  743.     player:LearnSpell(62078)
  744.     player:LearnSpell(52610)
  745.     player:LearnSpell(50464)
  746.     player:LearnSpell(48570)
  747.    
  748.     if (player:HasSpell(50516)) then
  749.     player:LearnSpell(61384)
  750.     end
  751.    
  752.     if (player:HasSpell(48505)) then
  753.     player:LearnSpell(53201)
  754.     end
  755.    
  756.     if (player:HasSpell(48438)) then
  757.     player:LearnSpell(53251)
  758.     end
  759.    
  760.     if (player:HasSpell(5570)) then
  761.     player:LearnSpell(48468)
  762.     end
  763.    
  764.     player:GossipComplete()
  765. end
  766.  
  767. if (intid == 11) then
  768.     player:ResetTalents()
  769.     player:GossipComplete()
  770. end
  771.  
  772. if (intid == 999) then
  773.     player:GossipComplete()
  774. end
  775. end
  776. RegisterUnitGossipEvent(80102, 1, "On_Gossip")
  777. RegisterUnitGossipEvent(80102, 2, "On_Select")
Advertisement
Add Comment
Please, Sign In to add comment