Thread Tools Display Modes
03-27-15, 11:57 AM   #1
Oniya
A Wyrmkin Dreamwalker
Join Date: Feb 2015
Posts: 57
Question 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:

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:

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

Thanks! ^_^
  Reply With Quote
03-27-15, 01:07 PM   #2
rowaasr13
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 27
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.
  Reply With Quote
03-27-15, 02:23 PM   #3
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by rowaasr13 View Post
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.
  Reply With Quote
03-28-15, 12:46 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
If all else fails, you could always use Daily To Do: http://www.wowinterface.com/download...DailyToDo.html
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-28-15, 10:11 PM   #5
Oniya
A Wyrmkin Dreamwalker
Join Date: Feb 2015
Posts: 57
Found, maybe someone will need it too:

GarrisonRecruitSelectFrame_UpdateRecruits(false); -- update info
C_Garrison.CanGenerateRecruits(); -- return true when we can recruit and false when no
  Reply With Quote
03-28-15, 10:12 PM   #6
Oniya
A Wyrmkin Dreamwalker
Join Date: Feb 2015
Posts: 57
Originally Posted by Seerah View Post
If all else fails, you could always use Daily To Do: http://www.wowinterface.com/download...DailyToDo.html
Cool! Thanks a lot!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Check for Recruits available in Tavern

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off