ID:167603
 
How do i make it that theres an NPC for example blocking a doorway and I want to talk to him. So when I talkto him a message comes up and then he teleports me behind him or some way very simular to this. Please help.
The most straightforward way would be to make a dense mob, place him in a narrow hallway, modify his Click() proc so that an alert() comes up, then use Move() to move the player to the desired location behind the mob.
In response to Foomer
Yeah, I can picure that in my head buy I still can't really figure out how I would put all that together.
In response to Bamrulez
mob/Door_Man
icon='asdf.dmi'
icon_state="Door Man"
DblClick() //Called when a player double clicks this mob
if(alert("Hey! You can't go into this door without my permission! Do you want to go in?","Door Man","Yes","No")=="Yes") //Send an alert message to the clicker, if the answer is Yes...
usr<<"Fine!"
usr.loc=locate(x++,y,z) //Relocate the clicker