That has to do with
Code:
RandMove(Round(300*$x_ratio),Round(80*$y_ratio), 5*$x_ratio, 5*$y_ratio) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
;Checks if Dank Cellar is Open
LogWrite("Checking - DankCellar")
$Pixel2 = PixelSearch(0,0, Round(600*$x_ratio), Round(600*$y_ratio),0x334FB7,3)
If Not @error Then
$ExpectedState = "DankCellar"
LogWrite(" Moving - To DankCellar")
RandClick("left", Round(300*$x_ratio), Round(80*$y_ratio), 5*$x_ratio, 5*$y_ratio) ;Entrance to cellar
Basically, your mouse is moving over the cellar, causing the bright blue lights to show. When it finds the correct color, its calling:
Code:
RandClick("left", Round(300*$x_ratio), Round(80*$y_ratio), 5*$x_ratio, 5*$y_ratio) ;Entrance to cellar
Depending on where your mouse was when it was hovering over the cellar, this final random click could be clicking too far north or east, and thats what would cause you to run into that wall. You are clicking on the other side of that wall, but you are NOT clicking on the cellar itself.
To correct this the easy way, just change
Code:
RandClick("left", Round(300*$x_ratio), Round(80*$y_ratio), 5*$x_ratio, 5*$y_ratio) ;Entrance to cellar
to
This will basically give you 100% success going into the cellar (so long as the mouse is over the cellar), tho its not a random click. I tried to mess around with dialing this in for a few hours, and eventually decided its just not worth having a random click there. After 1000s of runs removing that final random click, i have never seen the macro miss a cellar.