Lua API
On this page

Fellowship

Inherits from

Information about the character's current fellowship

Fields:

EvenExpSharing boolean

read only

Wether or not this fellowship has even experience sharing

Exists boolean

read only

Check if your character is in a fellowship

IsOpen boolean

read only

Check if a fellowship is open

LeaderId number

read only

The id of the fellowship leader

Locked boolean

read only

Wether or not this fellowship is locked. Locked fellowships do not accept new members.

MAX_FELLOW_COUNT number

staticread only

Maximum number of fellowship members allowed

Name string

read only

Name of the fellowship

ShareExp boolean

read only

Wether or not this fellowship has experience sharing enabled

Events:

OnJoin EventArgs

Fired when a fellowship is joined or created by this character

OnLeave EventArgs

Fired when you are no long a part of the fellowship. The fellowship may still exist, you are just no longer a part of it at this point (quit, disbanded, or dismissed).

OnMembersChanged FellowshipChangedEventArgs

Fired when someone other than yourself joins this fellowship.

Methods:

Create(name: string, shareExperience?: boolean = true, options?: ActionOptions = nil, callback?: fun(FellowCreateAction) : nil = nil) : FellowCreateAction

Attempt to create a fellowship.

Parameters:
NameTypeDefaultSummary
namestring

Name of the fellowship

shareExperiencebooleantrue

Wether or not to share experience

optionsActionOptionsnil

Action options

callbackfun(FellowCreateAction) : nil nil

Called when the action completes

Disband(options?: ActionOptions = nil, callback?: fun(FellowDisbandAction) : nil = nil) : FellowDisbandAction

Attempt to disband your current fellowship. You must be the leader.

Parameters:
NameTypeDefaultSummary
optionsActionOptionsnil

Action options

callbackfun(FellowDisbandAction) : nil nil

Called when the action completes

Dismiss(objectId: number, options?: ActionOptions = nil, callback?: fun(FellowDismissAction) : nil = nil) : FellowDismissAction

Attempt to dismiss a member from the fellowship. You must be the leader

Parameters:
NameTypeDefaultSummary
objectIdnumber

The object id of the member you want to dismiss

optionsActionOptionsnil

Action options

callbackfun(FellowDismissAction) : nil nil

Called when the action completes

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

Quit(disband: boolean, options?: ActionOptions = nil, callback?: fun(FellowQuitAction) : nil = nil) : FellowQuitAction

Attempt to quit your current fellowship.

Parameters:
NameTypeDefaultSummary
disbandboolean

Wether or not to disband the fellowship while quitting. If you specify true you must be the leader

optionsActionOptionsnil

Action options

callbackfun(FellowQuitAction) : nil nil

Called when the action completes

Recruit(objectId,options,callback) objectId number , options ActionOptions , callback function

SetLeader(objectId,options,callback) objectId number , options ActionOptions , callback function

SetOpen(open,options,callback) open boolean , options ActionOptions , callback function

ToString()