From b1b1b1aa8edc866a83029081e93d3e7d0f138189 Mon Sep 17 00:00:00 2001 From: Haru Date: Wed, 21 Jan 2015 13:42:17 +0100 Subject: Deprecated command isday(). - The command is deprecated and it will be removed in about a month. Please use isnight() in your custom scripts instead. Signed-off-by: Haru --- doc/script_commands.txt | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'doc') 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. --------------------------------------- -- cgit v1.2.3-60-g2f50