I'll take a look into it tonight when I get off work. Thanks for the feedback...![]()
I'll take a look into it tonight when I get off work. Thanks for the feedback...![]()
Last edited by Fay355; 06-28-2012 at 04:10 AM.
After 5 hours I've figured out the cellar check. I'm adding it now to the 21s script for now and then the mainscript tomorrow. They'll be an auto update shortly
Code:sleep(2000) 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 MouseClick("left",$cellarCoordx[$CellCoord],$cellarCoordy[$CellCoord],1) Else ;MsgBox("4096","Not Found","Not Found @ " & $cellarCoordx[$CellCoord] & "," & $cellarCoordy[$CellCoord]) EndIf ;WEnd Func FindCellar() $CellCoord = -1 $c = 0 Do If $c >= Ubound($cellarCoordx) Then ;Make sure we never get stuck here for infinity. If $CellCoord = -1 Then $CellCoord = 0 Return 0 EndIf sleep(50) MouseMove(Round($cellarCoordx[$c] * $x_ratio), Round($cellarCoordy[$c] * $y_ratio), 1) ;moves cursor over to the cellar $mousePos = MouseGetPos() sleep(75) $Pix = PixelGetColor($mousePos[0],$mousePos[1]) If $c = 0 then $Pixel2 = PixelSearch($mousePos[0] - 71 * $x_ratio,$mousePos[1] - 148 * $y_ratio,$mousePos[0] + 139 * $x_ratio,$mousePos[1] + 22 * $y_ratio, 0x007CB7F8, 3) ;checks for open cellar (in a 600x400 box from the top left - where it should always be) Else $Pixel2 = PixelSearch($mousePos[0] - 71 * $x_ratio,$mousePos[1] - 148 * $y_ratio,$mousePos[0] + 139 * $x_ratio,$mousePos[1] + 22 * $y_ratio, 0x334FB7, 3) ;checks for open cellar (in a 600x400 box from the top left - where it should always be) EndIf If Not @Error Then $CellCoord = $c Return 1 EndIf $c += 1 Until $CellCoord >= 0 If $CellCoord = -1 Then $CellCoord = 0 Return 1 EndFunc
21s w/ Cellar Check Update: [AutoIt] 21s W/ Cellar Check - Pastebin.com
Hopefully this works out for everyone, give me feed back to whats good or wrong. I personally haven't done much testing with it. Let me know!
Ok i saw what just happened it clicked twice for some reason after finding the cellar and the 2nd click was on the ground right in front of the cellar canceling the walk into the cellar
First run, found cellar but walked to the wall and bumped there. This with the latest 21s
yeah mine keeps doing that also, the farthest point makes him walk a straight line for some reason
Also there is a screenshot portion commented out. You can use that to add your own coordinates into the cellar detection. It basically takes a screenshot if there's a closed cellar then you go through and find ones that actually had open cellars and grab some coordinates.
Sent from my DROID RAZR using Tapatalk 2
started using your script yesterday and loving it
but i got one problem
whne my wizard use archon and attack it kills the mobs and keep shooting for like 3 seconds and i would like to reduce that to maybe 1 second
i think that i has something to do with my dps is so high and therefor the mobs die faster then the script have expected:/
now i have searched a little and i seems i need to change $dps
but im running the main script so should i just change the $dps in there and wich one of them?
using the 21s
i have 290% GF************************************************
2012-06-28 07:30:59 :
************************************************
Chancity's Dank Celler
Stats:
Total Runtime: 9 hours, 14 minutes
Total Cellars Found: 284 (28%)
Total Cellars Not Found: 735 (72%)
Total Deaths: 42 (4%)
Total Repairs: 349 (34%)
Loot:
Legendary: 3 - Set: 0 - Rare: 17
190K Per Hour - Accumulated Gold: 1.75M
I have gotten the script working, but I have a problem. Nothing I change in the ini affects anything. If i change button assignments, it still uses default buttons, if I input my dps (low) it doesnt change the attack time. I have even tried editing the script directly, and for some reason, it still doesnt change, I cant change anything from default. Does anyone know why?
I think there's something wrong, I think it is very fast script that is passing up some dankcellars ..
i have 233% mf with mercy!
28/06/2012 08:29:43:
************************************************
Dank's Chancity Celler
Stats:
Total Runtime: 7 hours, 39 minutes
Total Cellars Found: 375 (46%)
Total Cellars Not Found: 442 (54%)
Deaths Total: 13 (2%)
Repairs Total: 0 (0%)
loot:
Magic: 820 - Gems: 398 - Tomes: 47
Legendary: 3 - Set: 0 - Rare: 14
294K Per Hour - Gold: 2,199,695