http://www.hackslashmine.net/hsmwiki/index.php?title=Schedulable_scripts&feed=atom&action=historySchedulable scripts - Revision history2024-03-29T14:02:48ZRevision history for this page on the wikiMediaWiki 1.19.2http://www.hackslashmine.net/hsmwiki/index.php?title=Schedulable_scripts&diff=2275&oldid=prev37.233.27.142: qsgzpV I really like and appreciate your blog post.Thanks Again. Much obliged.2014-08-05T15:04:07Z<p>qsgzpV I really like and appreciate your blog post.Thanks Again. Much obliged.</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:04, 5 August 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>8dHIYS I loved your blog.Really thank you!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>8dHIYS I loved your blog.Really thank you!</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">==Management==</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">qsgzpV I really like and appreciate your blog post</ins>.<ins class="diffchange diffchange-inline">Thanks Again</ins>. <ins class="diffchange diffchange-inline">Much obliged</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Each script is associated with a unique identifier given by the user, by which it may later be referenced</del>. <del class="diffchange diffchange-inline"> Specifically, ''unschedule <script name>'' may be used to unschedule the script</del>. <del class="diffchange diffchange-inline"> All scheduled scripts may be listed by use of ''show-scripts''</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
</table>37.233.27.142http://www.hackslashmine.net/hsmwiki/index.php?title=Schedulable_scripts&diff=2016&oldid=prev37.233.27.142: 8dHIYS I loved your blog.Really thank you!2014-08-02T04:54:51Z<p>8dHIYS I loved your blog.Really thank you!</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 04:54, 2 August 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>MjOZPN Im obliged for the article post. Much obliged.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>MjOZPN Im obliged for the article post. Much obliged.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">==Return Value==</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">8dHIYS I loved your blog</ins>.<ins class="diffchange diffchange-inline">Really thank you</ins>!</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Each script is expected to return an ''int'' value:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">*Positive values indicate how many ticks to wait before re-executing the script</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">*Zero values indicate that the script should be ''immediately'' re-executed.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">*Negative values indicate that the script should be de-scheduled.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">{{note|Carelessly returning zero in all cases will deadlock your server</del>! <del class="diffchange diffchange-inline"> Don't do that.|error}}</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Management==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Management==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Each script is associated with a unique identifier given by the user, by which it may later be referenced.  Specifically, ''unschedule <script name>'' may be used to unschedule the script.  All scheduled scripts may be listed by use of ''show-scripts''.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Each script is associated with a unique identifier given by the user, by which it may later be referenced.  Specifically, ''unschedule <script name>'' may be used to unschedule the script.  All scheduled scripts may be listed by use of ''show-scripts''.</div></td></tr>
</table>37.233.27.142http://www.hackslashmine.net/hsmwiki/index.php?title=Schedulable_scripts&diff=1778&oldid=prev37.233.27.142: MjOZPN Im obliged for the article post. Much obliged.2014-07-18T22:49:20Z<p>MjOZPN Im obliged for the article post. Much obliged.</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 22:49, 18 July 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Schedulable scripts''' are [[Spellscript]] scripts that may be scheduled to run on the server at intervals dictated by their return values.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>'''Schedulable scripts''' are [[Spellscript]] scripts that may be scheduled to run on the server at intervals dictated by their return values.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">==Creation==</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">MjOZPN Im obliged for </ins>the <ins class="diffchange diffchange-inline">article post</ins>. <ins class="diffchange diffchange-inline">Much obliged</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">They may be created in several ways:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">*By use of </del>the <del class="diffchange diffchange-inline">[[Spellscript IDE]], brought up with 'tilde' by default</del>. <del class="diffchange diffchange-inline"> The user must be opped.  When the IDE is exited, the script will be executed immediately.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">*By use of the 'schedule <uniqueID>' command.  This must be either run from the console or as an op.  If run from the console, line breaks may be added via "shift + return".  Otherwise, line breaks may be specified by ending lines with backslashes before pressing enter.  Otherwise, upon pressing enter, the script will be executed immediately.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">*In Spellscript, by use of the ''bool SERVER.scheduleScript(str uniqueID, int$() script, int delay)'' and ''bool SERVER.scheduleScriptLocal(str uniqueID, int$() script, int delay)'' methods.  The given script will be executed after ''delay'' ticks have expired.  The first variant does nothing if the machine is remote, otherwise executing the script locally and propagating it to any clients; the second variant only executes the script on the machine the calling script is being executed on, whether it's remote or non-remote</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Return Value==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>==Return Value==</div></td></tr>
</table>37.233.27.142http://www.hackslashmine.net/hsmwiki/index.php?title=Schedulable_scripts&diff=1105&oldid=prevFrizzil: Created page with "'''Schedulable scripts''' are Spellscript scripts that may be scheduled to run on the server at intervals dictated by their return values. ==Creation== They may be create..."2013-06-10T20:37:10Z<p>Created page with "'''Schedulable scripts''' are <a href="/hsmwiki/Spellscript" title="Spellscript">Spellscript</a> scripts that may be scheduled to run on the server at intervals dictated by their return values. ==Creation== They may be create..."</p>
<p><b>New page</b></p><div>'''Schedulable scripts''' are [[Spellscript]] scripts that may be scheduled to run on the server at intervals dictated by their return values.<br />
<br />
==Creation==<br />
They may be created in several ways:<br />
<br />
*By use of the [[Spellscript IDE]], brought up with 'tilde' by default. The user must be opped. When the IDE is exited, the script will be executed immediately.<br />
*By use of the 'schedule <uniqueID>' command. This must be either run from the console or as an op. If run from the console, line breaks may be added via "shift + return". Otherwise, line breaks may be specified by ending lines with backslashes before pressing enter. Otherwise, upon pressing enter, the script will be executed immediately.<br />
*In Spellscript, by use of the ''bool SERVER.scheduleScript(str uniqueID, int$() script, int delay)'' and ''bool SERVER.scheduleScriptLocal(str uniqueID, int$() script, int delay)'' methods. The given script will be executed after ''delay'' ticks have expired. The first variant does nothing if the machine is remote, otherwise executing the script locally and propagating it to any clients; the second variant only executes the script on the machine the calling script is being executed on, whether it's remote or non-remote.<br />
<br />
==Return Value==<br />
Each script is expected to return an ''int'' value:<br />
*Positive values indicate how many ticks to wait before re-executing the script.<br />
*Zero values indicate that the script should be ''immediately'' re-executed.<br />
*Negative values indicate that the script should be de-scheduled.<br />
<br />
{{note|Carelessly returning zero in all cases will deadlock your server! Don't do that.|error}}<br />
<br />
==Management==<br />
Each script is associated with a unique identifier given by the user, by which it may later be referenced. Specifically, ''unschedule <script name>'' may be used to unschedule the script. All scheduled scripts may be listed by use of ''show-scripts''.</div>Frizzil