目录

guild_rank 表


<-返回:Characters 数据库

This table holds the information on all of the ranks available in a guild along with their names and what rights a person with that rank has.

表结构

FieldTypeAttributesKeyNullDefaultextraComment
guildidINTUNSIGNEDPRINO0
ridTINYINTUNSIGNEDPRINO
rnameVARCHAR(20)SIGNED NO
rightsMEDIUMINTUNSIGNED NO0
BankMoneyPerDayINTUNSIGNED NO0

字段说明


guildid

The guild ID that the rank is part of. See guild.guildid.

rid

The particular rank ID. This number must be unique to each rank in a guild.

rname

The name of the rank that is displayed in-game.

rights

The rights a player with this rank has in the guild. The calculation of multiple rights is a bit different in this case as the rights do not all have 2^n values. To combine ranks, you must do the OR operation (|) on the two flags.

FlagNameComments
64GR_RIGHT_EMPTYHaving just this flag by itself is equivalent to having no rights at all.
65GR_RIGHT_GCHATLISTENPlayer can read messages in the guild general chat channel.
66GR_RIGHT_GCHATSPEAKPlayer can type messages in the guild general chat channel.
68GR_RIGHT_OFFCHATLISTENPlayer can read messages in the guild officers channel.
72GR_RIGHT_OFFCHATSPEAKPlayer can type messages in the guild officers channel.
80GR_RIGHT_INVITECan invite other players to guild.
96GR_RIGHT_REMOVECan kick other players out of guild.
192GR_RIGHT_PROMOTECan promote other players.
320GR_RIGHT_DEMOTECan demote other players.
4160GR_RIGHT_SETMOTDCan change the guild message of the day.
8256GR_RIGHT_EPNOTECan edit other players' personal notes.
16448GR_RIGHT_VIEWOFFNOTECan view the officer notes of other players.
32832GR_RIGHT_EOFFNOTECan edit officer notes of other players.
65600GR_RIGHT_MODIFY_GUILD_INFOCan edit guild info.
131072GR_RIGHT_WITHDRAW_GOLD_LOCKCan remove money withdraw capacity.
262144GR_RIGHT_WITHDRAW_REPAIRCan withdraw for repair.
524288GR_RIGHT_WITHDRAW_GOLDCan withdraw gold.
1048576GR_RIGHT_CREATE_GUILD_EVENTCan create a guild event.
1962495GR_RIGHT_ALLHas all of the rights.

BankMoneyPerDay

The total money per day, in copper, that a person with this rank can take out. Use the maximum value of an UNSIGNED INT (4294967295) to specify unlimited amount.