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.