Pokemon-Go-Rocket-API icon indicating copy to clipboard operation
Pokemon-Go-Rocket-API copied to clipboard

Attack Gym

Open ghost opened this issue 9 years ago • 12 comments

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

ghost avatar Jul 29 '16 15:07 ghost

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

vmcall avatar Jul 29 '16 15:07 vmcall

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

Bloontede avatar Jul 31 '16 12:07 Bloontede

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

chrisoro avatar Jul 31 '16 21:07 chrisoro

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

Bloontede avatar Jul 31 '16 21:07 Bloontede

Nice, thanks for your input! :)

chrisoro avatar Jul 31 '16 21:07 chrisoro

Would you mind sharing the latest protos compiled?

vmcall avatar Jul 31 '16 22:07 vmcall

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

Bloontede avatar Jul 31 '16 22:07 Bloontede

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

edit: Nvm, I misscalculated the attackerlist..

Ticket can be closed

chrisoro avatar Aug 02 '16 19:08 chrisoro

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

JDevjs avatar Aug 04 '16 01:08 JDevjs

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 <BattleAction> 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 <BattleAction> List?

Thank you in advance!

uz19ibyd avatar Aug 09 '16 17:08 uz19ibyd

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.

jamie2016-1 avatar Aug 12 '16 07:08 jamie2016-1

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

kelvinnn avatar Sep 06 '16 06:09 kelvinnn