Auto Potion

Auto Potion

282k Downloads

Auto Potion & Mega Macro

privacymonk3y opened this issue ยท 1 comments

commented

Hey there,

I really love Auto Potion and would like to use it but I'm also using Mega Macro. The problem being that for some reason every time Auto Potion generates a updated Macro it just keeps spamming a new macro rather then over writing the current one.

This might be something more on the Mega Macro side but the developer isn't currently playing and I'm learning lua atm but not enough to investigate it thoroughly. Is there anything that can be done to bring these two great addons together?

commented

Addons like AutoPotion interact with the game's default macro API by using global functions such as CreateMacro and EditMacro. These functions rely on macro names for identification.

MegaMacro, however, manages macros through its own system, using random IDs in place of the traditional names. As a result, when an addon like AutoPotion attempts to modify a macro named "AutoPotion," it can't locate it. This causes the addon to continually create new macros, leading to an infinite number being generated.

Ideally, MegaMacro should be redesigned to allow other addons to interface with the game's native macro system without issues. At the very least, it should provide public hooks that enable third-party addon developers to perform basic CRUD (create, read, update, delete) operations on macros by name. Since MegaMacro stores the macro names as DisplayName in its internal table, this should be achievable.

That said, it's still possible to implement compatibility with MegaMacro. I have submit pull request #53 , which aims to add support for MegaMacro.