Open mrhappyasthma opened 1 year ago
I have a working version in a similar plugin that covers most cases in case you're interested in copying it over: https://github.com/MosheBenZacharia/GP-Per-Hour/blob/master/src/main/java/com/gpperhour/LootingBagManager.java
It should be feasible to track the looting bag profit, although it's not straightforward.
We should probably add a helper class for tracking the looting bag, similar to what is done by the looting bag plugin: https://github.com/pwatts6060/runelite-plugins/tree/looting-bag-value
However even that plugin (which I've used myself) has some bugs since there aren't great callbacks for items being put in the looting bag. Much of the data is inferred by the few signals that we get when picking up items.