-
Member
Originally Posted by
Devolkoff
ok some question
is it only transfer when start? or when 250/250 too?
only at start
-
Member
Originally Posted by
Ainess
if you want to use pokeballs > greatballs > ultraballs
change

to

Can I put it to Neer version and where ?
-
Post Thanks / Like - 1 Thanks
iiymij (1 members gave Thanks to janekkk for this useful post)
-
Sergeant
I found a way to transfer every 100 pokemon caught!
1. Open Pokemon-Go-Rocket-API-master\PokemonGo\RocketAPI\Console\Program.cs
2. In namespace PokemonGo.RocketAPI.Console { internal class Program { } }, add before the existing public static void CheckVersion() the following line:
Code:
public static int nbCatches = 0;
3. In private static async Task ExecuteCatchAllNearbyPokemons(Client client), add the following lines in between the two await Task.Delay(5000); at the end of the function:
Code:
if (caughtPokemonResponse.Status == CatchPokemonResponse.Types.CatchStatus.CatchSuccess)
nbCatches = nbCatches + 1;
if (nbCatches >= 100)
{
var inventory = await client.GetInventory();
var inv_pokemons =
inventory.InventoryDelta.InventoryItems.Select(i => i.InventoryItemData?.Pokemon)
.Where(p => p != null && p?.PokemonId > 0);
if (ClientSettings.TransferType == "leaveStrongest")
await TransferAllButStrongestUnwantedPokemon(client);
else if (ClientSettings.TransferType == "all")
await TransferAllGivenPokemons(client, inv_pokemons);
else if (ClientSettings.TransferType == "duplicate")
await TransferDuplicatePokemon(client);
else if (ClientSettings.TransferType == "cp")
await TransferAllWeakPokemon(client, ClientSettings.TransferCPThreshold);
else
System.Console.WriteLine("Transfering pokemon disabled");
if (ClientSettings.EvolveAllGivenPokemons)
await EvolveAllGivenPokemons(client, inv_pokemons);
nbCatches = 0;
}
4. You can check these screenshots to see if you done it correctly: step 1, step 2.
Last edited by Merudo; 07-20-2016 at 10:56 PM.
-
Post Thanks / Like - 1 Thanks
Trip_Machine (1 members gave Thanks to Merudo for this useful post)
-
Member
Copy this code into Line 153 of programm.cs !!
it will restart ur farming automaticly after 40 seconds.
Code:
try
{
System.Console.WriteLine("||Farm Started||");
await ExecuteFarmingPokestopsAndPokemons(client);
System.Console.WriteLine("Unexpected stop? Restarting in 40 seconds.");
await Task.Delay(40000);
Execute();
}
catch (TaskCanceledException tce) { System.Console.WriteLine("Task Canceled Exception - Restarting"); Execute(); }
catch (UriFormatException ufe) { System.Console.WriteLine("System URI Format Exception - Restarting"); Execute(); }
catch (ArgumentOutOfRangeException aore) { System.Console.WriteLine("ArgumentOutOfRangeException - Restarting"); Execute(); }
catch (NullReferenceException nre) { System.Console.WriteLine("Null Refference - Restarting"); Execute(); }
-
Post Thanks / Like - 1 Thanks
psicrest (1 members gave Thanks to tentrust for this useful post)
-
Member
Originally Posted by
tentrust
Copy this code into Line 153 of programm.cs !!
it will restart ur farming automaticly after 40 seconds.
Code:
try
{
System.Console.WriteLine("||Farm Started||");
await ExecuteFarmingPokestopsAndPokemons(client);
System.Console.WriteLine("Unexpected stop? Restarting in 40 seconds.");
await Task.Delay(40000);
Execute();
}
catch (TaskCanceledException tce) { System.Console.WriteLine("Task Canceled Exception - Restarting"); Execute(); }
catch (UriFormatException ufe) { System.Console.WriteLine("System URI Format Exception - Restarting"); Execute(); }
catch (ArgumentOutOfRangeException aore) { System.Console.WriteLine("ArgumentOutOfRangeException - Restarting"); Execute(); }
catch (NullReferenceException nre) { System.Console.WriteLine("Null Refference - Restarting"); Execute(); }
What does this do exactly? And do you mean after line: await EvolveAllGivenPokemons(client, pokemons); ??
-
Member
I'm getting a syntax error when trying to add pokemonId's to the unwanted list.
-
Active Member
using the bat file i get this error? Screenshot by Lightshot
idk why they other one runs fune on my google account one (this one is the PTC) i can manually start it tho
-
Member
Originally Posted by
Smoshi
I'm getting a syntax error when trying to add pokemonId's to the unwanted list.
you probably made a spelling error, anyway no one can help you with such a vague explanation
-
Member
Why the new build doesnt have? Or if it does, where?
Code:
<add key="TransferType" value="duplicate"/><!--none/cp/leaveStrongest/duplicate/all Whitelists/blackslists for each type is in Program.cs-->
<add key="TransferCPThreshold" value="0"/><!--transfer pokemon with CP less than this value if cp transfer type is selected. Whitelist in Program.cs-->
<add key="EvolveAllGivenPokemons" value="false"/>
-
Member
Originally Posted by
balkai
you probably made a spelling error, anyway no one can help you with such a vague explanation
Nvm I got it. Forgot to add the comma after the pokemon.
-
Member
yes after line: await EvolveAllGivenPokemons(client, pokemons);
if ur bot runs out of pokestops in your area the bot will stop ..many people have this problem... this code will simply restart farming from the first pokestop...40 sec. delay because if your last pokestop is too far away you might get a short softban
-
Member
-
Sergeant
Originally Posted by
Ainess
if you want to use pokeballs > greatballs > ultraballs
change

to

if you post something like this, better to put CODE tags instead of pictures, especially for the new guys TIA
Change This
Code:
if (masterBallsCount > 0)
return MiscEnums.Item.ITEM_MASTER_BALL;
if (ultraBallsCount > 0)
return MiscEnums.Item.ITEM_ULTRA_BALL;
if (greatBallsCount > 0)
return MiscEnums.Item.ITEM_GREAT_BALL;
return MiscEnums.Item.ITEM_POKE_BALL;
}
to this
Code:
if (pokeBallsCount > 0)
return MiscEnums.Item.ITEM_POKE_BALL;
if (greatBallsCount > 0)
return MiscEnums.Item.ITEM_GREAT_BALL;
if (ultraBallsCount > 0)
return MiscEnums.Item.ITEM_ULTRA_BALL;
return MiscEnums.Item.ITEM_MASTER_BALL;
}
"When solving problems, dig at the roots instead of just hacking at the leaves."
-
Member
Originally Posted by
tentrust
Copy this code into Line 153 of programm.cs !!
it will restart ur farming automaticly after 40 seconds.
Code:
try
{
System.Console.WriteLine("||Farm Started||");
await ExecuteFarmingPokestopsAndPokemons(client);
System.Console.WriteLine("Unexpected stop? Restarting in 40 seconds.");
await Task.Delay(40000);
Execute();
}
catch (TaskCanceledException tce) { System.Console.WriteLine("Task Canceled Exception - Restarting"); Execute(); }
catch (UriFormatException ufe) { System.Console.WriteLine("System URI Format Exception - Restarting"); Execute(); }
catch (ArgumentOutOfRangeException aore) { System.Console.WriteLine("ArgumentOutOfRangeException - Restarting"); Execute(); }
catch (NullReferenceException nre) { System.Console.WriteLine("Null Refference - Restarting"); Execute(); }
Not workin.............
-
Member
is there a way to prioritize pokemon over pokestops? the spot I'm using has 6 lures within range and it's just hitting the pokestops and moving to more pokestops.