Here is the code for the go back and the code for the click to be transported.
Code:
//This is the code for the first transpertation.
Telivision
icon = 'Objects.dmi'
icon_state = "T.V"
density = 1
Click()
set src in view(1)
if(alert(usr,"Would you like to see what is on the T.V?","T.V","Yes","No")=="Yes")
usr.loc = locate(7,7,9)
//This is the code to come back to the exact location to where the player was.
Turn_Off
icon = 'Turn Off.png'
density = 1
Click()
usr.loc=locate(8,5,10)
//I am also not sure how I would make it so that the player goes back to the same exact location facing the same direction as before they were transporated.
But if you want to make them invisible, look up the variable invisibility.
- GhostAnime