WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Check for Recruits available in Tavern (https://www.wowinterface.com/forums/showthread.php?t=52127)

Oniya 03-27-15 11:57 AM

Check for Recruits available in Tavern
 
Want to create a simple addon for check if i Could recruit Follower this week in Tavern (having many alts - you can forget to easy)

So, i wonder if i can check this somehow?

I checked frames that we have when recruits available:

Quote:

GarrisonRecruiterFrame.Pick
GarrisonRecruiterFrame.Pick.Title1
GarrisonRecruiterFrame.Pick.Radio1
GarrisonRecruiterFrame.Pick.Radio2
GarrisonRecruiterFramePickThreatDropDown
GarrisonRecruiterFrame.Pick.ChooseRecruits
Though that they will not be in GUI when not available, but they still:

Quote:

if GarrisonRecruiterFrame.Pick.ChooseRecruits then
print("Yes2");
else
print("No");
end
Is there any other way to check?

Thanks! ^_^

rowaasr13 03-27-15 01:07 PM

I suspect it is marked by hidden weekly quest flag, just as many other things in game are. Scan all completed quests before you've recruited follower and after and check the difference.

semlar 03-27-15 02:23 PM

Quote:

Originally Posted by rowaasr13 (Post 307802)
I suspect it is marked by hidden weekly quest flag, just as many other things in game are. Scan all completed quests before you've recruited follower and after and check the difference.

It doesn't flag a quest as completed.

As far as I can tell the only way you could do this is for the addon to actually see the player recruit someone that week since C_Garrison.CanGenerateRecruits() only seems to be accurate after you've talked to the headhunter and triggered GARRISON_RECRUITMENT_NPC_OPENED.

Seerah 03-28-15 12:46 PM

If all else fails, you could always use Daily To Do: http://www.wowinterface.com/download...DailyToDo.html

Oniya 03-28-15 10:11 PM

Found, maybe someone will need it too:

Quote:

GarrisonRecruitSelectFrame_UpdateRecruits(false); -- update info
Quote:

C_Garrison.CanGenerateRecruits(); -- return true when we can recruit and false when no

Oniya 03-28-15 10:12 PM

Quote:

Originally Posted by Seerah (Post 307837)
If all else fails, you could always use Daily To Do: http://www.wowinterface.com/download...DailyToDo.html

Cool! Thanks a lot!


All times are GMT -6. The time now is 12:12 PM.

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