AMAZING Script - THX
since i am not really good at c+... could u please help me.
when i got a disconnect he restarts/relogs in around 350sec.
How can i change it that he does it much faster?
when i start the .dat file he opens d3 but before login in he waits around 10-20secs.
How can i change it that he does it much faster?
thanks again
First question: Please clarify what you are asking.
Second question: If you are referring to the wait time between Diablo 3 starting and the time that DB starts, this is intentional. If you attempt to load Demon Buddy too quickly it may have difficulty connecting to the Diablo 3 game instance an DB could crash. This delay may be adjustable if you have a
super fast computer but I have found that the delay is necessary to ensure reliability for AFK use. You don't need to understand the batch script (it is not C+ fyi) I have highlighed the time values in
red.
Within this script there are a few locations where there are intentional delays/pauses but this is the location I think you are referring to. Feel free to experiment with the values (they are in seconds) but expect problems if the value is set too low.
:NoISBoxer
START "D3Run" "%D3Path%%D3Name%" -launch
TIMEOUT /T 40 /NOBREAK > NUL 2>&1
TASKLIST /FI "IMAGENAME eq %D3Name%" /fo csv /nh > D3After.txt
fc D3Before.txt D3After.txt > D3Diff.txt
for /f "eol=; tokens=2,3* delims=," %%i in (D3Diff.txt) do (set m=%%i)
SET m=%m:"=%
SET D3PID=%m%
ECHO %m% > D3PID.txt
ECHO %Date% %Time% - Diablo III is using PID %m% for this run. >> %Log_File%
DEL /F D3Before.txt D3After.txt D3Diff.txt
ECHO Waiting for Diablo III to load.
timeout /t 15 /NOBREAK > NUL 2>&1
ECHO.
ECHO.
TASKLIST /FI "IMAGENAME eq %DBName%" /fo csv /nh > DBBefore.txt
ECHO Starting Demonbuddy
EDIT: Also, this may answer your first question. If anything goes wrong (DB crashes or Diablo crashes), this script can detect that. It will then restart the script as if it ended normally. At that point the schedule will apply (if you use one) and also this setting:
::Setting Breaktimes in between Total Bot Restarts
set min_minutes=
5
set max_minutes=
15
The time will be randomly selected between those 2 values.
PS. I ABSOLUTELY LOVE THIS SCRIPT! I HAVE BEEN AFK FOR WEEKS RUNNING 4 BOTS ON ONE MACHINE! 