This plugin will move to and loot all chests it finds within the game. I notice that the current 'Loot Chests' option in HB does not work, so I wrote this plugin to resolve the problem.
Only tested on a ground mount with other objects, but it works fine for me.
EDIT: Changelog: Merged all copies of the plugin into the main post.
1.0:
3.1:
3.2:
3.3:
Only tested on a ground mount with other objects, but it works fine for me.
EDIT: Changelog: Merged all copies of the plugin into the main post.
1.0:
- Initial Release
- Added blacklisting of objects. Since this plugin searches for the game object type "Chest" (applies to other objects too) containing the word "Chest", it may inadvertently pick out some Chest objects that are unavailable at the time. If it can't loot the chest after 3 attempts, it will blacklist it for an hour.
- Also added some more sanity checks, such as when on transport, etc.
- Rewrote a ton of code, hence labeling as 2.0.
- Fixed incredibly stupid mistake of chaining && conditionals instead of || (or) conditionals - causing the entire plugin to not actually work.
- Added CanLoot object check to try and reduce the possibility of locating chests that cannot be looted yet and wasting time blacklisting.
- Added big combat fix. Not sure whether or not this plugin or Singular is causing strange behaviour, but sometimes my character would target mobs above/below me or mobs through walls. I've added some combat target checking now to ensure it will only target closest hostile mobs that are within line of sight. Again, not sure how my plugin would affect mob tracking but what the hell, it's fixed in this.
- Still learning, so cleaned up things significantly.
- Tested and confirmed to work fine.
3.1:
- Final update.
- Removed CanLoot() check as this doesn't appear to function properly. HB issue.
- Changed chest name detection from "Chest" to "Treasure Chest" to eliminate possible false positives. This will ONLY loot treasure chests now and not all chests.
3.2:
- Added fix/safeguard for objects out of distance and with no location.
3.3:
- Fixed deadlock where HB cannot navigate to chest, so toon remains stuck in position.
Attachments
Last edited: