Thread Tools Display Modes
04/08/22, 05:21 AM   #1
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
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...
  Reply With Quote
04/08/22, 06:11 AM   #2
ExoY
 
ExoY's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2020
Posts: 87
not 100% sure, but those variables sound like they have something to do with endeavors
  Reply With Quote
04/08/22, 06:37 AM   #3
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by ExoY View Post
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

Last edited by Masteroshi430 : 04/08/22 at 11:51 AM.
  Reply With Quote
04/14/22, 04:26 PM   #4
Phinix
 
Phinix's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 186
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.
  Reply With Quote
04/15/22, 02:09 AM   #5
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by Phinix View Post
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

Last edited by Masteroshi430 : 04/15/22 at 02:16 AM.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Repeatable quests daily current/limit

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