anti afk function menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    seasick's Avatar Sergeant
    Reputation
    16
    Join Date
    Aug 2013
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    anti afk function

    can anyone help me on how to make an anti afk function to my bot?

    ive tried writing current tickcount to lastHardwareAction address in my main loop
    and tried spamming a "/afk" macro

    but they didnt work

    please help

    anti afk function
  2. #2
    CreeperDeath's Avatar Elite User
    Reputation
    378
    Join Date
    Jul 2013
    Posts
    204
    Thanks G/R
    7/50
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by seasick View Post
    can anyone help me on how to make an anti afk function to my bot?

    ive tried writing current tickcount to lastHardwareAction address in my main loop
    and tried spamming a "/afk" macro

    but they didnt work

    please help
    /run local f=CreateFrame("Frame")f:RegisterEvent("PLAYER_CAMPING")f:SetScript("OnEvent", function() local p=StaticPopup_Visible("CAMP")_G[p.."Button1"]:Click()end)

    Not my macro, RedRussians one, rep him not me.
    Did it ever happened to you, when you're smoking a cigarette and you try to get it out from your mouth but your lips are so dry that your fingers go to the fire instead because the cigarette is stuck on your lips?

  3. #3
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by seasick View Post
    can anyone help me on how to make an anti afk function to my bot?

    ive tried writing current tickcount to lastHardwareAction address in my main loop
    and tried spamming a "/afk" macro

    but they didnt work

    please help
    If you're writing to the last hardware action address and it's not working, you're likely doing it wrong. That method has worked for years to my knowledge.

  4. #4
    seasick's Avatar Sergeant
    Reputation
    16
    Join Date
    Aug 2013
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CreeperDeath View Post
    /run local f=CreateFrame("Frame")f:RegisterEvent("PLAYER_CAMPING")f:SetScript("OnEvent", function() local p=StaticPopup_Visible("CAMP")_G[p.."Button1"]:Click()end)

    Not my macro, RedRussians one, rep him not me.


    oh sick, thank you. I just use that macro and i never go afk?
    Last edited by seasick; 09-04-2014 at 05:50 PM.

  5. #5
    seasick's Avatar Sergeant
    Reputation
    16
    Join Date
    Aug 2013
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    If you're writing to the last hardware action address and it's not working, you're likely doing it wrong. That method has worked for years to my knowledge.


    how to do it right?
    Last edited by seasick; 09-04-2014 at 05:50 PM.

  6. #6
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by seasick View Post
    how to do it right?
    Well, the way I do it is to update the last hardware action with the current time every five seconds.

  7. #7
    seasick's Avatar Sergeant
    Reputation
    16
    Join Date
    Aug 2013
    Posts
    49
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by culino2 View Post
    Show us some code and we'll be able to help you. The current offset is 0x00BB2C74 (not rebased) btw.

    Code:
    main()
    {
    	Loop
    	{
    		cont := true
    		Sleep 100
    		om.update()
    		om.player.setpos()
    		antiAfk()
    		gosub fight
    		if cont
    			gosub loot
    		if cont
    			gosub walk
    	}
    
    
    ......
    
    
    antiAfk()
    {
    	mem.write(mLastHardware,A_TickCount)
    }
    
    
    .......
    
    global mLastHardware := mem.baseaddress + 0xBB2C74


    ahk code, and thx for helping

    mem.write is UInt by default
    Last edited by seasick; 09-04-2014 at 07:50 PM.

  8. #8
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure you use the Tickcount used by WoW and not the tickcount from your system. Using Enviroment.TickCount always caused problems for me
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  9. #9
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    Make sure you use the Tickcount used by WoW and not the tickcount from your system. Using Enviroment.TickCount always caused problems for me
    For anti-AFK, or for other things, like movement? For anti-AFK it really shouldn't matter since the code that reads that variable compares for a difference of like five minutes. The problem with Environment.TickCount for movement or other things where more closely matching WoW's values is important, you don't get to specify whether to use GetTickCount() or QueryPerformanceCounter(). I am not sure what WoW does currently, but there used to be a console var to specify which one WoW should use. If you knew which it used, and it used a particular one always by default (which one depends on the WoW version), you could make the corresponding system call to get the value, and it would work fine.

  10. #10
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    For anti-AFK, or for other things, like movement? For anti-AFK it really shouldn't matter since the code that reads that variable compares for a difference of like five minutes. The problem with Environment.TickCount for movement or other things where more closely matching WoW's values is important, you don't get to specify whether to use GetTickCount() or QueryPerformanceCounter(). I am not sure what WoW does currently, but there used to be a console var to specify which one WoW should use. If you knew which it used, and it used a particular one always by default (which one depends on the WoW version), you could make the corresponding system call to get the value, and it would work fine.

    I just used this one:
    Environment.TickCount Property (System)

    and I never had a problem with anything except going AFK randomly
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  11. #11
    BrolyYO's Avatar Banned
    Reputation
    2
    Join Date
    Aug 2014
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Windows post msg with VK_RIGHT start and stop.

    Most useful and easy way.

  12. #12
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by BrolyYO View Post
    Windows post msg with VK_RIGHT start and stop.

    Most useful and easy way.
    Unless you somehow time travelled to 2006, I hope your joking! This is by far the ugliest method ever!
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  13. #13
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    IIRC the /afk command is different to actually becoming inactive, and won't be removed by hardware updates. It's been a long while since I touched anti-AFK stuff, so don't quote me on it. I just seem to remember it this way.

  14. #14
    RedRussian's Avatar Banned CoreCoins Purchaser Authenticator enabled
    Reputation
    221
    Join Date
    Nov 2012
    Posts
    430
    Thanks G/R
    2/3
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by seasick View Post
    oh sick, thank you. I just use that macro and i never go afk?
    Unless you're leaving your toon in a resting area where logging out is instant.

  15. #15
    BrolyYO's Avatar Banned
    Reputation
    2
    Join Date
    Aug 2014
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    Unless you somehow time travelled to 2006, I hope your joking! This is by far the ugliest method ever!
    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.

Page 1 of 2 12 LastLast

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:59 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search