Chancity this is how you fix the lawl scripts for 1366x768. If anyone else is having problems entering cellars with 1366 resolution please refer them to this post.
Step 1.
Open lawl.au3 in notepad.
Find this code:
Code:
Global $cellarCoordx[6] = [255, 280, 175, 265, 315, 600]
Global $cellarCoordy[6] = [290, 302, 305, 340, 314, 435]
Replace it with this:
Code:
Global $cellarCoordx[6] = [255, 175, 315, 265, 280, 600]
Global $cellarCoordy[6] = [290, 305, 314, 340, 302, 435]
Step 2.
Find this code:
Code:
Func FindCellar()
$CellCoord = 0
$gY = 0
$gX = 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, 160)
sleep($cellarCheckSleep)
If $gX > 0 Or $gY > 0 then
Do
MouseMove(Round($cellarCoordx[$CellCoord] * $x_ratio), Round($cellarCoordy[$CellCoord] * $y_ratio), 1) ;moves cursor over to the cellar
sleep($cellarCheckSleep)
If $CellCoord < 6 then
$Pixel2 = PixelSearch($cellarCoordx[$CellCoord] - 71 * $x_ratio,$cellarCoordy[$CellCoord] - 148 * $y_ratio,$cellarCoordx[$CellCoord] + 139 * $x_ratio,$cellarCoordy[$CellCoord] + 22 * $y_ratio, 0x334FB7, 3) ;checks for open cellar (in a 600x400 box from the top left - where it should always be)
Else
$Pixel2 = PixelSearch($cellarCoordx[$CellCoord] - 71 * $x_ratio,$cellarCoordy[$CellCoord] - 148 * $y_ratio,$cellarCoordx[$CellCoord] + 139 * $x_ratio,$cellarCoordy[$CellCoord] + 22 * $y_ratio, 0x007CB7F8, 3) ;checks for open cellar (in a 600x400 box from the top left - where it should always be)
EndIf
If Not @Error Then
Return 1
EndIf
$CellCoord += 1
Until $CellCoord >= Ubound($cellarCoordx)
Else
Return 0
EndIf
$countMissedCellar += 1
Call("CellarScreenShot")
Return 0
EndFunc
Replace it with this:
Code:
Func FindCellar()
$CellCoord = 0
$gX = 0
$gY = 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, 160)
sleep($cellarCheckSleep)
If $gX > 0 Or $gY > 0 Then
Do
MouseMove(Round($cellarCoordx[$CellCoord] * $x_ratio), Round($cellarCoordy[$CellCoord] * $y_ratio), 1) ;moves cursor over to the cellar
$mousePos = MouseGetPos()
sleep($cellarCheckSleep)
If $CellCoord = 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
Return 1
EndIf
$CellCoord += 1
Until $CellCoord >= Ubound($cellarCoordx)
Else
Return 0
EndIf
$countMissedCellar += 1
Call("CellarScreenShot")
Return 0
EndFunc
Step 3.
Save it.
This should fix 1366x768 resolution having problems entering the cellars with the lawl scripts.
New pictures for 1366x768 all graphics setting on low:
ExitGame.png
![[Goldfarming] Dank Celler Gold and Loot [AutoIT Script] [WIZARD] [1920x1080]-exitgame-png](https://www.ownedcore.com/forums/attachments/diablo-3/diablo-3-bots-programs/d3-gold-profiles/8919d1443816849t-goldfarming-dank-celler-gold-loot-autoit-script-wizard-1920x1080-exitgame-png)
flawlesssquare.png
![[Goldfarming] Dank Celler Gold and Loot [AutoIT Script] [WIZARD] [1920x1080]-flawlesssquare-png](https://www.ownedcore.com/forums/attachments/diablo-3/diablo-3-bots-programs/d3-gold-profiles/8920d1443816849t-goldfarming-dank-celler-gold-loot-autoit-script-wizard-1920x1080-flawlesssquare-png)
flawlesssquare2.png
![[Goldfarming] Dank Celler Gold and Loot [AutoIT Script] [WIZARD] [1920x1080]-flawlesssquare2-png](https://www.ownedcore.com/forums/attachments/diablo-3/diablo-3-bots-programs/d3-gold-profiles/8921d1443816849t-goldfarming-dank-celler-gold-loot-autoit-script-wizard-1920x1080-flawlesssquare2-png)
archon.png
![[Goldfarming] Dank Celler Gold and Loot [AutoIT Script] [WIZARD] [1920x1080]-archon-png](https://www.ownedcore.com/forums/attachments/diablo-3/diablo-3-bots-programs/d3-gold-profiles/8922d1443816849t-goldfarming-dank-celler-gold-loot-autoit-script-wizard-1920x1080-archon-png)
ofdeath2.png
![[Goldfarming] Dank Celler Gold and Loot [AutoIT Script] [WIZARD] [1920x1080]-ofdeath2-png](https://www.ownedcore.com/forums/attachments/diablo-3/diablo-3-bots-programs/d3-gold-profiles/8923d1443816849t-goldfarming-dank-celler-gold-loot-autoit-script-wizard-1920x1080-ofdeath2-png)
prosp.png