Advertisement
Sinistah

[ITEM] Ultimate Trainer

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