diff options
author | gumi <git@gumi.ca> | 2019-10-20 13:23:55 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2019-10-20 22:20:06 -0400 |
commit | b0a890b60f73ddde94c219659979278e75684984 (patch) | |
tree | 2f26ad11a9ce814700eb56aba8f6213542a1032d | |
parent | b9aaf46392137cdcd83fc53d990a5f8b997cf9b2 (diff) | |
download | hercules-b0a890b60f73ddde94c219659979278e75684984.tar.gz hercules-b0a890b60f73ddde94c219659979278e75684984.tar.bz2 hercules-b0a890b60f73ddde94c219659979278e75684984.tar.xz hercules-b0a890b60f73ddde94c219659979278e75684984.zip |
deprecate buildin_getguildmaster
-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 939a5e7c6..1b53072ad 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3757,6 +3757,10 @@ likely to be removed at a later time. Please use getguildinfo instead: *getguildmaster(<guild id>) + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + @ /!\ This command is deprecated @ + @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + This function return the name of the master of the guild which has the specified ID number. If there is no such guild, "null" will be returned. @@ -3780,6 +3784,10 @@ Maybe you want to make a room only guild masters can enter: mes("Sorry you don't own the guild you are in"); close(); +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_NAME, <guild id>) + --------------------------------------- *getguildmasterid(<guild id>) diff --git a/src/map/script.c b/src/map/script.c index 066836b8e..91d579178 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -26176,7 +26176,7 @@ static void script_parse_builtin(void) BUILDIN_DEF(getpartymember,"i?"), BUILDIN_DEF(getpartyleader,"i?"), BUILDIN_DEF_DEPRECATED(getguildname,"i"), - BUILDIN_DEF(getguildmaster,"i"), + BUILDIN_DEF_DEPRECATED(getguildmaster,"i"), BUILDIN_DEF(getguildmasterid,"i"), BUILDIN_DEF(getguildmember,"i?"), BUILDIN_DEF(getguildinfo,"i?"), |