IGLA WIKI
OFICIAL WIKI IGLA OTS!

Create scripts for IglaOTS Helper. Learn the basics, build UI and browse functions.
Helper Scripting API
Create Lua scripts for IglaOTS Helper. Build HUDs, alerts and settings windows. Control native Helper features through the documented API.
Scripts use Lua 5.1. Names and event names are case-sensitive. Native OTClient globals are unavailable.
Start here
- Update the client executable and resources, then log in with an account with an active Supporter Pack (VIP).
- Open IglaOTS Helper → Scripts. Access is requested automatically after login. Wait for Scripts access active.
- Click Open Folder to locate the writable
assistant_scriptsdirectory. Do not guess an installation or AppData path. - Save a plain UTF-8 file such as
my_status.luathere. Click Refresh, then Start. - After editing, use Reload. Stop removes that script's UI, HUDs, timers and listeners. Stop All stops every script.
Download examples separately. The script list starts empty.
The Scripts category is included in the standard client. An active Supporter Pack (VIP) grants access to the panel, and script execution requires authorization from the connected server.
A green filename means running. Red means an error. Check the tooltip and console.
Logout, disconnection and Helper shutdown stop scripts. Enable Restore running scripts after login to restore this character's remembered scripts after the next login. The option defaults OFF for each character. Closing the Helper window leaves scripts running.
Restore waits for server authorization and a living player with a known position. It starts one remembered script per host tick through the normal dependency loader. Manual Stop removes that script and stopped dependents from the saved list. Stop All also cancels queued restoration. Failed or missing scripts are removed from restoration and logged. Scripts managed with stopWithOwner are recreated by their owner. Each script executes its normal startup code and loads its own saved settings. Preferences are scoped to the world, login server and character. Only filenames and the restore option are saved, in helper/scripts/session.json.
Restored scripts start in the background. Settings windows created or shown during initialization stay hidden. A script's HUD, hotkeys and callbacks can open those windows after startup completes.
local hud = HUD.new(20, 60, 'My status')
hud:setColor('#55dd88')
Timer.every('status', 500, function()
if not Player.isOnline() then return end
hud:setText(string.format('%s | HP %d%% | Mana %d%%',
Player.getName(), Player.getHealthPercent(), Player.getManaPercent()))
end)This example only displays information. It does not spend currency or enable gameplay automation.