I actually have 4 bots on 4 different batch files running right now. Initial execution is good, and it will all automatically start, but a BIG problem I've seen is it is not completely killing dead processes (neither Diablo nor DB), and one error leads to another.....
Here's the code if anyone wants to check it out. I have two AGB and two fast wiz 1.60 running.
@ECHO OFF
:START
cls
::Change the two following parameters
set min_minutes=2
set max_minutes=3
::---------------------------------------------------------------------------
:

o not touch this portion
::---------------------------------------------------------------------------
set /a min_seconds=%min_minutes%*60
set /a max_seconds=%max_minutes%*60
set /a range=(%max_seconds%+1)-%min_seconds%
set /a rand=%random%%%(%range%)+%min_seconds%
set /a timer=%rand%
cls
ECHO.
ECHO ************************************************************
ECHO * DEMONBUDDY RESETTER *
ECHO * ------------------- *
ECHO * Killing any existing Diablo III and Demonbuddy processes *
ECHO ************************************************************
set min_minutes=4
set max_minutes=7
set /a min_seconds=%min_minutes%*60
set /a max_seconds=%max_minutes%*60
set /a range=(%max_seconds%+1)-%min_seconds%
set /a rand=%random%%%(%range%)+%min_seconds%
set /a timer=%rand%
cls
ECHO.
ECHO ************************************************************
ECHO * DEMONBUDDY RESETTER *
ECHO * ------------------- *
ECHO * Killing any existing Diablo III and Demonbuddy processes *
ECHO ************************************************************
ECHO.
ECHO.
ECHO Killing Diablo
taskkill /im "Diablo IIId.exe"
ECHO Killing Demonbuddy
taskkill /im "Demonbuddydh2.exe"
ECHO .
ECHO .
ECHO .
ECHO Done!
ECHO.
ECHO.
ECHO Please be Patient. Waiting for %rand% seconds before starting a fresh run.
ECHO.
timeout /t %timer%
cls
ECHO **************************************
ECHO * Starting Demonbuddy and Diablo III *
ECHO **************************************
ECHO.
ECHO.
ECHO.
ECHO.
::Change the following line to the path of your Demonbuddy working directory. -> Don't ask me why, but it's something required by AGB...
cd C:\Users\Maria\Desktop\Demonbuddy 1.0.648.160 - C44444\
::Change the following line to suit your needs (Pathing, user accounts, password, keys, etc)
START "DB_Running" "C:\Users\Maria\Desktop\Demonbuddy 1.0.648.160 - C44444\Demonbuddydh2.exe" -key xxxxxxxxxxxx-bnetaccount
[email protected] -bnetpassword jeff -d3path="C:\Program Files\Diablo III - Copy (3)\Diablo IIId.exe" -profile="C:\Users\Maria\Desktop\Demonbuddy 1.0.648.160 - C44444\Plugins\AGBLoader\empty.xml" -routine="AGB - Nullcombat" -autostart -noflash
ECHO Waiting to commence DB and D3 checks...
timeout /t 300 /NOBREAK
::This portion listens if DB or D3 are not responding. If they are, they will be restarted
::Change the application names if you are not using the defaults
cls
ECHO ******************************************************
ECHO * Listening for Misbehaving Diablo III or Demonbuddy *
ECHO ******************************************************
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Checking in 1 minute.
ECHO.
ECHO ******************************************************
ECHO.
TIMEOUT /T 30 /NOBREAK > NUL 2>&1
:LISTENING
TIMEOUT /T 30 /NOBREAK > NUL 2>&1
ECHO Checking if DB or D3 is NOT RESPONDING...
:CHECKD3
ECHO Diablo III Status...
TASKLIST /FI "IMAGENAME eq Diablo IIId.exe" | findstr "INFO: No tasks are running which match the specified criteria."
IF NOT ERRORLEVEL==1 GOTO

ETECTED
TASKKILL /F /FI "STATUS eq NOT RESPONDING" /IM "Diablo IIId.exe" | FINDSTR SUCCESS > NUL 2>&1
IF NOT ERRORLEVEL==1 GOTO

ETECTED
ECHO OK...
:CHECKDB
ECHO Demonbuddy Status...
TASKLIST /FI "IMAGENAME eq "Demonbuddydh2.exe"" | findstr "INFO: No tasks are running which match the specified criteria."
IF NOT ERRORLEVEL==1 GOTO

ETECTED
TASKKILL /F /FI "STATUS eq NOT RESPONDING" /IM "Demonbuddydh2.exe" | FINDSTR SUCCESS > NUL 2>&1
IF NOT ERRORLEVEL==1 GOTO

ETECTED
ECHO OK...
:CHECKSOK
ECHO.
ECHO All OK. Checking in another 1 minute.
ECHO.
ECHO ******************************************************
ECHO.
TIMEOUT /T 30 /NOBREAK > NUL 2>&1
GOTO LISTENING

ETECTED
cls
ECHO ******************************************************
ECHO * Error Detected. Restarting the full suite. Standby *
ECHO * Please Wait....................................... *
ECHO ******************************************************
ECHO.
ECHO.
ECHO.
ECHO.
TIMEOUT /T 15 /NOBREAK
GOTO START
:END