mob/proc/sleep()
if(usr.HP>=usr.HP)
usr<<"Your at your HP"
..()
else
if(usr.sleeping==0)
while(usr.HP<HPM)
usr.dir=SOUTH
sleeping=1
usr.icon_state="sleeping"
Lock(usr)
var/random=rand(1,2)
if(random==2)
usr.HP+=rand(usr.HP/1/16,usr.HP/1/8)
while(usr.HP>=usr.HPM)
usr.icon_state="norm"
Unlock(usr)
sleeping=0
break
sleep(10)
else
usr<<"You Still sleeping"
ID:261496
May 5 2002, 4:05 pm
|
|