1) u need to make a new note pad called example: teleport item

2) now u have to copy and paste the script down on this guide!

3) now when u did that u have to change something!
change this:

item:GossipMenuAddItem(0,"Location 1", 50, 0) u have to change the location name! expample:
item:GossipMenuAddItem(0,"Stormwind", 50, 0)

if(intid == 50) then
player:Teleport(Map ID of Location 1, X-Coordinates , Y-Coordinates, Z-Coordinates)

now u have to change the cords of the location to stormwind! to do that u go into stormwind and do .gps where u want the teleport to go!
now u shud get the cords! then fill out expample (note this is not the right cords):

if(intid == 50) then
player:Teleport(1, 3343.3535.2564, -1253.35323.542, 24353.2535.2135)


RegisterItemGossipEvent(Item ENTRY ID, 1, "Item_Trigger")
RegisterItemGossipEvent(Item ENTRY ID, 2, "Gossip_Submenus")

now u have to change were it says (Item ENTRY ID,
change on bouth the sentences to your item entry id! that item u made before in the guide if u chose 55555 as ur item entry it shud look like this!

RegisterItemGossipEvent(55555, 1, "Item_Trigger")
RegisterItemGossipEvent(55555, 2, "Gossip_Submenus")

now when ur done whit this u have to place it into ur server folder under scripts! now restart ur server and ur done! enjoy!

hope u enjoyed this post!
COPY THAT WHOS UNDER HERE!:


function Item_Trigger(item, event, player)
item:GossipCreateMenu(100, player, 0)
item:GossipMenuAddItem(0,"Main Menu", 0, 0)
item:GossipSendMenu(player)
end
function Gossip_Submenus(item, event, player, id, intid, code)
if(intid == 0) then
item:GossipCreateMenu(101, player, 0)
item:GossipMenuAddItem(0,"Location 1", 50, 0)
item:GossipMenuAddItem(0,"Location 2", 51, 0)
item:GossipMenuAddItem(0,"Location 3", 52, 0)
item:GossipMenuAddItem(0,"Location 4", 53, 0)
item:GossipMenuAddItem(0,"Location 5", 54, 0)
item:GossipMenuAddItem(0,"Location 6", 55, 0)
item:GossipSendMenu(player)
end
if(intid == 50) then
player:Teleport(Map ID of Location 1, X-Coordinates , Y-Coordinates, Z-Coordinates)
end
if(intid == 51) then
player:Teleport(Map ID of Location 2, X-Coordinates , Y-Coordinates, Z-Coordinates)
end
if(intid == 52) then
player:Teleport(Map ID of Location 3, X-Coordinates , Y-Coordinates, Z-Coordinates)
end
if(intid == 53) then
player:Teleport(Map ID of Location 4, X-Coordinates , Y-Coordinates, Z-Coordinates)
end
if(intid == 54) then
player:Teleport(Map ID of Location 5, X-Coordinates , Y-Coordinates, Z-Coordinates)
end
if(intid == 55) then
player:Teleport(Map ID of Location 6, X-Coordinates , Y-Coordinates, Z-Coordinates)
end
end
RegisterItemGossipEvent(Item ENTRY ID, 1, "Item_Trigger")
RegisterItemGossipEvent(Item ENTRY ID, 2, "Gossip_Submenus")




› See More: How to make a teleport item/lua