Im using the main script and it always waits like 5-8 seconds before looting. I removed the random sleeps around the loot function and it still waits a while. Anyone know how to make that quicker?
Im using a 1600 resolution and I changed my teleport spot to be closer to the cellar and it seems to detect it more often in this spot, I just changed this line to read Round(280 instead of 250. Just a temp fix until a good one from the OP can get it.
MouseClick("middle", Round(0 * $x_ratio),Round(280 * $y_ratio)) ;starts the main run
Last edited by mase123y; 06-28-2012 at 12:03 AM.
the script keeps on getting stuck when in menu sometimes it opens the banner and it just freezes. any solutions?
262% goldfind, had it running over night, this is what i got
so over a long period of time (10+) hours it seems to be around 350-360k per hour. with the new archon teleport 21s script.if anyone has any ideas how to get up to 400-500k please sharebut i dont think its possible
I can't get this to give me the proper message box depending on whether it finds the cellar or not. Anyone have any input or want to help? For some reason PixelSearch isn't throwing an error when its not finding the proper blue pixel!
Code:Global $size = WinGetClientSize("[CLASS:D3 Main Window Class]"), $CellCoord = -1, $c = 0, $cellarCoordx[5] = [600, 175, 315, 265, 280], $cellarCoordy[5] = [435, 305, 314, 340, 302] $x_ratio = $size[0] / 1920 $y_ratio = $size[1] / 1080 If FindCellar() = 1 Then MsgBox("4096","Found" ,"Found @ " & $cellarCoordx[$CellCoord] & "," & $cellarCoordy[$CellCoord]) Else MsgBox("4096","Not Found","Not Found") EndIf Func FindCellar() $CellCoord = -1 Do If $c >= Ubound($cellarCoordx) Then ;Make sure we never get stuck here for infinity. Return 0 EndIf MouseMove(Round($cellarCoordx[$c] * $x_ratio), Round($cellarCoordy[$c] * $y_ratio), 1) ;moves cursor over to the cellar $Pixel2 = PixelSearch(0, 0, Round(600 * $x_ratio), Round(600 * $y_ratio), 0x334FB7, 3) ;checks for open cellar (in a 600x400 box from the top left - where it should always be) Sleep(120) If Not @Error Then $CellCoord = $c EndIf $c += 1 Until $CellCoord >= 0 Return 1 EndFunc
Last edited by chancity; 06-28-2012 at 01:22 AM.
Hm the messaging part looks right to meIs that FindCellar function pretty standard?
---
If Not @Error Then
$CellCoord = $c
EndIf
$c += 1
Until $CellCoord >= 0
---
So...as soon as $c is set to 1, basically on the second iteration, $CellCoord = 1, it stops? So the code only searches 2 pixels worth? Just some observations is all, I don't know Auto-IT at all, but I do know several programming languages
Edit: Proposed fix:
Until $CellCoord >= Ubound($cellarCoordx), that way the loop will actually run more than twice :P
Also, the PixelSearch function arguments may be adjusted? Otherwise it will just always search for (0, 0, 600, 600, blah blah) assuming your window resolution is 1920x1080 right?
---
Edit2: Corrected version.
I fixed the pixelsearch to look for the actual pixels that the mousemove points to, not sure if this is desired behavior or not but searching for (0,0,600,600,blah) 5 times in a row doesn't make sense to me. Also corrected the until cellcoord >= 5 to ensure it searches through all 5 elements of the cellarcoord arrays without finding a blue pixel.
Func FindCellar()
$CellCoord = -1
Do
If $c >= Ubound($cellarCoordx) Then ;Make sure we never get stuck here for infinity.
Return 0
EndIf
MouseMove(Round($cellarCoordx[$c] * $x_ratio), Round($cellarCoordy[$c] * $y_ratio), 1) ;moves cursor over to the cellar
$Pixel2 = PixelSearch(0, 0, Round(600 * $x_ratio), Round(600 * $y_ratio), 0x334FB7, 3) ;checks for open cellar (in a 600x400 box from the top left - where it should always be)
Sleep(120)
If Not @Error Then
$CellCoord = $c
EndIf
$c += 1
Until $CellCoord >= 5
Return 1
EndFunc
Last edited by ElijahBailey; 06-28-2012 at 02:06 AM.
Please can anyone give me some advice, I have the bot running, but all it ever does its run into the zombies from check point, use forcewave and tp to base then restarts.
Hi,I'm new to this so I wanted to ask you guys:
Should I be afraid of keyloggers and run the script trhough VM?
the script keeps on getting stuck when in menu sometimes it opens the banner and it just freezes. any solutions?
wow I must be retarded. So I just roamed across this script because I have been using the old wizard one and modified it quite a bit all by myself but now I wanted to try this one since I'm only getting a little over 300k gph on mine.
I get the autoinstall file and I ran it as "administrator" and then it downloaded 2000 something files or whatever and then nothing happened. I tried to start the 2 bot files and I got a tesseract color error on both of them. I looked further down the 1st post and saw the directions but I didn't do any of those because I assumed the autoinstall did all that. If it doesn't then what exactly does the autoinstall do and what do I need to do from here. Also if I am suppose to put the dll folders in system32 in the zip that I opened there were 2 dll files and then a folder called "system32" with 2 more files.....Which ones do I put in the folder system 32 and do I include the folder "system32" as well. I am assuming that I'm not going to put a system32 folder inside a system32 folder lol. I feel like a complete idiot because I am really lost on this one.
how do i install tesseract and what are the files that i put in the include folder?
I'm trying to help a friend install his and he runs tesseract.exe but doesn't know which files to put in the autoit folder
I got the DH one working fine, but I didn't have to use the tesseract thing.
Last edited by jackfsc2; 06-28-2012 at 02:11 AM.
It is still returning Not @Error even when the pixelsearch shouldn't be succeeding, but now the pixel search is based off where the mouse is rather than that big ass area.
Code:Global $size = WinGetClientSize("[CLASS:D3 Main Window Class]"), $CellCoord = -1, $c = 0, $cellarCoordx[5] = [600, 175, 315, 265, 280], $cellarCoordy[5] = [435, 305, 314, 340, 302] $x_ratio = $size[0] / 1920 $y_ratio = $size[1] / 1080 ;While 1 If FindCellar() = 1 Then MsgBox("4096","Found" ,"Found @ " & $cellarCoordx[$CellCoord] & "," & $cellarCoordy[$CellCoord]) Else MsgBox("4096","Not Found","Not Found") EndIf ;WEnd Func FindCellar() $CellCoord = -1 $c = 0 Do If $c >= Ubound($cellarCoordx) Then ;Make sure we never get stuck here for infinity. Return 0 EndIf MouseMove(Round($cellarCoordx[$c] * $x_ratio), Round($cellarCoordy[$c] * $y_ratio), 1) ;moves cursor over to the cellar $mousePos = MouseGetPos() $Pixel2 = PixelSearch($mousePos[0] - 71,$mousePos[1] - 148,$mousePos[0] + 139,$mousePos[1] + 22, 0x334FB7, 3) ;checks for open cellar (in a 600x400 box from the top left - where it should always be) Sleep(120) If Not @Error Then $CellCoord = $c EndIf $c += 1 Until $CellCoord >= 0 Return 1 EndFuncis equal to -1 until it finds the pixel and then it becomes 0 or greaterCode:$CellCoord
This cycles through all the coords and if it trys all 5 it ends the loop..Code:If $c >= Ubound($cellarCoordx) Then ;Make sure we never get stuck here for infinity. Return 0 EndIf
Last edited by chancity; 06-28-2012 at 02:20 AM.