ID:144904
 
Code:
mob/proc/rest()
if(src.rest)
src.rest = 1
src.move = 0
sleep(100)
src.stamina=src.maxstamina
src.rest = 0
src<<"You are done resting."

mob/verb/Rest()
set category = "Commands"
usr << "You begin to rest."
usr.rest = 1
usr.rest()
return


Problem description:
For whatever reason, whenever you rest, you can still move...

Its because you didn't make Move().


mob/var/tmp/move //be sure you made move a tmp var so if they log out mid rest and log back in, it won't save them as not moving.
mob/Move()
if(!src.move)return
else ..()
mob/proc/rest()
if(src.rest)
src.move=0
sleep(100)
src.stamina=src.maxstamina
src.rest=0
src.move=1
src<<"You are done resting."

mob/verb/Rest()
set category="Commands"
usr<<"You begin to rest."
usr.rest=1
usr.rest()
return


In response to Evidence
Ah! Thanks so much ^_^