Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

SpellLearning

const SpellLearning: object

Defined in: client/api.d.ts:5888

Standalone native spell lessons. Resources decide progression; this API does not grant spells.

cancel(requestId): boolean

Cancels a request owned by the calling resource. False for stale, foreign, or already settled requests.

number

boolean

define(id, lesson): SpellLessonDefineResult

Adds or replaces one of this resource’s lessons in the native lesson table, then start(id) runs it like a stock one. Works before world entry; refused while that lesson runs. Gone when the resource stops.

string

Letters, digits and _, up to 32; not a stock name. Scoped to this resource.

SpellLessonDefinition

SpellLessonDefineResult

lessons(): string[]

The ids this resource has defined.

string[]

start(spell): SpellLearningRequest

Starts one native lesson in a ready world with idle native UI. Listen for spellLearningFinished before starting. One request may be active globally.

string

Exact name from supportedSpells, such as Revelio, or an id this resource defined.

SpellLearningRequest

state(): SpellLearningState | null

Reads the caller’s active lesson; null for other resources or after result delivery.

SpellLearningState | null

supportedSpells(): string[]

Lists the 29 verified rows in the shipping native spell lesson table.

string[]

undefine(id): boolean

Removes one of this resource’s lessons. False when it has none by that id, or it is running.

string

boolean