PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

New Pokemon Hunter

Open nucl3x opened this issue 9 years ago • 0 comments

Short Description

The sniping functionality doesn't really work in new API (0.45) because of the new speed limitations. I propose the following idea for sniping/hunting (rare) pokemons.

Possible solution

Create a new task (modified MoveToMapPokemon/PokemonHunter?) with following functionality:

  1. Get JSON data of pokemons from raw_data or similar JSON for limited area (personal/public PoGoMap). The prerequisite is that the bot is located in or near the same limited area.
  2. Get distance to the nearest pokemon with highest priority from catch list.
  3. Pause the bot / logout for the time that it takes to move from current location to the location of the target pokemon with average speed e.g. 80 km/h (straight line, speed configurable). Add a random additional time to the result, to simulate moving by car (configurable). If the total time exceeds e.g. 15 minutes (configurable) or the disappear time from the JSON, abort task.
  4. After the time runs out, set location of the bot to be the same as with target pokemon.
  5. Resume the bot / log in, look for the target pokemon. If it isn't visible immediately, walk around for a while (e.g. 1 minute, configurable). If it appears, try to catch it.
  6. (Configurable) Either return to the saved previous location (with the pause/logout and configurable speed) or stay at the new location and continue running other tasks until hunting timeout runs out (if any) or until new pokemon from the list within reach appears in the JSON data.

How it would help others

Should improve chances to catch rare pokemons.

nucl3x avatar Nov 19 '16 23:11 nucl3x