summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-10-21 21:04:13 +0200
committerHaru <haru@dotalux.com>2014-10-28 00:30:30 +0100
commit3ad4a9d5061bf662d107dd69444555d6a15dbd17 (patch)
treea1b011f7ed4fbfc2d5f9e882fcf663a6005b767d
parentbba3e690de390f1576d70f227f76b4721ac3a010 (diff)
downloadhercules-3ad4a9d5061bf662d107dd69444555d6a15dbd17.tar.gz
hercules-3ad4a9d5061bf662d107dd69444555d6a15dbd17.tar.bz2
hercules-3ad4a9d5061bf662d107dd69444555d6a15dbd17.tar.xz
hercules-3ad4a9d5061bf662d107dd69444555d6a15dbd17.zip
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 <haru@dotalux.com>
-rw-r--r--doc/script_commands.txt8
-rw-r--r--src/map/script.c2
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 <ID2> to the the quest log, and the state is "active".
*checkquest(<ID>{,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"),