PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

[Suggestion] Handle Pokemon with high flee chance

Open Rofii opened this issue 10 years ago • 8 comments

I use 0.7 as desiredCatchProbability and it catches everything on the first try... except Abra and Ghastly. Certain Pokemon just have a higher than normal flee chance. Could we implement something to handle them differently? Perhaps have a separate desiredCatchProbability for Pokemon listed in an array called likelyToFlee. This would cause the bot to use a higher level ball and increase the chance of it using a berry, correct?

Example:

{ "desiredCatchProbability" : 0.7, "desiredFleeCatchProbability" : 0.9, "likelyToFlee" : [ "ABRA", "GHASTLY" ] }

Rofii avatar Jul 25 '16 00:07 Rofii

I am using .8 and its using raz berries and curve throws and highest ball I have, but it appears to be based off their CP instead of the pokemon itself.

iamthasasquatch avatar Jul 25 '16 00:07 iamthasasquatch

The current implementation is here: https://github.com/jabbink/PokemonGoBot/blob/develop/src/main/kotlin/ink/abb/pogo/scraper/util/pokemon/CatchablePokemon.kt#L37 It uses https://github.com/AeonLucid/POGOProtos/tree/master/src/POGOProtos to determine probabilities, I think. What might you improve about it?

Forty-Tw0 avatar Jul 25 '16 00:07 Forty-Tw0

There are two types of probabilities, but it seems only one is being factored in which is catchProbability. However, there are also certain Pokemon who have it in their nature to flee after the first failed throw. For these Pokemon with a high "fleeProbability", I would have the bot use a second catchProbability defined in the config for its calculation.

Rofii avatar Jul 25 '16 01:07 Rofii

Was something changed in the way it catches Pokemon? I'm still on .8 and I never have Ultra Balls or Raspberries when I log in. I've watched it use both for a 42cp Rattata and I don't remember that before.

weemscreek avatar Jul 26 '16 01:07 weemscreek

@SSminowjohnson I've had good luck by lowering the value to 0.6 and as Ieveled up I had to lower it even more to 0.4.

Almost no Pokemon flee and it rarely uses anything other than Pokeballs.

Rofii avatar Jul 26 '16 01:07 Rofii

I have it set to 0.4 and it just used a Razz Berry on a Kakuna with CP 147 then it did not use one on a Poliwag with CP 266 and the Poliwag got away. Seems like it should have used the Razz Berry on the Poliwag instead of the Kakuna?

weemscreek avatar Jul 26 '16 22:07 weemscreek

Is anyone sure that the catch probabilities the server sends do not account for this already? If so, this was in the bot all along.

jabbink avatar Aug 03 '16 09:08 jabbink

Closing due to inactivity.

jabbink avatar Aug 15 '16 20:08 jabbink