Advertisement
Guest User

Untitled

a guest
Mar 12th, 2010
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 28.54 KB | None | 0 0
  1. --[[
  2.  
  3.     All-in-One NPC v2
  4.     Scripted by: Hiro (Arumai if on WoW-V)
  5.     Release Date: 3/12/10
  6.  
  7. ]]
  8.  
  9. --[[
  10.  
  11.     Please remember to plug in the coordinates of the server's mall
  12.     and the NPC ID of the NPC that you will be using.
  13.  
  14.     Enjoy!
  15.  
  16. ]]
  17.  
  18.  
  19.  
  20. --------------------------------------------------------Main Variables----------------------------------------------
  21.  
  22. AIO = {}
  23.  
  24. local NPC_ID = 100003
  25. local allyandhordemalls = 0 --Set this to 1 if you have alliance and horde malls
  26. local instancetele = 1 --Set this to 0 only if you dont want players to have access to instances.
  27.  
  28. --Mall Coordinates (If you only have one mall, please change these coordinates.):
  29.  
  30. local map_id = 1
  31. local x = -9101.980469
  32. local y = 1612.902832
  33. local z = 21
  34.  
  35. --If you have more than one mall (Alliance and Horde), please change:
  36.  
  37. --Alliance Mall Coordinates
  38.  
  39. local allymap_id = 1
  40. local ally_x = -9101.980469
  41. local ally_y = 1612.902832
  42. local ally_z = 21
  43.  
  44. --Horde Mall Coordinates
  45.  
  46. local hordemap_id = 1
  47. local horde_x = -9101.980469
  48. local horde_y = 1612.902832
  49. local horde_z = 21
  50.  
  51. -----------------------------------------------------End Of Main Varaibles--------------------------------------
  52.  
  53. function AIO.OnTalk(Unit, Event, player)
  54.     Unit:GossipCreateMenu(100, player, 0)
  55.     Unit:GossipMenuAddItem(2, "Teleport me to the mall.", 1, 0)
  56.     Unit:GossipMenuAddItem(4, "Remove Resurrection Sickness.", 2, 0)
  57.     Unit:GossipMenuAddItem(3, "Max out all skills.", 3, 0)
  58.     Unit:GossipMenuAddItem(3, "Teach me my class spells.", 4, 0)
  59.     Unit:GossipMenuAddItem(4, "Reset Talents.", 5, 0)
  60.     Unit:GossipMenuAddItem(4, "Buff me.", 6, 0)
  61.     Unit:GossipMenuAddItem(4, "Heal me.", 7, 0)
  62.     Unit:GossipMenuAddItem(7, "More Options.", 8, 0)
  63.     Unit:GossipMenuAddItem(7, "Never mind.", 999, 0)
  64.     Unit:GossipSendMenu(player)
  65. end
  66.  
  67. function AIO.OnSelect(Unit, Event, player, id, intid, code, pMisc)
  68.     if (intid == 1) then
  69.         Unit:GossipCreateMenu(100, player, 0)
  70.         Unit:GossipMenuAddItem(2, "Alliance Locations", 101, 0)
  71.         Unit:GossipMenuAddItem(2, "Horde Locations", 102, 0)
  72.         if (morethan1mall ~= 1) then
  73.             Unit:GossipMenuAddItem(2, "Mall", 77, 0)
  74.         end
  75.         if (instancetele == 1) then
  76.             Unit:GossipMenuAddItem(2, "Instances", 103, 0)
  77.         end
  78.         Unit:GossipMenuAddItem(7, "Main Menu", 777, 0)
  79.         Unit:GossipSendMenu(player)
  80.     end
  81.     if (intid == 2) then
  82.         if (player:HasAura(15007) == true) then
  83.             player:SendBroadcastMessage("Resurrection Sickness has been removed. Enjoy!")
  84.             player:RemoveAura(15007)
  85.             player:GossipComplete()
  86.         else
  87.             player:SendBroadcastMessage("You do not have Resurrection Sickness!")
  88.             player:GossipComplete()
  89.         end
  90.     end
  91.     if (intid == 3) then
  92.         player:AdvanceSkill(43, 399)  --Maxes out the skills
  93.         player:AdvanceSkill(44, 399)
  94.         player:AdvanceSkill(45, 399)
  95.         player:AdvanceSkill(46, 399)
  96.         player:AdvanceSkill(54, 399)
  97.         player:AdvanceSkill(55, 399)
  98.         player:AdvanceSkill(95, 399)
  99.         player:AdvanceSkill(136, 399)
  100.         player:AdvanceSkill(160, 399)
  101.         player:AdvanceSkill(162, 399)
  102.         player:AdvanceSkill(172, 399)
  103.         player:AdvanceSkill(173, 399)
  104.         player:AdvanceSkill(176, 399)
  105.         player:AdvanceSkill(226, 399)
  106.         player:AdvanceSkill(228, 399)
  107.         player:AdvanceSkill(229, 399)
  108.         player:AdvanceSkill(473, 399)
  109.         player:AdvanceSkill(164, 449)
  110.         player:AdvanceSkill(165, 449)
  111.         player:AdvanceSkill(171, 449)
  112.         player:AdvanceSkill(182, 449)
  113.         player:AdvanceSkill(186, 449)
  114.         player:AdvanceSkill(197, 449)
  115.         player:AdvanceSkill(202, 449)
  116.         player:AdvanceSkill(333, 449)
  117.         player:AdvanceSkill(393, 449)
  118.         player:AdvanceSkill(755, 449)
  119.         player:AdvanceSkill(773, 449)
  120.         player:AdvanceSkill(129, 449)
  121.         player:AdvanceSkill(185, 449)
  122.         player:AdvanceSkill(356, 449)
  123.         player:SendBroadcastMessage("You have maxed out all skills!")
  124.         player:GossipComplete()
  125.     end
  126.     if (intid == 4) then --Learn class spells
  127.         local warrior = {47436, 18499, 2458, 1161, 11578, 47520, 47440, 47437, 676, 55694, 47471, 1715, 47450, 20252, 57755, 3411, 5246, 694, 7384, 6552, 1719, 47471, 20230, 57823, 64382, 72, 2565, 47488, 871, 47475, 23920, 12678, 355, 47502, 34428, 1680}
  128.         local paladin = {31884, 20217, 48936, 4987, 19746, 48810, 32223, 48942, 19752, 54428, 498, 642, 48801, 48947, 48785, 48945, 25898, 48934, 25899, 48938, 10308, 48806, 1044, 10278, 62124, 6940, 1038, 48782, 48817, 53407, 20271, 53408, 48788, 1152, 48950, 31789, 25780, 53601, 20164, 20165, 21084, 20166, 48943, 5502, 61411, 10326}
  129.         local hunter = {49045, 13161, 5118, 61847, 27044, 13163, 13159, 34074, 49071, 883, 5116, 19263, 781, 2641, 20736, 6197, 49067, 1002, 6991, 5384, 1543, 14311, 13809, 53338, 49056, 34026, 61006, 53271, 48990, 34477, 53339, 49048, 3045, 48996, 982, 14327, 3043, 49001, 49052, 1515, 1494, 19878, 19879, 19880, 19882, 19885, 19883, 19884, 19801, 3034, 58434, 2974}
  130.         local rogue = {48691, 48657, 2094, 1833, 31224, 48674, 2836, 1842, 51722, 1725, 57993, 26669, 48668, 8647, 51723, 48659, 48676, 1776, 1766, 8643, 1804, 921, 48672, 1860, 51724, 5938, 48638, 6774, 11305, 1787, 57934, 26889}
  131.         local priest = {528, 48120, 528, 48300, 988, 64843, 48073, 586, 6346, 48071, 48063, 6064, 48135, 48078, 64901, 48168, 2053, 1706, 8129, 32375, 48127, 605, 53023, 453, 10909, 48161, 48066, 48162, 48072, 48113, 48170, 48074, 10890, 48068, 48171, 10955, 48169, 48158, 48125, 34433, 48123}
  132.         local Death_Knight = {48707, 49941, 49930, 45529, 45524, 56222, 49938, 62904, 50977, 48743, 49924, 47568, 48263, 57623, 48792, 49909, 47528, 51425, 3714, 50842, 49221, 61999, 46584, 56815, 53428, 47476, 48265}
  133.         local shaman = {49277, 556, 66843, 66842, 66844, 55459, 49271, 8170, 526, 2062, 49231, 2484, 51994, 6196, 2894, 61657, 58739, 49223, 58656, 58790, 58745, 49236, 58796, 2645, 8177, 58757, 49273, 51514, 60043, 49276, 49238, 49281, 58734, 58774, 58749, 8012, 20608, 10399, 58704, 6495, 58582, 58753, 58643, 8143, 131, 57960, 546, 57994, 8512, 58804}
  134.         local mage = {43017, 42897, 43002, 42921, 42995, 42846, 1953, 42940, 42931, 33717, 42985, 42956, 27090, 2139, 61316, 61024, 43015, 12051, 42873, 43010, 42833, 42926, 7301, 42917, 43012, 42842, 47610, 43008, 42914, 66, 43024, 43020, 55342, 43046, 12826, 61305, 28272, 61721, 61780, 28271, 53142, 475, 58659, 42859, 130, 30449, 53140}
  135.         local warlock = {60220, 47884, 47888, 18647, 47813, 47878, 47864, 47867, 11719, 50511, 47865, 47860, 47889, 696, 48018, 48020, 132, 47857, 5138, 47855, 61191, 126, 6215, 47893, 47856, 47823, 17928, 47811, 47838, 57946, 6219, 47820, 18540, 58887, 698, 47815, 47836, 5500, 47809, 47891, 61290, 47825, 29858, 691, 698, 712, 697, 5697}
  136.         local druid = {2893, 1066, 22812, 8983, 768, 5209, 48570, 48575, 8946, 33786, 33357, 48560, 9634, 5229, 53308, 770, 16857, 20719, 16979, 49376, 48577, 33943, 22842, 48470, 6795, 48378, 18658, 48467, 29166, 48568, 48451, 49802, 48564, 48566, 48469, 48480, 48463, 53312, 50464, 49803, 9913, 48574, 48579, 48477, 48443, 48441, 2782, 50763, 49800, 62600, 52610, 48572, 26995, 48465, 40120, 48562, 62078, 18960, 53307, 50213, 5225, 48447, 783, 48461}
  137.         local class = player:GetPlayerClass()
  138.         local race = player:GetPlayerRace()
  139.         if (class == "Warrior") then
  140.             player:LearnSpells(warrior)
  141.         elseif (class == "Paladin") then
  142.             player:LearnSpells(paladin)
  143.         elseif (class == "Hunter") then
  144.             player:LearnSpells(hunter)
  145.         elseif (class == "Rogue") then
  146.             player:LearnSpells(rogue)
  147.         elseif (class == "Priest") then
  148.             player:LearnSpells(priest)
  149.         elseif (class == "Death Knight") then
  150.             player:LearnSpells(Death_Knight)
  151.         elseif (class == "Shaman") then
  152.             player:LearnSpells(shaman)
  153.             if (race == 2 or race == 6 or race == 8) then
  154.                 player:LearnSpell(2825)
  155.             elseif (race == 11) then
  156.                 player:LearnSpell(32182)
  157.             end
  158.         elseif (class == "Mage") then
  159.             player:LearnSpells(mage)
  160.             if (race == 1 or race == 3 or race == 4 or race == 7 or race == 11) then
  161.                 player:LearnSpell(3565)
  162.                 player:LearnSpell(32271)
  163.                 player:LearnSpell(3562)
  164.                 player:LearnSpell(33690)
  165.                 player:LearnSpell(3561)
  166.                 player:LearnSpell(49359)
  167.             elseif (race == 2 or race == 5 or race == 6 or race == 8 or race == 10) then
  168.                 player:LearnSpell(3567)
  169.                 player:LearnSpell(35715)
  170.                 player:LearnSpell(32272)
  171.                 player:LearnSpell(49358)
  172.                 player:LearnSpell(3566)
  173.                 player:LearnSpell(3563)
  174.             end
  175.         elseif (class == "Warlock") then
  176.             player:LearnSpells(warlock)
  177.         elseif (class == "Druid") then
  178.             player:LearnSpells(druid)
  179.         end
  180.         player:SendBroadcastMessage("All class spells taught!")
  181.         player:GossipComplete()
  182.     end
  183.     if (intid == 5) then
  184.         player:ResetTalents()
  185.         player:SendBroadcastMessage("All talents have been reset!")
  186.         player:GossipComplete()
  187.     end
  188.     if (intid == 6) then
  189.         Unit:FullCastSpellOnTarget(48102, player)
  190.         Unit:FullCastSpellOnTarget(58449, player)
  191.         Unit:FullCastSpellOnTarget(48104, player)
  192.         Unit:FullCastSpellOnTarget(58451, player)
  193.         Unit:FullCastSpellOnTarget(48100, player)
  194.         player:SendBroadcastMessage("Enjoy your buffs!")
  195.         player:GossipComplete()
  196.     end
  197.     if (intid == 7) then
  198.         if (player:GetHealthPct() < 100) then
  199.             player:SetHealthPct(100)
  200.             player:GossipComplete()
  201.         else
  202.             player:SendBroadcastMessage("You are already at full health!")
  203.             player:GossipComplete()
  204.         end
  205.     end
  206.     if (intid == 8) then
  207.         Unit:GossipCreateMenu(100, player, 0)
  208.         Unit:GossipMenuAddItem(3, "Teach me how to ride mounts.", 9, 0)
  209.         Unit:GossipMenuAddItem(3, "Exalt me with all factions.", 10, 0)
  210.         Unit:GossipMenuAddItem(5, "Change my weather.", 11, 0)
  211.         Unit:GossipMenuAddItem(4, "I want to hear some music.",  12, 1)
  212.         Unit:GossipMenuAddItem(3, "Teach me all professions.", 35, 0)
  213.         Unit:GossipMenuAddItem(4, "Bind me to this location", 80, 0)
  214.         Unit:GossipMenuAddItem(4, "Morph me!", 81, 0)
  215.         Unit:GossipMenuAddItem(7, "Main Menu", 777, 0)
  216.         Unit:GossipSendMenu(player)
  217.     end
  218.     if (intid == 9) then
  219.         local mounts_A_G = {48778, 60025, 43688, 16056, 66906, 63844, 67466, 66907, 61230, 60114, 60116, 61229, 59567, 40192, 41514, 51412, 58983, 71342, 22719, 59650, 35022, 16055, 59976, 26656, 17461, 64977, 470, 60118, 48027, 22718, 59785, 22720, 22721, 22717, 22723, 22724, 64658, 72808, 61996, 59568, 35020, 10969, 59996, 25953, 39803, 17463, 64656, 32244, 50869, 43899, 59569, 34406, 458, 18990, 6899, 17464, 6654, 58615, 43927, 23214, 6648, 41515, 39315, 34896, 73313, 68188, 68187, 39316, 34790, 63635, 63637, 64927, 6653, 23161, 32239, 8395, 63639, 5784, 36702, 61451, 44153, 63643, 17460, 23509, 65439, 63638, 32235, 61465, 61469, 35710, 18989, 6777, 35713, 49379, 23249, 65641}
  220.         local mounts_G_S = {23248, 35712, 35714, 563723247, 18991, 17453, 61294, 26056, 39798, 17465, 32245, 48025, 59797, 72807, 17459, 72286, 63956, 63636, 17450, 65917, 61309, 60424, 44744, 63796, 16084, 66846, 41513, 69395, 63640, 16082, 32345, 472, 60021, 35711, 35018, 41516, 39801, 23246, 66090, 41252, 61997, 59570, 34795, 10873, 59961, 26054, 39800, 17462, 22722, 16080, 67336, 30174, 17481, 63963, 64731, 66087, 39802, 39317, 34898, 63642, 32240, 42276, 10789, 23510, 63232, 66847, 8394, 10793, 34769, 66088, 66091, 68057, 32242, 23241, 43900, 23238, 23229, 23250, 65646,23221, 23239, 65640, 23252, 32290, 35025, 23225, 32295, 68056, 23219, 65638, 37015, 23242, 23243, 23227}
  221.         local mounts_S_Y = {33660, 32292, 35027, 65644, 32297, 24242, 32289, 65639, 32246, 42777, 23338, 23251, 65643, 35028, 46628, 23223, 23240, 23228, 23222, 32296, 49322, 24252, 39318, 34899, 32243, 18992, 63641, 580, 60002, 61425, 44151, 65642, 10796, 59571, 17454, 49153, 64659, 41517, 41518, 17454, 49193, 64659, 41517, 41518, 60024, 10799, 64657, 15779, 54753, 6898, 39319, 65645, 16083, 34897, 54729, 16081, 17229, 59791, 71810, 46197, 46199, 26055}
  222.         player:CastSpell(34093)
  223.         player:CastSpell(54198)
  224.         player:LearnSpells(mounts_A_G)
  225.         player:LearnSpells(mounts_G_S)
  226.         player:LearnSpells(mounts_S_Y)
  227.         player:SendBroadcastMessage("All mounts and mount riding skills obtained!")
  228.         player:GossipComplete()
  229.     end
  230.     if (intid == 10) then
  231.         local allyreps = {69, 930, 54, 47, 890, 730, 72, 509, 589, 1037, 1068, 1126, 1094, 1050}
  232.         local hordereps = {76, 530, 911, 729, 510, 947, 81, 576, 922, 68, 889, 1052, 1067, 1124, 1064, 1085, 729}
  233.         local neutralreps = {529, 1012, 87, 21, 910, 609, 942, 909, 577, 369, 92, 989, 978, 1011, 93, 1015, 1038, 470, 349, 1031, 809, 970, 70, 932, 933, 941, 990, 934, 935, 967, 59, 576, 270, 1077, 1106, 1104, 1090, 1098, 1156, 1073, 1105, 1119, 1091}
  234.         if (race == 1 or race == 3 or race == 4 or race == 7 or race == 11) then
  235.             for k, v in pairs(allyreps) do
  236.                 player:SetStanding(v, 999999)
  237.             end
  238.         elseif (race == 2 or race == 5 or race == 6 or race == 8 or race == 10) then
  239.             for k, v in pairs(hordereps) do
  240.                 player:SetStanding(v, 999999)
  241.             end
  242.         end
  243.         for k, v in pairs (neutralreps) do
  244.             player:SetStanding(v, 999999)
  245.         end
  246.         player:SendBroadcastMessage("Exalted with all factions!")
  247.         player:GossipComplete()
  248.     end
  249.     if (intid == 11) then
  250.         Unit:GossipCreateMenu(100, player, 0)
  251.         Unit:GossipMenuAddItem(4, "Sunny", 13, 0)
  252.         Unit:GossipMenuAddItem(4, "Foggy", 14, 0)
  253.         Unit:GossipMenuAddItem(4, "Rainy", 15, 0)
  254.         Unit:GossipMenuAddItem(4, "Snowy", 16, 0)
  255.         Unit:GossipMenuAddItem(7, "Back.", 8, 0)
  256.         Unit:GossipSendMenu(player)
  257.     end
  258.     if (intid == 12) then
  259.         if (code ~= nil) then
  260.             player:PlaySoundToPlayer(code) --Plays the sound, if something correct was entered.
  261.             player:SendBroadcastMessage("You should be hearing the sound you requested.")
  262.             player:SendBroadcastMessage("If you are not, please check the ID for the sound you are trying to hear.")
  263.             player:GossipComplete()
  264.         else --If nothing was entered, this will tell the user.
  265.             player:SendBroadcastMessage("You did not enter anything. Please try again!")
  266.             player:GossipComplete()
  267.         end
  268.     end
  269.     if (intid == 13) then
  270.         player:SetPlayerWeather(0, 1.5) --Sunny
  271.         player:SendBroadcastMessage("Its sunny now! Time to head to the beach!")
  272.         player:GossipComplete()
  273.     end
  274.     if (intid == 14) then
  275.         player:SetPlayerWeather(1, 1.5) --Foggy
  276.         player:SendBroadcastMessage("Its foggy now! You should try to get a flashlight!")
  277.         player:GossipComplete()
  278.     end
  279.     if (intid == 15) then
  280.         player:SetPlayerWeather(2, 1.5) --Rainy
  281.         player:SendBroadcastMessage("Its raining now! Quick, get an umbrella!")
  282.         player:GossipComplete()
  283.     end
  284.     if (intid == 16) then
  285.         player:SetPlayerWeather(8, 2.0) --Snowy
  286.         player:SendBroadcastMessage("Its snowing now! Get a coat before you freeze to death!")
  287.         player:GossipComplete()
  288.     end
  289.     if (intid == 35) then
  290.         local profs = {51313, 51304, 51300, 51306, 45363, 51311, 5102, 51310, 0305, 51309}
  291.         player:LearnSpells(profs)
  292.         player:GossipComplete()
  293.     end
  294.     if (intid == 77) then
  295.         player:Teleport(map_id, x, y, z)
  296.         player:GossipComplete()
  297.     end
  298.     if (intid == 80) then
  299.         local x = player:GetX()
  300.         local y = player:GetY()
  301.         local z = player:GetZ()
  302.         local map_id1 = player:GetMapId()
  303.         local zone_id = player:GetZoneId()
  304.         player:SetBindPoint(x, y-1.5, z, map_id1, zone_id)
  305.         player:SendBroadcastMessage("Bind location changed successfully!")
  306.         player:GossipComplete()
  307.     end
  308.     if (intid == 81) then
  309.         Unit:GossipCreateMenu(100, player, 0)
  310.         Unit:GossipMenuAddItem(4, "Morph me into a murloc!", 90, 0)
  311.         Unit:GossipMenuAddItem(4, "Morph me into Illidan", 91, 0)
  312.         Unit:GossipMenuAddItem(4, "Morph me into the Lich King!", 92, 0)
  313.         Unit:GossipMenuAddItem(4, "Morph me into Thrall!", 93, 0)
  314.         Unit:GossipMenuAddItem(4, "Morph me into Varian Wrynn!", 94, 0)
  315.         Unit:GossipMenuAddItem(4, "Morph me into a skeleton!", 95, 0)
  316.         Unit:GossipMenuAddItem(4, "Morph me into a dragon!", 96, 0)
  317.         Unit:GossipSendMenu(player)
  318.     end
  319.     if (intid == 90) then
  320.         player:SetModel(617)
  321.         player:GossipComplete()
  322.     end
  323.     if (intid == 91) then
  324.         player:SetModel(21135)
  325.         player:GossipComplete()
  326.     end
  327.     if (intid == 92) then
  328.         player:SetModel(24191)
  329.         player:GossipComplete()
  330.     end
  331.     if (intid == 93) then
  332.         player:SetModel(4527)
  333.         player:GossipComplete()
  334.     end
  335.     if (intid == 94) then
  336.         player:SetModel(28127)
  337.         player:GossipComplete()
  338.     end
  339.     if (intid == 95) then
  340.         player:SetModel(9786)
  341.         player:GossipComplete()
  342.     end
  343.     if (intid == 96) then
  344.         player:SetModel(1267)
  345.         player:GossipComplete()
  346.     end
  347.     if (intid == 101) then
  348.         Unit:GossipCreateMenu(100, player, 0)
  349.         Unit:GossipMenuAddItem(2, "Alliance Cities", 111, 0)
  350.         if (morethan1mall == 1) then
  351.             Unit:GossipMenuAddItem(2, "Alliance Mall", 112, 0)
  352.         end
  353.         Unit:GossipMenuAddItem(7, "Back.", 1, 0)
  354.         Unit:GossipSendMenu(player)
  355.     end
  356.     if (intid == 102) then
  357.         Unit:GossipCreateMenu(100, player, 0)
  358.         Unit:GossipMenuAddItem(2, "Horde Cities", 121, 0)
  359.         if (morethan1mall == 1) then
  360.             Unit:GossipMenuAddItem(2, "Horde Mall", 122, 0)
  361.         end
  362.         Unit:GossipMenuAddItem(7, "Back.", 1, 0)
  363.         Unit:GossipSendMenu(player)
  364.     end
  365.     if (intid == 103) then
  366.         Unit:GossipCreateMenu(100, player, 0)
  367.         Unit:GossipMenuAddItem(2, "Azeroth Instances", 150, 0)
  368.         Unit:GossipMenuAddItem(2, "Outland Instances", 151, 0)
  369.         Unit:GossipMenuAddItem(2, "Northrend Instances", 152, 0)
  370.         Unit:GossipMenuAddItem(7, "Back.", 1, 0)
  371.         Unit:GossipSendMenu(player)
  372.     end
  373.     if (intid == 111) then
  374.         Unit:GossipCreateMenu(100, player, 0)
  375.         Unit:GossipMenuAddItem(2, "Stormwind City", 131, 0)
  376.         Unit:GossipMenuAddItem(2, "Darnassus", 132, 0)
  377.         Unit:GossipMenuAddItem(2, "Ironforge", 133, 0)
  378.         Unit:GossipMenuAddItem(2, "The Exodar", 134, 0)
  379.         Unit:GossipMenuAddItem(7, "Back.", 101, 0)
  380.         Unit:GossipSendMenu(player)
  381.     end
  382.     if (intid == 112) then
  383.         player:Teleport(allymap_id, ally_x, ally_y, ally_z)
  384.         player:GossipComplete()
  385.     end
  386.     if (intid == 121) then
  387.         Unit:GossipCreateMenu(100, player, 0)
  388.         Unit:GossipMenuAddItem(2, "Orgrimmar", 141, 0)
  389.         Unit:GossipMenuAddItem(2, "Thunderbluff", 142 ,0)
  390.         Unit:GossipMenuAddItem(2, "Silvermoon City", 143, 0)
  391.         Unit:GossipMenuAddItem(2, "Undercity", 144, 0)
  392.         Unit:GossipMenuAddItem(7, "Back.", 102, 0)
  393.         Unit:GossipSendMenu(player)
  394.     end
  395.     if (intid == 122) then
  396.         player:Teleport(hordemap_id, horde_x, horde_y, horde_z)
  397.         player:GossipComplete()
  398.     end
  399.     if (intid == 131) then
  400.         player:Teleport(0, -8924.706055, 545.626953, 96.633163)
  401.         player:GossipComplete()
  402.     end
  403.     if (intid == 132) then
  404.         player:Teleport(1, 9951.519531, 2280.320068, 1341.390015)
  405.         player:GossipComplete()
  406.     end
  407.     if (intid == 133) then
  408.         player:Teleport(0, -4977.095215, -888.452942, 501.621216)
  409.         player:GossipComplete()
  410.     end
  411.     if (intid == 134) then
  412.         player:Teleport(530, -3987.566895, -11847.509766, -1.572268)
  413.         player:GossipComplete()
  414.     end
  415.     if (intid == 141) then
  416.         player:Teleport(1, 1500.200684, -4414.373047, 21.898052)
  417.         player:GossipComplete()
  418.     end
  419.     if (intid == 142) then
  420.         player:Teleport(1, -1196.219971, 29.094101, 176.949005)
  421.         player:GossipComplete()
  422.     end
  423.     if (intid == 143) then
  424.         player:Teleport(530, 9473.030273, -7279.669922, 14.228500)
  425.         player:GossipComplete()
  426.     end
  427.     if (intid == 144) then
  428.         player:Teleport(0, 1586.479980, 239.561996, -52.148998)
  429.         player:GossipComplete()
  430.     end
  431.     if (intid == 150) then
  432.         Unit:GossipCreateMenu(100, player, 0)
  433.         Unit:GossipMenuAddItem(2, "Dire Maul", 160, 0)
  434.         Unit:GossipMenuAddItem(2, "Deadmines", 161, 0)
  435.         Unit:GossipMenuAddItem(2, "LBRS", 162, 0)
  436.         Unit:GossipMenuAddItem(2, "Uldaman", 163, 0)
  437.         Unit:GossipMenuAddItem(2, "Scarlet Monastery", 164, 0)
  438.         Unit:GossipMenuAddItem(2, "Scholomance", 165, 0)
  439.         Unit:GossipMenuAddItem(2, "Shadowfang Keep", 166, 0)
  440.         Unit:GossipMenuAddItem(2, "Sunken Temple", 167, 0)
  441.         Unit:GossipMenuAddItem(2, "Zul'Farrak", 168, 0)
  442.         Unit:GossipMenuAddItem(2, "BRD", 200, 0)
  443.         Unit:GossipMenuAddItem(2, "Stratholme", 201, 0)
  444.         Unit:GossipMenuAddItem(2, "Magister's Terrace", 202, 0)
  445.         Unit:GossipMenuAddItem(2, "Azeroth Raids", 700, 0)
  446.         Unit:GossipMenuAddItem(7, "Back.", 103, 0)
  447.         Unit:GossipSendMenu(player)
  448.     end
  449.     if (intid == 151) then
  450.         Unit:GossipCreateMenu(100, player, 0)
  451.         Unit:GossipMenuAddItem(2, "Tempest Keep: The Arcatraz", 171, 0)
  452.         Unit:GossipMenuAddItem(2, "Hellfire Citadel: The Blood Furnace", 172, 0)
  453.         Unit:GossipMenuAddItem(2, "Hellfire Citadel: Hellfire Ramparts", 173, 0)
  454.         Unit:GossipMenuAddItem(2, "Auchindoun: Mana-Tombs", 174, 0)
  455.         Unit:GossipMenuAddItem(2, "Tempest Keep: The Mechanar", 175, 0)
  456.         Unit:GossipMenuAddItem(2, "Auchindoun: Sethekk Halls", 176, 0)
  457.         Unit:GossipMenuAddItem(2, "Auchindoun: Shadow Labyrinth", 177, 0)
  458.         Unit:GossipMenuAddItem(2, "Hellfire Citadel: Shattered Halls", 178, 0)
  459.         Unit:GossipMenuAddItem(2, "Hellfire Citadel: The Slave Pens", 179, 0)
  460.         Unit:GossipMenuAddItem(2, "Hellfire Citadel: Underbog", 180, 0)
  461.         Unit:GossipMenuAddItem(2, "Outland Raids", 800, 0)
  462.         Unit:GossipMenuAddItem(7, "Back.", 103, 0)
  463.         player:GossipSendMenu(player)
  464.     end
  465.     if (intid == 152) then
  466.         Unit:GossipCreateMenu(100, player, 0)
  467.         Unit:GossipMenuAddItem(2, "Azjol-Nerub", 181, 0)
  468.         Unit:GossipMenuAddItem(2, "Drak'tharon Keep", 182, 0)
  469.         Unit:GossipMenuAddItem(2, "Halls of Lightning", 183, 0)
  470.         Unit:GossipMenuAddItem(2, "Halls of Stone", 184, 0)
  471.         Unit:GossipMenuAddItem(2, "The Nexus", 185, 0)
  472.         Unit:GossipMenuAddItem(2, "The Oculus", 186, 0)
  473.         Unit:GossipMenuAddItem(2, "Utgarde Pinnacle", 187, 0)
  474.         Unit:GossipMenuAddItem(2, "The Violet Hold", 204, 0)
  475.         Unit:GossipMenuAddItem(2, "Northrend Raids", 900, 0)
  476.         Unit:GossipMenuAddItem(7, "Back.", 103, 0)
  477.         Unit:GossipSendMenu(player)
  478.     end
  479.     if (intid == 160) then
  480.         player:Teleport(429, 254.588, -24.7395, -1.56062)
  481.         player:GossipComplete()
  482.     end
  483.     if (intid == 161) then
  484.         player:Teleport(0, -11079.8, 1506.98, 42.9594)
  485.         player:GossipComplete()
  486.     end
  487.     if (intid == 162) then
  488.         player:Teleport(0, -7192.703125, -909.826538, 165.490250)
  489.         player:GossipComplete()
  490.     end
  491.     if (intid == 163) then
  492.         player:Teleport(70, -228.193, 46.1602, -45.0186)
  493.         player:GossipComplete()
  494.     end
  495.     if (intid == 164) then
  496.         player:Teleport(0, 2870.442627, -819.985229, 160.331085)
  497.         player:GossipComplete()
  498.     end
  499.     if (intid == 165) then
  500.         player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
  501.         player:GossipComplete()
  502.     end
  503.     if (intid == 166) then
  504.         player:Teleport(0, -234.495087, 1561.946411, 76.892143)
  505.         player:GossipComplete()
  506.     end
  507.     if (intid == 167) then
  508.         player:Teleport(0, -10349.1, -3849.67, -24.6078)
  509.         player:GossipComplete()
  510.     end
  511.     if (intid == 168) then
  512.         player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
  513.         player:GossipComplete()
  514.     end
  515.     if (intid == 171) then
  516.         player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
  517.         player:GossipComplete()
  518.     end
  519.     if (intid == 172) then
  520.         player:Teleport(530, -303.506012, 3164.820068, 31.742500)
  521.         player:GossipComplete()
  522.     end
  523.     if (intid == 173) then
  524.         player:Teleport(530, -360.670990, 3071.899902, -15.097700)
  525.         player:GossipComplete()
  526.     end
  527.     if (intid == 174) then
  528.         player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
  529.         player:GossipComplete()
  530.     end
  531.     if (intid == 175) then
  532.         player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
  533.         player:GossipComplete()
  534.     end
  535.     if (intid == 176) then
  536.         player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
  537.         player:GossipComplete()
  538.     end
  539.     if (intid == 177) then
  540.         player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
  541.         player:GossipComplete()
  542.     end
  543.     if (intid == 178) then
  544.         player:Teleport(530, -311.083527, 3083.291748, -3.745923)
  545.     end
  546.     if (intid == 179) then
  547.         player:Teleport(530, 719.507996, 6999.339844, -73.074303)
  548.         player:GossipComplete()
  549.     end
  550.     if (intid == 180) then
  551.         player:Teleport(530, 777.088989, 6763.450195, -72.062561)
  552.         player:GossipComplete()
  553.     end
  554.     if (intid == 181) then
  555.         player:Teleport(571, 3701.362305, 2153.350830, 36.178722)
  556.         player:GossipComplete()
  557.     end
  558.     if (intid == 182) then
  559.         player:Teleport(1, -8669.609375, -4396.958984, -207.080170)
  560.         player:GossipComplete()
  561.     end
  562.     if (intid == 183) then
  563.         player:Teleport(571, 9129.422852, -1337.422852, 1061.373635)
  564.         player:GossipComplete()
  565.     end
  566.     if (intid == 184) then
  567.         player:Teleport(571, 8922.276367, -978.684509, 1039.279663)
  568.         player:GossipComplete()
  569.     end
  570.     if (intid == 185) then
  571.         player:Teleport(571, 3869.806641, 6983.833984, 79.450546)
  572.         player:GossipComplete()
  573.     end
  574.     if (intid == 186) then
  575.         player:Teleport(571, 3880.103516, 6984.548828, 106.320435)
  576.         player:GossipComplete()
  577.     end
  578.     if (intid == 187) then
  579.         player:Teleport(571, 1251.779175, -4853.859375, 215.808105)
  580.         player:GossipComplete()
  581.     end
  582.     if (intid == 200) then
  583.         player:Teleport(230, 596.432, -188.498, -49)
  584.         player:GossipComplete()
  585.     end
  586.     if (intid == 201) then
  587.         player:Teleport(0, 3176.63, -4039.28, 106.464)
  588.         player:GossipComplete()
  589.     end
  590.     if (intid == 202) then
  591.         player:Teleport(585, 2.19347, -0.123698, -2.8025)
  592.         player:GossipComplete()
  593.     end
  594.     if (intid == 203) then
  595.         player:Teleport(530, 3606.85, 5260.49, 4.1724)
  596.         player:GossipComplete()
  597.     end
  598.     if (intid == 204) then
  599.         player:Teleport(571, 5691.224609, 499.975372, 652.684326)
  600.         player:GossipComplete()
  601.     end
  602.     if (intid == 700) then
  603.         Unit:GossipCreateMenu(100, player, 0)
  604.         Unit:GossipMenuAddItem(2, "Blackwing Lair", 701, 0)
  605.         Unit:GossipMenuAddItem(2, "Caverns of Time: Battle for Mount Hyjal", 702, 0)
  606.         Unit:GossipMenuAddItem(2, "Isle of Quel'Danas", 703, 0)
  607.         Unit:GossipMenuAddItem(2, "Karazhan", 704, 0)
  608.         Unit:GossipMenuAddItem(2, "Molten Core", 705, 0)
  609.         Unit:GossipMenuAddItem(2, "Onyxias Lair", 706, 0)
  610.         Unit:GossipMenuAddItem(2, "Ruins of Ahn'Qiraj", 707, 0)
  611.         Unit:GossipMenuAddItem(2, "Temple of Ahn'Qiraj", 708, 0)
  612.         Unit:GossipMenuAddItem(2, "Zul'Aman", 709, 0)
  613.         Unit:GossipMenuAddItem(2, "UBRS", 710, 0)
  614.         Unit:GossipMenuAddItem(7, "Back.", 150, 0)
  615.         Unit:GossipSendMenu(player)
  616.     end
  617.     if (intid == 701) then
  618.         player:Teleport(469, -7665.55, -1102.49, 400.679)
  619.         player:GossipComplete()
  620.     end
  621.     if (intid == 702) then
  622.         player:Teleport(1, -8177.5273, -4186.070801, -168.643433)
  623.         player:GossipComplete()
  624.     end
  625.     if (intid == 703) then
  626.         player:Teleport(530, 12956.072266, -6943.814453, 9.968110)
  627.         player:GossipComplete()
  628.     end
  629.     if (intid == 704) then
  630.         player:Teleport(0, -11127.669922, -2000.085083, 47.492638)
  631.         player:GossipComplete()
  632.     end
  633.     if (intid == 705) then
  634.         player:Teleport(409, 1089.6, -470.19, -106.41)
  635.         player:GossipComplete()
  636.     end
  637.     if (intid == 706) then
  638.         player:Teleport(1, -4706.542480, -3727.514648, 54.730026)
  639.         player:GossipComplete()
  640.     end
  641.     if (intid == 707) then
  642.         player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
  643.         player:GossipComplete()
  644.     end
  645.     if (intid == 708) then
  646.         player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
  647.         player:GossipComplete()
  648.     end
  649.     if (intid == 709) then
  650.         player:Teleport(530, 6850, -7950, 170)
  651.         player:GossipComplete()
  652.     end
  653.     if (intid == 777) then
  654.         Unit:GossipCreateMenu(100, player, 0)
  655.         Unit:GossipMenuAddItem(2, "Teleport me to the mall.", 1, 0)
  656.         Unit:GossipMenuAddItem(4, "Remove Resurrection Sickness.", 2, 0)
  657.         Unit:GossipMenuAddItem(3, "Max out all skills.", 3, 0)
  658.         Unit:GossipMenuAddItem(3, "Learn my class spells.", 4, 0)
  659.         Unit:GossipMenuAddItem(4, "Reset Talents.", 5, 0)
  660.         Unit:GossipMenuAddItem(4, "Buff me.", 6, 0)
  661.         Unit:GossipMenuAddItem(4, "Heal me.", 7, 0)
  662.         Unit:GossipMenuAddItem(7, "More Options.", 8, 0)
  663.         Unit:GossipMenuAddItem(7, "Never mind.", 999, 0)
  664.         Unit:GossipSendMenu(player)
  665.     end
  666.     if (intid == 800) then
  667.         Unit:GossipCreateMenu(100, player, 0)
  668.         Unit:GossipMenuAddItem(2, "Black Temple", 801, 0)
  669.         Unit:GossipMenuAddItem(2, "Tempest Keep: Maghteridons Lair", 802, 0)
  670.         Unit:GossipMenuAddItem(2, "Tempest Keep: The Eye", 803, 0)
  671.         Unit:GossipMenuAddItem(2, "Grull's Lair", 203, 0)
  672.         Unit:GossipMenuAddItem(2, "Coilfang Resevoir: Serpentshrine Caverns", 880, 0)
  673.         Unit:GossipMenuAddItem(7, "Back.", 151, 0)
  674.         Unit:GossipSendMenu(player)
  675.     end
  676.     if (intid == 801) then
  677.         player:Teleport(530, -3609.739990, 328.252014, 37.307701)
  678.         player:GossipComplete()
  679.     end
  680.     if (intid == 802) then
  681.         player:Teleport(530, -313.678986, 3088.350098, -116.501999)
  682.         player:GossipComplete()
  683.     end
  684.     if (intid == 803) then
  685.         player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
  686.         player:GossipComplete()
  687.     end
  688.     if (intid == 880) then
  689.         player:Teleport(530, 830.542908, 6865.445801, -63.785503)
  690.         player:GossipComplete()
  691.     end
  692.     if (intid == 900) then
  693.         Unit:GossipCreateMenu(100, player, 0)
  694.         Unit:GossipMenuAddItem(2, "Naxxramas", 901, 0)
  695.         Unit:GossipMenuAddItem(2, "Obsidian Sanctum", 902, 0)
  696.         Unit:GossipMenuAddItem(2, "The Eye of Eternity", 903, 0)
  697.         Unit:GossipMenuAddItem(2, "Ulduar", 904, 0)
  698.         Unit:GossipMenuAddItem(7, "Back.", 152, 0)
  699.         Unit:GossipSendMenu(player)
  700.     end
  701.     if (intid == 901) then
  702.         player:Teleport(571, 3666.149902, -1268.829956, 243.509003)
  703.         player:GossipComplete()
  704.     end
  705.     if (intid == 902) then
  706.         player:Teleport(571, 3456.954590, 262.589355, -113.760834)
  707.         player:GossipComplete()
  708.     end
  709.     if (intid == 903) then
  710.         player:Teleport(571, 3860.425537, 6989.365234, 152.042938)
  711.         player:GossipComplete()
  712.     end
  713.     if (intid == 904) then
  714.         player:Teleport(603, -856.725037, -145.991074, 461.702576)
  715.         player:GossipComplete()
  716.     end
  717. end
  718.  
  719. RegisterUnitGossipEvent(NPC_ID, 1, "AIO.OnTalk")
  720. RegisterUnitGossipEvent(NPC_ID, 2, "AIO.OnSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement