Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UnitEntry = 900001
- local T = {
- [1] = { "Horde Cities",
- {"Orgrimmar", 1, 1503, -4415.5, 22, 0},
- {"Undercity", 0, 1831, 238.5, 61.6, 0},
- {"Thunderbluff", 1, -1278, 122, 132, 0},
- {"Silvermoon", 530, 9484, -7294, 15, 0},
- },
- [2] = { "Alliance Cities",
- {"Stormwind", 0, -8905, 560, 94, 0.62},
- {"Ironforge", 0, -4795, -1117, 499, 0},
- {"Darnassus", 1, 9952, 2280.5, 1342, 1.6},
- {"The Exodar", 530, -3863, -11736, -106, 2},
- },
- [3] = { "Kalimdor Locations",
- {"Azuremyst Isle", 530, -4216, -12336, 4, 6},
- {"Durotar", 1, 1007, -4446, 11, 0},
- {"Mulgore", 1, -2192, -736, -13, 0},
- {"Teldrassil", 1, 10111, 1557, 1324, 4},
- {"Azshara", 1, 3341, -4603, 92, 5},
- {"Bloodmyst Isle", 530, -1993, -11475, 63, 5},
- {"Darkshore", 1, 5756, 298, 20, 6},
- {"Barrens", 1, 48, -2715, 91, 0},
- {"Moonglade", 1, 7654, -2232, 462, 6},
- {"Ashenvale", 1, 1928, -2165, 93, 0},
- {"Stonetalon Mountains", 1, 1570, 1031, 137, 3},
- {"Desolace", 1, -606, 2211, 92, 0},
- {"Dustwallow Marsh", 1, -4043, -2991, 36, 3},
- {"Feralas", 1, -4841, 1309, 81, 1},
- {"Thousand Needles", 1, -4969, -1726, -62, 3},
- {"Felwood", 1, 4102, -1006, 272, 0},
- {"Tanaris", 1, -7931., -3414, 80, 0},
- {"Un'Goro Crater", 1, -7943, -2119, -218, 6},
- {"Winterspring", 1, 6759, -4419, 763, 4},
- {"Silithus", 1, -7426, 1005, 1, 3},
- },
- [4] = { "Eastern Kingdom Locations",
- },
- [5] = { "Outlands Locations",
- {"Blade's Edge Mountains", 530, 1481, 6829, 107, 6},
- {"Hellfire Peninsula", 530, -249, 947, 85, 2},
- {"Nagrand", 530, -1769, 7150, -9, 2},
- {"Netherstorm", 530, 3043, 3645, 143, 2},
- {"Shadowmoon Valley", 530, -3034, 2937, 87, 5},
- {"Terokkar Forest", 530, -1942, 4689, -2, 5},
- {"Zangarmarsh", 530, -217, 5488, 23, 2},
- {"Shattrath", 530, -1822, 5417, 1, 3},
- },
- [6] = { "Instances",
- },
- [7] = { "Raids",
- },
- [8] = { "PvP Locations",
- {"Gurubashi Arena", 0, -13229, 226, 33, 1},
- {"Dire Maul Arena", 1, -3669, 1094, 160, 3},
- {"Nagrand Arena", 530, -1983, 6562, 12, 2},
- {"Blade's Edge Arena", 530, 2910, 5976, 2, 4},
- },
- };
- --[[ CODE STUFFS! DO NOT EDIT BELOW ]]--
- --[[ UNLESS YOU KNOW WHAT YOU'RE DOING! ]]--
- function Teleporter_Gossip(event, player, unit)
- if (#T <= 10) then
- for i, v in ipairs(T) do
- player:GossipMenuAddItem(0, v[1], 0, i)
- end
- player:GossipSendMenu(1, unit)
- else
- print("This teleporter only supports 10 different menus.")
- end
- end
- function Teleporter_Event(event, player, unit, sender, intid, code)
- if(intid == 0) then
- Teleporter_Gossip(event, player, unit)
- elseif(intid <= 10) then
- for i, v in ipairs(T[intid]) do
- if (i > 1) then
- player:GossipMenuAddItem(0, v[1], 0, intid..i)
- end
- end
- player:GossipMenuAddItem(0, "Back", 0, 0)
- player:GossipSendMenu(1, unit)
- elseif(intid > 10) then
- for i = 1, #T do
- for j, v in ipairs(T[i]) do
- if(intid == tonumber(i..j)) then
- player:GossipComplete()
- player:Teleport(v[2], v[3], v[4], v[5], v[6], v[7], v[8])
- end
- end
- end
- end
- end
- RegisterGameObjectGossipEvent(UnitEntry, 1, Teleporter_Gossip)
- RegisterGameObjectGossipEvent(UnitEntry, 2, Teleporter_Event)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement