function warpNPC_On_Gossip (pUnit, event, player)
pUnit:GossipCreateMenu(100, player)
pUnit:GossipMenuAddItem(player, 0, "Horde Capitals", 1, 0)
pUnit::GossipSendMenu(player)
end
function warpNPC_Gossip_Submenus (pUnit, event, player, id, intid, code)
if(intid == 1) then
pUnit:GossipGossipMenuAddItem(99, player)
pUnit:GossipMenuAddItem(player, 5, "Orgrimmar", 10, 0)
pUnit:GossipMenuAddItem(player, 5, "Undercity", 11, 0)
pUnit:GossipMenuAddItem(player, 5, "Thunder Bluff", 12, 0)
pUnit:GossipMenuAddItem(player, 5, "Silvermoon", 13, 0)
pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 10) then
player:Teleport(1, 1484, -4417, 25)
end
if(intid == 11) then
player:Teleport(0, 1831, 238, 60)
end
if(intid == 12) then
player:Teleport(1, -1277, 118, 131)
end
if(intid == 13) then
player:Teleport(530, 9413, -7277, 14)
end
RegisterGossipEvent(9999997 , 1, "warpNPC_On_Gossip")(9999997 , 2,"warpNPC_Gossip_Submenus")