From def60550ba064c1b0c4941df5fa2df6f856f7bc9 Mon Sep 17 00:00:00 2001 From: dbear20 Date: Mon, 23 Sep 2013 20:19:53 -0400 Subject: [PATCH 1/6] AntiAFK and login changes Added the ability to set a custom test string for the antiAFK bot through the .ini file. Also changed it that instead of waiting for input after login failure it waits 10 seconds and then restarts the program to try again. --- MinecraftClient/Bots.cs | 2 +- MinecraftClient/MinecraftClient.csproj | 25 +++++++++++++++--- .../MinecraftClient_TemporaryKey.pfx | Bin 0 -> 1660 bytes MinecraftClient/Program.cs | 6 +++-- MinecraftClient/Settings.cs | 4 ++- 5 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 MinecraftClient/MinecraftClient_TemporaryKey.pfx diff --git a/MinecraftClient/Bots.cs b/MinecraftClient/Bots.cs index ca3b34c75d..1f4694f54d 100644 --- a/MinecraftClient/Bots.cs +++ b/MinecraftClient/Bots.cs @@ -289,7 +289,7 @@ public override void Update() count++; if (count == timeping) { - SendText("/ping"); + SendText(Settings.AntiAFK_Text); count = 0; } } diff --git a/MinecraftClient/MinecraftClient.csproj b/MinecraftClient/MinecraftClient.csproj index aba910f0ae..d662ca341a 100644 --- a/MinecraftClient/MinecraftClient.csproj +++ b/MinecraftClient/MinecraftClient.csproj @@ -13,7 +13,8 @@ v4.0 Client 512 - publish\ + false + C:\Users\Robert\Desktop\ true Disk false @@ -23,10 +24,11 @@ false false true - 0 + true + 1 1.0.0.%2a - false false + true true @@ -50,7 +52,7 @@ - false + true resources\appicon.ico @@ -59,6 +61,18 @@ MinecraftClient.Program + + A031397043FB37471161CDFFE0D48E014EF30582 + + + MinecraftClient_TemporaryKey.pfx + + + true + + + true + False @@ -124,6 +138,9 @@ + + +