lua how to add autocomplete - mtanksl/OpenTibia GitHub Wiki
How to add autocomplete
- Download ZeroBrane Studio IDE.
- Copy the reference file from
\mtanksl.OpenTibia.GameData\data\openTibiaFunctionsReference.lua
- Paste the reference file into
\ZeroBraneStudio\api\lua\
- Launch the IDE.
- Click
Menu > Edit > Preferences > Settings: User
.
- Add a line with
table.insert(api, "openTibiaFunctionsReference")
.
- Relaunch the IDE.
- Type
command.
in any script and the autocomplete will appear.
- Now go have some fun!