Hello.
I’m developing an extension for Lucera Classic to track adena obtained from NPCs, and I encountered an issue with OnItemPickupListener.In my server build, Player.pickupItem() calls Inventory.addItem() before notifying OnItemPickupListener. When the incoming adena merges with an existing stack, Inventory.onDestroyItem() calls setCount(0) on the incoming item. Consequently, the pickup listener receives an ItemInstance whose count is already zero.Is there a supported hook that provides the actual amount collected and identifies whether the adena originated from an NPC? If not, could you add one?The goal is to exclude adena dropped by players, trades, and other unrelated sources. Ideally, the hook would also support autoloot and party distribution, reporting the amount actually received by each player.Thank you for your help!
I’m developing an extension for Lucera Classic to track adena obtained from NPCs, and I encountered an issue with OnItemPickupListener.In my server build, Player.pickupItem() calls Inventory.addItem() before notifying OnItemPickupListener. When the incoming adena merges with an existing stack, Inventory.onDestroyItem() calls setCount(0) on the incoming item. Consequently, the pickup listener receives an ItemInstance whose count is already zero.Is there a supported hook that provides the actual amount collected and identifies whether the adena originated from an NPC? If not, could you add one?The goal is to exclude adena dropped by players, trades, and other unrelated sources. Ideally, the hook would also support autoloot and party distribution, reporting the amount actually received by each player.Thank you for your help!