auto queue & auto join & anti afk [autoit source] menu

User Tag List

Page 1 of 23 12345 ... LastLast
Results 1 to 15 of 339
  1. #1
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [3.3] auto queue & auto join & anti afk [autoit source]

    [3.3] the new bg status offset is 0x00B6DFD8 thx @ me :P
    i updated the source

    ----------------------------

    got alot of infos from this forum and wanted to give something back
    it uses simple memory reading and uses only the keyboard (it runs minimized without any problems)

    before running the script, open the pvp window in wow, select the bg you want to leech and close the frame, wow will remind your selection until you log off / reloadui and will keep joining this bg

    bind these macros:
    F11: /script JoinBattlefield(0);
    F12: /script AcceptBattlefieldPort(1,1);

    or edit the keys in the script to fit your needs

    just have autoit installed and save the code to a file ending with .au3

    Code:
    $Key_PvPWindow = "h"
    $Key_joinQueue = "{F11}" ; /script JoinBattlefield(0);
    $Key_Confirm = "{F12}" ; /script AcceptBattlefieldPort(1,1);
    $Key_Idle = "1"
    
    SetPrivilege("SeDebugPrivilege", 1)
    
    $Process = WinGetProcess("World of Warcraft")
    $hWnd = WinGetHandle("[CLASS:GxWindowClassD3d]")
    
    $WoWProcess = mem_open($Process)
    
    While True
    	$status = mem_read(0x00B6DFD8, $WoWProcess, "int")
    
    	switch $status
    	Case 0
    		joinQueue()
    	Case 1
    		idle()
    	Case 2
    		confirm()
    	case 3
    		idle()
    	EndSwitch
    WEnd
    
    Func joinQueue()
    	Sleep(500)
    	ControlSend($hWnd, "", "", $Key_PvPWindow)
    	Sleep(500)
    	ControlSend($hWnd, "", "", $Key_joinQueue)
    	Sleep(500)
    	ControlSend($hWnd, "", "", "{ESC}")
    EndFunc
    
    Func idle()
    	Sleep(10000)
    	ControlSend($hWnd, "", "", $Key_Idle)
    EndFunc
    
    Func confirm()
    	ControlSend($hWnd, "", "", $Key_Confirm)
    	Sleep(500)
    EndFunc
    
    Func mem_open($iv_Pid)
    	Local $ah_Handle[2] = [DllOpen('kernel32.dll')]
    	Local $av_OpenProcess = DllCall($ah_Handle[0], 'int', 'OpenProcess', 'int', 0x1F0FFF, 'int', 1, 'int', $iv_Pid)
    	$ah_Handle[1] = $av_OpenProcess[0]
    	Return $ah_Handle
    EndFunc
    
    Func mem_read($iv_Address, $ah_Handle, $sv_Type = 'dword')
    	Local $v_Buffer = DllStructCreate($sv_Type)
    	DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
    	Local $v_Value = DllStructGetData($v_Buffer, 1)
    	Return $v_Value
    EndFunc
    
    Func mem_close($ah_Handle)
    	DllCall($ah_Handle[0], 'int', 'CloseHandle', 'int', $ah_Handle[1])
    	DllClose($ah_Handle[0])
    	Return 1
    EndFunc
    
    Func SetPrivilege($privilege, $bEnable)
        Const $MY_TOKEN_ADJUST_PRIVILEGES = 0x0020
        Const $MY_TOKEN_QUERY = 0x0008
        Const $MY_SE_PRIVILEGE_ENABLED = 0x0002
        Local $hToken, $SP_auxret, $SP_ret, $hCurrProcess, $nTokens, $nTokenIndex, $priv
        $nTokens = 1
        $LUID = DLLStructCreate("dword;int")
        If IsArray($privilege) Then    $nTokens = UBound($privilege)
        $TOKEN_PRIVILEGES = DLLStructCreate("dword;dword[" & (3 * $nTokens) & "]")
        $NEWTOKEN_PRIVILEGES = DLLStructCreate("dword;dword[" & (3 * $nTokens) & "]")
        $hCurrProcess = DLLCall("kernel32.dll","hwnd","GetCurrentProcess")
        $SP_auxret = DLLCall("advapi32.dll","int","OpenProcessToken","hwnd",$hCurrProcess[0],   _
                "int",BitOR($MY_TOKEN_ADJUST_PRIVILEGES,$MY_TOKEN_QUERY),"int*",0)
        If $SP_auxret[0] Then
            $hToken = $SP_auxret[3]
            DLLStructSetData($TOKEN_PRIVILEGES,1,1)
            $nTokenIndex = 1
            While $nTokenIndex <= $nTokens
                If IsArray($privilege) Then
                    $priv = $privilege[$nTokenIndex-1]
                Else
                    $priv = $privilege
                EndIf
                $ret = DLLCall("advapi32.dll","int","LookupPrivilegeValue","str","","str",$priv,   _
                        "ptr",DLLStructGetPtr($LUID))
                If $ret[0] Then
                    If $bEnable Then
                        DLLStructSetData($TOKEN_PRIVILEGES,2,$MY_SE_PRIVILEGE_ENABLED,(3 * $nTokenIndex))
                    Else
                        DLLStructSetData($TOKEN_PRIVILEGES,2,0,(3 * $nTokenIndex))
                    EndIf
                    DLLStructSetData($TOKEN_PRIVILEGES,2,DllStructGetData($LUID,1),(3 * ($nTokenIndex-1)) + 1)
                    DLLStructSetData($TOKEN_PRIVILEGES,2,DllStructGetData($LUID,2),(3 * ($nTokenIndex-1)) + 2)
                    DLLStructSetData($LUID,1,0)
                    DLLStructSetData($LUID,2,0)
                EndIf
                $nTokenIndex += 1
            WEnd
            $ret = DLLCall("advapi32.dll","int","AdjustTokenPrivileges","hwnd",$hToken,"int",0,   _
                    "ptr",DllStructGetPtr($TOKEN_PRIVILEGES),"int",DllStructGetSize($NEWTOKEN_PRIVILEGES),   _
                    "ptr",DllStructGetPtr($NEWTOKEN_PRIVILEGES),"int*",0)
            $f = DLLCall("kernel32.dll","int","GetLastError")
        EndIf
        $NEWTOKEN_PRIVILEGES=0
        $TOKEN_PRIVILEGES=0
        $LUID=0
        If $SP_auxret[0] = 0 Then Return 0
        $SP_auxret = DLLCall("kernel32.dll","int","CloseHandle","hwnd",$hToken)
        If Not $ret[0] And Not $SP_auxret[0] Then Return 0
        return $ret[0]
    EndFunc
    Last edited by mnbvc; 12-18-2009 at 11:55 AM.

    auto queue &amp; auto join &amp; anti afk [autoit source]
  2. #2
    ilikecows's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    testing it out, if it works itd b pretty useful

  3. #3
    apollo127's Avatar Member
    Reputation
    2
    Join Date
    Feb 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Testing it out, will def use this!

  4. #4
    apollo127's Avatar Member
    Reputation
    2
    Join Date
    Feb 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I bound the two macros to f11 and f12 using bartender 4, I made the script into a exe with auto it and all seems to be right but when I load it, all it does is keep opening the bg menu, but once I can enter battle it dismisses the enter window and wont enter the battle.. any ideas how to fix that?

  5. #5
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try if your bartender macros work if you click them
    open bg window, choose av and click on the "/script JoinBattlefield(0);" macro -> you should be in queue now
    if the join confirmation window is pending click the "/script AcceptBattlefieldPort(1,1);" macro -> you should join
    i guess there is something going wrong

    API JoinBattlefield - WoWWiki - Your guide to the World of Warcraft
    API AcceptBattlefieldPort - WoWWiki - Your guide to the World of Warcraft

  6. #6
    Games4life's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As I love to learn as I go, was wondering if someone could explain how SetPrivilege is working. Not sure why its got anything to do with Permissions (unless its got to do with Window permissions?)

  7. #7
    Vikke's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hope it works

  8. #8
    Barrt73Rus's Avatar Banned
    Reputation
    171
    Join Date
    May 2009
    Posts
    1,273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am writing again, because the posts removed, it does not work for me. may cause a ru_ru client, I do not know. Bg bot is written to only 1 time, after a bg it just jumps.

  9. #9
    setsura's Avatar Member
    Reputation
    5
    Join Date
    Sep 2007
    Posts
    118
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its working for me nice little program (=
    +rep
    If i am what i think and i think nothing... am i nothing?

  10. #10
    nRing's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works great . But, am I going get banned from using this? cheers

  11. #11
    Uchiha1911's Avatar Member
    Reputation
    1
    Join Date
    Jun 2009
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you get reported for being AFK too many times, yes.
    I received a 3-hour ban for doing this ^^
    That's was 2 days, a zillion AFK reports and 8 levels further, but yeah :P

  12. #12
    Games4life's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    16
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My question is quite simple, I'm trying to add a section of my own code to this existing one to do certain things when I enter a BG - my problem is; a) finding where to add the code amongst the above, b) how to integrate it properly.

    Any help would be awesome!

  13. #13
    nRing's Avatar Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, on second thought, I get disconnected after a while of using this :S. But I love how you can use it while WoW is alt-tabbed!!! any ideas?

  14. #14
    xmachinex's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    for me the command /script JoinBattlefield(0); doesnt work anymore ?!?!

    Message: [string "joinBattlefield(0);"]:1: attempt to call global 'joinBattlefield' (a nil value)
    Time: 09/02/09 14:58:15
    Count: 1
    Stack: [string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:18: in function <[string "Interface\FrameXML\BasicControls.xml:<Scrip..."]:4>
    [C]: in function `joinBattlefield'
    [string "joinBattlefield(0);"]:1: in main chunk
    [C]: in function `RunScript'
    Interface\FrameXML\ChatFrame.lua:1879: in function `?'
    Interface\FrameXML\ChatFrame.lua:3505: in function `ChatEdit_ParseText'
    Interface\FrameXML\ChatFrame.lua:3176: in function `ChatEdit_SendText'
    Interface\FrameXML\ChatFrame.lua:3200: in function `ChatEdit_OnEnterPressed'
    [string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

    Locals: (*temporary) = nil
    (*temporary) = 0
    (*temporary) = "attempt to call global 'joinBattlefield' (a nil value)"
    Last edited by xmachinex; 09-02-2009 at 08:00 AM.

  15. #15
    superapfel's Avatar Member
    Reputation
    1
    Join Date
    Jun 2009
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol got a 3h ban for exploiting the pvp/bg system. is it my fault you can get that much xp in av?

    was i unlucky or did blizz find a way to detect this script using with autoit?

Page 1 of 23 12345 ... LastLast

Similar Threads

  1. [Release] AutoKeys anti-afk utility + source code
    By Rettet181 in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 11-07-2009, 11:01 AM
  2. Z's Simple Anti-AFK Bot (Source Included)
    By =Z= in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 09-22-2009, 11:07 AM
  3. Auto-Queue/Anti-AFK HonorBot With Source Code (c++)
    By Flying Piggy in forum World of Warcraft Bots and Programs
    Replies: 12
    Last Post: 09-12-2007, 11:13 AM
  4. I got banned by using that, Anti AFK auto queue script or w/e
    By julian_in in forum World of Warcraft General
    Replies: 22
    Last Post: 11-03-2006, 02:30 PM
  5. I got banned by using that, Anti AFK auto queue script or w/e
    By julian_in in forum World of Warcraft Bots and Programs
    Replies: 21
    Last Post: 10-28-2006, 05:52 PM
All times are GMT -5. The time now is 05:27 PM. 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