Jump to content

WoW Anti AFK script


Recommended Posts

Nice to see ppl are interested finally making some autoafk tool. Dragosani it has good purpose just you the one who can't see it...

For example I don't want to disconnect from the game AT ALL. I like to surf on the web then switch back and I see I got disconnected. This is the only reason why I need an antiafk script. There was an addon doing it by msging to yourself, but it won't work today because you have to move your character to not to be in AFK.

Link to post
Share on other sites
  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Sorta brought back a dead post ray, but in my opinion AFK "bots" are wrong, it messes up the game for everyone else who enjoys not afking. On the other hand, this is a very simple script and i have watched bots for hours queue themselves for these battlegrounds you guys are talking about (Pixel Detection i suppose), and then go in and run around randomly spamming attacks to farm honor kills. Just wrong to me but there is always going to be people who do it, and unless they are accessing the games memory which these simple auto clickers don't generally do, the only way they will be stopped is if a GM actually sees them and witnesses non-human like behavior. Stop Botting! Its not was Autoit was made for! :)

...will never learn all there is to know about autoit, no worries...i came to the forums :)

Link to post
Share on other sites

Sorta brought back a dead post ray, but in my opinion AFK "bots" are wrong, it messes up the game for everyone else who enjoys not afking. On the other hand, this is a very simple script and i have watched bots for hours queue themselves for these battlegrounds you guys are talking about (Pixel Detection i suppose), and then go in and run around randomly spamming attacks to farm honor kills. Just wrong to me but there is always going to be people who do it, and unless they are accessing the games memory which these simple auto clickers don't generally do, the only way they will be stopped is if a GM actually sees them and witnesses non-human like behavior. Stop Botting! Its not was Autoit was made for! :)

I agree, I used to play wow, and it just ruins the game, by giving people an unfair advantage...

Its a game.. Your supposed to play it!

Link to post
Share on other sites

Can someone nuke this thread? It's from 2005.

If not then I'll go ahead and hasten it...

it messes up the game for everyone else who enjoys not afking

You sicken me. It's this line of thinking that explains why we in the US have regulations for nearly everything we do. As if every enjoyable activity, by virtue of being enjoyable, ruins the fun for other people. You just can't stand that someone else is benefiting from something you don't understand or partake in, so you seek to ruin the smiles on their faces.

Again, you sicken me. Way to take something completely innocuous and make it out to be the devil incarnate for gamers.

Link to post
Share on other sites

Can someone nuke this thread? It's from 2005.

You wish to nuke it, but instead continue it and try to cause issues with other posters, when i was stating my opinion in a calm fashion not knocking on anybody...

And i do have the knowledge to do as they do, but i choose to play the game as it is intended to be played... I can understand if you are going AFK for 5 minutes, but to go AFK for the whole battleground is irritating to me, lets finish this post, and not keep it up as you wanted; even as you try to argue and speak of how i "sicken" you.

Its a game.. Your supposed to play it!

...will never learn all there is to know about autoit, no worries...i came to the forums :)

Link to post
Share on other sites

Can someone nuke this thread? It's from 2005.

You wish to nuke it, but instead continue it and try to cause issues with other posters, when i was stating my opinion in a calm fashion not knocking on anybody...

And i do have the knowledge to do as they do, but i choose to play the game as it is intended to be played... I can understand if you are going AFK for 5 minutes, but to go AFK for the whole battleground is irritating to me, lets finish this post, and not keep it up as you wanted; even as you try to argue and speak of how i "sicken" you.

Its a game.. Your supposed to play it!

...will never learn all there is to know about autoit, no worries...i came to the forums :)

Link to post
Share on other sites

Can someone nuke this thread? It's from 2005.

You wish to nuke it, but instead continue it and try to cause issues with other posters, when i was stating my opinion in a calm fashion not knocking on anybody...

And i do have the knowledge to do as they do, but i choose to play the game as it is intended to be played... I can understand if you are going AFK for 5 minutes, but to go AFK for the whole battleground is irritating to me, lets finish this post, and not keep it up as you wanted; even as you try to argue and speak of how i "sicken" you.

Its a game.. Your supposed to play it!

...will never learn all there is to know about autoit, no worries...i came to the forums :)

Link to post
Share on other sites

Can someone nuke this thread? It's from 2005.

You wish to nuke it, but instead continue it and try to cause issues with other posters, when i was stating my opinion in a calm fashion not knocking on anybody...

And i do have the knowledge to do as they do, but i choose to play the game as it is intended to be played... I can understand if you are going AFK for 5 minutes, but to go AFK for the whole battleground is irritating to me, lets finish this post, and not keep it up as you wanted; even as you try to argue and speak of how i "sicken" you.

Its a game.. Your supposed to play it!

...will never learn all there is to know about autoit, no worries...i came to the forums :)

Link to post
Share on other sites

Can someone nuke this thread? It's from 2005.

You wish to nuke it, but instead continue it and try to cause issues with other posters, when i was stating my opinion in a calm fashion not knocking on anybody...

And i do have the knowledge to do as they do, but i choose to play the game as it is intended to be played... I can understand if you are going AFK for 5 minutes, but to go AFK for the whole battleground is irritating to me, lets finish this post, and not keep it up as you wanted; even as you try to argue and speak of how i "sicken" you.

Its a game.. Your supposed to play it!

...will never learn all there is to know about autoit, no worries...i came to the forums :)

Link to post
Share on other sites
  • 6 months later...

I found another anti-AFK script if anyone is interested...it was on http://world-of-warcraft-autoit-scripting.blogspot.com/

I used it and it works so far, havent been banned yet :)

; World of Warcraft Wrath of the Lich King
; Anti-AFK Autoit Script for Alterac Valley
; http://world-of-warcraft-autoit-scripting.blogspot.com/
; Written by Stormtroll. Contact me at Stormtroll@gmail.com

HotKeySet("{f11}","Exitme")
HotKeySet("{f10}","MyStart")

Func Exitme()
Exit
EndFunc

Func MyStart()
StartLoop()
EndFunc


While 1;dummy loop
WEnd


Func StartLoop()
While 1
WinActivate("World of Warcraft")
WinWaitActive("World of Warcraft")

$x = Random(60,240)
$x = Int($x)
Sleep(1000 * $x)
Send("m")
Sleep(1000)
Send("m")
WEnd
EndFunc
Link to post
Share on other sites

I havent really read through this thread just merely scanned it, however I found it being similar to something I had been working on which im willing to share.

I made this has just a little project for 'Leeching AV' and successfully created it to put me in av, detect when im out and re-enter etc.

The problem I faced was that of the movement when being in the battleground so as you can see below the _movement function is very, unreliable being that I have

no idea how to use movement through coords(memory/packets) or w/e it is.

The only other thing that I can remember is that you need an addon which automatically signs you up upon right clicking the npcs and automatically enter the battleground along

with automatically leaving the battleground.

Oh you also have to be in Alterac Mountains, at the end of the tunnel were the AV master is, thats all.

You may also have to review some of the coords in the pixelsearches as I had no intention on releasing it.

So the code is;

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <WinAPI.au3>
AutoItSetOption("WinTitleMatchMode", 4)
Opt("PixelCoordMode", 2)

$timer = 0
$count = 0
$at = 0
$avchecker = False
$color = 0x360511
$color2 = 0xFFBE04
$findingav = 2
$jumps = 0

$hwnd = WinGetHandle("classname=GxWindowClassD3d")
If @Error Then
    MsgBox(0, "WoW Leecher", "Sorry the handle could not be found.")
Else
EndIf

While 1 
MsgBox(0, "WoW Leecher", "Your WoW Leecher has started.")
While True
While $timer <= 120000
    Sleep(1000)
    $timer = $timer + 1000
    If $timer = 180000 Then
        $tip = 10
        While $count <= 10 
            ToolTip($tip &" Seconds to Jump", 866, 685, "", "", 4)
            $tip = $tip - 1
            $count = $count + 1
            Sleep(1000)
        Wend
        $count = 0
        ToolTip("")
        _CheckingAV()
    EndIf
WEnd
WEnd
WEnd

Func _CheckingAV()
    ;############## CHECKING IF YOUR IN AV ################
    $timer = 0
    PixelSearch(6, 40, 1456, 1060, $color, 2, 4, $hwnd)
    If @Error = 1 Then ;Means Being In AV
        _Jump()
    ElseIf @Error = 0 Then ;Means Being Out Of AV
        _EnterAV()
    EndIf
EndFunc

Func _EnterAV()
    ;############## PUTTING YOURSELF IN AV ################
    For $i = 1 To 10
    ControlSend($hwnd, "", "", "{A DOWN}")
    Sleep(120)
    ControlSend($hwnd, "", "", "{A UP}")
    $jumps = 0
    $coord = PixelSearch(6, 40, 1456, 1060, $color, 2, 4, $hwnd)
    If @Error = 1 Then
    Else
        MouseClick("Right", $coord[0], $coord[1])
    EndIf
    Next
EndFunc

Func _Jump()
    If $jumps = 0 Then
        _Movement()
    Else
        ControlSend($hwnd, "", "", "{SPACE}")
    EndIf
EndFunc

Func _Movement()
    $jumps = 1
For $i = 1 To 5
    ControlSend($hwnd, "", "", "{W DOWN}")
    Sleep(400)
    ControlSend($hwnd, "", "", "{W UP}")
Next 
ControlSend($hwnd, "", "", "{D DOWN}")
Sleep(180)
ControlSend($hwnd, "", "", "{D UP}")
For $i = 1 to 19
    ControlSend($hwnd, "", "", "{W DOWN}")
    Sleep(500)
    ControlSend($hwnd, "", "", "{W UP}")
Next
Sleep(60000*3)
For $i = 1 To 10
    ControlSend($hwnd, "", "", "{W DOWN}")
    Sleep(500)
    ControlSend($hwnd, "", "", "{W UP}")
Next
ControlSend($hwnd, "", "", "{D DOWN}")
Sleep(120)
ControlSend($hwnd, "", "", "{D UP}")
For $i = 1 To 20
    ControlSend($hwnd, "", "", "{W DOWN}")
    Sleep(500)
    ControlSend($hwnd, "", "", "{W UP}")
Next
ControlSend($hwnd, "", "", "{D DOWN}")
Sleep(150)
ControlSend($hwnd, "", "", "{D UP}")
For $i = 1 to 5
    ControlSend($hwnd, "", "", "{W DOWN}")
    Sleep(500)
    ControlSend($hwnd, "", "", "{W UP}")
Next
ControlSend($hwnd, "", "", "{A DOWN}")
Sleep(190)
ControlSend($hwnd, "", "", "{A UP}")
For $i = 1 to 15
    ControlSend($hwnd, "", "", "{W DOWN}")
    Sleep(500)
    ControlSend($hwnd, "", "", "{W UP}")
Next
ControlSend($hwnd, "", "", "{D DOWN}")
Sleep(280)
ControlSend($hwnd, "", "", "{D UP}")
For $i = 1 to 5 
    ControlSend($hwnd, "", "", "{W DOWN}")
    Sleep(500)
    ControlSend($hwnd, "", "", "{W UP}")
Next
EndFunc
Link to post
Share on other sites
  • 4 months later...

well here is something that works ^_^

(F9 starts bot and hide wow F10 Stops bot and show wow)

; ---------------------------------------------------------------------------- 
; 
; AutoIt Version:        3.2.0 
; Author:                The-Chad <chadscrib@gmail.com> 
; Website:              OnlineGameHacker <www.OnlineGameHacker.com> 
; Script Function:      Anti Afk 
; 
; ---------------------------------------------------------------------------- 


HotKeySet("{F9}", "hide") 
HotKeySet("{F10}", "show") 
AutoItSetOption("WinTitleMatchMode", 4) 
While 1 
   Sleep(1000) 
WEnd 

Func hide() 
   Global $Show = 0 
   Global $handle = WinGetHandle("classname=GxWindowClassD3d") 
   WinSetState($handle, "", @SW_MINIMIZE) 
   WinSetState($handle, "", @SW_HIDE) 
   If @error Then 
      MsgBox(0, "error", "couldnt find WoW") 
   Else 
      While 1 
         $unique = Random(1, 4, 1) 
         If $unique = 1 Then 
            ControlSend($handle, "", "", "{UP DOWN}") 
            Sleep(100 + Random(1, 50, 1)) 
            ControlSend($handle, "", "", "{UP UP}") 
            ControlSend($handle, "", "", "{DOWN DOWN}") 
            Sleep(100 + Random(1, 50, 1)) 
            ControlSend($handle, "", "", "{DOWN UP}") 
            Sleep(200000 + Random(5000, 15000, 1)) 
         ElseIf $unique = 2 Then 
            ControlSend($handle, "", "", "{RIGHT DOWN}") 
            Sleep(100 + Random(1, 50, 1)) 
            ControlSend($handle, "", "", "{RIGHT UP}") 
            ControlSend($handle, "", "", "{LEFT DOWN}") 
            Sleep(100 + Random(1, 50, 1)) 
            ControlSend($handle, "", "", "{LEFT UP}") 
            Sleep(200000 + Random(5000, 15000, 1)) 
         ElseIf $unique = 3 Then 
            ControlSend($handle, "", "", "{DOWN DOWN}") 
            Sleep(100 + Random(1, 50, 1)) 
            ControlSend($handle, "", "", "{DOWN UP}") 
            ControlSend($handle, "", "", "{UP DOWN}") 
            Sleep(100 + Random(1, 50, 1)) 
            ControlSend($handle, "", "", "{UP UP}") 
            Sleep(200000 + Random(5000, 15000, 1)) 
         ElseIf $unique = 4 Then 
            ControlSend($handle, "", "", "{LEFT DOWN}") 
            Sleep(100 + Random(1, 50, 1)) 
            ControlSend($handle, "", "", "{LEFT UP}") 
            ControlSend($handle, "", "", "{RIGHT DOWN}") 
            Sleep(100 + Random(1, 50, 1)) 
            ControlSend($handle, "", "", "{RIGHT UP}") 
            Sleep(200000 + Random(5000, 15000, 1)) 
         EndIf 
         If $Show > 0 Then ExitLoop 
      WEnd 
   EndIf 
EndFunc  ;==>hide 

Func show() 
   Global $Show = 1 
   WinSetState("World of Warcraft", "", @SW_SHOW) 
   WinSetState("World of Warcraft", "", @SW_MAXIMIZE) 
   WinActivate($handle, "") 
EndFunc  ;==>show
Link to post
Share on other sites
  • 5 years later...

Welcome to Autoit and the forum!

Do you think it is sensible to post in a thread that has been quiet for nearly 6 years?

When the thread was started it was fine to talk about game automation. In the meantime the forum rules have changed and game automation of any kind is no longer allowed here.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to post
Share on other sites

LMAO that's some MacGyver stuff right there. He would be proud!

"I'm stuck in this room, and I dont want to play wow but I dont want to get kicked either! All I have is some masking tape and this smart phone." *Lightbulb*

Edited by mpower
Link to post
Share on other sites
  • Moderators

Like it should take more than 1 person to respond, several minutes if not hours after.

Report it and be done.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...