Skip to content
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

How do you get data on the pokemon you just caught? #243

Open
ameyer opened this issue Aug 15, 2016 · 5 comments
Open

How do you get data on the pokemon you just caught? #243

ameyer opened this issue Aug 15, 2016 · 5 comments

Comments

@ameyer
Copy link

ameyer commented Aug 15, 2016

Using pokeAPI.CatchPokemon, I just get back a CatchPokemonResponse with a status and MissPercent.

Other than checking the inventory, how do I get information (id, type, cp, etc) on the Pokemon that was caught?

@ameyer
Copy link
Author

ameyer commented Aug 15, 2016

I enabled CapturedPokemonId in pokemon.proto and changed to a fixed64. I also enabled CaptureAward in pokemon.proto.

Now I at least get something good.

  CapturedPokemonId: Long { low: 231617896, high: -1834732217, unsigned: true },
  CaptureAward: 
   { ActivityType: [ 1, 12, 13 ],
     XP: [ 100, 100, 10 ],
     Candy: [ 3, 0, 0 ],
     Stardust: [ 100, 0, 0 ] } }

But now how would I take that Pokemon ID and get info on that pokemon?

@monarchfish
Copy link

how do you get CaptureAward?

when you EncounterPokemon it's will callback some data like pokemon ID

@monarchfish
Copy link

EncounterPokemon second callback like this

{ WildPokemon:
{ EncounterId: Long { low: -69370227, high: -664151409, unsigned: true },
LastModifiedMs: Long { low: -1859329067, high: 342, unsigned: false },
Latitude: 24.979762628558674,
Longitude: 121.41825154371163,
SpawnPointId: '34681d1ebe3',
pokemon: { Id: null, PokemonId: 120, cp: 37 },
TimeTillHiddenMs: 727191 },
EncounterBackground: null,
EncounterStatus: 1 }

@ameyer
Copy link
Author

ameyer commented Aug 16, 2016

To enable CaptureAward I just went into pokemon.proto and enabled it. It is commented out for some reason.

@ameyer
Copy link
Author

ameyer commented Aug 16, 2016

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants