Thread Tools Display Modes
08/30/24, 07:36 PM   #1
zelenin
AddOn Author - Click to view addons
Join Date: Nov 2018
Posts: 9
Lua Code:
  1. local function TryUseCollectible(id, actorCategory)
  2.     if not IsCollectibleUsable(id, actorCategory) then
  3.         return
  4.     end
  5.  
  6.     local cooldownRemaining, cooldownDuration = GetCollectibleCooldownAndDuration(id)
  7.     if cooldownRemaining > 0 then
  8.         CHAT_ROUTER:AddSystemMessage(string.format("Try to use after %0.1fs cooldown", cooldownRemaining / 1000))
  9.         zo_callLater(function()
  10.             UseCollectible(id, actorCategory)
  11.         end, cooldownRemaining + 100)
  12.         return
  13.     end
  14.     UseCollectible(id, actorCategory)
  15. end
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » At my wits end. UseCollectible doesn't work for just one character


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