ID:168034
 
i want to no how would i code a verb that when used the player would change to a teleporting state with a sound of teleporting. then on arivel to the destination they would hear a sound and the teleport animation would be in reverse

so in other words

1:player clicks teleport verb (with delay so player can see animation and sound)
2:player hears sound and see's animation
3:teleports to mob
4:players hears sound of reforming and see's animation

i have looked thought the demos and nothing like this is in there

thank you in advance
Lookup flick(), sound(), and for the actual teleporting, change their loc var or a let them choose who to teleport to:
mob
verb
Teleport(mob/M in world)
usr.loc = locate(M.x+1,M.y,M.z)
In response to Mecha Destroyer JD
ok i had another go with it but the animation off reforming does not show so i am a bit stuck
        Teleportaion(M as mob in world)
set category = ("Panel")
flick("Teleport1",M)
sleep(7)
flick("Teleport2",M)
sleep(7)
usr.loc = locate(M:x,M:y+1,M:z)


Edit:i just noticed a second problem and when i wish to teleport to a mob the animation takes place on that mob and then teleports me to them
In response to Halfdragon
You're making the mob flick, not the usr.
In response to Mysame
i dont understand you sorry its my bad english
In response to Halfdragon
flick("Teleport1",M) flicks the mob you're teleporting to. It should be
<dm>flick("Teleport1",usr)