ID:177732
Aug 4 2002, 7:01 am
|
|
I need the coding to make someone teleport to (1,57,2) from a turf. No one will fix my code in code problems so this is the only other option.
|
In response to Mellifluous
|
|
Mellifluous wrote:
obj/turf That's gonna result in an error, because src is the turf, and trying to move it won't work. (usr isn't correct either.) The correct thing to use is the argument to the proc, which you didn't put in there. And you shouldn't be using Enter(), but Entered(). Lummox JR |
In response to Lummox JR
|
|
Yeah, so buy my stairs demo!
|
In response to Sariat
|
|
its mad easy....just copy paste it into your code it'll work as is all indentations everything
mob verb Teleport(M as mob in world) usr.x = M:x usr.y = M:y-1 usr.z = M:z usr << "You concentrate on your target [M] and instantly appear before him/her" M << "[usr] used his mind and appeared in front of you" |
In response to SSJ4 Majin Trunks
|
|
I'll get a little more specific. I have 3 maps so I have 3 Z's. How do I get the person to go to the next Z when he hits the edge of the map?
|
In response to Lummox JR
|
|
Lummox JR wrote:
Mellifluous wrote: obj/turf That's gonna result in an error, because src is the turf, and trying to move it won't work. (usr isn't correct either.) The correct thing to use is the argument to the proc, which you didn't put in there. And you shouldn't be using Enter(), but Entered(). Ooops, sorry! Thanks for pointing that out to me Lummox. I should look more carefully when I type, then I might get something right for a change hehe. --Lee |
Here:
--Lee