Making an anti-afk bot with AutoIT the easy way. menu

User Tag List

Results 1 to 14 of 14
  1. #1
    Tsai's Avatar Member
    Reputation
    5
    Join Date
    Sep 2006
    Posts
    61
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making an anti-afk bot with AutoIT the easy way.

    Okay, so first off you will need AutoIT for this which can be found @ AutoIt v3 - Automate and Script Windows Tasks - For Free!

    NOTE:I just began autoIT. There may be smarter ways to do this than I do it.


    Once you have that, make a new file and write;

    Code:
    WinWaitActive("World of Warcraft");
    Sleep (5000)
    $pos = MouseGetPos()
    MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])

    First row means it activates once 'World of Warcraft' is open
    Second row means it waits 5 seconds
    Third row means the variable $pos gets the position of the mouse
    Fourth row opens a msg box telling you the location of your mouse.

    Now that you have that, press Save as and name it something like 'GetMousePos.au3'.

    Now log on WoW and go to battlemaster, I would suggest Thunder Bluff, Silvermoon City, Darnassus and Exodar (they are pretty low populated, on my server at least), why you ask? It will become way to obvious that you have an anti-afk bot if you just stand there jumping in OG/IF with those 7 kills and 6000 honor gained, perhaps someone will find it amusing to report you. This chance is heavily decreased if you do it in those 4 cities.

    So now that you are here, go find someone who just left an AV, and stand exactly like he does. Now just stand still and alt tab to open your GetMousePos.au3 and run it. Simply run it, alt tab back to WoW, hold mouse over Battlemaster for 5 seconds and you're done.

    Now open that script editor you got there and type in;
    Code:
    WinWaitActive("World of Warcraft");
    $a = 0
    While = $a < 10000000000000000000
    $a = $a + 1
    Sleep(1000)
    MouseClick("right",X,Y)

    of course you change X,Y to the mouse coords that pops up when you used GetMousePos.au3.

    Now the rest is pretty simple. Simply use GetMousePos.au3 on the 'Sign up for battleground' then 'Join Battle' then 'Enter Battle', then you're pretty done, to speed it up abit, you might want to make one for 'Leave Battleground', instead of waiting 2 minutes. Now that you got all those coords, simply sleep for like 0.2 seconds, make a new mouseclick, sleep, mouseclick. Then once you've done all those mouseclicks dont forget to jump (Write send("{SPACE}") on a new row)! Else you will go AFK, clicking isn't enough...
    OH and dont forget to change it so it left clicks (change
    MouseClick("right",X,Y) to MouseClick("left",X,Y)

    I wrote this at 01:58 AM, so I was pretty tired, might aswell fix mistakes when I wake up in the morning.

    In case you did not understand those big blocks of texts, heres my version, simply change all mouse coords to yours...

    Code:
    WinWaitActive ("World of Warcraft");
    $i = 0
    While $i < 1000000000000000000
    $i = $i + 1
    Sleep (5000)
    Send ("{W down}")
    Sleep (500)
    Send ("{W up}")
    Sleep (500)
    Send ("{S down}")
    Sleep (700)
    Send ("{S up}")
    MouseMove (654,338)
    Sleep(100)
    MouseClick("right",654,338)
    Sleep(100)
    MouseClick("left",115,296)
    Sleep(100)
    MouseClick("left",198,589)
    Sleep(60000)
    Send("{Space}")
    MouseClick("left",563,213)
    Sleep(100)
    MouseClick("left",665,704)
    WEnd
    It walks forwards and backwards so mouse aims straight at the BG master, I actually got into 5 WSG's without that one by mistake :/. Must have Smart camera on (Or whatever you call that option (its in interface menu.))

    To start this simply stand infront of the battlemaster, run the anti-afk bot, alt tab to World of Warcraft, you might wanna do a test run before leaving the comp

    I thought this would fit in here even though it's more of a guide. If not, feel free to move it. (I did not think it would fit in 'World of Warcraft Guides' seeing as this is more AutoIT than World of Warcraft)

    Feel free to post ways on how to simplify this. Read the big fat red note before saying my way sucks. Thank you!
    I bet you do.

    Making an anti-afk bot with AutoIT the easy way.
  2. #2
    The Mars Volta's Avatar Active Member
    Reputation
    51
    Join Date
    Oct 2006
    Posts
    197
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    Until you get banned for sitting there.

    The Mars Volta

  3. #3
    Tsai's Avatar Member
    Reputation
    5
    Join Date
    Sep 2006
    Posts
    61
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    I've used it 2 days straight without a ban. But I play on EU servers, the GM's are a little lazier I heard
    I bet you do.

  4. #4
    Dead_Man's Avatar Active Member
    Reputation
    35
    Join Date
    Jan 2007
    Posts
    161
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    why do you use such a wierd while loop? here is my code, took me 2min

    while 1
    Sleep(60000) ; 1 min
    $button = random(1,5,1)
    if $button = 1 Then
    ControlSend("World of Warcraft","","","{Space}")
    EndIf
    if $button = 2 Then
    ControlSend("World of Warcraft","","","{W}")
    EndIf
    if $button = 3 Then
    ControlSend("World of Warcraft","","","{S}")
    EndIf
    if $button = 4 Then
    ControlSend("World of Warcraft","","","{A}")
    EndIf
    if $button = 5 Then
    ControlSend("World of Warcraft","","","{D}")
    EndIf
    WEnd

    controlsend > all, dont even need to have wow on screen, for example use firefox and anti-afk

    also, super-ultra-basic version

    while 1
    sleep(60000)
    send("{Space}")
    Wend
    Last edited by Dead_Man; 09-20-2007 at 12:30 AM.

  5. #5
    Tsai's Avatar Member
    Reputation
    5
    Join Date
    Sep 2006
    Posts
    61
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    Hm sounds smarter, but as I said, I just started AutoIT so I didn't know that
    I bet you do.

  6. #6
    lopolop's Avatar Member
    Reputation
    49
    Join Date
    May 2006
    Posts
    124
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    yeah "While 1" is how u can do a infinite loop
    what i would do is this, just because its shortest

    Code:
    while 1
         Sleep(60000)
           = random(1,5,1)
         Switch 
              Case 1
                  ="{SPACE}"
              Case 2
                  ="{W}"
              Case 3
                  ="{A}"
              Case 4
                  ="{S}"
              Case 5
                  ="{D}"
         EndSwitch
         ControlSend("World of Warcraft","","", )
    WEnd
    also for finding ur mouse position just run autoit info tool, and set you WoW Video options too Windowed and Maximized

    [EDIT] idk my $rand, $ r a n d, $.r.a.n.d, wont save idk why but where you see ="{w/e, b4 that u put a variable
    Last edited by lopolop; 09-20-2007 at 03:16 PM.

  7. #7
    Dead_Man's Avatar Active Member
    Reputation
    35
    Join Date
    Jan 2007
    Posts
    161
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    Originally Posted by lopolop View Post
    [EDIT] idk my , $ r a n d, $.r.a.n.d, wont save idk why but where you see ="{w/e, b4 that u put a variable
    i noted this also and had to play with the edit button a lot, its because your using quotes and i guess quotes dont like $<var>

    ill fix it for you

    while 1
    Sleep(60000)
    $rand = random(1,5,1)
    Switch
    Case 1
    $rand="{SPACE}"
    Case 2
    $rand="{W}"
    Case 3
    $rand="{A}"
    Case 4
    $rand="{S}"
    Case 5
    $rand="{D}"
    EndSwitch
    ControlSend("World of Warcraft","","",$rand)
    Last edited by Dead_Man; 09-20-2007 at 05:39 PM.

  8. #8
    lopolop's Avatar Member
    Reputation
    49
    Join Date
    May 2006
    Posts
    124
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    lol thanks i didnt use quote tho i did [.code](with out period)

  9. #9
    Nightfel's Avatar
    Nightfel
    Guest

    Re: Making an anti-afk bot with AutoIT the easy way.

    I know ur just gettin started but that is a very bad script problems:

    1. WinWaitActive("World of Warcraft");

    ";" Doesnt need to be there enless ur gonna put notes after it

    2. WinWaitActive("World of Warcraft");
    Sleep (5000)
    $pos = MouseGetPos()
    MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])

    Better way to do that is make a func and put hotkeys or GUI

    3. While $i < 1000000000000000000

    Not sure why you did that it looks like you want it to go on until you close program to do that you would just put "While 1"

    4. Sleep (5000)
    Send ("{W down}")
    Sleep (500)
    Send ("{W up}")
    Sleep (500)
    Send ("{S down}")
    Sleep (700)
    Send ("{S up}")
    MouseMove (654,33
    Sleep(100)
    MouseClick("right",654,33
    Sleep(100)
    MouseClick("left",115,296)
    Sleep(100)
    MouseClick("left",198,589)
    Sleep(60000)
    Send("{Space}")
    MouseClick("left",563,213)
    Sleep(100)
    MouseClick("left",665,704)
    WEnd

    You need to use pixel detection to do that ur gonna end up out of BG walking back and forth because your bot wont know when BG is over

    5. There are so many things that could happen like a lag and you start click random things

    Plz learn AutoIt before you post something like this

  10. #10
    Bioerrior's Avatar Member
    Reputation
    14
    Join Date
    Dec 2006
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    Well once the new patch comes out you can no longer go afk in any battle ground. When somebody reports you for AFK you cant get any honor untill you enter PVP combat. try and make a script so you will run out of the cave and run into some pvp combat.

  11. #11
    Dead_Man's Avatar Active Member
    Reputation
    35
    Join Date
    Jan 2007
    Posts
    161
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    or... just wall jump over the hills of AV and AFK there

    no people to find you
    no people to report you

  12. #12
    Gone Phishing BBL's Avatar Member
    Reputation
    101
    Join Date
    Sep 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    Unless they open their map, but nonetheless, I'm pretty sure the new way to bot honor in AV would be to get to the most secluded spot as Dead_man said, People will most likely only use the report function if they see someone afking in the cave, or on their way to or from somewhere in a BG.

  13. #13
    Rec Alpam's Avatar Contributor CoreCoins Purchaser
    Reputation
    125
    Join Date
    Mar 2007
    Posts
    304
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    nice! i always wonder how they found the script out.. Rep+

  14. #14
    adragoon's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making an anti-afk bot with AutoIT the easy way.

    Well done

Similar Threads

  1. [Rogue, Druid] Exalted with Sporeggar - the easy way
    By l4m0r in forum World of Warcraft Guides
    Replies: 9
    Last Post: 12-02-2009, 08:07 AM
  2. [VB.NET] How to make an anti afk bot
    By Araredon in forum Programming
    Replies: 5
    Last Post: 05-12-2009, 05:47 AM
  3. How-to Make Your Own Basic AntiAFK Bot With AutoIt
    By Toxik the Spammer in forum World of Warcraft Bots and Programs
    Replies: 13
    Last Post: 05-23-2008, 12:39 PM
  4. Replies: 4
    Last Post: 09-18-2006, 06:38 PM
  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 10:16 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