Difference between revisions of "Isnight"
From Hercules Wiki
(Created page with "==Syntax== *'''isday'''(); *'''isnight'''(); ==Description== These functions determine whether server day or night cycle is currently in effect or not. If the server night is...") |
(removed isday info) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Syntax== | ==Syntax== | ||
− | |||
*'''isnight'''(); | *'''isnight'''(); | ||
==Description== | ==Description== | ||
− | These functions determine whether server day or night cycle is currently in effect or not. If the server night is in effect, | + | These functions determine whether server day or night cycle is currently in effect or not. If the server night is in effect, isnight will return true, otherwise false. |
==Examples== | ==Examples== | ||
− | [[if]](! | + | [[if]](!isnight()) |
{ | { | ||
− | [[mes]] "I do not work at | + | [[mes]] "I do not work at day, come again tomorrow."; |
[[close]]; | [[close]]; | ||
} | } |
Latest revision as of 18:27, 16 September 2016
Syntax
- isnight();
Description
These functions determine whether server day or night cycle is currently in effect or not. If the server night is in effect, isnight will return true, otherwise false.
Examples
if(!isnight()) { mes "I do not work at day, come again tomorrow."; close; }
if(isnight()) { mes "I do not work at night, come again tomorrow."; close; }
These two script fragments achieve the same effect.