Page 1 of 1
Pause script withouting using sleep?
Posted: Thu Jul 18, 2013 2:31 pm
by Buster99
I want to be able to pause script and not have the script restart until I press 'Delete', even if mobs attack me.
I tried:
Ideas?
Re: Pause script withouting using sleep?
Posted: Thu Jul 18, 2013 2:43 pm
by rock5
Re: Pause script withouting using sleep?
Posted: Thu Jul 18, 2013 3:37 pm
by Buster99
I don't want the script to start again when attacked by mobs. I want it to only resume when I press DEL.
Re: Pause script withouting using sleep?
Posted: Thu Jul 18, 2013 7:42 pm
by lisa
Code: Select all
repeat
rest(1000)
until keyPressed(START_BOT)
START_BOT is the global value for DELETE.
yrest() is a yielding rest and will do things like break out of sleep because of combat, rest() is not yieling and won't do any other code while it is resting.
Re: Pause script withouting using sleep?
Posted: Thu Jul 18, 2013 11:56 pm
by Buster99
TY so much Lisa