diff options
author | gumi <git@gumi.ca> | 2019-10-20 13:24:48 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2019-10-20 22:20:08 -0400 |
commit | 9127ead75b9baa4e6372d11cb4ba033651976629 (patch) | |
tree | 19c0999fa5372bcb953421593a63a73c8e4a6a34 | |
parent | b0a890b60f73ddde94c219659979278e75684984 (diff) | |
download | hercules-9127ead75b9baa4e6372d11cb4ba033651976629.tar.gz hercules-9127ead75b9baa4e6372d11cb4ba033651976629.tar.bz2 hercules-9127ead75b9baa4e6372d11cb4ba033651976629.tar.xz hercules-9127ead75b9baa4e6372d11cb4ba033651976629.zip |
deprecate buildin_getguildmasterid
-rw-r--r-- | doc/script_commands.txt | 8 | ||||
-rw-r--r-- | src/map/script.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 1b53072ad..45636f23b 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3792,10 +3792,18 @@ likely to be removed at a later time. Please use getguildinfo instead: *getguildmasterid(<guild id>) + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + @ /!\ This command is deprecated @ + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + This function will return the character ID number of the guild master of the guild specified by the ID. 0 if the character is not a guild master of any guild. +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_MASTER_CID, <guild id>) + --------------------------------------- *getcastlename("<map name>") diff --git a/src/map/script.c b/src/map/script.c index 91d579178..9d99b99f9 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -26177,7 +26177,7 @@ static void script_parse_builtin(void) BUILDIN_DEF(getpartyleader,"i?"), BUILDIN_DEF_DEPRECATED(getguildname,"i"), BUILDIN_DEF_DEPRECATED(getguildmaster,"i"), - BUILDIN_DEF(getguildmasterid,"i"), + BUILDIN_DEF_DEPRECATED(getguildmasterid,"i"), BUILDIN_DEF(getguildmember,"i?"), BUILDIN_DEF(getguildinfo,"i?"), BUILDIN_DEF(getguildonline, "i?"), |