-
Member
@7ken, works perfectly. Thanks
-
Member
Originally Posted by
7ken
It's working. Screen -
@edit2 - working, just add&replace these 2 functions in Client.cs
Code:
private async Task<MiscEnums.Item> GetBestBall()
{
var inventory = await GetInventory();
var ballCollection = inventory.Payload[0].Bag.Items.Select(i => i.Item.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);
var pokeBallsCount = ballCollection.Where(p => p.ItemId == MiscEnums.Item.ITEM_POKE_BALL).
DefaultIfEmpty(new { ItemId = MiscEnums.Item.ITEM_POKE_BALL, Amount = 0 }).FirstOrDefault().Amount;
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;
if (ultraBallsCount > 0)
{
Console.WriteLine($"[{DateTime.Now.ToString("HH:mm:ss")}]" + "Ultra ball has been chosen. " + ultraBallsCount + "balls left.");
return MiscEnums.Item.ITEM_ULTRA_BALL;
}
if (greatBallsCount > 0)
{
Console.WriteLine($"[{DateTime.Now.ToString("HH:mm:ss")}]" + "Great ball has been chosen. " + greatBallsCount + "balls left.");
return MiscEnums.Item.ITEM_GREAT_BALL;
}
Console.WriteLine($"[{DateTime.Now.ToString("HH:mm:ss")}]" + "Poke ball has been chosen. " + pokeBallsCount + "balls left.");
return MiscEnums.Item.ITEM_POKE_BALL;
}
public async Task<CatchPokemonResponse> CatchPokemon(ulong encounterId, string spawnPointGuid, double pokemonLat,
double pokemonLng)
{
MiscEnums.Item bestPokeBall = await GetBestBall();
var customRequest = new Request.Types.CatchPokemonRequest()
{
EncounterId = encounterId,
Pokeball = (int)bestPokeBall,
SpawnPointGuid = spawnPointGuid,
HitPokemon = 1,
NormalizedReticleSize = Utils.FloatAsUlong(1.950),
SpinModifier = Utils.FloatAsUlong(1),
NormalizedHitPosition = Utils.FloatAsUlong(1)
};
var catchPokemonRequest = RequestBuilder.GetRequest(_unknownAuth, _currentLat, _currentLng, 30,
new Request.Types.Requests()
{
Type = (int)RequestType.CATCH_POKEMON,
Message = customRequest.ToByteString()
});
return
await
_httpClient.PostProto<Request, CatchPokemonResponse>($"https://{_apiUrl}/rpc", catchPokemonRequest);
}
works like charm
-
Corporal
Originally Posted by
mobus1
I downloaded your work and i changed the path to my selerium location but when i start it tells me can't find in c:/users/seraph etc and when i create the same path manually it finds it but it does your email and your password , i can't find anything to change this :\
At the top right corner, chose Solution. Right click, choose clean solution, then choose rebuild solution.
-
Member
Originally Posted by
westeroskrali
works like charm
Sorry for asking silly questions, but exactly where do i put it? Im not great with programming =)
Thanks!
-
Member
can i
Originally Posted by
Subcore
Hey. =) How often does it try to catch a pokemon? Only got 1 pidgey so far
Attachment 27700
It is great so far =) easy to use
can you give me your source codes? i cant make my transfee thing work
-
Member
Originally Posted by
Prarrior
Iam getting the following error when I ctrl+f5 it. It does login me automatically through google and put the code in but afterwards it's getting the windows error thing.
What do I have to do? I hope it doesn't matter it's german
Attachment 27731
can anyone help me with this? I set it up as start project
-
Member
Please help me how to change list pokemon transfer?? I need Dratini but the bot transfer all....
-
Active Member
any logic written to improve scan nearby pokemon for pokemon farm?
-
Member
Originally Posted by
westeroskrali
works like charm
what do i repalce it with?
any chance for line number? or function name?
-
Member
Originally Posted by
Marlb0ro
what do i repalce it with?
any chance for line number? or function name?
Function name is the same , replace them.
After that add the other function .
-
Member
Does anyone have idea what could be wrong here? Screenshot by Lightshot
-
Member
Mine isn't getting any exp or any items and all Pokemon are running away. Is there a way to fix that? I don't have a full inventory and I have plenty of Pokeballs. Any help is appreciated
-
Member

i got soft banned. or maybe banned permanent?
-
Corporal
Originally Posted by
RavenVendetta
Mine isn't getting any exp or any items and all Pokemon are running away. Is there a way to fix that? I don't have a full inventory and I have plenty of Pokeballs. Any help is appreciated
You probably got soft banned if that is occurring. Might be something up with your location coordinates teleporting you too far from your original spot or something. Just going to have to wait until that soft ban lifts.
-
Post Thanks / Like - 1 Thanks
RavenVendetta (1 members gave Thanks to ghostory for this useful post)
-
Member
How long does a soft ban usually last?