Sharp Aion2 Lua SDK
API reference

Overview

Find Lua functions by table or bundled library.

Browse by gameplay area or Lua table. Each reference gives callable names, parameters, results, and examples. Calls that cannot read a game value usually return nil, error; false is a valid result for boolean queries. Advanced pages include experimental interfaces with their exact underscore-prefixed names and availability limits.

By task

GoalFunctionsComplete workflow
Read character stateCharacter, current worldQuickstart
Query nearby entitiesgame.entities(), entitiesExamples
Request movement and inspect destinationsMovement, travelConfigurable travel
Read and act on questsQuestsQuest journal
Look up item, skill, NPC, pet, quest, or dungeon definitionsGame dataSDK downloads
Use items and skill shortcutsItems and shortcutsRequest timing
Select targets, inspect skills, and upgrade themCombat and skillsAuto Defense
Read detailed resources and surrounding action stateCharacter and environmentError handling
Manage inventory, equipment, storage, crafting, and gatheringInventory, equipment, and craftingRequest timing
Read objectives, enter dungeons, and manage expedition partiesQuests, dungeons, and rewardsQuest journal
Buy, sell, list, settle, and read membershipsCommerceInventory
Request cross-map travel or change the cameraNavigation and cameraConfigurable travel
Inspect or interact with existing game windowsGame windows and controlsCustom script windows
Draw and accept user inputUI and graphics, hotkeysExamples
Make web requests or play soundsServicesScript lifecycle
Read a game CAPTCHA image with the hosted serviceCAPTCHA APIRequest timing
Observe, queue, or edit packetspacketsScript lifecycle

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.
packetsIncoming packet copies, outgoing packet requests, and future byte edits.
scriptWorkers, pauses, saved module values, and loading, reloading, or unloading modules.
menuInspect Sharp menu features and turn them off.
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.
captcha_apiHosted five-character image requests and reply checks.

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

On this page