-
updated main post with new information and a new guide
-
Post Thanks / Like - 5 Thanks
-
Sergeant
Originally Posted by
chancity
TOO USE DIFFERENT POKEBALLS
This is for the latest github version
Code:
private static async Task<MiscEnums.Item> GetPokeBall(Client client)
{
var inventory = await client.GetInventory();
var ballCollection = inventory.InventoryDelta.InventoryItems
.Select(i => i.InventoryItemData?.Item)
.Where(p => p != null)
.GroupBy(i => (MiscEnums.Item) i.Item_)
.Select(kvp => new {ItemId = kvp.Key, Amount = kvp.Sum(x => x.Count)})
.Where(y => y.ItemId == MiscEnums.Item.ITEM_POKE_BALL
|| y.ItemId == MiscEnums.Item.ITEM_GREAT_BALL
|| y.ItemId == MiscEnums.Item.ITEM_ULTRA_BALL
|| y.ItemId == MiscEnums.Item.ITEM_MASTER_BALL);
var greatBallsCount = ballCollection.Where(p => p.ItemId == MiscEnums.Item.ITEM_GREAT_BALL).
DefaultIfEmpty(new {ItemId = MiscEnums.Item.ITEM_GREAT_BALL, Amount = 0}).FirstOrDefault().Amount;
var ultraBallsCount = ballCollection.Where(p => p.ItemId == MiscEnums.Item.ITEM_ULTRA_BALL).
DefaultIfEmpty(new {ItemId = MiscEnums.Item.ITEM_ULTRA_BALL, Amount = 0}).FirstOrDefault().Amount;
var masterBallsCount = ballCollection.Where(p => p.ItemId == MiscEnums.Item.ITEM_MASTER_BALL).
DefaultIfEmpty(new {ItemId = MiscEnums.Item.ITEM_MASTER_BALL, Amount = 0}).FirstOrDefault().Amount;
if (masterBallsCount > 0)
{
System.Console.WriteLine("Using Master Ball");
return MiscEnums.Item.ITEM_MASTER_BALL;
}
if (ultraBallsCount > 0)
{
System.Console.WriteLine("Using Ultra Ball");
return MiscEnums.Item.ITEM_ULTRA_BALL;
}
if (greatBallsCount > 0)
{
System.Console.WriteLine("Using Great Ball");
return MiscEnums.Item.ITEM_GREAT_BALL;
}
System.Console.WriteLine("Using Poke Ball");
return MiscEnums.Item.ITEM_POKE_BALL;
}
private static async Task ExecuteCatchAllNearbyPokemons(Client client)
{
var mapObjects = await client.GetMapObjects();
var pokemons = mapObjects.MapCells.SelectMany(i => i.CatchablePokemons);
foreach (var pokemon in pokemons)
{
var update = await client.UpdatePlayerLocation(pokemon.Latitude, pokemon.Longitude);
var encounterPokemonRespone = await client.EncounterPokemon(pokemon.EncounterId, pokemon.SpawnpointId);
var pokeball = await GetPokeBall(client);
CatchPokemonResponse caughtPokemonResponse;
do
{
caughtPokemonResponse = await client.CatchPokemon(pokemon.EncounterId, pokemon.SpawnpointId, pokemon.Latitude, pokemon.Longitude, pokeball); //note: reverted from settings because this should not be part of settings but part of logic
}
while(caughtPokemonResponse.Status == CatchPokemonResponse.Types.CatchStatus.CatchMissed);
System.Console.WriteLine(caughtPokemonResponse.Status == CatchPokemonResponse.Types.CatchStatus.CatchSuccess ? $"[{DateTime.Now.ToString("HH:mm:ss")}] We caught a {pokemon.PokemonId}" : $"[{DateTime.Now.ToString("HH:mm:ss")}] {pokemon.PokemonId} got away..");
await Task.Delay(5000);
await Task.Delay(5000);
}
}
I get numerous errors using this code, but with the one quoted by users who replied before, I get "The Name 'GetInventory' does not exist in the current context" Any help?
-
Member
-
Originally Posted by
MacArtee
Hey, Is there any way, how can I see , what is bot doing, when I am logged in with my google account?
Otherwise, You've done nice job!

Only in console window. It will tell you what you catched, how many exp you gained, which items you gained, etc.
-
Member
Why is my progress not updating when I check on NOX? Bot is farming stops and pokemons perfectly (I'm getting exp and everything), but nothing is actually showing up when I log in.
Anyone got solution for this? I've upgraded to PokeColor and I still don't see any progress.
-
Member
@Neer it wont get exp from a pokestop and im not soft baned.. its only able to catch pokemons
https://gyazo.com/556b956f49581d5a273fdaad9fd73adf
and the delay is killing me :~
-
Active Member
awesome
i am currently using my modified version which is based on version 5
i will wait until it gets more stabilized to move your version ty 
i am waiting you to improve farming logic of the bot
-
-
Post Thanks / Like - 2 Thanks
-
Member
-
Member
-
Member
thanks for the new release. Which TransferType do you all prefer?: leaveStrongest, all, duplicate, cp
Last edited by Aubrionnax; 07-21-2016 at 09:14 AM.
-
Member
just switched to new release is using great balls when run out of pokeballs 
have no pokeballss atm cause inventory is full
-
Member
I have a question about the new release and hope anyone knows the answer.
Is there a option to only keep pokeballs and delete potions/revives? I will be maxed out on items if it keeps everything and then what ? If I log in manually to delete everything I get back to my own location and get soft banned i think.
Thanks!
edit: same goes for the ''StrongestOnly'' transfertype option. It seems to transfer all of the shitty pokemons but it keeps all of the pinsirs
Last edited by Aubrionnax; 07-21-2016 at 10:12 AM.
-
Member
-
Post Thanks / Like - 2 Thanks
-
Member
i need login to delet items from inventory for dont get bag full?