The ultimate PVP suite plugin has the "stay behind enemy" option which works really well. Perhaps you can get an idea from there.
BTW is there a specific combat routine you recommend with this bot?
Yeah that's the same method I was doing before (strafe left/right and keep facing the target so it goes in a circle), but it wasn't playing nice with the other movement.
All combat routines should work, but some will work better than others. You'll need to just try them out and see what's best for you.
----
New build pushed, waiting for approval:
[27/Jan/2015]
- Improved logic for when in combat.
- Should no longer attack target dummies.
- Improved protection for vendor logic when inside Ashran.
- Added toggle to allow usage of the new custom navigation system. This system fixes some bad behaviour that is caused with the default nav system. Paths are randomized more, it no longer spins when entering some BGs (DG, BfG), it no longer back tracks when jumping down from start area in SM, and will (sometimes) walk over the edges in ToK.
- BGFarmer will now attempt to detect condensed areas of enemies (where there's more enemies than friendly), and navigate around them.
- [BfG, DG, AB] Will now apply blackspots to the banner objects to prevent running into the banners.
- [Ashran] Fixed finding end enemy boss unit.
- Will no longer log out for deserter debuff when inside Ashran.
- Added option to leave BG to join Ashran.
- Fixed collecting refreshment tables.