ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Regarding: GetCollectibleCooldownAndDuration (https://www.esoui.com/forums/showthread.php?t=7528)

Jarth 12/27/17 11:11 AM

Regarding: GetCollectibleCooldownAndDuration
 
Hello outthere.

I am wondering if there is a bug with this function, or if i am using it wrong. :)
When i call GetCollectibleCooldownAndDuration with a specific collectionId, i don't initially get the cooldown information for that specific collection ID, but rather the last used collection ID.
  1. Before using the collection-item, i call the method GetCollectibleCooldownAndDuration to get a information for the specific collection ID (duration and remaining time).
    At this point i get the information for the last called collection item, and would have expected duration for this collection ID.
  2. Then i use the collection item, and hook Update up to the event ..COOLDOWN_UPDATED.
    The first 20-30 responses has a coldownRemaining of 0, and a coldownDuration from the previous used collectible item.
  3. Therefor i need to do this check, to ensure the cooldown don't end right away, but the time starts "wrong" as a result.



I hope it makes sense, and thanks in advance. :)


All times are GMT -6. The time now is 01:14 AM.

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