Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » How does C_EncounterJournal work?


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