julianperrott / WowClassicGrindBot

WOW Classic Grind Bot, World of Warcraft Grind Bot - No DLL injection or memory watching, just screen capture and mouse and keyboard clicking.
121 stars 206 forks source link

[Request] Way point recording #18

Closed teehehe closed 3 years ago

teehehe commented 4 years ago

So I have done some experimenting and it seems that when i changed the waypoint gaps the closer tight he stays on the path. Would it be possible to have a button on the way point recording to increase/decrease the distance? Like the default is over 60 could we have a button to like lower that to say 10 or 20 for when we need to ensure closer pathing I lowered mine to like 30 it adds a ton more points but i raised it back to 60 after I did the graveyard run and he zig and zags through tiny spaces really well and haven't noticed him getting stuck at all when doing the graveyard run when he previously would. However for your actual botting path you would want larger distances but in certain spots you may need to squeeze through a walkway or a bridge or something. So being able to change this on the fly while recording would be super amazing.

the code i am refering to is:
https://github.com/julianperrott/WowClassicGrindBot/blob/master/BlazorServer/Pages/RecordPath.razor

private void AddonDataChanged() { if (!recording) { return; }

    var location = new WowPoint(addonReader.PlayerReader.XCoord, addonReader.PlayerReader.YCoord);

    if (botController.RouteInfo != null)
    {
        if (botController.RouteInfo.PathPoints.Count == 0 || DistanceTo(location, botController.RouteInfo.PathPoints.Last()) > 60 & location.X != 0)
        {
            botController.RouteInfo.PathPoints.Add(location);
            UpdateRoute();
        }
    }
}