<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Day</id>
		<title>Day - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Day"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Day&amp;action=history"/>
		<updated>2026-05-03T14:09:07Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Day&amp;diff=945&amp;oldid=prev</id>
		<title>Nameless2you: Created page with &quot;==Syntax== *'''day'''; *'''night''';  ==Description== These two commands will switch the entire server between day and night mode respectively. If your server is set to cycle ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Day&amp;diff=945&amp;oldid=prev"/>
				<updated>2014-11-18T08:02:29Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Syntax== *&amp;#039;&amp;#039;&amp;#039;day&amp;#039;&amp;#039;&amp;#039;; *&amp;#039;&amp;#039;&amp;#039;night&amp;#039;&amp;#039;&amp;#039;;  ==Description== These two commands will switch the entire server between day and night mode respectively. If your server is set to cycle ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Syntax==&lt;br /&gt;
*'''day''';&lt;br /&gt;
*'''night''';&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
These two commands will switch the entire server between day and night mode respectively. If your server is set to cycle between day and night by [[:Category:Configuration|configuration]], it will eventually return to that cycle.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
 -	script	DayNight	-1,{&lt;br /&gt;
 	[[end]];&lt;br /&gt;
 [[OnClock]]0600:&lt;br /&gt;
 	day;&lt;br /&gt;
 	end;&lt;br /&gt;
 [[OnInit]]:&lt;br /&gt;
 	// setting correct mode upon server start-up&lt;br /&gt;
 	[[if]]([[gettime]](3)&amp;gt;=6 &amp;amp;&amp;amp; gettime(3)&amp;lt;18)&lt;br /&gt;
 	{&lt;br /&gt;
 		end;&lt;br /&gt;
 	}&lt;br /&gt;
 OnClock1800:&lt;br /&gt;
 	night;&lt;br /&gt;
 	end;&lt;br /&gt;
 }&lt;br /&gt;
This script allows to emulate the day/night cycle as the server does, but also allows triggering additional effects upon change, like announces, gifts, etc. The day/night cycle set by configuration should be disabled, when this script is used.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[isday]]&lt;br /&gt;
* [[isnight]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Nameless2you</name></author>	</entry>

	</feed>