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

Allow bot to use better balls if it fails to capture repeatedly

Open shoelsch opened this issue 10 years ago • 2 comments

If capture keeps failing with pokeball, upgrade ball.

[22:57:16] Something rustles nearby!
[22:57:16] A wild Kabuto appeared! [CP 765] [Potential 0.51] [A/D/S 15/2/6]
[22:57:19] Catch rate of 23.05 with Pokeball is low. Throwing Razz Berry (have 9)
[22:57:19] Threw a Razz Berry! Catch rate with Pokeball is now: 23.05
[22:57:19] Used Pokeball, with chance 34.57 (24 left)
[22:57:20] Kabuto capture failed.. trying again!
[22:57:21] Catch rate of 34.57 with Pokeball is low. Throwing Razz Berry (have 8)
[22:57:22] Threw a Razz Berry! Catch rate with Pokeball is now: 34.57
[22:57:22] Used Pokeball, with chance 51.86 (23 left)
[22:57:22] Kabuto capture failed.. trying again!
[22:57:24] Used Pokeball, with chance 51.86 (22 left)
[22:57:24] Kabuto capture failed.. trying again!
[22:57:26] Used Pokeball, with chance 51.86 (21 left)
[22:57:26] Kabuto capture failed.. trying again!
[22:57:29] Used Pokeball, with chance 51.86 (20 left)
[22:57:29] Kabuto capture failed.. trying again!
[22:57:31] Used Pokeball, with chance 51.86 (19 left)
[22:57:31] Kabuto capture failed.. trying again!
[22:57:33] Used Pokeball, with chance 51.86 (18 left)
[22:57:33] Kabuto capture failed.. trying again!
[22:57:36] Used Pokeball, with chance 51.86 (17 left)
[22:57:36] Kabuto vanished!

First, let me know if there's some configuration parameter I'm missing.

I think it's ridiculous in the case above that a pokeball was used 7 times in a row and failed 7 times in a row before the pokemon in question vanishes. By my calculation, the event above occurs in ~1% of cases (if we assume that the chance % is accurate): (1-0.5186)^7. Still, I would expect the probability of a pokemon vanishing to increase over the duration of an encounter and for the bot to be intelligent enough to expedite the capture in this scenario.

Again, tell me there's a config option for this if there is: give me the ability to specify my default ball preference for pokemon (e.g., I want to use an ultraball first and foremost if I encounter a Kabuto); allow the bot to switch to a better ball if its failure rate seems to contradict the catch rate.

shoelsch avatar Aug 11 '16 06:08 shoelsch

in config.json you specify your wanted pokemons at "vips" value as below. The bot always uses ultraball to catch them.

    "vips" : {
         "Kabuto" : {}
    }

kesfaw avatar Aug 11 '16 06:08 kesfaw

@kesfaw thank you. closing the issue.

shoelsch avatar Aug 11 '16 07:08 shoelsch