Code:
function Npc_main_menu (Unit, event)
Unit:GossipCreateMenu(3543, player, 0)
Unit:GossipMenuAddItem(player, 2, "Teleports", 1, 0)
Unit:GossipSendMenu(player)
end
function NPC_on_gossip_talk (Unit, event)
function NPC_main_menu (Unit, event)
end
function NPC_on_gossip_select(pUnit, event, player, id, intid, code)
if(intid == 1) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(player, 2, "Alliance Cities", 5, 0)
pUnit:GossipMenuAddItem(player, 2, "Horde Cities", 6, 0)
pUnit:GossipMenuAddItem(player, 2, "Outland Locations", 7, 0)
pUnit:GossipMenuAddItem(player, 2, "Player VS Player Zones", 8, 0)
Unit:GossipSendMenu(player)
end
if(intid == 5) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(player, 4, "Stormwind City", 12, 0)
pUnit:GossipMenuAddItem(player, 4, "Ironforge City", 13, 0)
pUnit:GossipMenuAddItem(player, 4, "Darnassus", 14, 0)
pUnit:GossipMenuAddItem(player, 4, "The Exodar", 15, 0)
Unit:GossipSendMenu(player)
end
if(intid == 6) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(player, 4, "Orgrimmar", 16, 0)
pUnit:GossipMenuAddItem(player, 4, "Undercity", 17, 0)
pUnit:GossipMenuAddItem(player, 4, "Thunder Bluff", 18, 0)
pUnit:GossipMenuAddItem(player, 4, "Silvermoon City", 19, 0)
Unit:GossipSendMenu(player)
end
if(intid == 7) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(player, 4, "Hellfire Peninsula", 20, 0)
pUnit:GossipMenuAddItem(player, 4, "Zangarmarsh", 21, 0)
pUnit:GossipMenuAddItem(player, 4, "Nagrand", 22, 0)
pUnit:GossipMenuAddItem(player, 4, "Terokkar Forest", 23, 0)
pUnit:GossipMenuAddItem(player, 4, "Blade's Edge Mountains", 24, 0)
pUnit:GossipMenuAddItem(player, 4, "Netherstorm", 25, 0)
pUnit:GossipMenuAddItem(player, 4, "Shadowmoon Valley", 26, 0)
Unit:GossipSendMenu(player)
end
if(intid == 8) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(player, 4, "Azshara Crater", 27, 0)
pUnit:GossipMenuAddItem(player, 4, "Gurubashi Arena", 28, 0)
pUnit:GossipMenuAddItem(player, 4, "Darkshore", 29, 0)
pUnit:GossipMenuAddItem(player, 4, "Warsong Gulch", 30, 0)
pUnit:GossipMenuAddItem(player, 4, "Arathi Basin", 31, 0)
pUnit:GossipMenuAddItem(player, 4, "Arena", 32, 0)
Unit:GossipSendMenu(player)
end
if(intid == 12) then
player:Teleport(0, -8883.918945, 576.548340, 92.938957)
end
if(intid == 13) then
player:Teleport(0, -4982.322754, -881.500549, 501.659668)
end
if(intid == 14) then
player:Teleport(1, 9951.976563, 2280.426025, 1341.395020)
end
if(intid == 15) then
player:Teleport(530, -3973.349854, -11882.410156, 0.620097)
end
if(intid == 16) then
player:Teleport(1, 1503.979980, 04414.484375, 20.985382)
end
if(intid == 17) then
player:Teleport(0, 1886.409912, 237.757629, 57.945694)
end
if(intid == 18) then
player:Teleport(1, -1285.168823, 168.044693, 129.993958)
end
if(intid == 19) then
player:Teleport(530, 9388.543945, -7278.262207, 14.240113)
end
if(intid == 20) then
player:Teleport(530, -247.613129, 1022.351440, 54.326675)
end
if(intid == 21) then
player:Teleport(530, 344.061981, 6832.742188, 48.054581)
end
if(intid == 22) then
player:Teleport(530, -950.567810, 8289.909180, 20.559988)
end
if(intid == 23) then
player:Teleport(530, -2012.084961, 4416.305664, 4.871132)
end
if(intid == 24) then
player:Teleport(530, 1521.910034, 6807.100098, 117.710999)
end
if(intid == 25) then
player:Teleport(530, 3389.094727, 4216.816406, 125.199997)
end
if(intid == 26) then
player:Teleport(530, -3335.889893, 2131.929932, -1.984900)
end
if(intid == 27) then
player:Teleport(37, 1051.168091, 293.195526, 339.560730)
end
if(intid == 28) then
player:Teleport(0, -13275.827148, 273.500214, 42.979900)
end
if(intid == 29) then
player:Teleport(1, 7367.605957, -1559.811279, 163.519073)
end
if(intid == 30) then
player:Teleport(489, 1250.970215, 1554.557983, 309.649017)
end
if(intid == 31) then
player:Teleport(529, 991.529846, 1008.540222, -42.603142)
end
if(intid == 32) then
player:Teleport(559, 4011.070313, 2896.693115, 12.456406)
end
intid = 0
end
RegisterUnitGossipEvent(70010, 1, "NPC_on_gossip_talk")
RegisterUnitGossipEvent(70010, 2, "NPC_on_gossip_select")
end