Guest User

Class Trainer, with fee

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