View Single Post
04/12/23, 04:19 PM   #14
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 37
I guess I could just have all my functions running all the times. And, only have the fragment and, the timer on the Jubilee cake, show when the Impresario is visible. But, that would mean a lot of unnecessary intercepting loops in loot, quests interactions, and reticle targets would be happening.

Also, I don't use the specific year's cake to check to see if I'm looking at the cake. I use the name of an old one. Cut the year off and replace it with the current year. :gsub('[%d]+', '<<1>>'), year), so I do not have to wait until I can manually get the cake's Id before updating the addon for the current event after it had started.

Why does the cake matter? It's the reason I made this addon in the first place. I disable being to interact with the cake if the amount of tickets exceed 12 if one has not already received tickets for this reset period. Otherwise, it would prevent receiving the buff later on until the user spent some tickets.

Last edited by IsJustaGhost : 04/12/23 at 04:29 PM.
  Reply With Quote