midoking

global trainer

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