Quantcast
[open] Add ability to query in-game event information - ESOUI
Thread Tools Display Modes
05/01/21, 10:34 AM   #1
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 22
[open] Add ability to query in-game event information

I'm working on an addon that helps the user save event tickets. But it really needs access to the functions in MarketAnnouncement_Manager:PopulateEventAnnouncements().

Lua Code:
  1. GetNumEventAnnouncements()
  2. GetEventAnnouncementNameByIndex(i)
  3. GetEventAnnouncementDescriptionByIndex(i)
  4. GetEventAnnouncementIngameTileImageByIndex(i)
  5. GetEventAnnouncementStartTimeByIndex(i)
  6. GetEventAnnouncementRemainingTimeByIndex(i)
  7. GetEventAnnouncementIngameTileMarketProductIdByIndex(i)

Currently I am using a list I created. I will need to update the list for when each event runs in order for the dates to be correct. Cannot really predict when the years events are going to run. And then update it for any changes, like this years Anniversary Jubilee's over-run.

Last edited by IsJustaGhost : 05/01/21 at 01:46 PM.
  Reply With Quote
07/23/21, 11:11 AM   #2
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 22
The intent here is to be able to enable/disable addon functions that are only needed while an event is running.
An event ID would be nice. Something that would allow the use of a comparator to determine what type of awards are available. Personally, I need it for enabling specific functions depending on whether the event tickets are awarded by quest, loot, or item.

Just an example.
Lua Code:
  1. local LOOT_TYPE_CAKE = 3
  2. local function getEventLoopType(eventType)
  3.      local gameEventId = ZO_GetCurrentEvent():GetId() -- just a suggested function as an idea
  4.      return someTableOfData[gameEventId ] == eventType
  5. end
  6.  
  7. ZO_PreHook(RETICLE, "TryHandlingInteraction", function(self, interactionPossible, currentFrameTimeSeconds)
  8.      if getEventLoopType(LOOT_TYPE_CAKE ) then
  9.           -- do all the stuff
  10.           return true
  11.      else
  12.           return false
  13.      end
  14. end)
Currently my addon is stuck with using a prediction table. Not accurate at all. I try to have it over-run based on the dates I have found for past events. But. it does not need Event Ticket reminders when there is not even an Impresario out in the world.

If there is another way of doing this, that is ZOS code, please suggest that.

Last edited by IsJustaGhost : 08/23/21 at 06:50 PM.
  Reply With Quote
08/24/21, 04:35 PM   #3
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 22
Another event to add to my prediction tables. Is the Year One event going to be recurring, or will I need to remove it for next year?

Since there has not even been any comments/questions regarding my request, I'll link the addon in which these functions would be greatly useful for in case that would be helpful.
https://www.esoui.com/downloads/info...cketSaver.html
  Reply With Quote

ESOUI » Developer Discussions » Wish List » [open] Add ability to query in-game event information

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