-
Originally Posted by
sabbir9985
How to disable Evolve All pokemons or Create a whitelist ?
Delete/Comment-out the line
Code:
await EvolveAllPokemonWithEnoughCandy();
from Logic.cs
Facing problems with your bot? Check out this thread for possible solutions:
https://www.ownedcore.com/forums/pokemon-go/pokemon-go-hacks-cheats/564223-compilation-common-errors-solutionss.html
-
Post Thanks / Like - 1 Thanks
Mew351 (1 members gave Thanks to spodakek for this useful post)
-
Banned
If I have over 15 pokemons 1000+ I don`t wanna transfer them into cookies especially if I have plenty of space in the bag. is there a way to make it not transfer all 1000+ cp pokemon? please someone help me thats the last thing I need help with and then its flawless
-
Private
Originally Posted by
droman123
If I have over 15 pokemons 1000+ I don`t wanna transfer them into cookies especially if I have plenty of space in the bag. is there a way to make it not transfer all 1000+ cp pokemon? please someone help me thats the last thing I need help with and then its flawless
Change this function in Logic.
Code:
private async Task TransferDuplicatePokemon(bool keepPokemonsThatCanEvolve = false)
{
var duplicatePokemons = await _inventory.GetDuplicatePokemonToTransfer(keepPokemonsThatCanEvolve);
foreach (var duplicatePokemon in duplicatePokemons)
{
var transfer = await _client.TransferPokemon(duplicatePokemon.Id);
Logger.Write($"Transfer {duplicatePokemon.PokemonId} with {duplicatePokemon.Cp} CP", LogLevel.Info);
await Task.Delay(500);
}
}
To this:
Code:
private async Task TransferDuplicatePokemon()
{
var duplicatePokemons = await _inventory.GetDuplicatePokemonToTransfer();
foreach (var duplicatePokemon in duplicatePokemons)
{
if (duplicatePokemon.Cp >= 1000)
{
continue;
}
var transfer = await _client.TransferPokemon(duplicatePokemon.Id);
Logger.Write($"Transfer {duplicatePokemon.PokemonId} with {duplicatePokemon.Cp} CP", LogLevel.Info);
await Task.Delay(300);
}
}
Bold code is what was changed. Basically its hard coded to skip if the cp is greater than 1k.
-
Member
How would i go about running multiple instances? Should i copy paste the ferox directories and run them through different visual studios?
-
Member
Is this the function to control how fast my character moves/capture/go to different pokestop?
PokemonGo.RocketAPI.Logic/Logic.cs line 85
await Task.Delay(15000);
await ExecuteCatchAllNearbyPokemons(client);
-
Member
Meh I'll wait till I can transfer by CP, right now the program is way to broken
-
Member
how to change transfer and evolv settings
-
Private
FYI if your pokemon is marked as favorite (the star), it'll not delete them when running the TransferDuplicatePokemon function.
Proof is in bold:
Code:
public async Task<IEnumerable<PokemonData>> GetDuplicatePokemonToTransfer(bool keepPokemonsThatCanEvolve = false)
{
var myPokemon = await GetPokemons();
var pokemonList = myPokemon.Where(p => p.DeployedFortId == 0).ToList(); //Don't evolve pokemon in gyms
if (keepPokemonsThatCanEvolve)
{
var results = new List<PokemonData>();
var pokemonsThatCanBeTransfered = pokemonList.GroupBy(p => p.PokemonId)
.Where(x => x.Count() > 2).ToList();
var myPokemonSettings = await GetPokemonSettings();
var pokemonSettings = myPokemonSettings.ToList();
var myPokemonFamilies = await GetPokemonFamilies();
var pokemonFamilies = myPokemonFamilies.ToArray();
foreach (var pokemon in pokemonsThatCanBeTransfered)
{
var settings = pokemonSettings.Single(x => x.PokemonId == pokemon.Key);
var familyCandy = pokemonFamilies.Single(x => settings.FamilyId == x.FamilyId);
if (settings.CandyToEvolve == 0)
continue;
var amountToSkip = (familyCandy.Candy + settings.CandyToEvolve - 1)/settings.CandyToEvolve + 2;
results.AddRange(pokemonList.Where(x => x.PokemonId == pokemon.Key && x.Favorite == 0)
.OrderByDescending(x => x.Cp)
.ThenBy(n => n.StaminaMax)
.Skip(amountToSkip)
.ToList());
}
return results;
}
return pokemonList
.GroupBy(p => p.PokemonId)
.Where(x => x.Count() > 1)
.SelectMany(p => p.Where(x => x.Favorite == 0).OrderByDescending(x => x.Cp).ThenBy(n => n.StaminaMax).Skip(1).ToList());
}
So basically when its grabbing the pokemon to transfer, it'll only look for pokemon that is not marked as favorite.
-
Member
Originally Posted by
dreambar.wi
Change this function in Logic.
Code:
private async Task TransferDuplicatePokemon(bool keepPokemonsThatCanEvolve = false)
{
var duplicatePokemons = await _inventory.GetDuplicatePokemonToTransfer(keepPokemonsThatCanEvolve);
foreach (var duplicatePokemon in duplicatePokemons)
{
var transfer = await _client.TransferPokemon(duplicatePokemon.Id);
Logger.Write($"Transfer {duplicatePokemon.PokemonId} with {duplicatePokemon.Cp} CP", LogLevel.Info);
await Task.Delay(500);
}
}
To this:
Code:
private async Task TransferDuplicatePokemon()
{
var duplicatePokemons = await _inventory.GetDuplicatePokemonToTransfer();
foreach (var duplicatePokemon in duplicatePokemons)
{
if (duplicatePokemon.Cp >= 1000)
{
continue;
}
var transfer = await _client.TransferPokemon(duplicatePokemon.Id);
Logger.Write($"Transfer {duplicatePokemon.PokemonId} with {duplicatePokemon.Cp} CP", LogLevel.Info);
await Task.Delay(300);
}
}
Bold code is what was changed. Basically its hard coded to skip if the cp is greater than 1k.
First off thank you for all your help.
Is there anyway to disable evolving completely?
Thank you
-
Member
Originally Posted by
dakine808
First off thank you for all your help.
Is there anyway to disable evolving completely?
Thank you
Comment transfer in logic.cs
-
Member
Originally Posted by
dakine808
First off thank you for all your help.
Is there anyway to disable evolving completely?
Thank you
In Logic.cs
//await EvolveAllPokemonWithEnoughCandy(); COMMENT IT OUT OR DELETE IT
await TransferDuplicatePokemon(true);
await RecycleItems();
await ExecuteFarmingPokestopsAndPokemons();
-
Post Thanks / Like - 1 Thanks
dakine808 (1 members gave Thanks to gopokemongo for this useful post)
-
Private
Originally Posted by
dakine808
First off thank you for all your help.
Is there anyway to disable evolving completely?
Thank you
Yes and I believe someone already post the solution. In the Logic.cs file this line needs to be deleted.
Code:
public async Task PostLoginExecute()
{
while (true)
{
try
{
await _client.SetServer();
var inventory = await _client.GetInventory();
var playerStats = inventory.InventoryDelta.InventoryItems.Select(i => i.InventoryItemData).FirstOrDefault(i => i.PlayerStats != null);
await EvolveAllPokemonWithEnoughCandy(); <-- DELETE THIS LINE
await TransferDuplicatePokemon();
await RecycleItems();
await ExecuteFarmingPokestopsAndPokemons();
/*
* Example calls below
*
var profile = await _client.GetProfile();
var settings = await _client.GetSettings();
var mapObjects = await _client.GetMapObjects();
var inventory = await _client.GetInventory();
var pokemons = inventory.InventoryDelta.InventoryItems.Select(i => i.InventoryItemData?.Pokemon).Where(p => p != null && p?.PokemonId > 0);
*/
}
catch (AccessTokenExpiredException)
{
throw;
}
catch (Exception ex)
{
Logger.Write($"Exception: {ex}", LogLevel.Error);
}
await Task.Delay(10000);
}
}
-
Post Thanks / Like - 1 Thanks
dakine808 (1 members gave Thanks to dreambar.wi for this useful post)
-
Member
Originally Posted by
dbhoward20
Meh I'll wait till I can transfer by CP, right now the program is way to broken
same. shame necro stopped updating his, it was great. this current one has good features but unuseable if its transferring a ton of useful pokemon
-
Member
dreambar can you add some code to add tranferbycp
-
Member
Originally Posted by
winterfall500
How to use this the basic way:
1. Download a fresh one
https://github.com/FeroxRev/Pokemon-Go-Rocket-API
1.1. Check if your zip file is "Blocked" if it is "Unblock it"
1.2. Unzip
2: Open the SLN file
2.1. Right click "PokemonGo.RocketAPI.Console" and Click Set as StartUp Project
3. If you wanna change the Latitude and Longitude go to UserSettings.settings under "PokemonGo.RocketAPI.Console" and there you can edit it including the Auth type and Ptc Username/Password and Right click "PokemonGo.RocketAPI.Console" then Rebuild it
4. If you don't wanna evolve your pokemons and save it for later go to Logic.Cs under "PokemonGo.RocketAPI.Logic" and delete the following:
Code:
await EvolveAllPokemonWithEnoughCandy();
and
Code:
private async Task EvolveAllPokemonWithEnoughCandy()
{
var pokemonToEvolve = await _inventory.GetPokemonToEvolve();
foreach (var pokemon in pokemonToEvolve)
{
var evolvePokemonOutProto = await _client.EvolvePokemon((ulong)pokemon.Id);
if (evolvePokemonOutProto.Result == EvolvePokemonOut.Types.EvolvePokemonStatus.PokemonEvolvedSuccess)
Logger.Write($"Evolved {pokemon.PokemonId} successfully for {evolvePokemonOutProto.ExpAwarded}xp", LogLevel.Info);
else
Logger.Write($"Failed to evolve {pokemon.PokemonId}. EvolvePokemonOutProto.Result was {evolvePokemonOutProto.Result}, stopping evolving {pokemon.PokemonId}", LogLevel.Info);
await Task.Delay(3000);
}
}
5. Right Click PokemonGo.RocketAPI.Console and PokemonGo.RocketAPI.Logic
5.5 Click Rebuild
6. Ctrl + F5
up up up up up up