diff --git a/Helpers/RequestBuilder.cs b/Helpers/RequestBuilder.cs index b427b59..e403537 100644 --- a/Helpers/RequestBuilder.cs +++ b/Helpers/RequestBuilder.cs @@ -11,6 +11,7 @@ using POGOProtos.Enums; using Troschuetz.Random; using System.Text; +using static POGOProtos.Networking.Envelopes.Signature.Types; #endregion @@ -20,8 +21,6 @@ public class RequestBuilder { // The next variables are specific to 43.3 client. private static long Client_4330_Unknown25 = -8408506833887075802; - private static int Client_3500_InitialRequestIdConstant_Android = 1404534344; //0x53B77E48 - private static int Client_3500_InitialRequestIdConstant_Ios = 16807; //0x000041A7 private static readonly Random RandomDevice = new Random(); private static readonly TRandom TRandomDevice = new TRandom(); @@ -57,7 +56,7 @@ public RequestBuilder(Client client, string authToken, AuthType authType, double if (_speed <= 0) _speed = (float)TRandomDevice.Triangular(0.1, 3.1, .8); - _horizontalAccuracy = 10; // TRandomDevice.Choice(new List(new int[] { 5, 5, 5, 5, 10, 10, 10 })); + _horizontalAccuracy = TRandomDevice.Choice(new List(new int[] { 5, 5, 5, 5, 10, 10, 10 })); _settings = settings; _authTicket = authTicket; @@ -171,29 +170,31 @@ private RequestEnvelope.Types.PlatformRequest GenerateSignature(IEnumerable(new string[] { "network", "network", "network", "network", "fused" })), @@ -205,8 +206,7 @@ private RequestEnvelope.Types.PlatformRequest GenerateSignature(IEnumerable= 65) { locationFix.HorizontalAccuracy = TRandomDevice.Choice(new List(new int[] { _horizontalAccuracy, 65, 65, (int)Math.Round(GenRandom(66, 80)), 200 })); @@ -245,7 +245,6 @@ private RequestEnvelope.Types.PlatformRequest GenerateSignature(IEnumerable AttackGym(string fortId, string battleId, L { BattleId = battleId, GymId = fortId, - LastRetrievedActions = lastRetrievedAction, + LastRetrievedAction = lastRetrievedAction, PlayerLatitude = Client.CurrentLatitude, PlayerLongitude = Client.CurrentLongitude, AttackActions = {battleActions}