Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

...

Field

Type

Attributes

Key

Null

Default

Extra

Comment

guildid

int(10)

unsigned

PRI

NO

0

 

 

TabId

tinyint(3)

unsigned

PRI

NO

0

 

 

rid

tinyint(3)

unsigned

PRI

NO

0

 

 

gbright

tinyint(3)

unsigned

 

NO

0

 

 

SlotPerDay

int(10)

unsigned

 

NO

0

 

 

Description of the fields

guildid

The ID of the guild.

TabId

The ID of the Tab you are setting the permissions for.

rid

The rank you are setting the permissions for.

gbright

The permissions you want to give to a player of that rank on the tab. This is a bitmask. To combine permissions, you must do the OR operation sum the flags.

Example:

Bloque de código

UPDATE `guild_bank` SET `gbright`=`gbright`|4 WHERE...)

...

8 = withdraw items

255 = Has all rights

SlotPerDay

The number of items that a player can withdraw per day (if permissions give him the right to withdraw items).