Lua API
On this page

Allegiance

Inherits from

Information about a character's allegiance

Fields:

BindPoint Position

read only

Allegiance bind point

ChatRoomId number

read only

Allegiance chat room id

Exists boolean

read only

True if your character is in an allegiance

Locked boolean

read only

Wether or not the allegiance is locked

Monarch AllegianceMember

read only

Monarch info

MOTD string

read only

The allegiance message of the day

Name string

read only

The name of the allegiance your character is in

Patron AllegianceMember

read only

Patron info

Rank number

read only

Your allegiance rank

TotalMembers number

read only

Total number of members in this allegiance

TotalVassals number

read only

The number of followers your character has

Vassals AllegianceMember[]

read only

Vassals info

Methods:

Break(options?: ActionOptions = nil, callback?: fun(AllegianceBreakAction) : nil = nil) : AllegianceBreakAction

Break allegiance from your current patron

Parameters:
NameTypeDefaultSummary
optionsActionOptionsnil

Action options

callbackfun(AllegianceBreakAction) : 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[]

SwearTo(objectId: number, options?: ActionOptions = nil, callback?: fun(AllegianceSwearAction) : nil = nil) : AllegianceSwearAction

Swear allegiance to another player

Parameters:
NameTypeDefaultSummary
objectIdnumber

The object id of the player to swear to

optionsActionOptionsnil

Action options

callbackfun(AllegianceSwearAction) : nil nil

Called when the action completes

ToString() : string

Returns a string that represents the current object.

Returns:string