promotional bannermobile promotional banner

Smart Potion Macro

Automatically updates a macro to use the best available Light's Potential potion.
video thumbnail

Description

Never worry about your potion macro showing the wrong icon again.

Smart Potion Macro was just going to be a personal project.

I use the outstanding Enhance QoL and really like its macro feature that automatically updates based on what you have in your bags. Your action bar icon showing a health potion turns into a Healthstone if you grab one, and switches to Recuperate when out of combat. It intelligently uses the best item or spell for the situation, and more importantly, the action bar icon always reflects what’s actually going to happen.

I wanted that same behavior for the main combat potion of this expansion, Light's Potential.

What this solves

If you use a macro with multiple potions based on a priority list, you’ve probably run into this:

  • The macro icon always shows your top priority potion
  • Even if you don’t have that potion in your bags
  • The macro still works correctly
  • But the icon doesn’t tell you what you’re actually going to use

It’s a small thing, but it’s misleading enough that it’s easy to ignore or forget about using potions altogether.

What this addon does

Smart Potion Macro fixes that by making your macro reflect what you actually have in your bags.

  • Automatically creates the macro for you
  • Updates it dynamically as your inventory changes
  • Ensures the icon always matches the potion that will be used
  • Removes the need to manually maintain priority macros

Features

  • Always uses the best Light's Potential potion you actually have:
    • Fleeting Light's Potential (High Quality)
    • Fleeting Light's Potential
    • Light's Potential (High Quality)
    • Light's Potential
  • Updates automatically when:
    • Logging in
    • Bags change
    • Leaving combat
  • Settings panel included
  • Configurable behavior when no potion is available
  • Automatically adds a safeguard to prevent using a potion out of combat

Commands

/smartpotion - Open settings
/smartpotion update - Force macro update
/smartpotion debug - Toggle debug output

Notes

  • Macro updates only occur outside of combat (game limitation)
  • Designed for Midnight expansion potions

Disclosure

This started as a personal project, and the majority of the code was written with the help of ChatGPT. I plan to continue improving it as I get more comfortable working with Lua.

The Smart Potion Macro Team

profile avatar
  • 1
    Projects
  • 439
    Downloads