Sharp Aion2 Lua SDK
Build your own in-game scripts with Sharp Lua 5.5.1.
Write in-game scripts with the game, script, and ui tables, or import the bundled sdk library for game helpers and services in one place.
Browse the generated game classes, members, methods, and enums in the Game SDK browser. It includes searchable declarations and copyable examples for supported Lua getters.
Build by task
| Task | Guide | Reference |
|---|---|---|
| Read character health, resources, and class | First module | Character |
| Find nearby characters and objects | Examples | Entity helpers |
| Follow a destination and check travel state | Configurable travel | Movement, travel |
| Read active, available, and completed quests | Quest journal | Quests |
| Use items and configure skill shortcuts | Module lifecycle | Items and shortcuts |
| Select targets, read skills and buffs, or request an upgrade | Request timing | Combat and skills |
| Inspect detailed resources and surrounding action state | Error handling | Character and environment |
| Manage gear, storage, crafting, or gathering | Request timing | Inventory and crafting |
| Inspect objectives, expedition parties, collections, or rewards | Quest journal | Progression |
| Work with shops, cash-shop products, market listings, or memberships | Request timing | Commerce |
| Request cross-map travel, change the camera, or inspect game dialogs | Configurable travel | Navigation, game controls |
| Draw a HUD or build controls | Working examples | Drawing, windows |
| Pause a job or save module settings | Workers | Script |
Start here
New to programming? Follow Build scripts with AI — step by step to set up Cursor, OpenCode, Codex, or Devin, connect MCP, create Hello World, and ask your assistant to run bounded tests and check fresh logs.
- 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.
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.