summaryrefslogtreecommitdiff
path: root/doc/woe_time_explanation.txt
diff options
context:
space:
mode:
authorthatakkarin <thatakkarin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-10 09:28:25 +0000
committerthatakkarin <thatakkarin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-10 09:28:25 +0000
commit4b98ecfd974be6ef5f3ee64fd42d8733ad32eadf (patch)
tree9c65399fa4ae4a74607a7b5efe2cead32258a3c3 /doc/woe_time_explanation.txt
parent3b97f2739fa22e677699a6632c3ff042a77dda65 (diff)
downloadhercules-4b98ecfd974be6ef5f3ee64fd42d8733ad32eadf.tar.gz
hercules-4b98ecfd974be6ef5f3ee64fd42d8733ad32eadf.tar.bz2
hercules-4b98ecfd974be6ef5f3ee64fd42d8733ad32eadf.tar.xz
hercules-4b98ecfd974be6ef5f3ee64fd42d8733ad32eadf.zip
* Updated 'mapwarp' in script_commands.txt to show missing params - Thanks to Emistry for pointing that out!
* permissions.txt's current version should be the date an additional permission was created, not documented. Cross-referencing for the win. * Slight clean-up in woe_time_explanation.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16768 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/woe_time_explanation.txt')
-rw-r--r--doc/woe_time_explanation.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/woe_time_explanation.txt b/doc/woe_time_explanation.txt
index 75dfaf09e..099a5a15e 100644
--- a/doc/woe_time_explanation.txt
+++ b/doc/woe_time_explanation.txt
@@ -12,7 +12,7 @@ There are 2 main commands that determine WoE times:
OnClock<time>: and gettime(<type>).
OnClock<time> triggers when <time> is reached.
-The format is HHMM, with H = hour, M = minute.
+The format is HHMM, where H = hour, M = minute.
OnClock2350: would run at 23:50, server time.
gettime(<type>) is a function that checks for certain
@@ -54,14 +54,14 @@ The first gettime() is checking for a type 4, the day of the week, and it's
comparing it to the one desired, which is 2 (Tuesday). The function will
return either 1 (true) or 0 (false).
-The second gettime is checking for a type 3, the hour, and it's comparing
-it to 21. If the first part is greater or equal (>=) than the second,
-the comparation will return 1.
+The second gettime is checking type 3, the hour, and it's comparing
+it to 21. If the first part is greater than or equal to (>=) the second part,
+the comparison will return 1.
The third and last gettime is checking again for the hour, but the time has to be less
-than the said time (in this case, 23).
+than the specified time (in this case, 23).
-Now, look at the parentheses. Parentheses are very important when making comparations
+Now, look at the parentheses. Parentheses are very important when making comparisons
and conditions. Check the order of these. I'll place dummy characters for this example:
if ((X && (Y && Z)) goto L_Start;
@@ -90,7 +90,7 @@ to see if it's in WoE time, hence why the hours have to be checked.
-------------------------------------------------------------------------------
-Now a example of how to set the WoE so it starts on Monday, at 4 pm and ends up at 10 pm:
+An example of how to set the WoE so it starts on Monday, at 4 pm and ends up at 10 pm:
OnClock1600: // 16:00 = 4 pm
OnClock2200: // 22:00 = 10 pm