-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Metatable:Guild
No description available at the moment.
addMember(player)
addRank(id, name, level)
getId()
getMembersOnline()
getMotd()
getName()
getRankById(id)
getRankByLevel(level)
removeMember(player)
setMotd(motd)
getBankBalance()
setBankBalance()
getOwnerGUID()
Description: N/A
Parameters:Returns: N/A
- player - No description
Example:
local guild = Guild(...)
guild:addMember(some_userdata)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- id - No description
- name - No description
- level - No description
Example:
local guild = Guild(...)
guild:addRank(some_id, some_name, 1)
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local guild = Guild(...)
guild:getId()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local guild = Guild(...)
guild:getMembersOnline()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local guild = Guild(...)
guild:getMotd()
Added in version: 1.0
Description: N/A
Parameters: None
Returns: N/A
Example:
local guild = Guild(...)
guild:getName()
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- id - No description
Example:
local guild = Guild(...)
guild:getRankById(some_id)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- level - No description
Example:
local guild = Guild(...)
guild:getRankByLevel(1)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- player - No description
Example:
local guild = Guild(...)
guild:removeMember(some_userdata)
Added in version: 1.0
Description: N/A
Parameters:Returns: N/A
- motd - No description
Example:
local guild = Guild(...)
guild:setMotd(any_string)
Added in version: 1.0
Description: Get bank balance (gold coins stored up in the guild).
Parameters: None
Returns: int - balance
Example:
local guild = Guild(...)
guild:getBankBalance()
Added in version: 1.4 #2214
Description: Set bank balance.
Parameters: (Number) new bank balance
Returns: bool true or nil
Example:
local guild = Guild(...)
local rent = 2000
guild:setBankBalance(guild:getBankBalance() - rent)
Added in version: 1.4 #2214
Description: Get the player GUID number that is the guild leader of this guild.
Parameters: None
Returns: int - player:guid
Example:
local player = Player(...)
local guild = player:getGuild()
if guild and player:getGUID() == guild:getOwnerGUID() then
print("Player: " .. player:getName() .. " is the Guild Leader of: " .. guild:getName())
end
Added in version: 1.4 #2214