ID:262992
 
Code:
mob
proc
Resting()
if(!usr.rest)
usr.hp += 0
usr.rest = 0
usr.move=1
if(rest && maxhp)
usr.hp += rand(1,2)
usr.move=0
usr.rest=1
sleep(5)
usr.Rest()

mob
verb
Rest()
if(!usr.resting)
icon= 'players.dmi'
icon_state = "rest"
usr << "You start resting!"
usr.move = 0
usr.resting = 1
while(usr.resting && (usr.hp < usr.maxhp || usr.Chakra < usr.maxChakra || usr.stamina < usr.maxstamina ))
if(usr.hp < usr.maxhp) usr.hp += rand(1,5)
if(usr.Chakra < usr.maxChakra) usr.Chakra += rand(1,5)
if(usr.stamina < usr.maxstamina) usr.stamina += rand(1,5)
if(usr.hp > usr.maxhp) usr.hp = usr.maxhp
if(usr.Chakra > usr.maxChakra) usr.Chakra = usr.maxChakra
if(usr.stamina > usr.maxstamina) usr.stamina = usr.maxstamina
sleep(5)
if(usr.resting)
icon = 'players.dmi'
icon_state= "guy"
usr << "You finish resting!"
usr.move = 1
usr.resting = 0
else
icon = 'players.dmi'
icon_state= "guy"
usr << "You stop resting!"
usr.resting = 0
usr.move = 1


Problem description:No matter how many times I change this. It I can move while i'm resting. Someone please help.

mob
Move()
if(src.move)
return..()


Im not sure what you were trying top code there
In response to A.T.H.K
Thank You! -bows-
In response to Kurosaki_Ichigo-San
Euhm, please don't usr 'usr' in a proc. Pass arguments/ use src instead. I can't explain why, not on my normal comp (Artemio.. :p)