Sharp Aion2 Lua SDK
API reference

Overview

Find Lua functions by table or bundled library.

Each Lua table has its own page. Choose a page to see function signatures, parameters, return values, and examples. Calls that cannot read a game value usually return nil, error; false is a valid result for boolean queries.

Game scripts

Lua tableWhat it provides
gameCharacter, world, movement, items, and quests.
uiWindows and interactive controls.
gfxScreen drawings.
hotkeysKey state and one-time presses.
httpAsynchronous web requests.
soundSystem and WAV playback.
defenseAuto Defense skills, rules, and events.
scriptWorkers, pauses, and saved module values.
logScript messages.

Bundled libraries

Import these with require.

LibraryWhat it provides
sdkCommon game functions in one import.
entitiesNearby entity helpers.
ui_sdkA window helper that opens and closes ui windows.

Start with the quickstart if you have not run a script yet.

On this page