• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "Sleep"
    Differences between revisions 9 and 10
    Revision 9 as of 2012-10-21 15:25:35
    Size: 2371
    Editor: Inanna
    Comment:
    Revision 10 as of 2012-10-24 01:32:22
    Size: 2376
    Editor: Romulus
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 1: Line 1:
    ||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px;text-align:start;" tableclass="wikitable"#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">Usage: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">sleep ''seconds''<<BR>>sleep ''hh:mm:ss''<<BR>>sleep @:hh:mm:ss<<BR>>sleep rnd:maxseconds<<BR>>sleep rnd:minseconds:maxseconds||
    ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">sleep 15<<BR>>sleep 1:43<<BR>>sleep 4:22:32<<BR>>sleep @:14:15:00<<BR>>sleep rnd:15<<BR>>sleep rnd:20:30 ||
    ||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px;text-align:start; " tableclass="wikitable"#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Usage: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">sleep ''seconds''<<BR>>sleep ''hh:mm:ss''<<BR>>sleep @:hh:mm:ss<<BR>>sleep rnd:maxseconds<<BR>>sleep rnd:minseconds:maxseconds ||
    ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em; ">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">sleep 15<<BR>>sleep 1:43<<BR>>sleep 4:22:32<<BR>>sleep @:14:15:00<<BR>>sleep rnd:15<<BR>>sleep rnd:20:30 ||
    Line 5: Line 5:
    The sleep command will cause the bot to pause for the indicated time, which can be expressed as seconds only (e.g. 34, 240, 23432), minutes and seconds (e.g. 4:30) or hours, minutes, seconds (e.g. 2:44:34).  The sleep command will cause the bot to pause for the indicated time, which can be expressed as seconds only (e.g. 34, 240, 23432), minutes and seconds (e.g. 4:30) or hours, minutes, seconds (e.g. 2:44:34).
    Line 26: Line 26:
    Line 32: Line 31:
    CategoryControlStructures ----
    Scrip
    tControlStructures

    Usage:

    sleep seconds
    sleep hh:mm:ss
    sleep @:hh:mm:ss
    sleep rnd:maxseconds
    sleep rnd:minseconds:maxseconds

    Example:

    sleep 15
    sleep 1:43
    sleep 4:22:32
    sleep @:14:15:00
    sleep rnd:15
    sleep rnd:20:30

    The sleep command will cause the bot to pause for the indicated time, which can be expressed as seconds only (e.g. 34, 240, 23432), minutes and seconds (e.g. 4:30) or hours, minutes, seconds (e.g. 2:44:34).

    When the @ symbol is used, the bot will pause until the specific time indicated, rather than after a given duration of time - based on your computer's system time. The time must be expressed in 24 hr. format, with 00:00:01 being 1 second after midnight, and 12:00:01 being 1 second past noon. This feature is similar to camp time with the added advantage that the bot will calculate how much camp time is required for your troops to arrive at the given time.

    When rnd is used, the bot will sleep a random number of seconds, either up to the max seconds given, or between a min seconds and maxseconds given.

    • //Sleeps the script for 30 seconds
      sleep 30
      //Sleeps the script for 2 minutes 45 seconds
      sleep 2:45
      //Sleeps the script for 7 hours, 25 minutes and 0 seconds
      sleep 7:25:00
      
      //Sleeps the script until 3:45pm local system time
      sleep @:15:45
      
      //Sleep for a random number of seconds between 0 and 15
      sleep rnd:15
      //Sleep randomly for at least 5 minutes, but no more than 10 minutes.
      sleep rnd:300:600

    Note that there is always a slight variation between the Evony engine clock and your system time. The exact time difference between the Evony engine and your computer system time is displayed at startup or any time you click the Refresh button on the top left of the screen.



    ScriptControlStructures

    Sleep (last edited 2012-10-24 01:32:22 by Romulus)