Anti-Afk Program Script menu

Shout-Out

User Tag List

Results 1 to 9 of 9
  1. #1
    Omgwtfowned's Avatar Banned
    Reputation
    75
    Join Date
    Jul 2008
    Posts
    303
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anti-Afk Program Script

    I was wondering if this is a good script or not if I need to change /add things:wave:

    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Version=Beta
    #AutoIt3Wrapper_outfile_type=a3x
    #AutoIt3Wrapper_icon=..\..\..\..\Program Files\AutoIt3\Icons\au3script_v9.ico
    #AutoIt3Wrapper_outfile=..\..\Desktop\PvPBotMMO.a3x
    #AutoIt3Wrapper_Compression=4
    #AutoIt3Wrapper_UseX64=y
    #AutoIt3Wrapper_Change2CUI=y
    #AutoIt3Wrapper_Add_Constants=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GUIListBox.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GUIListBox.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>

    WinWaitActive("World of Warcraft")

    $Button1 = HotKeySet("{F1}", "Start")
    $Button2 = HotKeySet("!{F2}","Stop")


    HotKeySet("{F1}", "Start")
    HotKeySet("!{F2}","Stop")

    TogglePause()

    func Start()
    HotKeySet("{F1}")
    HotKeySet("{F3}", "TogglePause")
    ToolTip('AntiAFK started.',0,0)
    While 1
    Send("{SPACE}")
    Sleep(Random(120000,240000))
    WEnd
    EndFunc

    Func TogglePause()
    ToolTip('AntiAFK Stopped.',0,0)
    HotKeySet("{PAUSE}")
    HotKeySet("{PAUSE}", "Start")
    While 1
    sleep(100)
    WEnd
    EndFunc

    func Quit()
    Exit
    EndFunc

    #Region ### START Koda GUI section ### Form=
    $PvPBotMMO = GUICreate("PvPBotMMO", 524, 447, 192, 124)
    *****tFont(22, 400, 0, "Perpetua Titling MT")
    *****tBkColor(0x000000)
    $Button1 = GUICtrlCreateButton("Start", 8, 280, 153, 57, $WS_GROUP)
    $Button2 = GUICtrlCreateButton("Stop", 8, 352, 153, 57, $WS_GROUP)
    $List1 = GUICtrlCreateList("", 248, 32, 249, 380)
    $PvPBotMMO = GUICtrlCreateLabel("PvPBotMMO", 8, 8, 150, 53)
    GUICtrlSetFont(-1, 36, 800, 2, "Playbill")
    GUICtrlSetColor(-1, 0xFF0000)
    $Pic1 = GUICtrlCreatePic("C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Lich King photo.jpg", 0, 64, 249, 209, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $PvPBot = GUICtrlCreateIcon("F:\World of Warcraft\Launcher.exe", -1, 176, 8, 48, 48, BitOR($SS_NOTIFY,$WS_GROUP))
    *****tState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    EndSwitch
    WEnd

    $var = $Button1

    If $var Then
    $xTop = 30; i declare them
    $yTop = 73
    $xBot = 1002
    $yBot = 692
    $mobGreen = "0xC0BE40"; i also declare the mob color

    Sleep(6000)
    while 1
    $coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5);i search for the green mobs
    $n = @error
    If NOT @error Then;if the mob is found
    while $n = 0;while it is still in the screen
    $x = Random($coord[0], $coord[0]+40, 1);we randomize coordinates so we won't miss the mob
    ;since mobs have different shape and sizes
    $y = Random($coord[1], $coord[1]+40, 1)
    MouseClick("right", $x, $y, 2, 0); i click at the randomized coordinates
    $mm = PixelGetColor ( 378 , 12 ); i get the pixel color of that mob HP LIMIT
    $mob = Hex($mm, 6);since the pixel i got is hex and PixelGetcolor function returns a decimal value i convert it
    If $mob = "7B0000" Then; i compare the converted value i got from PixelGetColor in that point with the have i collected using AWI in the same point
    ExitLoop; if it's a match (that means that the mob was selected)
    ;it will exit the loop and continue
    EndIf
    $coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5);we repeat the same pixel search
    ; the ideea is that the program will try to click the mob untill he is selected
    $n = @error
    wend

    ;in this moment we have the mob selected
    If $mob = "7B0000" Then ; but we check it anyway
    while $mob = "7B0000" ; so as long as the mob is selected

    Send("{F4}"); we just send the skills from F4 to F1
    Send("{F3}"); chaotic i know but since we use speed hack
    Send("{F2}");adding waiting times will just be a waste of time
    Send("{F1}")

    $mm = PixelGetColor ( 378 , 12 );we once again look for the mob's HP so we can complete the while loop
    $mob = Hex($mm, 6);this means that the keys will be pressed untill the mob is dead
    wend
    Send("{Space}"); after the mob is dead we collect the items
    Sleep(200)
    Send("{Space}")
    Sleep(200)
    Send("{Space}")
    Sleep(200)
    EndIf

    ;now remember the "IF NOT @error Then" from the start?
    ;what if there is no mob in the screen?
    ;what then?

    Else;if no mob is found
    Send("{Right 7}") ;rotate the camera to look in other directions
    Endif
    Wend
    EndIf
    ; ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : EndIf = ' & EndIf & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console

    Anti-Afk Program Script
  2. #2
    SnorlaxHF's Avatar Active Member
    Reputation
    76
    Join Date
    Apr 2007
    Posts
    304
    Thanks G/R
    1/3
    Trade Feedback
    5 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please use [code] your text here [ /code] (without space)
    Like this:

    Code:
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Version=Beta
    #AutoIt3Wrapper_outfile_type=a3x
    #AutoIt3Wrapper_icon=..\..\..\..\Program Files\AutoIt3\Icons\au3script_v9.ico
    #AutoIt3Wrapper_outfile=..\..\Desktop\PvPBotMMO.a3x
    #AutoIt3Wrapper_Compression=4
    #AutoIt3Wrapper_UseX64=y
    #AutoIt3Wrapper_Change2CUI=y
    #AutoIt3Wrapper_Add_Constants=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GUIListBox.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <GUIListBox.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
     
    WinWaitActive("World of Warcraft")
     
    $Button1 = HotKeySet("{F1}", "Start")
    $Button2 = HotKeySet("!{F2}","Stop")
     
     
    HotKeySet("{F1}", "Start")
    HotKeySet("!{F2}","Stop")
     
    TogglePause()
     
    func Start()
    HotKeySet("{F1}")
    HotKeySet("{F3}", "TogglePause")
    ToolTip('AntiAFK started.',0,0)
    While 1
    Send("{SPACE}")
    Sleep(Random(120000,240000))
    WEnd
    EndFunc
     
    Func TogglePause()
    ToolTip('AntiAFK Stopped.',0,0)
    HotKeySet("{PAUSE}")
    HotKeySet("{PAUSE}", "Start")
    While 1
    sleep(100)
    WEnd
    EndFunc
     
    func Quit()
    Exit
    EndFunc
     
    #Region ### START Koda GUI section ### Form=
    $PvPBotMMO = GUICreate("PvPBotMMO", 524, 447, 192, 124)
    *****tFont(22, 400, 0, "Perpetua Titling MT")
    *****tBkColor(0x000000)
    $Button1 = GUICtrlCreateButton("Start", 8, 280, 153, 57, $WS_GROUP)
    $Button2 = GUICtrlCreateButton("Stop", 8, 352, 153, 57, $WS_GROUP)
    $List1 = GUICtrlCreateList("", 248, 32, 249, 380)
    $PvPBotMMO = GUICtrlCreateLabel("PvPBotMMO", 8, 8, 150, 53)
    GUICtrlSetFont(-1, 36, 800, 2, "Playbill")
    GUICtrlSetColor(-1, 0xFF0000)
    $Pic1 = GUICtrlCreatePic("C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Lich King photo.jpg", 0, 64, 249, 209, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $PvPBot = GUICtrlCreateIcon("F:\World of Warcraft\Launcher.exe", -1, 176, 8, 48, 48, BitOR($SS_NOTIFY,$WS_GROUP))
    *****tState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
     
    While 1
    	$nMsg = GUIGetMsg()
    	Switch $nMsg
    		Case $GUI_EVENT_CLOSE
    			Exit
     
    	EndSwitch
    WEnd
     
    $var = $Button1
     
    If $var Then
    	$xTop = 30; i declare them
    $yTop = 73
    $xBot = 1002
    $yBot = 692
    $mobGreen = "0xC0BE40"; i also declare the mob color
     
    Sleep(6000)
    while 1
    $coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5);i search for the green mobs
        $n = @error
    	If NOT @error Then;if the mob is found
     while $n = 0;while it is still in the screen
     $x = Random($coord[0], $coord[0]+40, 1);we randomize coordinates so we won't miss the mob
    ;since mobs have different shape and sizes
     $y = Random($coord[1], $coord[1]+40, 1)
     MouseClick("right", $x, $y, 2, 0); i click at the randomized coordinates
     $mm = PixelGetColor ( 378 , 12 ); i get the pixel color of that mob HP LIMIT
     $mob = Hex($mm, 6);since the pixel i got is hex and PixelGetcolor function returns a decimal value i convert it
    If $mob = "7B0000" Then; i compare the converted value i got from PixelGetColor in that point with the have i collected using AWI in the same point
     	ExitLoop; if it's a match (that means that the mob was selected)
    ;it will exit the loop and continue
     EndIf
     $coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobGreen,5);we repeat the same pixel search
    ; the ideea is that the program will try to click the mob untill he is selected
        $n = @error
     wend
     
    ;in this moment we have the mob selected
     If $mob = "7B0000" Then  ; but we check it anyway
     	while $mob = "7B0000" ; so as long as the mob is selected
     
      	Send("{F4}"); we just send the skills from F4 to F1
      	Send("{F3}"); chaotic i know but since we use speed hack
                Send("{F2}");adding waiting times will just be a waste of time
          Send("{F1}")
     
       $mm = PixelGetColor ( 378 , 12 );we once again look for the mob's HP so we can complete the while loop
       $mob = Hex($mm, 6);this means that the keys will be pressed untill the mob is dead
      	wend
      Send("{Space}"); after the mob is dead we collect the items
      Sleep(200)
      Send("{Space}")
      Sleep(200)
      Send("{Space}")
      Sleep(200)
     	EndIf
     
    ;now remember the "IF NOT @error Then" from the start?
    ;what if there is no mob in the screen?
    ;what then?
     
    Else;if no mob is found
    Send("{Right 7}") ;rotate the camera to look in other directions
    Endif
    Wend
    EndIf
    ; ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : EndIf = ' & EndIf & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console

  3. #3
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Auch, braindamage.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  4. #4
    PixelFlame's Avatar Active Member
    Reputation
    33
    Join Date
    Nov 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is... not human... :P

  5. #5
    babypunt3r's Avatar Member
    Reputation
    1
    Join Date
    May 2009
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by PixelFlame View Post
    This is... not human... :P
    This is human ... just not recommended for use by humans

  6. #6
    nicklol1's Avatar Member
    Reputation
    2
    Join Date
    Jun 2009
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is this like auto-clicker?
    how would one use this?
    is this detectable?

  7. #7
    sid1488's Avatar Active Member
    Reputation
    50
    Join Date
    Jan 2009
    Posts
    608
    Thanks G/R
    1/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ARrrrghh u broke my brain.
    I am Swedish and I like green! And most other colours too!

  8. #8
    Omgwtfowned's Avatar Banned
    Reputation
    75
    Join Date
    Jul 2008
    Posts
    303
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by nicklol1 View Post
    Is this like auto-clicker?
    how would one use this?
    is this detectable?
    This is only the script only not compiled im still testing and yes right now tried to run it would be detectable cause once run program would say Application Running By "PvPMMOBot or something Like tht"

    Please give me couple more weeks having trouble its my first time scripting a full macro / clicking Bot

  9. #9
    Sazxo's Avatar Member
    Reputation
    5
    Join Date
    Dec 2007
    Posts
    133
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    God stop the flaming

Similar Threads

  1. Simple Anti AFK program
    By TiberiusErectus in forum Age of Conan Exploits|Hacks
    Replies: 0
    Last Post: 09-09-2009, 12:44 PM
  2. EZ Afk 1.3 - WoW Anti-AFK Program
    By Toxik the Spammer in forum World of Warcraft Bots and Programs
    Replies: 13
    Last Post: 09-25-2008, 09:11 PM
  3. [Program] Lagalot's Anti-afk program
    By lagalot in forum World of Warcraft Bots and Programs
    Replies: 3
    Last Post: 03-22-2008, 10:43 PM
  4. Unbannable Anti-AFK Program!
    By mahany25 in forum World of Warcraft Bots and Programs
    Replies: 20
    Last Post: 12-15-2007, 09:43 AM
  5. totally UNDETECTABLE anti-afk program!!
    By xgoblin in forum World of Warcraft Bots and Programs
    Replies: 8
    Last Post: 10-28-2006, 04:09 PM
All times are GMT -5. The time now is 09:03 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