Anyways, the problem I'm having now is that the commands work in game as I want them to but they aren't working from the addon loadup. Here's what I have so far.
Code: Select all
function ManualAddon_OnLoad()
DEFAULT_CHAT_FRAME:AddMessage("Manual Add-on Loaded!");
EditMacro(2, "", 7, "");
EditMacro(1, "", 1, "");
DEFAULT_CHAT_FRAME:AddMessage("Created startup Macros!");
PickupMacroItem(1);
PickupAction(10);
end
Also, I can run the /script ManualAddon_OnLoad(); in game and it makes them fine too. but that's not what I want, I want it to make them when it loads so I don't have to worry about the buggy macros dissappearing issue.
Edit: I tested it in game using the script commands and you can use PickupMacroItem(1);PickupAction(10); to map it.
Edit: So I added the commands and tested it with existing macros. Again, the commands don't run on addon loadup but if I run the loadup function in the game it works like it's supposed, creating and mapping the macros.
And since my status messages are showing in chat and my functions are callable I know the add-on is loaded.