<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>Sleep</title><revhistory><revision><revnumber>10</revnumber><date>2012-10-24 01:32:22</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>9</revnumber><date>2012-10-21 15:25:35</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>8</revnumber><date>2012-09-09 22:37:47</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>7</revnumber><date>2012-09-07 19:43:49</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>6</revnumber><date>2012-09-07 19:42:12</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>5</revnumber><date>2012-09-05 13:40:19</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>4</revnumber><date>2012-09-05 13:38:26</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>3</revnumber><date>2012-09-05 13:35:42</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-09-05 13:31:53</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-09-05 13:31:27</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage: </para></entry><entry colsep="1" rowsep="1"><para>sleep <emphasis>seconds</emphasis></para><para>sleep <emphasis>hh:mm:ss</emphasis></para><para>sleep @:hh:mm:ss</para><para>sleep rnd:maxseconds</para><para>sleep rnd:minseconds:maxseconds </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>sleep 15</para><para>sleep 1:43</para><para>sleep 4:22:32</para><para>sleep @:14:15:00</para><para>sleep rnd:15</para><para>sleep rnd:20:30 </para></entry></row></tbody></tgroup></informaltable><para>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). </para><para>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. </para><para>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. </para><itemizedlist><listitem override="none"><screen><![CDATA[//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
]]><![CDATA[
//Sleeps the script until 3:45pm local system time
sleep @:15:45
]]><![CDATA[
//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]]></screen></listitem></itemizedlist><para>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. </para><!--rule (<hr>) is not applicable to DocBook--><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/Sleep/wiki/ScriptControlStructures#">ScriptControlStructures</ulink> </para></article>