Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(100, player, 0)
unit:GossipMenuAddItem(0, "Horde cities", 1, 0)
unit:GossipMenuAddItem(0, "Alliance cities", 2, 0)
unit:GossipMenuAddItem(0, "Azeroth Instances", 5, 0)
unit:GossipMenuAddItem(0, "Outland Instances", 6, 0)
unit:GossipMenuAddItem(5, "Shattrath", 51, 0)
unit:GossipMenuAddItem(0, "Outland Location", 7, 0)
unit:GossipMenuAddItem(0, "Azeroth Location", 10, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 1) then
unit:GossipCreateMenu(101, player, 0)
unit:GossipMenuAddItem(5, "GMIsland", 99, 0)
unit:GossipMenuAddItem(5, "Orgrimmar", 9, 0)
unit:GossipMenuAddItem(5, "Undercity", 10, 0)
unit:GossipMenuAddItem(5, "Thunder Bluff", 11, 0)
unit:GossipMenuAddItem(5, "Silvermoon", 12, 0)
unit:GossipSendMenu(player)
end
if(intid == 2) then
unit:GossipCreateMenu(102, player, 0)
unit:GossipMenuAddItem(5, "GMIsland", 99, 0)
unit:GossipMenuAddItem(5, "Stormwind", 14, 0)
unit:GossipMenuAddItem(5, "Ironforge", 15, 0)
unit:GossipMenuAddItem(5, "Darnassus", 16, 0)
unit:GossipMenuAddItem(5, "Exodar", 17, 0)
unit:GossipSendMenu(player)
end
if(intid == 5) then
unit:GossipCreateMenu(103, player, 0)
unit:GossipMenuAddItem(5, "Azeroth Raids", 3, 0)
unit:GossipMenuAddItem(5, "Shadowfang Keep", 19, 0)
unit:GossipMenuAddItem(5, "Scarlet Monastery", 20, 0)
unit:GossipMenuAddItem(5, "Zul'Farrak", 21, 0)
unit:GossipMenuAddItem(5, "Stratholme", 22, 0)
unit:GossipMenuAddItem(5, "Scholomance", 23, 0)
unit:GossipMenuAddItem(5, "Ragefire", 110, 0)
unit:GossipMenuAddItem(5, "Deathmines", 170, 0)
unit:GossipMenuAddItem(5, "Those caverns in barrens xX", 111, 0)
unit:GossipMenuAddItem(5, "Blackfathom deepths", 112, 0)
unit:GossipMenuAddItem(5, "This instance in Stormwind biggrin.gif", 113, 0)
unit:GossipMenuAddItem(5, "Gnomeregan", 114, 0)
unit:GossipMenuAddItem(5, "Razorfen thing number 1", 115, 0)
unit:GossipMenuAddItem(5, "Razorfen hills", 116, 0)
unit:GossipMenuAddItem(5, "Uldaman", 117, 0)
unit:GossipMenuAddItem(5, "Maraudon", 118, 0)
unit:GossipMenuAddItem(5, "Sunken temple", 119, 0)
unit:GossipMenuAddItem(5, "Lower Blackrock", 120, 0)
unit:GossipMenuAddItem(5, "Dire Maul", 121, 0)
unit:GossipMenuAddItem(5, "Upper Blackrock", 122, 0)
unit:GossipSendMenu(player)
end
if(intid == 6) then
unit:GossipCreateMenu(104, player, 0)
unit:GossipMenuAddItem(5, "Outland Raids", 4, 0)
unit:GossipMenuAddItem(5, "Hellfire Ramparts", 25, 0)
unit:GossipMenuAddItem(5, "Blood furnace", 26, 0)
unit:GossipMenuAddItem(5, "Shattered Halls", 27, 0)
unit:GossipMenuAddItem(5, "Underbog", 28, 0)
unit:GossipMenuAddItem(5, "Slave pens", 29, 0)
unit:GossipMenuAddItem(5, "Steam whatever tongue.gif", 30, 0)
unit:GossipMenuAddItem(5, "Mana tombs", 31, 0)
unit:GossipMenuAddItem(5, "Auchenai crypts", 32, 0)
unit:GossipMenuAddItem(5, "Sethekk halls", 33, 0)
unit:GossipMenuAddItem(5, "Shadow lab", 34, 0)
unit:GossipMenuAddItem(5, "Mechanar", 35, 0)
unit:GossipMenuAddItem(5, "Bota whatever Oo", 36, 0)
unit:GossipMenuAddItem(5, "Arcatraz", 37, 0)
unit:GossipMenuAddItem(5, "Caverns of Time", 52, 0)
unit:GossipSendMenu(player)
end
if(intid == 3) then
unit:GossipCreateMenu(105, player, 0)
unit:GossipMenuAddItem(5, "Onyxias Lair", 39, 0)
unit:GossipMenuAddItem(5, "Molten Core", 40, 0)
unit:GossipMenuAddItem(5, "Blackwing Lair", 123, 0)
unit:GossipMenuAddItem(5, "Zul'Gurub", 41, 0)
unit:GossipMenuAddItem(5, "Karazhan", 42, 0)
unit:GossipMenuAddItem(5, "Ruins of Ahn'Qiraj", 43, 0)
unit:GossipMenuAddItem(5, "Temple of Ahn'Qiraj", 44, 0)
unit:GossipMenuAddItem(5, "Naxxramas", 45, 0)
unit:GossipMenuAddItem(5, "Zul'Aman", 124, 0)
unit:GossipMenuAddItem(5, "Caverns of Time", 52, 0)
unit:GossipSendMenu(player)
end
if(intid == 4) then
unit:GossipCreateMenu(106, player, 0)
unit:GossipMenuAddItem(5, "Black Temple", 50, 0)
unit:GossipMenuAddItem(5, "Tempest Keep", 49, 0)
unit:GossipMenuAddItem(5, "Gruuls Lair", 48, 0)
unit:GossipMenuAddItem(5, "Serpentshrine caverns", 47, 0)
unit:GossipMenuAddItem(5, "Maghteridons Lair", 46, 0)
unit:GossipMenuAdditem(5, "The EYE", 180, 0)
unit:GossipSendMenu(player)
end
if(intid == 7) then
unit:GossipCreateMenu(107, player, 0)
unit:GossipMenuAddItem(5, "Hellfire Halfisland", 200, 0)
unit:GossipMenuAddItem(5, "Zangermarsh", 201, 0)
unit:GossipMenuAddItem(5, "Nagrand", 202, 0)
unit:GossipMenuAddItem(5, "Blades Edge Mountains", 203, 0)
unit:GossipMenuAddItem(5, "Netherstorm", 204, 0)
unit:GossipMenuAddItem(5, "Terokkar Forest", 205, 0)
unit:GossipMenuAddItem(5, "Shadowmoon Valley", 206, 0)
unit:GossipSendMenu(player)
end
if(intid == 8) then
unit:GossipCreateMenu(108, player, 0)
unit:GossipMenuAddItem(5, "Eastern Kingdoms", 182, 0)
unit:GossipMenuAddItem(5, "Kalimidor", 184, 0)
unit:GossipMenuAddItem(5, "Gurubashi Arena", 181, 0)
unit:GossipSendMenu(player)
end
if(intid == 182) then
unit:GossipCreateMenu(109, player, 0)
unit:GossipMenuAddItem(5, "Eastern Plaguelands", 300, 0)
unit:GossipMenuAddItem(5, "Western Plaguelands", 301, 0)
unit:GossipMenuAddItem(5, "Tristfal Glades", 302, 0)
unit:GossipMenuAddItem(5, "Alterac Mountains", 303, 0)
unit:GossipMenuAddItem(5, "Silverpine Forest", 304, 0)
unit:GossipMenuAddItem(5, "Hillsbrad Foothills", 305, 0)
unit:GossipMenuAddItem(5, "The Hinterlands", 306, 0)
unit:GossipMenuAddItem(5, "Arathi Highlands", 307, 0)
unit:GossipMenuAddItem(5, "Wetlands", 308, 0)
unit:GossipMenuAddItem(5, "Dun Morogh", 309, 0)
unit:GossipSendMenu(player)
end
if(intid == 183) then
unit:GossipCreateMenu(110, player, 0)
unit:GossipMenuAddItem(5, "Loch Modan", 310, 0)
unit:GossipMenuAddItem(5, "Badlands", 311, 0)
unit:GossipMenuAddItem(5, "Blackrock Mountain", 312, 0)
unit:GossipMenuAddItem(5, "Redridge Mountain", 313, 0)
unit:GossipMenuAddItem(5, "Elwynn Forest", 314, 0)
unit:GossipMenuAddItem(5, "Duskwood", 315, 0)
unit:GossipMenuAddItem(5, "Westfall", 316, 0)
unit:GossipMenuAddItem(5, "Swamp of Sorrows", 317, 0)
unit:GossipMenuAddItem(5, "The Blasted Lands", 318, 0)
unit:GossipMenuAddItem(5, "Deadwind Pass", 319, 0)
unit:GossipMenuAddItem(5, "Stranglethorn Vale", 320, 0)
unit:GossipSendMenu(player)
end
if(intid == 184) then
unit:GossipCreateMenu(111, player, 0)
unit:GossipMenuAdditem(5, "Moonglade", 330, 0)
unit:GossipMenuAdditem(5, "Winterspring", 331, 0)
unit:GossipMenuAdditem(5, "Felwood", 332, 0)
unit:GossipMenuAdditem(5, "Darkshore", 333, 0)
unit:GossipMenuAdditem(5, "Azshara", 334, 0)
unit:GossipMenuAdditem(5, "Ashenvale", 335, 0)
unit:GossipMenuAdditem(5, "Stonetalon Mountains", 336, 0)
unit:GossipMenuAdditem(5, "The Barrens", 337, 0)
unit:GossipMenuAdditem(5, "Durotar", 338, 0)
unit:GossipSendMenu(player)
end
if(intid == 185) then
unit:GossipCreateMenu(112, player, 0)
unit:GossipMenuAdditem(5, "Mulgore", 339, 0)
unit:GossipMenuAdditem(5, "Desolace", 340, 0)
unit:GossipMenuAdditem(5, "Dustwallow Marsh", 341, 0)
unit:GossipMenuAdditem(5, "Feralas", 342, 0)
unit:GossipMenuAdditem(5, "Thousand Needles", 343, 0)
unit:GossipMenuAdditem(5, "Tanaris Desert", 344, 0)
unit:GossipMenuAdditem(5, "Un'Goro Crater", 345, 0)
unit:GossipMenuAdditem(5, "Silithus", 346, 0)
unit:GossipSendMenu(player)
end
if(intid == 12) then
player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
end
if(intid == 9) then
player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
end
if(intid == 11) then
player:Teleport(1, -1304.569946, 205.285004, 68.681396)
end
if(intid == 10) then
player:Teleport(0, 2050.203125, 285.650604, 56.994549)
end
if(intid == 17) then
player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
end
if(intid == 14) then
player:Teleport(0, -9100.480469, 406.950745, 92.594185)
end
if(intid == 15) then
player:Teleport(0, -5028.265137, -825.976563, 495.301575)
end
if(intid == 16) then
player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
end
if(intid == 51) then
player:Teleport(530, -1887.510010, 5359.379883, -12.427300)
end
if(intid == 19) then
player:Teleport(0, -234.495087, 1561.946411, 76.892143)
end
if(intid == 20) then
player:Teleport(0, 2870.442627, -819.985229, 160.331085)
end
if(intid == 21) then
player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
end
if(intid == 41) then
player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
end
if(intid == 43) then
player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
end
if(intid == 44) then
player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
end
if(intid == 40) then
player:Teleport(409, 1089.6, -470.19, -106.41)
end
if(intid == 39) then
player:Teleport(1, -4746, -3749, -4.0)
end
if(intid == 45) then
player:Teleport(533, 3006.06, -3436.72, 293.891)
end
if(intid == 23) then
player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
end
if(intid == 24) then
player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
end
if(intid == 38) then
player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
end
if(intid == 42) then
player:Teleport(532, -11087.3, -1977.47, 49.6135)
end
if(intid == 52) then
player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
end
if(intid == 25) then
player:Teleport(530, -360.670990, 3071.899902, -15.097700)
end
if(intid == 26) then
player:Teleport(530, -303.506012, 3164.820068, 31.742500)
end
if(intid == 27) then
player:Teleport(530, -311.083527, 3083.291748, -3.745923)
end
if(intid == 28) then
player:Teleport(530, 777.088989, 6763.450195, -72.062561)
end
if(intid == 29) then
player:Teleport(530, 719.507996, 6999.339844, -73.074303)
end
if(intid == 30) then
player:Teleport(530, 816.590027, 6934.669922, -80.544601)
end
if(intid == 31) then
player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
end
if(intid == 32) then
player:Teleport(530, -3361.959961, 5225.770020, -101.047997)
end
if(intid == 33) then
player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
end
if(intid == 34) then
player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
end
if(intid == 35) then
player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
end
if(intid == 36) then
player:Teleport(530, 3413.649902, 1483.319946, 182.837997)
end
if(intid == 37) then
player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
end
if(intid == 46) then
player:Teleport(530, -313.678986, 3088.350098, -116.501999)
end
if(intid == 47) then
player:Teleport(530, 830.542908, 6865.445801, -63.785503)
end
if(intid == 48) then
player:Teleport(530, 3549.424072, 5179.854004, -4.430779)
end
if(intid == 49) then
player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
end
if(intid == 50) then
player:Teleport(530, -3609.739990, 328.252014, 37.307701)
end
if(intid == 124) then
player:Teleport(530, 6850, -7950, 170)
end
if(intid == 136) then
player:Teleport(0, -13152.9, 342.729, 53.1328)
end
if(intid == 110) then
player:Teleport(389, 1.7849, -14.3685, -16.5533)
end
if(intid == 111) then
player:Teleport(1, -746.207, -2213.18, 15.8909)
end
if(intid == 112) then
player:Teleport(48, -152.984, 106.33, -39.0953)
end
if(intid == 113) then
player:Teleport(0, -8776.78, 836.753, 93.1946)
end
if(intid == 114) then
player:Teleport(0, -5189.22, 524.796, 389.107)
end
if(intid == 115) then
player:Teleport(1, -4464.92, -1666.24, 91)
end
if(intid == 116) then
player:Teleport(129, 2591.99, 1101.25, 52.8593)
end
if(intid == 117) then
player:Teleport(70, -228.193, 46.1602, -45.0186)
end
if(intid == 118) then
player:Teleport(349, 419.84, 11.3365, -131.079)
end
if(intid == 119) then
player:Teleport(0, -10349.1, -3849.67, -24.6078)
end
if(intid == 120) then
player:Teleport(230, 596.432, -188.498, -49)
end
if(intid == 121) then
player:Teleport(429, 254.588, -24.7395, -1.56062)
end
if(intid == 122) then
player:Teleport(229, 73.5083, -215.044, 53.3869)
end
if(intid == 123) then
player:Teleport(469, -7665.55, -1102.49, 400.679)
end
if(intid == 170) then
player:Teleport(0, -11079.8, 1506.98, 42.9594)
end
if(intid == 99) then
player:Teleport(1, 16222.6, 16265.9, 14.2085)
end
if(intid == 200) then
player:Teleport(530, -248.160004, 922.348999, 84.379799)
end
if(intid == 201) then
player:Teleport(530, -225.863632, 5405.927246, 22.346397)
end
if(intid == 202) then
player:Teleport(530, -468.232330, 8418.666016, 28.031298)
end
if(intid == 203) then
player:Teleport(530, 1471.672852, 6828.047852, 107.759239)
end
if(intid == 204) then
player:Teleport(530, 3396.123779, 4182.208008, 137.097992)
end
if(intid == 205) then
player:Teleport(530, -1202.426636, 5313.692871, 33.774723)
end
if(intid == 206) then
player:Teleport(530, -2859.522461, 3182.34773, 10.008426)
end
if(intid == 180) then
player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
end
if(intid == 181) then
player:Teleport(0, -13271.959961, 149.105515, 34.464458)
end
if(intid == 300) then
player:Teleport(0, 1855, -1569, 61)
end
if(intid == 301) then
player:Teleport(0, 2278, -5311, 89)
end
if(intid == 302) then
player:Teleport(0, 2032, -432, 37)
end
if(intid == 303) then
player:Teleport(0, 552, -275, 152)
end
if(intid == 304) then
player:Teleport(0, -126, 815, 68)
end
if(intid == 305) then
player:Teleport(0, -502, 91, 61)
end
if(intid == 306) then
player:Teleport(0, -678, -4018, 240)
end
if(intid == 307) then
player:Teleport(0, -797, -2068, 35)
end
if(intid == 308) then
player:Teleport(0, -3256, -2718, 11)
end
if(intid == 309) then
player:Teleport(0, -5826, -1586, 366)
end
if(intid == 310) then
player:Teleport(0, -4771, -3329, 347)
end
if(intid == 311) then
player:Teleport(0, -7027, -3330, 243)
end
if(intid == 312) then
player:Teleport(0, -7317, -1072, 279)
end
if(intid == 313) then
player:Teleport(0, -9168, -2726, 92)
end
if(intid == 314) then
player:Teleport(0, -9325, -1038, 67)
end
if(intid == 315) then
player:Teleport(0, -10694, -884, 80)
end
if(intid == 316) then
player:Teleport(0, -11018, 1513, 45)
end
if(intid == 317) then
player:Teleport(0, -10429, -3828, -29)
end
if(intid == 318) then
player:Teleport(0, -11853, -3197, -25)
end
if(intid == 319) then
player:Teleport(0, -10435, -1809, 101)
end
if(intid == 320) then
player:Teleport(0, -13382, 2, 23)
end
if(intid == 330) then
player:Teleport(1, 7978, -2501, 490)
end
if(intid == 331) then
player:Teleport(1, 6721, -4659, 722)
end
if(intid == 332) then
player:Teleport(1, 4878, -614, 362)
end
if(intid == 333) then
player:Teleport(1, 4565, 438, 34)
end
if(intid == 334) then
player:Teleport(1, 2717, -5968, 108)
end
if(intid == 335) then
player:Teleport(1, 3469, 847, 7)
end
if(intid == 336) then
player:Teleport(1, 898, 922, 128)
end
if(intid == 337) then
player:Teleport(1, -1330, -3120, 93)
end
if(intid == 338) then
player:Teleport(1, 242, -5151, 3)
end
if(intid == 339) then
player:Teleport(1, -2326, -367, -6)
end
if(intid == 340) then
player:Teleport(1, -939, 1091, 95)
end
if(intid == 341) then
player:Teleport(1, -3719, -2530, 71)
end
if(intid == 342) then
player:Teleport(1, -4508, 2041, 53)
end
if(intid == 343) then
player:Teleport(1, -4619, -1850, 88)
end
if(intid == 344) then
player:Teleport(1, -7373, -2950, 12)
end
if(intid == 345) then
player:Teleport(1, -6186, -1106, -215)
end
if(intid == 346) then
player:Teleport(1, -6824, 821, 51)
end
end
RegisterUnitGossipEvent(80000, 1, "On_Gossip")
RegisterUnitGossipEvent(80000, 2, "Gossip_Submenus")