<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Awake</title><link>https://sourceforge.net/p/hercules/wiki/Awake/</link><description>Recent changes to Awake</description><atom:link href="https://sourceforge.net/p/hercules/wiki/Awake/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 20 Feb 2023 05:00:36 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hercules/wiki/Awake/feed" rel="self" type="application/rss+xml"/><item><title>Awake modified by Brynner</title><link>https://sourceforge.net/p/hercules/wiki/Awake/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;span&gt;[Category:Script_Command]&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="syntax"&gt;Syntax&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="alink" href="/p/hercules/wiki/Awake/"&gt;[Awake]&lt;/a&gt; "NPC Name"; &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[Sleep]&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt; &amp;lt;milliseconds&amp;gt;; &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[Sleep2]&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt; &amp;lt;milliseconds&amp;gt;; &lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;These commands are used to control the pause of a NPC. Commands &lt;span&gt;[Sleep]&lt;/span&gt; and&lt;br/&gt;
&lt;span&gt;[Sleep2]&lt;/span&gt; will pause the script for the given amount of milliseconds. Awake&lt;br/&gt;
is used to cancel a sleep. When awake is called on a NPC it will run as if the&lt;br/&gt;
sleep timer ran out, and thus making the script continue. Sleep and sleep2&lt;br/&gt;
basically do the same, but the main difference is that sleep will not keep the&lt;br/&gt;
&lt;span&gt;[RID]&lt;/span&gt;, while sleep2 does.&lt;/p&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;sleep&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10000&lt;/span&gt;&lt;span class="c1"&gt;; //pause the script for 10 seconds and ditch the RID (so no player is attached anymore)&lt;/span&gt;
&lt;span class="nv"&gt;sleep2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;5000&lt;/span&gt;&lt;span class="c1"&gt;; //pause the script for 5 seconds, and continue with the RID attached.&lt;/span&gt;
&lt;span class="nv"&gt;awake&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"NPC"&lt;/span&gt;&lt;span class="c1"&gt;; //Cancels any running sleep timers on the NPC 'NPC'.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brynner</dc:creator><pubDate>Mon, 20 Feb 2023 05:00:36 -0000</pubDate><guid>https://sourceforge.neta461595a9b3a2cc55c08cd94e75c73981ca020c2</guid></item></channel></rss>