Skip to main content

Config keys (scripting & HUD)

File: opusbot_cmd.txt next to opusbot.dll. Lines are key=value. # starts a comment.


Scripting

KeyDefaultDescription
lua_scriptsemptyComma-separated list of .lua files to load
scripts_dir.Reported by Engine.getScriptsDirectory()

The Scripts GUI tab rewrites lua_scripts when you Load / Unload.


HUD overlay (script drawing)

KeyDefaultDescription
hud_overlay11 show Win32 GDI HUD for text/rects; 0 hide

Module button bar

KeyDefaultDescription
hud_visible1show/hide the Cave/Heal/… quick bar
hud_anchortltl / tr / bl / br
hud_top_margin100pixels from top when anchor is top-*
hud_buttons(see below)semicolon-separated button list

Button format

id:Label:verb|#RRGGBB|itemId;id2:Label2:verb2
  • id — used for module mapping: cave, heal, spell, target, loot
  • Label — text on the button
  • verb — IPC line, usually SET cave_enabled 1 (the GUI toggles trailing 0/1)
  • optional color and item sprite id

Example:

hud_buttons=cave:Cave:SET cave_enabled 1;heal:Heal:SET heal_enabled 1;target:Target:SET enabled 1;spell:Spells:SET spell_enabled 1;loot:Loot:SET loot_enabled 1

Module setting keys:

ModuleSetting key
Targetingenabled
Healingheal_enabled
Spellsspell_enabled
Cavebotcave_enabled
Autolootloot_enabled
Equipmentequip_enabled
Reconnectreconnect_enabled

Logging (useful while developing scripts)

KeyDescription
log_enabledwrite bot log
log_consolealso print to console

IPC verbs (Scripts tab / automation)

VerbEffect
SCRIPTSJSON { "active": [...], "available": [...] }
DO scriptload <file>add to lua_scripts
DO scriptunload <file>remove from list
DO scriptreloadforce reload of active set
DO scriptbrowsefile picker → copy into DLL folder
DO hudtoggle / hudshow / hudhidemodule bar visibility