summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-10-20 13:21:59 -0400
committergumi <git@gumi.ca>2019-10-20 22:20:05 -0400
commitb9aaf46392137cdcd83fc53d990a5f8b997cf9b2 (patch)
tree1ec09ef6a496e7dfff1819a9a43560041e06a0f5
parentc6350bb83d2b7ebfabd9eb99d67cfd6360a4f60a (diff)
downloadhercules-b9aaf46392137cdcd83fc53d990a5f8b997cf9b2.tar.gz
hercules-b9aaf46392137cdcd83fc53d990a5f8b997cf9b2.tar.bz2
hercules-b9aaf46392137cdcd83fc53d990a5f8b997cf9b2.tar.xz
hercules-b9aaf46392137cdcd83fc53d990a5f8b997cf9b2.zip
deprecate buildin_getguildname
-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 47ad19191..939a5e7c6 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -3732,6 +3732,10 @@ Example:
*getguildname(<guild id>)
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ @ /!\ This command is deprecated @
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+
This function returns a guild's name given an ID number. If there is no
such guild, "null" will be returned;
@@ -3745,6 +3749,10 @@ such guild, "null" will be returned;
This is used all over the WoE controlling scripts. You could also use it
for a guild-based event.
+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 use getguildinfo instead:
+ getguildinfo(GUILDINFO_NAME, <guild id>)
+
---------------------------------------
*getguildmaster(<guild id>)
diff --git a/src/map/script.c b/src/map/script.c
index 6d8a38093..066836b8e 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -26175,7 +26175,7 @@ static void script_parse_builtin(void)
BUILDIN_DEF(getpartyname,"i"),
BUILDIN_DEF(getpartymember,"i?"),
BUILDIN_DEF(getpartyleader,"i?"),
- BUILDIN_DEF(getguildname,"i"),
+ BUILDIN_DEF_DEPRECATED(getguildname,"i"),
BUILDIN_DEF(getguildmaster,"i"),
BUILDIN_DEF(getguildmasterid,"i"),
BUILDIN_DEF(getguildmember,"i?"),