mrhappyasthma / runelite-profit-tracker

A runelite plugin for tracking profit while money-making.
BSD 2-Clause "Simplified" License
2 stars 5 forks source link

Track 'looting bag' profits #5

Open mrhappyasthma opened 1 year ago

mrhappyasthma commented 1 year ago

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.

MosheBenZacharia commented 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