• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run
MQ VS Code Lua Autocomplete Definition Library

Utility MQ VS Code Lua Autocomplete Definition Library 2026-09-25

Download


Macroquest Lua Definitions Library​

Overview​

The definitive set of Lua code definitions for Macroquest, ImGui Lua Bindings w/custom features, and Macroquest core Lua helpers. This library is designed to help you write Lua scripts for Macroquest with greater speed and fewer runtime errors, thanks to LuaLS dynamic type checking, syntax checking, and diagnostic tools.

Prerequisites​

To get started you'll need the following.
If You already have these, jump ahead to "Getting Started", otherwise continue with the next section.

Installation​

Microsoft Visual Studio Code​

  • Install the latest version of Visual Studio Code from the here

LuaLS (Lua Language Server Extension)​

Install these files on your computer​

  • RedGuides Users can simply "Watch" the resource here and the files will automatically be placed in a directory called "mq-defintions" under your Lua directory when you run the RedGuides launcher.
  • If you are not a RedGuides user, or wish to install the files yourself, you can clone the repository from GitHub, or download the zip file from GitHub.
  • Unless you need the definitions in a separate location, e.g you're writing scripts for different versions EQ Live and EQ Emu, it is highly recommended that you put the definitions under your Lua directory (i.e. a subdirectory called mq-definitions under the Lua directory). This installation will require no additional configurations and you'll be up and running right away.
    • Download the zip from Gihub by following this link, or you can use the web interface.
    • Clone the repository
      • If you do not have Git for Windows installed, you can get it at gitforwindows.org
      • git clone https://github.com/macroquest/mq-definitions.git

Getting Started​

At this point, you should have:
  • VS Code Installed and Working
  • with the LuaLS Extension installed
  • and the files downloaded to a known directory on your computer
  • If you put your mq-defintions in a folder location other than under the lua directory, then you will need to complete the next step, to define where the LuaLS extension can locate the definition files and the Macroquest Lua directory.
  • Create or modify settings file for VS Code with these settings:
JSON:
{
  "Lua.runtime.version": "LuaJIT",
  "Lua.workspace.library": [
    "path/to/mq-definitions",
    "path/to/macroquest/lua",
  ],
}

How to Use​

When requiring the Macroquest, ImGui, or other supported libaries in your Lua script, autocompletion will be provided for fields, methods and enum types.
  • Definitions support the following requires. Note: This is case sensitive.
Lua:
local mq = require('mq')
local imgui = require('ImGui')
local actors = require('actors')
local icons = require('mq/icons')
local utils = require('mq/utils')
local packageman = require('mq/packageman')
. . .
  • 1662829807497.png
    1662829807497.png
    37 KB · Views: 43
Author
Coldblooded
Watchers
179
First release
Last update

Ratings

5.00 star(s) 5 ratings

More resources from Coldblooded

Share this resource

Latest updates

  1. v1.1.0

    [1.1.0] - 2023-11-19 Documentation 📕 - Fixes spelling mistakes in readme (c77e0ca) ~John...
  2. 20231013

    〰️Commits Fix return type (#47) * Fix return type * Add string param to Task TLO (07c51c1)...
  3. 20230927

    〰️Commits Update DanNet TLO defs (1bb6027) ~Aleksander Spro

Latest reviews

One of the most useful things that exists in any MQ site, forum, or resource!
I needed some help to get this running. Maybe the description how to implement it couild be improved. In the second page of the Discussion the details how to implement it are described. But oncer I got it, it really meant a great improvement for me.
I resubscribed to RedGuides to leave a 5 star rating. Holy smokes! HOLY! SMOKES!
Very nice. I was just wishing that such a thing existed a few days ago. This will save so much time!!
Legit. great resource
Back
Top
Cart