mob
proc
Resting()
if(usr.rest == 0)
usr.stamina += 0
usr.rest = 1
if(usr.rest == 1 && usr.maxstamina)
usr.stamina += 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.canmove = 0
usr.resting = 1
while(usr.resting && (usr.stamina < usr.maxstamina || usr.Chakra < usr.maxChakra))
if(usr.stamina < usr.maxstamina) usr.stamina += rand(1,5)
if(usr.Chakra < usr.maxChakra) usr.Chakra += rand(1,5)
if(usr.stamina > usr.maxstamina) usr.stamina = usr.maxstamina
if(usr.Chakra > usr.maxChakra) usr.Chakra = usr.maxChakra
sleep(5)
if(usr.resting)
icon = 'players.dmi'
icon_state= "guy"
usr << "You finish resting!"
usr.canmove = 1
usr.resting = 0
else
return()
else
icon = 'players.dmi'
icon_state= "guy"
usr << "You stop resting!"
usr.resting = 0
usr.canmove = 1
Problem description:Well Basically what happens is that it rests and everything works fine but now, i fixed it so you cannot move when ur resting but now once you rest and you finish resting you cant move ever again. Could someone help me with this problem please?
Lummox JR