diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 028c12791..420f31943 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3967,16 +3967,20 @@ if War of Emperium is on and 0 if it isn't. --------------------------------------- *isnight() -*isday() -These functions will return 1 or 0 depending on whether the server is in -night mode or day mode. 'isnight' returns 1 if it's night and 0 if it -isn't, 'isday' the other way around. They can be used interchangeably, -pick the one you like more: +This functions will return true or false depending on whether the server is in +night mode or day mode: + + if (!isnight()) mes "I only prowl in the night."; + +*isday() + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + @ /!\ This command is deprecated @ + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - // These two are equivalent: - if (isday()) mes "I only prowl in the night."; - if (isnight()!=1) mes "I only prowl in the night."; +This command is deprecated and it should not be used in new scripts, as it +is likely to be removed at a later time. Please consider using !isnight() +instead. --------------------------------------- |