ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Repeatable quests daily current/limit (https://www.esoui.com/forums/showthread.php?t=10135)

Masteroshi430 04/08/22 05:21 AM

Repeatable quests daily current/limit
 
Is there a way to get the daily limit and currently done for repeatable quests?

I've tried using :
Lua Code:
  1. local WeekliesDone = GetNumTimedActivitiesCompleted(TIMED_ACTIVITY_TYPE_WEEKLY)
  2. local DailiesDone = GetNumTimedActivitiesCompleted(TIMED_ACTIVITY_TYPE_DAILY)
  3. local WeekliesLimit = GetTimedActivityTypeLimit(TIMED_ACTIVITY_TYPE_WEEKLY)
  4. local DailiesLimit = GetTimedActivityTypeLimit(TIMED_ACTIVITY_TYPE_DAILY) -- should be 50?
  5. local StartedRepeatables = GetNumTimedActivities()

But the numbers are weird...

ExoY 04/08/22 06:11 AM

not 100% sure, but those variables sound like they have something to do with endeavors

Masteroshi430 04/08/22 06:37 AM

Quote:

Originally Posted by ExoY (Post 45657)
not 100% sure, but those variables sound like they have something to do with endeavors

yep I checked and it's endeavors, it looks like there's no variable to count and check the 50 daily quests limit then...

Notes for later:
The sentence when you have reached the limit and try to start a daily quest is : "You have reached the maximum number of daily quests for today" which is SI_ERROR_MAX_DAILIES_REACHED

Phinix 04/14/22 04:26 PM

No direct variables, however you could possibly create a custom function to track it.

You could use epoch time calculations to determine if the daily reset has occurred yet. Set a character variable to 50, and use quest functions to check the type of quest on completion. If it is a repeatable quest, subtract one from the character variable. When the daily reset time passes, reset all character variables to 50.

You could check Lazy Writ Crafter for insight into tracking daily reset times.

Masteroshi430 04/15/22 02:09 AM

Quote:

Originally Posted by Phinix (Post 45703)
No direct variables, however you could possibly create a custom function to track it.

You could use epoch time calculations to determine if the daily reset has occurred yet. Set a character variable to 50, and use quest functions to check the type of quest on completion. If it is a repeatable quest, subtract one from the character variable. When the daily reset time passes, reset all character variables to 50.

You could check Lazy Writ Crafter for insight into tracking daily reset times.

Yes that's near exactly what I did in Vestige's Epic Quest ;)
Except I save the next reset time on the latest repeatable quest completion per character and compare to now to reset the counter


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

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