anti afk function menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    namreeb's Avatar Legendary

    Reputation
    658
    Join Date
    Sep 2008
    Posts
    1,023
    Thanks G/R
    7/215
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by BrolyYO View Post
    Unless you somehow want to be tracked, and banned, this is the safest method so far, made with a timer. No matter how ugly it is (for you) if works then nothing to say about.
    The method you propose is much, much easier to track by the server. Warden could potentially read the value of the lastHardwareAction global variable, but it would have no reliable way of knowing if the value it reads was written by the game or not.

    Edit: This is my anti AFK hack and I have never been banned on any private server on any version, and it has always worked.

    Code:
        static class AntiAfk
        {
            #region Properties
            public static bool Enabled
            {
                get { return ResetTimer.Enabled; }
                set { ResetTimer.Enabled = value; }
            }
    
            private static readonly Timer ResetTimer = new Timer(10000);
            #endregion
    
            static AntiAfk()
            {
                ResetTimer.Elapsed += ResetTimerTick;
                ResetTimer.Enabled = true;
            }
    
            static void ResetTimerTick(object source, ElapsedEventArgs e)
            {
                Status.LastHardwareAction = Status.TickCount;
            }
        }
    Code:
        static class Status
        {
            public static uint TickCount
            {
                get
                {
                    var func =
                        (GetTickCountDelegate)
                        Marshal.GetDelegateForFunctionPointer(Locator.GetTickCount, typeof (GetTickCountDelegate));
    
                    return func();
                }
            }
    
            public static uint LastHardwareAction
            {
                get { return (uint)Marshal.ReadInt32(Locator.LastHardwareAction); }
                set { Marshal.WriteInt32(Locator.LastHardwareAction, (int) value); }
            }
    }
    Last edited by namreeb; 09-07-2014 at 02:34 PM.

    anti afk function
  2. #17
    zdohdds's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2013
    Posts
    46
    Thanks G/R
    19/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry, i'm wrong
    Last edited by zdohdds; 12-05-2016 at 09:00 PM. Reason: deleted

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Anyone have a anti afk macro?
    By EternalOwnz in forum World of Warcraft General
    Replies: 9
    Last Post: 08-25-2011, 11:04 AM
  2. [Release]Ultimate Anti AFK Bot[Extra Functions]
    By marco1234 in forum World of Warcraft Bots and Programs
    Replies: 23
    Last Post: 10-02-2009, 08:04 AM
  3. [Bot] Anti-AFK Bot (No Injection & Focus not Needed)
    By Cypher in forum World of Warcraft Bots and Programs
    Replies: 12
    Last Post: 09-10-2006, 11:14 AM
  4. Any Anti AFK Scripts available?
    By paboee in forum World of Warcraft General
    Replies: 2
    Last Post: 08-30-2006, 09:11 AM
  5. The Most Comprehensive Anti-AFK Bot... Ever
    By Sym in forum World of Warcraft Bots and Programs
    Replies: 7
    Last Post: 08-24-2006, 07:30 AM
All times are GMT -5. The time now is 01:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search