public class 0402_Guild_Related extends Object
================================ |0402.- Guild-related commands.| ================================
| 构造器和说明 |
|---|
0402_Guild_Related() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
guild_has_permission()
guild_has_permission(<permission>{,<char id>})
Checks if the attached player or the player with the given character id has the given permission(s).
|
void |
guildchangegm()
guildchangegm(<guild id>,<new master's name>)
This function will change the Guild Master of a guild.
|
void |
guildgetexp()
guildgetexp <amount>;
This will give the specified amount of guild experience points to the guild the
invoking character belongs to.
|
void |
guildopenstorage_log()
guildopenstorage_log({<char id>})
Opens the guild storage log window for the attached character or the given character id.
|
void |
guildopenstorage()
guildopenstorage()
This function works the same as 'openstorage' but will open a guild storage
window instead for the guild storage of the guild the invoking character belongs
to.
|
void |
guildskill()
guildskill <skill id>,<level>
guildskill "<skill name>",<level>
This command will bump up the specified guild skill by the specified number of
levels.
|
public void _guildopenstorage()
guildopenstorage()
This function works the same as 'openstorage' but will open a guild storage
window instead for the guild storage of the guild the invoking character belongs
to.
Return values:
GSTORAGE_OPEN - Successfully opened.
GSTORAGE_STORAGE_ALREADY_OPEN - Player storage is already open.
GSTORAGE_ALREADY_OPEN - Guild storage is already open.
GSTORAGE_NO_GUILD - Player is not in a guild.
GSTORAGE_NO_STORAGE - Guild hasn't invested in the Guild Storage Expansion skill (only if OFFICIAL_GUILD_STORAGE is enabled).
GSTORAGE_NO_PERMISSION - Player doesn't have permission to use the guild storage.
guildopenstorage_log({<char id>})
Opens the guild storage log window for the attached character or the given character id.
Possible return values:
GUILDSTORAGE_LOG_FINAL_SUCCESS Window was opened successfully.
GUILDSTORAGE_LOG_EMPTY Window was not opened, because no entries exist.
GUILDSTORAGE_LOG_FAILED Some database error occurred.
guild_has_permission(<permission>{,<char id>})
Checks if the attached player or the player with the given character id has the given permission(s).
Permission can be a bitmask and allows to use multiple values at the same time.
Returns true if the player has all of the given permissions or false if the player does at least
miss one of the given permissions or is not in a guild at all.
Available permissions are:
GUILD_PERM_INVITE If a player is allowed to invite other players.
GUILD_PERM_EXPEL If a player is allowed to expel other guild members.
GUILD_PERM_STORAGE If a player is allowed to access the guild storage.
GUILD_PERM_ALL A combination of all permissions above.
guildchangegm(<guild id>,<new master's name>)
This function will change the Guild Master of a guild. The ID is the guild's
id, and the new guild master's name must be passed.
Returns 1 on success, 0 otherwise.
guildgetexp <amount>;
This will give the specified amount of guild experience points to the guild the
invoking character belongs to. It will silently fail if they do not belong to
any guild.
guildskill <skill id>,<level>
guildskill "<skill name>",<level>
This command will bump up the specified guild skill by the specified number of
levels. This refers to the invoking character and will only work if the invoking
character is a member of a guild AND its guild master, otherwise no failure
message will be given and no error will occur, but nothing will happen - same
about the guild skill trying to exceed the possible maximum. The full list of
guild skills is available in 'db/(pre-)re/skill_db.txt', these are all the GD_ skills at
the end.
// This would give your character's guild one level of Approval (GD_APPROVAL ID
// 10000). Notice that if you try to add two levels of Approval, or add
// Approval when the guild already has it, it will only have one level of
// Approval afterwards.
guildskill 10000,1,0;
You might want to make a quest for getting a certain guild skill, make it hard
enough that all the guild needs to help or something. Doing this for the Glory
of the Guild skill, which allows your guild to use an emblem, is a good idea for
a fun quest.
Copyright © 工程的初始时间(可选)–2019. All rights reserved.