SavedInstances

176 - Garrison Inn - recruited a follower

It would be great to see SI track if each of my characters has recruited a follower from the inn this week.

User When Change
slippycheeze Dec 18, 2014 at 20:08 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 6 comments
  • Avatar of joevt joevt Sep 08, 2015 at 06:31 UTC - 0 likes

    @oscarucb: Go

    I think that doing the query-less detection might be the only way.

    First you would have to register for some recruiter events or patch some of the garrison recruiter calls to catch when the user accesses the UI and hires a follower.

    Save a HiredDate variable which indicates the last time a follower was hired (or the last time the user checked the recruiter UI and couldn't hire a follower). You also need a CheckedDate variable (not saved) which indicates when the user last checked the UI since the last /reloadui.

    When you check HiredDate, clear it if the week is different then the current week.

    If there's a HiredDate, then you know a follower has been hired and SI can display a checkmark "√". If there isn't a HiredDate, then if there's a LastCheckedDate then display an "x", otherwise display an "?".

    Data loss (or lack of data) would be indicated by the "?" character and can be corrected by visiting the recruiter UI.

  • Avatar of Bormes11 Bormes11 May 26, 2015 at 19:51 UTC - 0 likes

    Maybe the information in this thread can help? Not sure tho, I have very little coding experience.

    http://www.wowinterface.com/forums/showthread.php?p=307848

  • Avatar of cremor cremor Mar 29, 2015 at 09:05 UTC - 0 likes

    I just found that post, but haven't tried it myself yet: http://www.wowinterface.com/forums/showpost.php?p=307847&postcount=5

  • Avatar of oscarucb oscarucb Feb 26, 2015 at 11:13 UTC - 0 likes

    <<reply 2494968>>

    None of the C_Garrison functions I've tried can reliably query this (except for the special case of having the NPC recruitment dialog open, which doesn't really help)

  • Avatar of qktrolle qktrolle Feb 24, 2015 at 14:47 UTC - 0 likes

    @oscarucb: Go

    /run local _f = C_Garrison.CanGenerateRecruits(); print(_f);
    

    i belive this will return true if u can recruit followers from the inn

  • Avatar of oscarucb oscarucb Dec 18, 2014 at 23:57 UTC - 0 likes

    I would also like this, but there is definitely no associated quest tracking flag, and I've not found another way to query this information from the server.

    If someone finds a way to reliably query this info I will gladly add it.

    It may be possible to do a query-less detection, but that has the significant downside that any data loss would result in it incorrectly showing that you hadn't done it when in fact you had, for up to a week, which could be really annoying.

    Last edited Dec 18, 2014 by oscarucb
  • 6 comments

Facts

Last updated
May 03, 2015
Reported
Dec 18, 2014
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees