hi
on my map there is water and sky, at the sky part there is an area, it is suposed to move you up then move you back down, like jumping out of the water, like a dolphin.
i tried this;
area
sky
Entered()
usr.loc = locate(x+1,y,z)
usr.loc = locate(x-1,y,z)
but that just moved the mob to the same place all the time and once you had entered it you could just move around how you wished in the sky area
a little help please.
thanks
ID:267689
![]() Aug 18 2003, 11:52 am
|
|
![]() Aug 18 2003, 12:06 pm
|
|
It moved you to the same area because there was no delay in the locates. Put "sleep(1)" (no quotes) after the first loc, but before the second.
|
the problem now is where ever i enter first, then if i go back to other parth of the map, then i go into the sky area, it moves me to where i first entered.
|
Try putting this:
usr.loc=locate(usr.x+1, usr.y, usr.z) sleep(1) usr.loc=locate(usr.x-1, usr.y, usr.z) That might help. |
i changed it like you said, i know have this.
area sky Entered() usr.loc = locate(usr.x,usr.y+2,usr.z) sleep(1) usr.loc = locate(usr.x,usr.y-3,usr.z) and i cant even enter onto the area, it is like it had a density or somthing -------------------------------------- edited. ok i fixed it i just added more locate()'s and added a delay, thanks for you help :-D |
One eensy weensy problem. Actually, its a BIG problem. Do not use usr in Entered!!! >:O Use THIS instead.
area sky Entered(mob/M) if(ismob(M)) M.loc = locate(M.x,M.y+2,M.z) sleep(1) M.loc = locate(M.x,M.y-3,M.z) ~~Dragon Lord~~ |