pgoapi icon indicating copy to clipboard operation
pgoapi copied to clipboard

attack_gym calls

Open domeops opened this issue 7 years ago • 3 comments

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.

domeops avatar Aug 17 '16 11:08 domeops

Take a look at https://github.com/tejado/pgoapi/issues/175

net8q avatar Aug 18 '16 10:08 net8q

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

domeops avatar Aug 18 '16 18:08 domeops

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...

DBa2016 avatar Aug 18 '16 21:08 DBa2016