Skip to content

Guild

A guild object in Ratchet represents a single guild/clan on the server.

getGuildFromID function

Syntax:

lua
Guild|nil getGuildFromID( int id )

getAllGuilds function

Returns a table of all guilds on the server.

Syntax:

lua
table<Guild> getAllGuilds()

GetID function

Syntax:

lua
int Guild:GetID()

GetName function

Syntax:

lua
string Guild:GetName()

GetMOTD function

Syntax:

lua
string Guild:GetMOTD()

GetOwner function

Returns a database ID of the guild master player character.

Syntax:

lua
int Guild:GetOwner()

GetMembers function

Returns a table of names of all the members in a guild, indexed by their ID.

Syntax:

lua
table<int, string> Guild:GetMembers()