Post: C# PokemonMoveMeta
08-27-2016, 10:20 AM #1
BadChoicesZ
I defeated!
(adsbygoogle = window.adsbygoogle || []).push({}); Since PokemonGO is dead anyways;

Here's something that may be help for anyone trying to get Attack Gyms working;

As most people who try,
have hit the wall of not being able to do damage
I myself found this is generally because sending correct move duration is important for attacking correctly.

The below files can be used to get correct duration for whatever move being used ( Example at bottom ).

    [B]PokemonMoveMetaRegistry.cs[/B]
[url=https://pastebin.com/d1V8RdVT][C#] PokemonMetaRegistry.cs - Pastebin.com[/url]

[B]PokemonMoveMeta.cs[/B]
[url=https://pastebin.com/iFW5BGLx][C#] PokemonMoveMeta.cs - Pastebin.com[/url]

if you still cannot do damage, make sure when setting up actions you are sending Type, DurationMs, ActionStartMs, TargetIndex, ActivePokemonId aswell.


A small example;
    
//this will get the DurationMs for the ActivePokemon specified's first move.

PokemonMoveMeta FirstMove = PokemonMoveMetaRegistry.getMeta(ActivePokemon.Move1);
int AttackMs = FirstMove.getTime();
09-21-2016, 10:12 PM #2
BadChoicesZ
I defeated!
Although i haven't done much with pokemon go for a minute, Thought this might be of interest to some still left in the scene.

here's a released necrobot that allows Attacking gyms: It's been around for awhile but havn't seen anyone using. ( Credits to l3uddz )
You must login or register to view this content.

And also

Here is Rocket API, that has ported more from grover's pokegoAPI's class's for use with Gym attacking: ( has the files i have posted above and more. )
You must login or register to view this content.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo