What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Bot always moves to melee range.

Infinite Monkeys

Community Developer
Joined
Jul 7, 2012
Messages
224
Reaction score
16
I've noticed recently that the bot constantly runs to point blank range before attacking enemies. My combat routine is set to 40 range, but I still run directly next to enemies before attacking. I'm using Alcor75PlayerMover, but it also seems to happen with the default player mover. Anyone know why this is happening?
 
Always attack in place will fix issues with skill that move the player when namelocking isn't used. OR does not cast using namelocking but rather casting at a location that ends up getting mapped near a mob's feet due to highlighting issues in this game.

Max Melee Range will affect this, but it's only controllable to a degree because of how OR is written. When you do not have melee line of sight to a target, the easiest way to find a position that has melee line of sight to the target is to move to the target's position.

You basically would want to write a new routine where you have much more advanced logic to figure out a walkable point nearby that had line of sight to the target to move to that wasn't within a certain distance to fix the problem.

The fundamental problem is that there's no way to know if you'll be able to actually hit a monster with your skills from an arbitrary location. Desync doesn't help either, as it's gotten worse and worse the past few expansions since the skill casting logic changed.

Also, you'll want to take into consideration monsters moving towards a location vs standing still and attacking. OR also doesn't make this distinction, so it's just more processing and overhead you'll need in your routine if you want something a lot better.
 
I've tested with knockback, and as soon as a mob leaves my attack range I run right next to them. I think it might be because I'm using a high movespeed build so I reach melee range before the bot realises it's back in attack range and switches from walking to attacking. I might try editing OR to find a point in range rather than clicking directly on the enemy to walk to them. Thanks!
 
Back
Top