summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-05-08 16:16:40 +0200
committerHaru <haru@dotalux.com>2015-05-08 16:21:06 +0200
commitca877ecbef0d3fe8df1b69fcaa9e72693c104f02 (patch)
treedb8cf212fae4e00ddc0384fd315a16ec554498e0
parentad9a14992cde8ad6759263da37e723b2b1825981 (diff)
downloadhercules-ca877ecbef0d3fe8df1b69fcaa9e72693c104f02.tar.gz
hercules-ca877ecbef0d3fe8df1b69fcaa9e72693c104f02.tar.bz2
hercules-ca877ecbef0d3fe8df1b69fcaa9e72693c104f02.tar.xz
hercules-ca877ecbef0d3fe8df1b69fcaa9e72693c104f02.zip
Deprecated command checkre().
- The command is deprecated and it will be removed in about a month. Please use the constants RENEWAL, RENEWAL_CAST, RENEWAL_DROP, RENEWAL_EXP, RENEWAL_LVDMG, RENEWAL_EDP, RENEWAL_ASPD instead. Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--doc/script_commands.txt8
-rw-r--r--src/map/script.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 3a8ec4fc0..831e0a744 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -3988,6 +3988,14 @@ by the type parameter.
4 - RENEWAL_LVDMG (renewal level modifier on damage)
5 - RENEWAL_EDP (renewal enchant deadly poison algorithm)
6 - RENEWAL_ASPD (renewal ASPD)
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ @ /!\ This command is deprecated @
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+
+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 the respective
+constants RENEWAL, RENEWAL_CAST, RENEWAL_DROP, RENEWAL_EXP, RENEWAL_LVDMG,
+RENEWAL_EDP, RENEWAL_ASPD instead.
---------------------------------------
//=====================================
diff --git a/src/map/script.c b/src/map/script.c
index ecffeffd8..ed4f9e918 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -20184,7 +20184,7 @@ void script_parse_builtin(void) {
BUILDIN_DEF(makerune,"i"),
BUILDIN_DEF(hascashmount,""),//[Ind]
BUILDIN_DEF(setcashmount,""),//[Ind]
- BUILDIN_DEF(checkre,"i"),
+ BUILDIN_DEF_DEPRECATED(checkre,"i"), // Deprecated 2015-05-08 [Haru]
/**
* rAthena and beyond!
**/