I've already updated it.
I need a favor for the people using lower or higher resolutions then 1920x1080..I need a screenshot of there character with an open cellar on the map. For all the 1920x1080 who want to manually add this into your script here you go.
Code:
Func FindCellar()
$CellCoord = -1
$c = 0
;A precheck to the cellar search
_ImageSearchArea($pngLoc & "Cellar.png", 1, Round(1672 * $x_ratio),Round(175 * $y_ratio),Round(1717 * $x_ratio),Round(209 * $y_ratio), $gX, $gY, 140)
If $gX > 0 Or $gY > 0 Then
Do
If $c >= Ubound($cellarCoordx) Then ;Make sure we never get stuck here for infinity.
If $CellCoord = -1 Then $CellCoord = 0
Return 0
EndIf
RandMove(Round($cellarCoordx[$c] * $x_ratio), Round($cellarCoordy[$c] * $y_ratio), 1, 1) ;moves cursor over to the cellar
$mousePos = MouseGetPos()
sleep($cellarCheckSleep)
If $c = 5 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
Else
Return 0
EndIf
If $CellCoord = -1 Then $CellCoord = 0
Return
EndFunc