RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

How do you control bot travel radius or make it stay in one spot?

Open gangstad1 opened this issue 10 years ago • 3 comments

^

gangstad1 avatar Jul 30 '16 09:07 gangstad1

Currently the logic is just to go to the next closest pokestop, so in theory if there were enough connecting pokestops it could travel way to far. Then, when it resets to the set cords your toon will jump XXX:Km and get soft ban. i am thinking this is what keeps happening to 2 of my accounts in the san fran bay. I also believe it is causing a couple of the errors we are seeing in bot. But i do not have enough knowledge to properly sort through this. Just going to have to wait till the detective gets back.

4ndr0id19 avatar Jul 30 '16 12:07 4ndr0id19

In ExecuteFarmingPokestopsAndPokemons you can eliminate pokestops that are too far from your starting coordiantes. eg

if (ClientSettings.TravelRadius > 0)
                pokeStops = pokeStops.Where(p => this._startingPosition.GetDistanceTo(new GeoCoordinate(p.Latitude, p.Longitude)) <= ClientSettings.TravelRadius);

Where ClientSettings.TravelRadius and this._startingPosition are new settings / variables.

One problem with this is you may starve the bot of pokestops depending on the location.

You can adjust the walk speed too right to avoid jumping too far too fast?

thuantocode avatar Jul 30 '16 23:07 thuantocode

How would you change it to like within like 5-10 feet?

gangstad1 avatar Jul 31 '16 03:07 gangstad1