Hey guys, I wanted to make an easy way to open the Great Vault UI from wherever I am in the game. The command for this is:
/run LoadAddOn(“Blizzard_WeeklyRewards”);WeeklyRewardsFrame:Show()
Is there a way I can make an addon/macro where I can just change this script to work when I type /vault ?
You COULD make an addon - something like:
SLASH_PHRASE = “/vault”;
local function PHRASEfunc(msg)
SendChatMessage(/run LoadAddOn("Blizzard_WeeklyRewards");WeeklyRewardsFrame:Show()", "SAY")
end
SlashCmdList["PHRASE"] = PHRASEfunc;
However I would literally just paste
/run LoadAddOn(“Blizzard_WeeklyRewards”);WeeklyRewardsFrame:Show()
into a new macro and slap the button for it on a side bar somewhere!
Thanks!
Do you know where I’m meant to put the /vault info in?
Yeah I’ve done that but my screen has enough buttons on it as is right now lol.
Appreciate it
Heyha’s code doesn’t exactly work because he forgot to register the SLASH global, a quirk that WoW’s command system needs. This also shouldn’t be done using a SendChatMessage, the code should be executed directly instead.
Below code would work to make the /vault command open the great vault UI (I’ve tested it myself):
SLASH_VAULT1 = "/vault";
SlashCmdList["VAULT"] = function (msg)
LoadAddOn("Blizzard_WeeklyRewards");
WeeklyRewardsFrame:Show();
end
In order to turn this code into an addon, head on over to https://addon.bool.no/
, and paste the code above into the “code” box on that page. For the title, fill in whatever name you want to give the addon and then hit the green “download” button on the lower left.
The downloaded zip file will contain a folder. extract that folder into the WoW\_retail_\Interface\AddOns folder to install it in your WoW client.
Finally, log in on WoW and enable your newly created addon in the Addons menu. Once you’ve done this the /vault command will work and open the great vault UI.
Thanks for the help!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.