Open keithics opened 8 years ago
A friend of mine asked me for this exact feature earlier, going to try and write something up for it tonight as I'd love to not having the bot bother catching zubats and drowzees all day :)
KEEP_POKEMON_NAMES
and THROW_POKEMON_NAMES
do the exact same thing. Refer the readme.
@MePsyDuck that's wrong, those are only for the transferring / releasing. it will not prevent catching them.
This feature seems like a certain api call. I can't say that such a call exists in implementation (not too familiar with the base api functions).
I already have this working. it's only a simple IF state before the encounter. This feature is good when you want the bot to farm only a specific pokemon.
if not target[0]['pokemon_id'] in self.accept_pokemon_ids:
self.log.info("Skipping Pokemon , pokemon not accepted: %s", Pokemon(target[0], self.pokemon_names))
catches_successful &= False
else:
self.log.debug("Catching pokemon: : %s, distance: %f meters", target[0], target[1])
catches_successful &= self.encounter_pokemon(target[0])
sleep(random.randrange(4, 8))
@keithics Are you able to see the CP before the encounter? I'm not sure how this can work otherwise.
Nope, you can see the CP only AFTER the encounter.
I am targeting specific pokemons ( and candies) regardless of CP.
Is there a way to ignore, reject or "run away" from an encountered pokemon? like accept of eevee,GYARADOS etc.. but ignore RATTATA,PIDGEY etc.
I want to check the CP and the pokemon name if I want to catch it or not -- programatically. Just like the button in the screenshot . My customization isn't working ðŸ˜