<?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=War_of_Emperium</id>
		<title>War of Emperium - 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=War_of_Emperium"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=War_of_Emperium&amp;action=history"/>
		<updated>2026-05-05T15:45:28Z</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=War_of_Emperium&amp;diff=462&amp;oldid=prev</id>
		<title>Via: /* agit_controller.txt */</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=War_of_Emperium&amp;diff=462&amp;oldid=prev"/>
				<updated>2013-06-09T09:36:01Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;agit_controller.txt&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:36, 9 June 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 	&amp;#160;  ([[gettime]](4)==6) &amp;amp;&amp;amp; ([[gettime]](3)&amp;gt;=16 &amp;amp;&amp;amp; [[gettime]](3)&amp;lt;18)) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 	&amp;#160;  ([[gettime]](4)==6) &amp;amp;&amp;amp; ([[gettime]](3)&amp;gt;=16 &amp;amp;&amp;amp; [[gettime]](3)&amp;lt;18)) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 		[[if]] (![[agitcheck]]()) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 		[[if]] (![[agitcheck]]()) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 			[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;AgitStart&lt;/del&gt;]];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 			[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;agitstart&lt;/ins&gt;]];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 			[[callsub]] S_DisplayOwners;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 			[[callsub]] S_DisplayOwners;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 		}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 		}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 	&amp;#160; &amp;#160; ([[gettime]](4)==6) &amp;amp;&amp;amp; ([[gettime]](3)==18)) { &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 	&amp;#160; &amp;#160; ([[gettime]](4)==6) &amp;amp;&amp;amp; ([[gettime]](3)==18)) { &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 		[[if]] ([[agitcheck]]()) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 		[[if]] ([[agitcheck]]()) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 			[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;AgitEnd&lt;/del&gt;]];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 			[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;agitend&lt;/ins&gt;]];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 			[[callsub]] S_DisplayOwners;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 			[[callsub]] S_DisplayOwners;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 		}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 		}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[Seems the arguments above me havent picked this query up yet]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[Seems the arguments above me havent picked this query up yet]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; if((gettime(4)==2[Why no, it isnt day 2 ''{0}'']) &amp;amp;&amp;amp; (gettime(3)==23[and it is not hour 23 ''{0}''])) goto L_End;[I see one or more ''{0}'' better not run this or stupid people will post bugs]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; if((gettime(4)==2[Why no, it isnt day 2 ''{0}'']) &amp;amp;&amp;amp; (gettime(3)==23[and it is not hour 23 ''{0}''])) goto L_End;[I see one or more ''{0}'' better not run this or stupid people will post bugs]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Setting WoE Times==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Setting WoE Times==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Via</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=War_of_Emperium&amp;diff=446&amp;oldid=prev</id>
		<title>Via: Created page with &quot;The '''War of Emperium''' is a battle between guilds for castles (5 castles in each of 4 towns, for a total of 20).  Guilds fight against each other and the guild that owns th...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=War_of_Emperium&amp;diff=446&amp;oldid=prev"/>
				<updated>2013-06-09T09:20:34Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;#039;&amp;#039;&amp;#039;War of Emperium&amp;#039;&amp;#039;&amp;#039; is a battle between guilds for castles (5 castles in each of 4 towns, for a total of 20).  Guilds fight against each other and the guild that owns th...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The '''War of Emperium''' is a battle between guilds for castles (5 castles in each of 4 towns, for a total of 20).  Guilds fight against each other and the guild that owns the castle at the end of WoE has access to dungeons and treasures that are not accessible to people who are not in the residing guild.&lt;br /&gt;
&lt;br /&gt;
==agit_controller.txt==&lt;br /&gt;
Open {{git|npc/guild/agit_controller.txt}} &amp;lt;br /&amp;gt;&lt;br /&gt;
The body of the script should look similar to the following:&lt;br /&gt;
&lt;br /&gt;
 -	script	Agit_Event	-1,{&lt;br /&gt;
 	end;&lt;br /&gt;
 &lt;br /&gt;
 [[OnClock]]2100:	//start time for Tues(2), Thurs(4)&lt;br /&gt;
 [[OnClock]]2300:	//end time for Tues(2), Thurs(4)&lt;br /&gt;
 [[OnClock]]1600:	//start time for Sat(6)&lt;br /&gt;
 [[OnClock]]1800:	//end time for Sat(6)&lt;br /&gt;
 &lt;br /&gt;
 OnAgitInit:&lt;br /&gt;
 	// starting time checks&lt;br /&gt;
 	[[if]](([[gettime]](4)==2) &amp;amp;&amp;amp; ([[gettime]](3)&amp;gt;=21 &amp;amp;&amp;amp; [[gettime]](3)&amp;lt;23) ||&lt;br /&gt;
 	   ([[gettime]](4)==4) &amp;amp;&amp;amp; ([[gettime]](3)&amp;gt;=21 &amp;amp;&amp;amp; [[gettime]](3)&amp;lt;23) ||&lt;br /&gt;
 	   ([[gettime]](4)==6) &amp;amp;&amp;amp; ([[gettime]](3)&amp;gt;=16 &amp;amp;&amp;amp; [[gettime]](3)&amp;lt;18)) {&lt;br /&gt;
 		[[if]] (![[agitcheck]]()) {&lt;br /&gt;
 			[[AgitStart]];&lt;br /&gt;
 			[[callsub]] S_DisplayOwners;&lt;br /&gt;
 		}&lt;br /&gt;
 		[[end]];&lt;br /&gt;
 	}&lt;br /&gt;
 &lt;br /&gt;
 	// end time checks&lt;br /&gt;
 	[[if]] (([[gettime]](4)==2) &amp;amp;&amp;amp; ([[gettime]](3)==23) ||&lt;br /&gt;
 	    ([[gettime]](4)==4) &amp;amp;&amp;amp; ([[gettime]](3)==23) ||&lt;br /&gt;
 	    ([[gettime]](4)==6) &amp;amp;&amp;amp; ([[gettime]](3)==18)) { &lt;br /&gt;
 		[[if]] ([[agitcheck]]()) {&lt;br /&gt;
 			[[AgitEnd]];&lt;br /&gt;
 			[[callsub]] S_DisplayOwners;&lt;br /&gt;
 		}&lt;br /&gt;
 		[[end]];&lt;br /&gt;
 	}&lt;br /&gt;
 	[[end]];&lt;br /&gt;
 &lt;br /&gt;
 S_DisplayOwners:&lt;br /&gt;
 	[[setarray]] .@maps$[0],&amp;quot;aldeg_cas01&amp;quot;,&amp;quot;aldeg_cas02&amp;quot;,&amp;quot;aldeg_cas03&amp;quot;,&amp;quot;aldeg_cas04&amp;quot;,&amp;quot;aldeg_cas05&amp;quot;;&lt;br /&gt;
 	[[setarray]] .@maps$[5],&amp;quot;gefg_cas01&amp;quot;,&amp;quot;gefg_cas02&amp;quot;,&amp;quot;gefg_cas03&amp;quot;,&amp;quot;gefg_cas04&amp;quot;,&amp;quot;gefg_cas05&amp;quot;;&lt;br /&gt;
 	[[setarray]] .@maps$[10],&amp;quot;payg_cas01&amp;quot;,&amp;quot;payg_cas02&amp;quot;,&amp;quot;payg_cas03&amp;quot;,&amp;quot;payg_cas04&amp;quot;,&amp;quot;payg_cas05&amp;quot;;&lt;br /&gt;
 	[[setarray]] .@maps$[15],&amp;quot;prtg_cas01&amp;quot;,&amp;quot;prtg_cas02&amp;quot;,&amp;quot;prtg_cas03&amp;quot;,&amp;quot;prtg_cas04&amp;quot;,&amp;quot;prtg_cas05&amp;quot;;&lt;br /&gt;
 	[[for]]( [[set]] .@i, 0; .@i &amp;lt;= 19; [[set]] .@i, .@i+1 ) {&lt;br /&gt;
 		[[if]] ([[GetCastleData]](.@maps$[.@i],1)) {&lt;br /&gt;
 			[[Announce]] &amp;quot;The [&amp;quot; + [[GetCastleName]](.@maps$[.@i]) + &amp;quot;] castle has been conquered by the [&amp;quot; + [[GetGuildName]]([[GetCastleData]](.@maps$[.@i],1)) + &amp;quot;] guild.&amp;quot;,bc_all|bc_woe;&lt;br /&gt;
 		}&lt;br /&gt;
 		[[else]] {&lt;br /&gt;
 			[[Announce]] &amp;quot;The [&amp;quot; + [[GetCastleName]](.@maps$[.@i]) + &amp;quot;] castle is currently unoccupied.&amp;quot;,bc_all|bc_woe;&lt;br /&gt;
 		}&lt;br /&gt;
 	}&lt;br /&gt;
 	[[end]];&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===OnClock####===&lt;br /&gt;
You need one of these labels for each time you want WoE to start or stop, so if you want the WoE to start at 9am and end at 11am you would need this&lt;br /&gt;
&lt;br /&gt;
 OnClock0900:&lt;br /&gt;
 OnClock1100:&lt;br /&gt;
&lt;br /&gt;
===if((gettime(4)==2) &amp;amp;&amp;amp; (gettime(3)&amp;gt;=21 &amp;amp;&amp;amp; gettime(3)&amp;lt;23)) goto L_Start;===&lt;br /&gt;
 gettime(4)==2&lt;br /&gt;
Will check what the day is, 0 = Sun 1 = Mon 2 = Tue etc etc...&lt;br /&gt;
&lt;br /&gt;
This is currentally day 2, so this would result in a success if it was a Tuesday&lt;br /&gt;
&lt;br /&gt;
 gettime(3)&amp;gt;=21&lt;br /&gt;
Will check the hour of the day, 00 = Midnight 01 = 1am etc...&lt;br /&gt;
&lt;br /&gt;
This is currentally 9pm (21:00) the &amp;gt;= mean if the current time is after 9pm return a success&lt;br /&gt;
&lt;br /&gt;
 gettime(3)&amp;lt;23&lt;br /&gt;
Work the same as above, but will be the end of your WoE, the &amp;lt; means if the current time is before 11pm (23:00) it will return a success, if at any point the current time is equal to or more that 11pm it will return a fail &lt;br /&gt;
&lt;br /&gt;
 if((gettime(4)==2) &amp;amp;&amp;amp; (gettime(3)&amp;gt;=21 &amp;amp;&amp;amp; gettime(3)&amp;lt;23)) goto L_Start;&lt;br /&gt;
&lt;br /&gt;
Only if everything inside the outer bracket is a success will it goto &amp;quot;L_Start&amp;quot; and start the WoE&lt;br /&gt;
&lt;br /&gt;
'''Example 1''': It is tuesday, it is 10pm, you have just had to restart the server cause it has crash or whatever, it runs past that line of code&lt;br /&gt;
&lt;br /&gt;
 if((gettime(4)==2[Hm yes it is ''{1}'']) &amp;amp;&amp;amp; (gettime(3)&amp;gt;=21[Yes it is after 21 ''{1}''] &amp;amp;&amp;amp; gettime(3)&amp;lt;23[oh and it is before 23 ''{1}''])) goto L_Start; [I didnt detect any ''{0}'' I better goto L_Start]&lt;br /&gt;
&lt;br /&gt;
'''Example 2''': It is Tuesday, it is 11:30pm&lt;br /&gt;
&lt;br /&gt;
 if((gettime(4)==2[Hm yes it is ''{1}'']) &amp;amp;&amp;amp; (gettime(3)&amp;gt;=21[Yes it is after 21 ''{1}''] &amp;amp;&amp;amp; gettime(3)&amp;lt;23[wait no it is after 23 ''{0}''])) goto L_Start; [I detected one or more ''{0}'' I better no run this action and let the script carry on]&lt;br /&gt;
&lt;br /&gt;
'''Example 3''': It is Wednesday, it is 10pm&lt;br /&gt;
&lt;br /&gt;
 if((gettime(4)==2[Wait it is not day 2 ''{0}'']) &amp;amp;&amp;amp; (gettime(3)&amp;gt;=21[Yes it is after 21 ''{1}''] &amp;amp;&amp;amp; gettime(3)&amp;lt;23[oh and it is before 23 ''{1}''])) goto L_Start; [I detected one or more ''{0}'' I better no run this action and let the script carry on]&lt;br /&gt;
&lt;br /&gt;
===if((gettime(4)==2) &amp;amp;&amp;amp; (gettime(3)==23)) goto L_End;===&lt;br /&gt;
 gettime(4)==2&lt;br /&gt;
Same as above, used for checking the day, you will need one of these for everyday you make, that is unless you decide to have one everyday at the same time then I wont mind, you will need just one, and it wont need to check the day&lt;br /&gt;
&lt;br /&gt;
 gettime(3)==23&lt;br /&gt;
This would be the hour you want the WoE to end at, again 1 is needed for every WoE day/time you set&lt;br /&gt;
&lt;br /&gt;
'''Example 1''': This query is reached after passing through the first &amp;quot;Example 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
It is the same, Tuesday and 11:30pm&lt;br /&gt;
&lt;br /&gt;
[Seems the arguments above me havent picked this query up yet]&lt;br /&gt;
 if((gettime(4)==2[Why yes, it is day 2 ''{1}'']) &amp;amp;&amp;amp; (gettime(3)==23[and it is hour 23 ''{1}''])) goto L_End;[I didnt see any ''{0}'' better run this&lt;br /&gt;
&lt;br /&gt;
This will then end your WoE&lt;br /&gt;
&lt;br /&gt;
'''Example 2''': This query is reached after passing through the first &amp;quot;Example 3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
It is Wednesday, it is 10pm&lt;br /&gt;
&lt;br /&gt;
[Seems the arguments above me havent picked this query up yet]&lt;br /&gt;
 if((gettime(4)==2[Why no, it isnt day 2 ''{0}'']) &amp;amp;&amp;amp; (gettime(3)==23[and it is not hour 23 ''{0}''])) goto L_End;[I see one or more ''{0}'' better not run this or stupid people will post bugs]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting WoE Times==&lt;br /&gt;
# Make a list of when you want WoE to start and end during the week. If any times are the same, only list that time once.&lt;br /&gt;
# Add each of these times in the '''OnClock''' section of labels.&lt;br /&gt;
# In the first line of arguments enter the day, the start time, then the end time&lt;br /&gt;
# In the second line of arguments enter the day and the end time&lt;br /&gt;
# You can add as many lines as you'd like, but overlapping times can get annoying and messy :P  &lt;br /&gt;
&lt;br /&gt;
If you still don't understand this, try the WoE Setter NPC I made to guide you through the process. Add the script to your scripts_custom.conf and talk to the NPC in game with a GM level 99.&lt;br /&gt;
&lt;br /&gt;
WoE Controller script - {{git|npc/custom/woe_controller.txt}}&lt;br /&gt;
&lt;br /&gt;
Original guide can be found at {{git|doc/woe_time_explanation.txt}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Turn OFF WoE in Some Castles==&lt;br /&gt;
WoE is a server-wide setting, so it's either ON everywhere, or OFF everywhere.&amp;lt;br /&amp;gt;&lt;br /&gt;
To get around this and &amp;quot;turn off&amp;quot; woe in certain castles, this is what you can do:&lt;br /&gt;
# Edit {{git|npc/scripts_guild.conf}} and comment out the castles you are NOT using for WoE (put // in front of the line). This turns of all woe functions for that castle.&lt;br /&gt;
# Optional: to remove the warp portal entrance, edit {{git|npc/warps/guildcastles.txt}} and comment-out the warps into the castles you are not using.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Separate WoE Times in Separate Towns/Castles==&lt;br /&gt;
WoE is a server-wide setting, so it's either ON everywhere, or OFF everywhere.&amp;lt;br /&amp;gt;&lt;br /&gt;
(you can't have it on in one castle only).&amp;lt;br /&amp;gt;&lt;br /&gt;
To get around this, you need to code 3 separate events in the {{git|npc/guild/agit_controller.txt}}&lt;br /&gt;
===StartWOE1:===&lt;br /&gt;
* close portal into WoE castle2&lt;br /&gt;
* kick people out of WoE castle2&lt;br /&gt;
* open portal into WoE castle1 (and start woe)&lt;br /&gt;
&lt;br /&gt;
===StartWOE2:===&lt;br /&gt;
* close portal into WoE &lt;br /&gt;
* kick people out of WoE castle1&lt;br /&gt;
* open portal into WoE castle2 (and start woe)&lt;br /&gt;
&lt;br /&gt;
===EndWOE:===&lt;br /&gt;
(same for both)&lt;br /&gt;
* (end woe)&lt;br /&gt;
* open portals into both castle1 &amp;amp; castle2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [http://sushiduy.plesk3.freepgs.com/ROScripts/WoeInfo/woeinfo_122.php Toasty's WoE Controller]&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>