Advertisement
Xsniper1000

HS - MODIFICATION

Apr 12th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.63 KB | None | 0 0
  1. function WarpNPC_OnGossipTalk(pUnit, event, player, pMisc)
  2. if (player:IsInCombat() == true) then
  3. player:SendAreaTriggerMessage("Can't use in combat!")
  4. else
  5. pUnit:GossipCreateMenu(3544, player, 0)
  6. local race=player:GetPlayerRace()
  7. if race==1 or race==3 or race==4 or race==7 or race==11 then
  8. pUnit:GossipMenuAddItem(8, "|cFFFF0000Main City teleport", 3, 0)
  9. end
  10. local race=player:GetPlayerRace()
  11. if race==2 or race==5 or race==6 or race==8 or race==10 then
  12. pUnit:GossipMenuAddItem(8, "|cFFFF0000[Main City Teleport]", 1, 0)
  13. end
  14. pUnit:GossipMenuAddItem(1, "|cFFFF00FF[Mall&Task Area]", 4, 0)
  15. pUnit:GossipMenuAddItem(7, "|cFF0033CC[Boss Fight Transfer]", 5, 0)
  16. pUnit:GossipMenuAddItem(0, "|cFF993300[Arena]", 6, 0)
  17. pUnit:GossipMenuAddItem(6, "|cFF00FF00[Leveling Roads]", 7, 0)
  18. pUnit:GossipMenuAddItem(4, "|cff00CC99[Update Skill]", 2000, 0)
  19. pUnit:GossipMenuAddItem(4, "|cffFFFFFF[Reset Talents]", 3000, 0)
  20. pUnit:GossipMenuAddItem(10, "|cFF999999[Ress]", 2, 0)
  21. pUnit:GossipSendMenu(player)
  22. end
  23. end
  24.  
  25. function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code)
  26. if(intid == 1) then
  27. pUnit:GossipCreateMenu(51, player, 0)
  28. pUnit:GossipMenuAddItem(4, "|cFFFF0000[Orgrimmar]", 10, 0)
  29. pUnit:GossipMenuAddItem(4, "|cFFFF0000[Undercity]", 11, 0)
  30. pUnit:GossipMenuAddItem(4, "|cFFFF0000[Thunder Bluff]", 12, 0)
  31. pUnit:GossipMenuAddItem(4, "|cFFFF0000[Silvermoon]", 13, 0)
  32. pUnit:GossipSendMenu(player)
  33. end
  34.  
  35. if(intid == 3) then
  36. pUnit:GossipCreateMenu(52, player, 0)
  37. pUnit:GossipMenuAddItem(4, "|cFF0033FF[Stormwind]", 14, 0)
  38. pUnit:GossipMenuAddItem(4, "|cFF0033FF[Ironforge]", 15, 0)
  39. pUnit:GossipMenuAddItem(4, "|cFF0033FF[Darnassus]", 16, 0)
  40. pUnit:GossipMenuAddItem(4, "|cFF0033FF[Exodar]", 17, 0)
  41. pUnit:GossipSendMenu(player)
  42. end
  43.  
  44. if(intid == 5) then
  45. pUnit:GossipCreateMenu(56, player, 0)
  46. pUnit:GossipMenuAddItem(1, "|cFFFF0000[Arena Bosses]", 19, 0)
  47. pUnit:GossipMenuAddItem(3, "|cFFFF0000[(New)VOA Bosses]", 21, 0)
  48. pUnit:GossipMenuAddItem(3, "|cFFFF0000[ICC Bosses]", 22, 0)
  49. pUnit:GossipMenuAddItem(8, "|cFFFF0000[Tanaris Bosses]", 23, 0)
  50. pUnit:GossipMenuAddItem(7, "|cFFFF0000[Durnholde Bosses]", 24, 0)
  51. pUnit:GossipMenuAddItem(7, "|cFFFF0000[GMisland]", 25, 0)
  52. pUnit:GossipSendMenu(player)
  53. end
  54.  
  55. if(intid == 7) then
  56. pUnit:GossipCreateMenu(58, player, 0)
  57. pUnit:GossipMenuAddItem(2, "|cFF008000[1-70]", 41, 0)
  58. pUnit:GossipMenuAddItem(2, "|cFF008000[70-95]", 430, 0)
  59. pUnit:GossipSendMenu(player)
  60. end
  61.  
  62.  
  63. if(intid == 4) then
  64. player:Teleport(0, 261.147949, -2754.336914, 122.551956)
  65. end
  66.  
  67. if(intid == 6) then
  68. player:Teleport(0, -13224.389648, 235.179276, 33.446323)
  69. end
  70.  
  71. if(intid == 10) then
  72. player:Teleport(1, 1484, -4417, 25)
  73. end
  74.  
  75. if(intid == 11) then
  76. player:Teleport(0, 1831, 238, 60)
  77. end
  78.  
  79. if(intid == 12) then
  80. player:Teleport(1, -1277, 118, 131)
  81. end
  82.  
  83. if(intid == 13) then
  84. player:Teleport(530, 9413, -7277, 14)
  85. end
  86.  
  87. if(intid == 14) then
  88. player:Teleport(0, -8913.23, 554.633, 94.7944)
  89. end
  90.  
  91. if(intid == 15) then
  92. player:Teleport(0, -4981.25, -881.542, 502.66)
  93. end
  94.  
  95. if(intid == 16) then
  96. player:Teleport(1, 9948, 2413, 1327)
  97. end
  98.  
  99. if(intid == 17) then
  100. player:Teleport(530, -4014.080078, -11895.799805, -1.990842)
  101. end
  102.  
  103. if(intid == 19) then
  104. player:Teleport(0, -13224.389648, 235.179276, 33.446323)
  105. end
  106.  
  107. if(intid == 21) then
  108. player:Teleport(571, 5483.257324, 2840.446289, 419.170929)
  109. end
  110.  
  111.  
  112. if(intid == 22) then
  113. player:Teleport(571, 5804.397461, 2077.846436, 636.064026)
  114. end
  115.  
  116. if(intid == 23) then
  117. player:Teleport(1, -7083.559570, -3796.527100, 8.575035)
  118. end
  119.  
  120. if(intid == 25) then
  121. player:Teleport(1, 16222.599609, 16265.900391, 13.208698)
  122. end
  123.  
  124. if(intid == 24) then
  125. player:Teleport(0, -658.853943, -1355.948975, 69.602150)
  126. end
  127.  
  128. if(intid == 41) then
  129. player:Teleport(1, 4636.985352, -3819.007568, 942.851318)
  130. end
  131.  
  132. if(intid == 2000) then
  133.         if (PlayerClass == "Death Knight") then
  134.             pUnit:FullCastSpellOnTarget(201, player)
  135.             player:LearnSpell(202)
  136.             player:LearnSpell(196)
  137.             player:LearnSpell(197)
  138.             player:LearnSpell(200)
  139.             player:LearnSpell(198)
  140.             player:LearnSpell(199)
  141.             player:LearnSpell(53428)
  142.         elseif (PlayerClass == "Druid") then
  143.             player:LearnSpell(227)
  144.             player:LearnSpell(200)
  145.             player:LearnSpell(198)
  146.             player:LearnSpell(199)
  147.             player:LearnSpell(1180)
  148.         elseif (PlayerClass == "Hunter") then
  149.             player:LearnSpell(201)
  150.             player:LearnSpell(202)
  151.             player:LearnSpell(196)
  152.             player:LearnSpell(197)
  153.             player:LearnSpell(227)
  154.             player:LearnSpell(200)
  155.             player:LearnSpell(266)
  156.             player:LearnSpell(264)
  157.             player:LearnSpell(5011)
  158.             player:LearnSpell(3018)
  159.             player:LearnSpell(1180)
  160.         elseif (PlayerClass == "Mage") then
  161.             player:LearnSpell(201)
  162.             player:LearnSpell(227)
  163.             player:LearnSpell(1180)
  164.             player:LearnSpell(5009)
  165.             player:LearnSpell(5019)
  166.         elseif (PlayerClass == "Paladin") then
  167.             player:LearnSpell(201)
  168.             player:LearnSpell(202)
  169.             player:LearnSpell(196)
  170.             player:LearnSpell(197)
  171.             player:LearnSpell(200)
  172.             player:LearnSpell(198)
  173.             player:LearnSpell(199)
  174.         elseif (PlayerClass == "Priest") then
  175.             player:LearnSpell(227)
  176.             player:LearnSpell(198)
  177.             player:LearnSpell(1180)
  178.             player:LearnSpell(5009)
  179.             player:LearnSpell(5019)
  180.         elseif (PlayerClass == "Rogue") then
  181.             player:LearnSpell(201)
  182.             player:LearnSpell(196)
  183.             player:LearnSpell(266)
  184.             player:LearnSpell(264)
  185.             player:LearnSpell(5011)
  186.             player:LearnSpell(3018)
  187.             player:LearnSpell(198)
  188.             player:LearnSpell(1180)
  189.             player:LearnSpell(2567)
  190.             player:LearnSpell(2764)
  191.         elseif (PlayerClass == "Shaman") then
  192.             player:LearnSpell(196)
  193.             player:LearnSpell(197)
  194.             player:LearnSpell(227)
  195.             player:LearnSpell(198)
  196.             player:LearnSpell(199)
  197.             player:LearnSpell(1180)
  198.         elseif (PlayerClass == "Warlock") then
  199.             player:LearnSpell(201)
  200.             player:LearnSpell(227)
  201.             player:LearnSpell(1180)
  202.             player:LearnSpell(5009)
  203.             player:LearnSpell(5019)
  204.         elseif (PlayerClass == "Warrior") then
  205.             player:LearnSpell(264)
  206.             player:LearnSpell(266)
  207.             player:LearnSpell(202)
  208.             player:LearnSpell(196)
  209.             player:LearnSpell(197)
  210.             player:LearnSpell(227)
  211.             player:LearnSpell(200)
  212.             player:LearnSpell(266)
  213.             player:LearnSpell(264)
  214.             player:LearnSpell(5011)
  215.             player:LearnSpell(3018)
  216.             player:LearnSpell(198)
  217.             player:LearnSpell(199)
  218.             player:LearnSpell(1180)
  219.             player:LearnSpell(2567)
  220.             player:LearnSpell(2764)
  221.     end
  222.     player:AdvanceSkill(43, 1000)
  223.     player:AdvanceSkill(44, 1000)
  224.     player:AdvanceSkill(45, 1000)
  225.     player:AdvanceSkill(46, 1000)
  226.     player:AdvanceSkill(54, 1000)
  227.     player:AdvanceSkill(55, 1000)
  228.     player:AdvanceSkill(95, 1000)
  229.     player:AdvanceSkill(136, 1000)
  230.     player:AdvanceSkill(160, 1000)
  231.     player:AdvanceSkill(162, 1000)
  232.     player:AdvanceSkill(172, 1000)
  233.     player:AdvanceSkill(173, 1000)
  234.     player:AdvanceSkill(176, 1000)
  235.     player:AdvanceSkill(226, 1000)
  236.     player:AdvanceSkill(228, 1000)
  237.     player:AdvanceSkill(229, 1000)
  238.     player:AdvanceSkill(473, 1000)
  239.     player:AdvanceSkill(164, 1000)
  240.     player:AdvanceSkill(165, 1000)
  241.     player:AdvanceSkill(171, 1000)
  242.     player:AdvanceSkill(182, 1000)
  243.     player:AdvanceSkill(186, 1000)
  244.     player:AdvanceSkill(197, 1000)
  245.     player:AdvanceSkill(202, 1000)
  246.     player:AdvanceSkill(333, 1000)
  247.     player:AdvanceSkill(393, 1000)
  248.     player:AdvanceSkill(755, 1000)
  249.     player:AdvanceSkill(773, 1000)
  250.     player:AdvanceSkill(129, 1000)
  251.     player:AdvanceSkill(185, 1000)
  252.     player:AdvanceSkill(356, 1000)
  253. player:FullCastSpell(33389)
  254. player:FullCastSpell(33392)
  255. player:FullCastSpell(34092)
  256. player:FullCastSpell(34093)
  257. player:FullCastSpell(54198)
  258. pUnit:GossipCreateMenu(100005, player, 0)
  259. pUnit:GossipMenuAddItem(8, "[Skills maxed]", 75, 0)
  260. pUnit:GossipSendMenu(player)
  261. end
  262.  
  263. if(intid == 3000) then
  264. player:GossipComplete()
  265. player:GossipMiscAction(9, player, 1)
  266. end
  267.  
  268. if(intid == 999) then
  269. player:GossipComplete()
  270. end
  271.  
  272. if(intid == 430) then
  273. player:Teleport(1, -6216.014160, -3904.442627, -60.429264)
  274. end
  275. end
  276.  
  277. RegisterItemGossipEvent(6948, 1, "WarpNPC_OnGossipTalk")
  278. RegisterItemGossipEvent(6948, 2, "WarpNPC_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement