-
Member
@Neer I suggest to implement my function to simulate human movement and not be soft banned teleporting to pokestops.
You can put the movement speed as another config parameter.
Code:
public async Task<PlayerUpdateResponse> UpdatePlayerLocation(double lat, double lng)
{
System.Console.WriteLine(" ");
System.Console.WriteLine("Moving to " + lat + " " + lng + " ...");
double startX = _currentLat;
double startY = _currentLng;
double endX = lat;
double endY = lng;
double speed = 0.06f;
float elapsed = 0.01f;
// On starting movement
double distance = Math.Sqrt(Math.Pow(endX - startX, 2) + Math.Pow(endY - startY, 2));
double directionX = (endX - startX) / distance;
double directionY = (endY - startY) / distance;
double newlat = startX;
double newLng = startY;
while (Math.Sqrt(Math.Pow(newlat - startX, 2) + Math.Pow(newLng - startY, 2)) <= distance)
{
newlat += directionX * speed * elapsed;
newLng += directionY * speed * elapsed;
System.Console.WriteLine(newlat + " " + newLng);
var customRequest1 = new Request.Types.PlayerUpdateProto()
{
Lat = Utils.FloatAsUlong(newlat),
Lng = Utils.FloatAsUlong(newLng)
};
var updateRequest1 = RequestBuilder.GetRequest(_unknownAuth, _currentLat, _currentLng, 10, new Request.Types.Requests()
{
Type = (int)RequestType.PLAYER_UPDATE,
Message = customRequest1.ToByteString()
});
var updateResponse1 = await _httpClient.PostProtoPayload<Request, PlayerUpdateResponse>($"https://{_apiUrl}/rpc", updateRequest1);
await Task.Delay(2000);
}
SetCoordinates(lat, lng);
var customRequest = new Request.Types.PlayerUpdateProto
{
Lat = Utils.FloatAsUlong(_currentLat),
Lng = Utils.FloatAsUlong(_currentLng)
};
var updateRequest = RequestBuilder.GetRequest(_unknownAuth, _currentLat, _currentLng, 10,
new Request.Types.Requests
{
Type = (int) RequestType.PLAYER_UPDATE,
Message = customRequest.ToByteString()
});
var updateResponse =
await
_httpClient.PostProtoPayload<Request, PlayerUpdateResponse>($"https://{_apiUrl}/rpc", updateRequest);
return updateResponse;
}
}
-
Post Thanks / Like - 1 Thanks
simo4295 (1 members gave Thanks to KramAlpha for this useful post)
-
Active Member
does it transfer EVERYTHING by default EXCEPT one of the highes CP? or only the very few on the list? i now see two sections that have a list of the small list of pokemon to avoid????
-
Member
Originally Posted by
axewfious
Amazing bot, truly. A few suggestions:
1. Make the Token either Auto-Copy to clipboard, or save itself to another text file such as Token.xml so we can just copy paste in user.xml instead of having to type it all down.
2. Get yourself a donation button, this bot is awesome.
also, in the OP, you say "settings.xml" instead of "user.xml" ;p
You can easily copy this. Right click the title bar of the command prompt, click mark, then highlight the token, press enter, that should copy all of it. Then paste using Ctrl-V or right click then paste. It works.
-
Member
i noticed that when bag is full and you are out of pokeballs it kinda stops working
cant get pokebals from pokestops -> cant catch pokemon
really great piece of software i love it
also would be cool if he could use raspberries
-
Post Thanks / Like - 1 Thanks
-
Member
How to use diffrent type of pokeball ? Smth like I found pikachu 600CP+ and bot used great or better pokeball ?
Edit. Nevermind its workin lol now Pinsir 1158 run away and bot used Ultra Ball. But which command is responsible for that ?
Last edited by janekkk; 07-21-2016 at 09:30 AM.
-
Member
If possible, but that might be a completely new bot.
Anyway, a "bot"/module that you can start to speed-farm exp using evolves.
Let's say that you fill up on Caterpie, Weedle and Pidgeys, so you have max amounts of pokémon on you. Then you start this bot/module, and it'll use a lucky egg, STAND STILL, and just evolve pokémon after pokémon. And of course transfer once they've been evolved once.
I assume that you could skip the whole animation wait time if done within a bot, since the animations are client-sided?
-
Member
Just getting "Could not load settings. user.xml either missing or malformed" set everything correctly up
-
Member
I keep getting this error. it will run for a minute or so, go to a poke stop and catch a few pokemon then the bot just gets stuck in the restarting loop and does not work. symptoms of a softban or am i doing something wrong?
-
Does this fix the crash every x minutes?
-
-
Originally Posted by
Sonanio
Just getting "Could not load settings. user.xml either missing or malformed" set everything correctly up
Post your settings here without the login info.
-
Knight-Lieutenant
Using wine and get "Failed to get 100ns ticks" Any idea what that could mean :/
-
Member
It works great, just one concern is the speed at which it catches pokemon, it like 1 every few seconds. Which is asking for a ban, I think.
Is there any way to add a delay?
-
Member
Could you show the Level of the Account as well please?
-