Pause script withouting using sleep?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Buster99
Posts: 69
Joined: Fri Nov 25, 2011 9:27 am

Pause script withouting using sleep?

#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:

Code: Select all

stopPE()
Ideas?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Pause script withouting using sleep?

#2 Post by rock5 » Thu Jul 18, 2013 2:43 pm

Try

Code: Select all

player:sleep()
  • 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.”
          • Ronald Reagan

Buster99
Posts: 69
Joined: Fri Nov 25, 2011 9:27 am

Re: Pause script withouting using sleep?

#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.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Pause script withouting using sleep?

#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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Buster99
Posts: 69
Joined: Fri Nov 25, 2011 9:27 am

Re: Pause script withouting using sleep?

#5 Post by Buster99 » Thu Jul 18, 2013 11:56 pm

TY so much Lisa

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 36 guests