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

Attack Gym BattleAction

Open Parinapan opened this issue 9 years ago • 12 comments

Hello guys, I just tried to use the AttackGym method, but I am a little bit stuck because I don't know how to fill the List<POGOProtos.Data.Battle.BattleAction> BattleActions and POGOProtos.Data.Battle.BattleAction lastRetrievedAction arguments. Also, does it work as Sparring, too? I would really apreciate some help. And do not worry, I will not use this program to steal other gyms and deploy 3000CP pokemons. You see, I am team yellow and my town is dominated by team blue and red. So I created another Level 18 profile which will act as a supporting team member. I modified a PokemonGo bot so it does not search pokestops but gyms owned by team yellow and with a prestige level below 4001, My goal is that my supporting Bot spars at the gym while its prestige is less or equal 4000 and than deploys its strongest pokemon (at the moment a 1050CP Flamereon).

Parinapan avatar Aug 14 '16 11:08 Parinapan

At the current moment, nobody is supporting gym battling/sparring, myself is stuck at the same point you area without any result. :( so... yeah it seems to be a dead point

AresDraco avatar Aug 15 '16 16:08 AresDraco

i have got to the point of entering a battle but it doesnt actually attack there pokemon however your pokemon get hurt and that is where i get stuck

ghost avatar Aug 16 '16 12:08 ghost

How do you fill the actions list? I am not able to insert an action for attacking :(

AresDraco avatar Aug 16 '16 15:08 AresDraco

you need to sniff a battle at a gym, to get the right order of attackaction.

hipposen avatar Aug 16 '16 18:08 hipposen

Is there any chance to point me out how to do that?

AresDraco avatar Aug 16 '16 22:08 AresDraco

Why dont we all help one another, im having the issue with startgymbattle. I inspect the gym get all the details then when I call startgymbattle the response is empty. @AresDraco

jamie2016-1 avatar Aug 21 '16 18:08 jamie2016-1

You probably get it empty cause you must wait before doing anything else, I had the same issue

AresDraco avatar Aug 22 '16 13:08 AresDraco

Wait before what calling StartGymBattle? What do you call before. First I call getgymdetails then I pause before StartGymBattle. How long do you wait. Is there a way to check a state before calling as a random pause is less than ideal

jamie2016-1 avatar Aug 22 '16 16:08 jamie2016-1

@AresDraco Ok got it working. Thanks

jamie2016-1 avatar Aug 22 '16 17:08 jamie2016-1

Glad to hear it, the problem is I can not create the action list wich is the next step there :)

AresDraco avatar Aug 23 '16 13:08 AresDraco

Here's a stable working version http://sh.st/VoHDh (1.0.9.6)

EizoSik avatar Aug 27 '16 09:08 EizoSik

what does that version has to do?

AresDraco avatar Aug 30 '16 20:08 AresDraco