Sharp Aion2 Lua SDK
Build your own in-game scripts with Sharp Lua 5.5.1.
This guide is for anyone writing a Sharp Aion2 script. It covers the Scripts folder, instant and persistent scripts, callbacks, game and UI functions, and bundled Lua libraries.
Start here
- Run a first script from the Scripts tab.
- Choose instant, module, or library.
- Use the API reference to look up a function and its failure result.
- Open working examples for module patterns.
- See API updates for customer-facing additions to the Lua SDK.
Build on the examples with a quest journal or a configurable travel helper.
Scripts use Lua 5.5.1. Each script has its own globals and can import bundled libraries with require.
Functions that depend on a character or world may return nil, error while the game is loading or changing maps. Check the result before using it, and read current values again after a map or character change.