Advertisement
Sinistah

[NPC] Ultimate Trainer

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