I've tried a few codes to stop it, but I've been unsuccessful
bj
weight
layer=MOB_LAYER+1
verb
Lift()
set category="Training"
set src in oview(0)
if(usr.lifting)
usr.lifting = 0
usr << "You stop lifting."
src.icon_state = "weights"
return
if(usr.stamina >= 1)
usr.lifting = 1
usr << "You Start lifting."
src.icon_state = "lifting weight"
while(usr.lifting)
sleep(10)
usr.stamina -= rand(1,3)
usr.strength += rand(0.70,0.75)
if(usr.stamina<=0)
usr.stamina = 0
usr.lifting = 0
src.icon_state = "weights"
usr << "You have no more energy!"
if(usr.resting)
usr << "You can't rest whilst lifting."
usr.resting = 0
return
if(usr.stamina<=0)
usr.lifting = 0
usr << "You are too tired. Try Resting."
as you can see in this part of the code is where I tried to work my magic
while(usr.lifting)
sleep(10)
usr.stamina -= rand(1,3)
usr.strength += rand(0.70,0.75)
if(usr.stamina<=0)
usr.stamina = 0
usr.lifting = 0
src.icon_state = "weights"
usr << "You have no more energy!"
if(usr.resting)
usr << "You can't rest whilst lifting."
usr.resting = 0
return
Thanks for reading.