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

attack_gym calls #223

Open
domeops opened this issue Aug 17, 2016 · 3 comments
Open

attack_gym calls #223

domeops opened this issue Aug 17, 2016 · 3 comments

Comments

@domeops
Copy link

domeops commented Aug 17, 2016

I am having a major problem implementing this API call. I am successful in gathering gym details and also initiating a fight using 6 pokemon. My problem, is that I am able to call attack_gym and my pokemon is able to loose health in the process, but I never seem to be doing damage.

Overall, if anyone could provide exactly what should and shouldn't be included in attack_actions list that would be much appreciated.

I am using this as a reference:
https://github.com/tejado/pgoapi/blob/master/pgoapi/protos/POGOProtos/Data/Battle_pb2.py

However, I can't tell if attacker_index and target_index need to be something specific and not -1 to work, or if active_pokemon_id and target_pokemon_id should be same. It just isn't working out too well for me.

@net8q
Copy link

net8q commented Aug 18, 2016

Take a look at #175

@domeops
Copy link
Author

domeops commented Aug 18, 2016

I saw that last night but haven't been able to get the fix implemented yet. I believe my packets I was sending was accurate to what the server expected, just didn't have the right code to handle nested types properly.
FYI: this is what I used to verify I had the right info
http://pastebin.com/enDzFvUN

@DBa2016
Copy link

DBa2016 commented Aug 18, 2016

I am trying to implement it with the C# api, but I seem to not be able to put the parameters to AttackGym... Most of the time I get "status_code: 3" back, but - and that's interesting! - sometimes, I get a success...

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

3 participants