From 3ad4a9d5061bf662d107dd69444555d6a15dbd17 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 21 Oct 2014 21:04:13 +0200 Subject: Marked command 'checkquest' as deprecated Use questprogress instead. - Note: The command will be completely removed after about a month. Custom, third party scripts will require updates, in case they were using this command. It is recommended to use questprogress instead. Please see the checkquest documentation for more information. Signed-off-by: Haru --- doc/script_commands.txt | 8 +++++++- src/map/script.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 596c8b61c..7e00e50dc 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -8437,7 +8437,13 @@ Add quest of the to the the quest log, and the state is "active". *checkquest({,PLAYTIME|HUNTING}) -DEPRECATED - use questprogress instead. + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + @ /!\ This command is deprecated @ + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + +This command is deprecated and it should not be used in new scripts, as it +is scheduled to be removed on or after November 28th, 2014. Please consider +using questprogress() instead. Or, in special cases, questactive(). If no additional argument supplied, return the state of the quest: -1 = Quest not started (not in quest log) diff --git a/src/map/script.c b/src/map/script.c index 2c4defc25..26117530a 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19479,7 +19479,7 @@ void script_parse_builtin(void) { BUILDIN_DEF(setquest, "i"), BUILDIN_DEF(erasequest, "i?"), BUILDIN_DEF(completequest, "i?"), - BUILDIN_DEF(checkquest, "i?"), + BUILDIN_DEF_DEPRECATED(checkquest, "i?"), // Deprecated 2014-10-28 [Haru] BUILDIN_DEF(questprogress, "i?"), BUILDIN_DEF(questactive, "i"), BUILDIN_DEF(changequest, "ii"), -- cgit v1.2.3-70-g09d2