FeroxRev / Pokemon-Go-Rocket-API

Client API Library
GNU General Public License v3.0
368 stars 230 forks source link

Attack Gym #75

Open ghost opened 8 years ago

ghost commented 8 years ago

Can someone give me an example of the battle id and the battleactions in the attack gym thank you

vmcall commented 8 years ago

I dont think the current proto supports StartGymBattle (https://github.com/FeroxRev/Pokemon-Go-Rocket-API/issues/36)

Edit: MIGHT work since deployfortpokemon is working thanks to the proto update

Bloontede commented 8 years ago

Just tried it and StartGymBattle response is empty every time. Any hope for a fix? :)

chrisoro commented 8 years ago

Yup, same here. StartGymBattle is empty, so cannot start an attack :(

Bloontede commented 8 years ago

Compiling the latest protos fixed the method (defendingpokemonid changed to fixed64).

chrisoro commented 8 years ago

Nice, thanks for your input! :)

vmcall commented 8 years ago

Would you mind sharing the latest protos compiled?

Bloontede commented 8 years ago

Sure, here https://www.wetransfer.com/downloads/a8e0de530e0eb8e1e7e4241ff22922ee20160731223201/1af7c9

chrisoro commented 8 years ago

Did it work for you? Mine is still not working with protos 1.5

edit: Nvm, I misscalculated the attackerlist..

Ticket can be closed

JDevjs commented 8 years ago

guys plz can you help i want to learn how to use and edit these files so i can help the community but i need like a video or something to help me out start with this API

uz19ibyd commented 8 years ago

Just found that issue as i was playing around with the battling Logic. I got the startgymbattle working and am a little stuck now with the creation of the List, required for the AttackGym function. Could somehow give me a hint where i get the parameters like "durationMs", "energyDelta" from ? Or is there a function that automatically creates the List?

Thank you in advance!

jamie2016-1 commented 8 years ago

Can someone provide the fixed protos build, as mentioned by @Bloontede. His link is no longer working.

Also which Protos is used to make the build. I find many Protos under Git.

NVM I sorted it myself.

kelvinnn commented 8 years ago

@jamie2016-1 - do you mind sharing sample code of StartGymBattle?