Violet
Violet Lua SDK

Write Violet scripts in Lua.

The complete API reference for the Violet scripting engine — lifecycle callbacks, object access, player control, input, packets, HTTP, and everything you need to automate.

buff_tracker.luahot reload
-- scripts/buff_tracker.lua
plugin = { name = "Buff Tracker", load = true }

local BUFFS = { HOLY_SYMBOL = 1211003 }

function on_tick()
  local player = core.object_manager.get_local_player()
  if not player or not player:is_valid() then return end

  for _, id in pairs(BUFFS) do
    if not player:has_buff(id) then
      core.input.use_skill(id)
    end
  end
end
Full API

Writing scripts with an LLM?

There’s a single token-efficient reference built for AI assistants — drop it into a system prompt or RAG store.