Lua Pad
Ever wanted to test a quick Lua idea without alt-tabbing to an editor, saving a file, and reloading your UI? Lua Pad is an addon for World of Warcraft that turns that whole workflow into a two-second job. Open the editor with /luapad or /lp, paste your code, hit save, and watch it run. For tinkerers, theorycrafters, and addon authors who like to experiment on the fly, it fills a gap Blizzard never addressed.
What Lua Pad Actually Does
At its core, Lua Pad is a sandbox for your own Lua snippets inside the game client. You write code, save it, and it runs immediately. If something breaks, you get line-accurate error reporting: the exact line, a short trace, a Go to line button, and a Clear error option. A popup names the snippet and the line, and clicking it jumps straight back into the editor at the problem. Protected or forbidden calls are flagged on the snippet that made them, and live checks warn you while you type about names that do not exist, missing functions on Blizzard tables, and events that are blocked for addons.
The snippet list on the left side of the window keeps everything organized. Drag the title bar to move the window, press Esc to close it, and use Ctrl+S to save. The Enabled toggle switches a snippet on or off, and enabled snippets restart automatically after login or a /reload. Ctrl+Z and Ctrl+Y handle undo and redo, and Delete asks once more before removing anything. Frames, timers, and hooks a snippet creates are cleaned up or silenced when you save again or switch it off, so experiments do not pile up in the background.
Simple Mode: Rules Without Writing Code
Not everyone wants to type Lua, and Lua Pad knows it. Simple mode builds a rule in three steps: WHEN (combat, casts, class resources, buffs and debuffs, cooldowns, equipped items, zone changes, ready checks, quests, a timer, and more), ONLY IF (up to four conditions), and THEN (play a sound, show text, flash the screen, or print a chat message). A live preview next to each action plays it instantly, so you can hear the sound or see the text before committing.
Text after a one-off trigger has a colour, size, duration, and position. Text tied to a While or Always rule stays on screen as long as the condition holds, and it can show the icon of the buff, spell, or item involved. A countdown bar plus %time, %stacks, and %name fill in the remaining time, stack count, and name. When a rule outgrows the builder, Convert to code turns it into a normal snippet, though that step is one-way.
Helpers Available in Every Snippet
- On("EVENT", function(event, ...) end) listens for a game event.
- Every(seconds, function() end) sets a repeating timer.
- After(seconds, function() end) runs a one-shot timer.
- Print(...) sends a chat message prefixed with the snippet name.
- Sound, Text, Flash, and Status apply the same on-screen effects Simple rules use.
If you would rather skip the manual file shuffle, the foxygame.net launcher installs Lua Pad in a single click and keeps it updated automatically, so your snippet workflow never breaks after a patch. The launcher's addon catalog also flags which game versions each build supports, which saves a lot of guesswork.
Version Support and Compatibility
Lua Pad for World of Warcraft covers the full spread of clients: Retail, Classic, TBC, WotLK, Cataclysm, and MoP. That matters because the Lua environment and available API differ between expansions, and a snippet that works on Retail may hit a missing function on a Classic realm. The live checks are especially useful here, since they flag names and events that do not exist in your current client before you save. One caveat worth knowing: Blizzard hides health values and the combat log from addons during combat, so Simple mode does not offer them, and buffs, debuffs, and cooldowns may be hidden too. In those cases the generated code simply does nothing instead of throwing errors.
Settings and Everyday Use
The settings panel lives under Settings > AddOns > Lua Pad and includes an Open Lua Pad button plus controls for the error popup: on or off, and how long it stays visible (three to sixty seconds). Snippets that use HookScript or SetScript ask for a reload after saving, because the old version keeps running until then. The addon is open source under the MIT license, and feedback, bug reports, and feature requests are welcome through the project's issue tracker. When reporting a bug, include your addon version and an overview of your current options.
Final Thoughts
Whether you want to prototype an addon idea, build a no-code alert for a proc, or just satisfy a sudden curiosity about the API, Lua Pad removes the friction between an idea and a working snippet. If you are ready to try it, download Lua Pad, follow the install notes for your client, and keep the /lp command handy. Learning how to install takes a minute; the experimenting can last all evening.