mob/proc/Stam_Regen()
while(src.stam_min < src.stam_max)
sleep(50)
src.stam_min += 1
src.stam_min = src.stam_max
Problem description:
So, I am trying to create a proc that regenerates the player var stamina using 'while'. The proc is trigger by a rest command.
Regeneration works fine, but if the player stops resting, I want 'while' to stop what it's doing. I've tried a few things that don't seem to be working. How can I go about stopping 'while'? Or does it just go about it's business?