diff options
author | gumi <git@gumi.ca> | 2019-10-20 13:19:26 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2019-10-20 22:20:03 -0400 |
commit | c6350bb83d2b7ebfabd9eb99d67cfd6360a4f60a (patch) | |
tree | 6f89c93eb96e0262fa1d7efd35cb5a1a948ab5ef /doc | |
parent | ed65bdd7ffd74e7c4223e2f00d200a7e14a8a0af (diff) | |
download | hercules-c6350bb83d2b7ebfabd9eb99d67cfd6360a4f60a.tar.gz hercules-c6350bb83d2b7ebfabd9eb99d67cfd6360a4f60a.tar.bz2 hercules-c6350bb83d2b7ebfabd9eb99d67cfd6360a4f60a.tar.xz hercules-c6350bb83d2b7ebfabd9eb99d67cfd6360a4f60a.zip |
add documentation for buildin_getguildinfo
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index db853d267..47ad19191 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3704,6 +3704,32 @@ You need to put a 'close' after that yourself. //===================================== --------------------------------------- +*getguildinfo(<info type>{, <guild id>}) +*getguildinfo(<info type>{, "<guild name>"}) + +This command returns misc info about the guild of the attached player. If a +guild id or guild name is specified it will be used instead. If the target guild +does not exist it returns an empty string or -1 depending on whether a string +or an integer was requested. + +Valid <info type> are: + GUILDINFO_NAME - guild name + GUILDINFO_ID - guild id + GUILDINFO_LEVEL - current level + GUILDINFO_EXP - current exp + GUILDINFO_NEXT_EXP - exp required to reach the next level + GUILDINFO_SKILL_POINTS - available skill points + GUILDINFO_ONLINE - number of online members + GUILDINFO_AV_LEVEL - average member level + GUILDINFO_MAX_MEMBERS - guild capacity + GUILDINFO_MASTER_NAME - name of the guild master + GUILDINFO_MASTER_CID - char id of the guild master + +Example: + getguildinfo(GUILDINFO_MASTER_NAME, getcharid(CHAR_ID_GUILD, "Haru")) + +--------------------------------------- + *getguildname(<guild id>) This function returns a guild's name given an ID number. If there is no |