View Single Post
04-15-21, 07:14 AM   #1
max291
A Defias Bandit
Join Date: Apr 2021
Posts: 3
How does C_EncounterJournal work?

If I run this piece of code:

EJ_SelectInstance(1182)
numLoot = EJ_GetNumLoot()

for i = 1, numLoot do
itemInfo = C_EncounterJournal.GetLootInfoByIndex(i)
end

it only works after I reload my UI. So I start WoW, I get a lua error, then I reload, and now it works until I restart WoW. Why? How do I make it work without the need of reloading?

What I try to accomplish is: I want to select armour-type and stats to get items that match the stats I want. Everything works fine, except the return of items on the "first load".

People on the Discord don't seem to understand me, so I thought I might give this forum a try.
  Reply With Quote