-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to catch pokemon #245
Comments
let me see your code |
It's the same with exemple code :/ |
I think maybe it's goes too fast. |
Same results [+] There is a Magikarp near!! I can try to catch it!
[+] There is a Eevee near!! I can try to catch it!
[+] There is a Magikarp near!! I can try to catch it!
[+] There is a Rattata near!! I can try to catch it!
[+] There is a Magikarp near!! I can try to catch it!
Encountering pokemon Magikarp...
{ Status: null,
MissPercent: null,
CapturedPokemonId: null,
CaptureAward: null } To do that when there are pokemons catchable I engage one by one |
I think is the same problem, how do you put your delay between them? |
Basically you have to wait for your API call to complete before you do another. So in the for loop looking for catchable pokemon, I exit the loop (either return or break) when I find one so it wont go on to the next one until the next heartbeat. Something like this (I striped out a ton of code for this so I don't know if this works on its own)
|
sorry, my englis is not very good... i write in spanish. cree una variable global var isCatch = false; y lo que hago es verificar si estoy atrapando uno, que no atrape otro. utilizando un simple IF a.EncounterPokemon(currentPokemon, function(suc, dat) { |
I have this message when i try to catch pokemon
Encountering pokemon Psyduck... Encountering pokemon Rhyhorn... Encountering pokemon Magikarp... Encountering pokemon Exeggcute... { Status: null, MissPercent: null, CapturedPokemonId: null, CaptureAward: null } undefined undefined undefined
Can you help me?
The text was updated successfully, but these errors were encountered: