Results 1 to 8 of 8
  1. #1
    die254's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Posts
    73
    Reputation
    21
    Thanks
    182
    My Mood
    Doh

    Anti AFK Working In Background Script

    I've seen that some of you are having trouble with AFK kicks.

    Create a new AHK script and a paste this:

    Code:
    #WinActivateForce
    	Numpad1::
    	WinGet, pidn, PID, A
    	pid := pidn
    	WinGet, hwnds, ID, A
    	Loop
    	{
    		ControlSend, , {c}, ahk_pid %pid%
    		SetKeyDelay, 25000
    		}
    Press NUMPAD 1 to start the script, make sure you are inside the Trove at that time. After the script is activated you can put Trove in background and you not be kicked for AFK ever again.
    Last edited by die254; 07-11-2015 at 06:02 PM.

  2. The Following 2 Users Say Thank You to die254 For This Useful Post:

    littleerik (07-11-2015),mx01 (12-11-2016)

  3. #2
    jokaclown's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    7
    My Mood
    Psychedelic
    our actual problem atm is finding a script to fish at all , preferred with anti afk lava and choclate hot fix crashed the old one
    He, who fights with monsters, should look to it, that he himself, does not become a monster

  4. #3
    liliexx's Avatar
    Join Date
    Jul 2015
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    0
    don't work

  5. #4
    Pardieiro's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    6
    Quote Originally Posted by jokaclown View Post
    our actual problem atm is finding a script to fish at all , preferred with anti afk lava and choclate hot fix crashed the old one
    I'm using this and its working right now! NUMP6 to start.

    #WinActivateForce

    Numpad6::
    WinGet, pidn, PID, A
    pid := pidn
    WinGet, hwnds, ID, A
    Handle := hwnds
    Lure := 9999
    Base := getProcessBaseAddress()
    WaterAddress := GetAddressWater(Base,0x00964208)
    LavaAddress := GetAddressLava(Base,0x00964208)
    ChocoAddress := GetAddressChoco(Base,0x00964208)

    LureCount := 0
    Loop %Lure%
    {
    LureCount := LureCount +1
    ControlSend, , {c down}, ahk_pid %pid%
    Sleep, 86
    ControlSend, , {c up}, ahk_pid %pid%
    Sleep, 500
    ControlSend, , {f down}, ahk_pid %pid%
    Sleep, 86
    ControlSend, , {f up}, ahk_pid %pid%
    Catch := 0
    PoleCheck := 40

    Loop
    {
    If (Catch = 1)
    {
    break
    }
    else
    {
    If (PoleCheckN = PoleCheck)
    {
    ControlSend, , {f down}, ahk_pid %pid%
    Sleep, 86
    ControlSend, , {f up}, ahk_pid %pid%
    LureCount := 0
    }
    else
    {
    }
    CaughtWater := ReadMemory(WaterAddress)
    CaughtLava := ReadMemory(LavaAddress)
    CaughtChoco := ReadMemory(ChocoAddress)
    If (CaughtWater = 1 or CaughtLava = 1 or CaughtChoco = 1)
    {
    ControlSend, , {f down}, ahk_pid %pid%
    Sleep, 86
    ControlSend, , {f up}, ahk_pid %pid%
    Random, Wait, 2000, 3500
    Sleep, %Wait%
    Catch := 1
    }
    else
    {
    PoleCheckN := PoleCheckN +1
    Sleep, 1000
    }
    }
    Imagesearch, Foundx, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *50 c:\boot.bmp
    if errorlevel = 0
    {
    MouseClickDrag, Left, %FoundX%, %FoundY%, 779, 412
    }
    }
    }
    ExitApp

    Numpad7::
    ExitApp

    GetAddressWater(Base, Address)
    {
    pointerBase := base + Address
    y1 := ReadMemory(pointerBase)
    y2 := ReadMemory(y1 + 0x144)
    y3 := ReadMemory(y2 + 0xe4)
    Return WaterAddress := (y3 + 0x70)
    }

    GetAddressLava(Base, Address)
    {
    pointerBase := base + Address
    y1 := ReadMemory(pointerBase)
    y2 := ReadMemory(y1 + 0x144)
    y3 := ReadMemory(y2 + 0xe4)
    Return LavaAddress := (y3 + 0x514)
    }

    GetAddressChoco(Base, Address)
    {
    pointerBase := base + Address
    y1 := ReadMemory(pointerBase)
    y2 := ReadMemory(y1 + 0x144)
    y3 := ReadMemory(y2 + 0xe4)
    Return ChocoAddress := (y3 + 0x2c0)
    }

    getProcessBaseAddress()
    {
    Global Handle
    return DllCall( A_PtrSize = 4
    ? "GetWindowLong"
    : "GetWindowLongPtr"
    , "Ptr", Handle
    , "Int", -6
    , "Int64") ; Use Int64 to prevent negative overflow when AHK is 32 bit and target process is 64bit
    ; If DLL call fails, returned value will = 0
    }

    ReadMemory(MADDRESS)
    {
    Global pid
    VarSetCapacity(MVALUE,4,0)
    ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
    ;DllCall("ReadProcessMemory","UInt",ProcessHandle, "UInt",MADDRESS,"Str",MVALUE,"UInt",4,"UInt *",0)
    DllCall("ReadProcessMemory", "UInt", ProcessHandle, "Ptr", MADDRESS, "Ptr", &MVALUE, "Uint",4)
    Loop 4
    result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)
    return, result
    }

    +rep if i help

  6. The Following 2 Users Say Thank You to Pardieiro For This Useful Post:

    jjthem7788 (08-02-2015),snipe76 (07-23-2015)

  7. #5
    GHOSTKILL190's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    124
    Reputation
    10
    Thanks
    8
    Does not work after Update. None of the fishing Bots / AFK bots work currently at this moment!

  8. #6
    die254's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Posts
    73
    Reputation
    21
    Thanks
    182
    My Mood
    Doh
    Quote Originally Posted by GHOSTKILL190 View Post
    Does not work after Update. None of the fishing Bots / AFK bots work currently at this moment!
    this is outdated, this anti AFK script was added to all base boting fish. Dont need to worry about it anymore unless you want it to use stand alone.

  9. #7
    Lpeach's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    I want to use the anti afk bot and fishing bot for the whole night.
    But when I wake up, it's still disconnected from server.
    It seems like you will still treat as afk if you stay in a fix position for a long period of time, which keep press 'c' is useless in this situation.
    Anyone can solve this?

  10. #8
    die254's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Posts
    73
    Reputation
    21
    Thanks
    182
    My Mood
    Doh
    Quote Originally Posted by Lpeach View Post
    I want to use the anti afk bot and fishing bot for the whole night.
    But when I wake up, it's still disconnected from server.
    It seems like you will still treat as afk if you stay in a fix position for a long period of time, which keep press 'c' is useless in this situation.
    Anyone can solve this?
    This works perfectly, you have been disconnect for some other reason. Maybe the server went down or something.

Similar Threads

  1. [Release] Endless Charge Anti-Afk Script
    By dirtyzerg in forum Dragon Nest Hacks & Cheats
    Replies: 58
    Last Post: 08-31-2012, 09:10 AM
  2. [Detected] Inactive Window Anti-AFK script
    By mrkiller222 in forum Dragon Nest Hacks & Cheats
    Replies: 23
    Last Post: 04-30-2012, 08:01 PM
  3. Hay for professional programmers i have working anti afk bot but it's protected
    By the7skulls in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 03-22-2012, 11:05 AM
  4. Inactive Window Anti-AFK script.
    By mrkiller222 in forum Dragon Nest Selling / Trading / Buying
    Replies: 0
    Last Post: 12-21-2011, 09:29 AM
  5. [Release] Crazy Warrock D3D [OPK(works on all Servers),Chams,Allways Crosshair,Anti AFK...]
    By Crackenide in forum WarRock - International Hacks
    Replies: 46
    Last Post: 11-29-2010, 03:22 PM