Skip to content

lua how to add autocomplete

mtanksl edited this page Sep 17, 2023 · 1 revision

How to add autocomplete

  1. Download ZeroBrane Studio IDE.
  2. Copy the reference file from \mtanksl.OpenTibia.GameData\data\openTibiaFunctionsReference.lua
  3. Paste the reference file into \ZeroBraneStudio\api\lua\
  4. Launch the IDE.
  5. Click Menu > Edit > Preferences > Settings: User.
  6. Add a line with table.insert(api, "openTibiaFunctionsReference").
  7. Relaunch the IDE.
  8. Type command. in any script and the autocomplete will appear.
  9. Now go have some fun!