Parrot2 icon indicating copy to clipboard operation
Parrot2 copied to clipboard

Fix loot total bug

Open Seraphli opened this issue 5 years ago • 2 comments

GetItemCount already gets the total number.

Seraphli avatar Nov 10 '19 10:11 Seraphli

The problem is the chat event used to show the item count often (usually) fires before the item count updates. So to make it more consistent I'd have to delay the GetItemCount call, but Parrot can't really do async notices.

nebularg avatar Nov 10 '19 21:11 nebularg

Yeah, after I change the code, I found out that too. I saw someone include a timer in their code and wait for 0.2 seconds before calling the function. Maybe you could try this way. https://github.com/hurricup/WoW-Ace3/blob/master/AceTimer-3.0/AceTimer-3.0.lua

Seraphli avatar Nov 12 '19 02:11 Seraphli