WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Script Help - Great Vault (https://www.wowinterface.com/forums/showthread.php?t=58454)

Kindosar 12-11-20 02:38 PM

Script Help - Great Vault
 
So I was hoping someone could help me with my goal here. I've already checked google to see if someone has done this already, but it doesn't seem that it has happened.

I'm wanting to use a script to access the great vault screen if possible, like you would for your garrison report. (i.e. /script ShowGarrionLandingPage(2)) will pull up your garrison information from anywhere in the world.

I've run the /framestack and looked at it seems to be called WeeklyRewardsFrame, but when trying /script ShowWeeklyRewardsFrame and variants based on the framestack, nothing is happening. I'm assuming this is either because I'm not doing the script correctly or that you can't do it period because you interact with it by choosing a reward.

I've attached screenshots to help you understand the question if you're not familiar with what I'm talking about, but I'm sure the more experienced people understand what I'm trying to accomplish.





Thanks in advance!

https://gyazo.com/b1c4ac61ba587f07ecc0388d969223df

https://gyazo.com/e6894e99cb74e2b22389dc3b373d236a

Tim 12-11-20 04:17 PM

You can't just simply add the word "Show" to the beginning of a frame name and/or function and expect it to work.

Code:

/run LoadAddOn("Blizzard_WeeklyRewards"); WeeklyRewardsFrame:Show()

Kindosar 12-11-20 05:36 PM

Thank you so much! This works perfectly. I was aware you couldn't just add the word show, but I wasn't sure how else to do it given the framestack name for the garrison report. I know that when coding stuff, like hiding the gryphons, you would use the frame:hide() for example, but I guess I got thrown off by the name convention.


Quote:

Originally Posted by Tim (Post 337879)
You can't just simply add the word "Show" to the beginning of a frame name and/or function and expect it to work.

Code:

/run LoadAddOn("Blizzard_WeeklyRewards"); WeeklyRewardsFrame:Show()



All times are GMT -6. The time now is 01:49 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI