tellomichmich / PokeNoxBot

Slow but safe Pokemon GO Bot
23 stars 19 forks source link

Clean Pokemon's and IV stat #22

Open jacoborequena opened 8 years ago

jacoborequena commented 8 years ago

good would be an option when the stock pokemon is full, scroll through the list and throw away the trash pokemones , based on the calculation IV , because if it is listed, you can throw good pokemon kidding me boot one zubat with 99% iv XD !, and if possible catch him say that when your index and if the list of pokemons trash once the boat is not something like

putuoka commented 8 years ago

it's nearly impossible to check IV with this bot since this bot not accessing API directly to the server. This bot experience only what normal player see.

tellomichmich commented 8 years ago

Maybe we could use this technique ? https://pokeassistant.com/main/ivcalculator?locale=en

putuoka commented 8 years ago

@tellomichmich that's great. i'm forgot we can calculate it. yes sure we can use it. the only way. good job

tellomichmich commented 8 years ago

Nearly done, some optimization must be done one CleanAllPokemon

Bolo30 commented 8 years ago

In order to know IV stat of pokemon already captured i made a copy of script to manually launch on selected pokemon :

PokemonName = GetPokemonName() PokemonCP = GetPokemonCP() PokemonIV = GetPokemonIV(PokemonName, PokemonCP) COOL_LOG("%s :" % (PokemonName)) COOL_LOG("\tCP %d" % (PokemonCP)) COOL_LOG("\tDEF %d" % (PokemonIV['defenseIV'])) COOL_LOG("\tATK %d" % (PokemonIV['attackIV'])) COOL_LOG("\tSTA %d" % (PokemonIV['staminaIV'])) COOL_LOG("\tIV %.2f" % (PokemonIV['perfection']))

It's working with majority of pokemon, but sometimes it crash with error :

Traceback (most recent call last): File "c:\python27\pokenoxbotiv.py", line 1185, in COOL_LOG("\tDEF %d" % (PokemonIV['defenseIV'])) TypeError: 'NoneType' object has no attribute 'getitem'

Crash example :

201-08-28_010138

Example below is ok :

2016-08-28_010213

Another example with crash :

2016-08-28_010322

Example below ok :

2016-08-28_011024

tellomichmich commented 8 years ago

GetPokemonIV(PokemonName, PokemonCP) can return None if it is impossible to compute the IV.

You should test "if not (IV is None):..."

Bolo30 commented 8 years ago

Ok thank you, i will try that

Dodo111 commented 8 years ago

I know absolutely nothing about python. Can you post a copy of your script? Sounds neat!

Bolo30 commented 8 years ago

Hi Dodo111, You can find the script i'm using next to this message (it's just a modified version of pokenoxbot.py only to check IV, i don't create anything). To work you just need to launch it with the batch file and open a pokemon page. Batch file repeat the process every 2s so you can switch on other pokemon you want check.

PokeNoxBotIV.zip

Dodo111 commented 8 years ago

Thank you so much!! :)

Dodo111 commented 8 years ago

So I have been experimenting with http://forum.xda-developers.com/xposed/modules/xposed-pokemon-iv-checker-xposed-module-t3440346 which reads pokemon data directly from RAM to display the hidden IV values.

It turns out the IV checker script is extremely inaccurate - it missed quite a few 100% and is more often wrong than right. Just a little heads up. As this module is totally ban safe (does't use mitm or anything) perhaps the IV filter could be instructed to read it?