-
Buster99
- Posts: 69
- Joined: Fri Nov 25, 2011 9:27 am
#1
Post
by Buster99 » Thu Jul 18, 2013 2:31 pm
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?
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
by rock5 » Thu Jul 18, 2013 2:43 pm
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
Buster99
- Posts: 69
- Joined: Fri Nov 25, 2011 9:27 am
#3
Post
by Buster99 » Thu Jul 18, 2013 3:37 pm
I don't want the script to start again when attacked by mobs. I want it to only resume when I press DEL.
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#4
Post
by lisa » Thu Jul 18, 2013 7:42 pm
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.
Who is online
Users browsing this forum: Ahrefs [Bot] and 36 guests