using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace DefaultNameSpace{
public class DefaultClass : Core
{
public static string GetPluginAuthor()
{
return "Kavex";
}
public static string GetPluginVersion()
{
return "1.0.0.0";
}
public static string GetPluginDescription()
{
return "JumpAFK - Jumps every 5 mins";
}
//Call on plugin start
public void PluginRun()
{
Console.WriteLine("Starting AntiAFK Program");
bool antiAFK = true;
afkRun(antiAFK);
}
//Call on plugin stop
public void PluginStop()
{
bool antiAFK = false;
afkRun(antiAFK);
Jump(false);
}
public void afkRun(bool antiAFK)
{
bool checkRun = antiAFK;
while(checkRun == true)
{
Random random = new Random();
int randomWait = random.Next(100000, 300000);
Jump(true);
Thread.Sleep(200);
Jump(false);
Thread.Sleep(randomWait);
}
}
}
}
Here is just a simple Jump AFK. Not sure if you can still afk this way
It will randomly jump between 1-5mins apart.
Code:using System; using System.Drawing; using System.Windows.Forms; using System.Threading; using System.Collections.Generic; using System.Linq; using ArcheBuddy.Bot.Classes; namespace DefaultNameSpace{ public class DefaultClass : Core { public static string GetPluginAuthor() { return "Kavex"; } public static string GetPluginVersion() { return "1.0.0.0"; } public static string GetPluginDescription() { return "JumpAFK - Jumps every 5 mins"; } //Call on plugin start public void PluginRun() { Console.WriteLine("Starting AntiAFK Program"); bool antiAFK = true; afkRun(antiAFK); } //Call on plugin stop public void PluginStop() { bool antiAFK = false; afkRun(antiAFK); Jump(false); } public void afkRun(bool antiAFK) { bool checkRun = antiAFK; while(checkRun == true) { Random random = new Random(); int randomWait = random.Next(100000, 300000); Jump(true); Thread.Sleep(200); Jump(false); Thread.Sleep(randomWait); } } } }