ClientActions
Interface for performing client actions with async callbacks / promises. These actions do thier best to check for validity before sending the action to the server, and throwing specific error messages when something goes wrong.
Methods:
AllegianceBreak(options?: ActionOptions = nil, callback?: fun(AllegianceBreakAction) : nil = nil) : AllegianceBreakAction
Break allegiance from your current patron
| Name | Type | Default | Summary |
| options | ActionOptions | nil | Action options |
| callback | fun(AllegianceBreakAction) : nil | nil | Called when the action completes |
AllegianceSwear(objectId: number, options?: ActionOptions = nil, callback?: fun(AllegianceSwearAction) : nil = nil) : AllegianceSwearAction
Swear allegiance to another player
| Name | Type | Default | Summary |
| objectId | number | The object id of the player to swear to | |
| options | ActionOptions | nil | Action options |
| callback | fun(AllegianceSwearAction) : nil | nil | Called when the action completes |
AttributeAddExperience(attributeId: AttributeId, experienceToSpend: number, options?: ActionOptions = nil, callback?: fun(AttributeAddExperienceAction) : nil = nil) : AttributeAddExperienceAction
Adds experience towards raising an attribute.
| Name | Type | Default | Summary |
| attributeId | AttributeId | The attribute id to spend experience towards | |
| experienceToSpend | number | The amount of experience to spend | |
| options | ActionOptions | nil | Action options |
| callback | fun(AttributeAddExperienceAction) : nil | nil | Called when the action completes |
Blank(options?: ActionOptions = nil, callback?: fun(BlankAction) : nil = nil) : BlankAction
A blank action that always immediately returns success
| Name | Type | Default | Summary |
| options | ActionOptions | nil | Action options |
| callback | fun(BlankAction) : nil | nil | Called when the action completes |
CastEquippedWandSpell(targetId?: number = nil, options?: ActionOptions = nil, callback?: fun(CastEquippedWandSpellAction) : nil = nil) : CastEquippedWandSpellAction
Cast the spell on your current equipped wand, with an optional target.
| Name | Type | Default | Summary |
| targetId | number | 0 | The id of the object to target, set to 0 if none. |
| options | ActionOptions | nil | Action options |
| callback | fun(CastEquippedWandSpellAction) : nil | nil | Called when the action completes |