Advertisement
Cast-Bound

Class Trainer

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