mob
verb
Rest()
usr << "<b><font color=blue>You begin to rest...</b></font>"
usr.resting = 1
if(usr.level <= 20)
sleep(50)
usr.hp = usr.maxhp
usr.chakra = usr.maxchakra
usr.need_rest = 0
usr.resting = 0
if(usr.level <= 50 && usr.level >= 20)
sleep(60)
usr.hp = usr.maxhp
usr.chakra = usr.maxchakra
usr.need_rest = 0
usr.resting = 0
if(usr.level <= 100 && usr.level >= 50)
sleep(70)
usr.hp = usr.maxhp
usr.chakra = usr.maxchakra
usr.need_rest = 0
usr.resting = 0
else
sleep(100)
usr.hp = usr.maxhp
usr.chakra = usr.maxchakra
usr.need_rest = 0
usr.resting = 0
I wanted the user not to be able to move while resting, I thought it was:
usr.movement = 0
sleep(20)
usr.movement = 1
But I got the "undefined var" error in DM. Can someone please tell me the built-in movement var, or how to if there isn't one built-in. Thanks!
-Hi1
That would make it work how you want it.