Guest User

Class trainer

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