I’m writing a script in which i kill a npc and keep track of the loot. I have the following questions about it:
- Is there a listener that notifies you when the loot appears on the ground?
- Is there an API where i can get the spawn time or despawn time?
Now i currently do this:
Since i have to wait till the death animation of the target is done, i have to use a threadpool to keep track of multiple loots. What i want to do is keep track of all loot dropped by npc’s that i killed. If possible i also want to render the despawn time on the objects.
Can anyone help me? Thank you.