Jump to content

Coleman

Members
  • Posts

    4
  • Joined

  • Last visited

Bug Report Comments posted by Coleman

  1. 12 hours ago, Ordush said:
    
    wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) => {
    			var unitsAffectingMyCombat = ObjectManager.GetUnitAttackPlayer();
    			var unitsAttackMe = unitsAffectingMyCombat.Where(u => u != null && u.IsValid && u.IsTargetingMe).ToList();
    			LuaUtils.wrPrint("GetDistance:" +ObjectManager.Target.GetDistance);
    			LuaUtils.wrPrint("DistanceGood:" + _AutoShot.IsDistanceGood);
    			if (ObjectManager.Target.IsAttackable && unit.IsValid && !ObjectManager.Me.IsCast && ObjectManager.Target.GetDistance < 8 && !ObjectManager.Target.IsTargetingMe && !ObjectManager.Target.GetMove && unitsAttackMe.Count <= 0)
    			{
    				Move.Backward(Move.MoveAction.PressKey, 3000);
    			}
    		};

    However, it's not so much the refresh rate of the distance calculation, because as you can see in my screenshot, i am standing completely still at 7yard range from the mob, and WRobot thinks i'm 9 yards away.

    Edit: When a mob is melee hitting me WRobot thinks it's 3 yards away.

    I tried this code out, while useful, it seems to only "tap" the back button, I did reproduce the range calculation being off though...

  2. On 1/1/2018 at 10:50 PM, Ordush said:

    I even tried telling it to walk away if !_AutoShoot.IsDistanceGood , same problem (_AutoShot is Spell "Auto Shot")

    Are you walking away by doing the "button press" logic that move during combat plugin does? I had problems with that and the refresh rate of the calculation of target distance before.

×
×
  • Create New...