Most everything ports over very easily, except the scanning function. Even tho the function is trying to scale via the ratio
Code:
$SlotPixelLine = PixelSearch(Round($slotLineTopX + $i * $slotLineOffSet * $x_ratio), Round($slotLineTopY + $j * $slotLineOffSet * $y_ratio), Round($slotLineBotX + $i * $slotLineOffSet * $x_ratio), Round($slotLineBotY + $j * $slotLineOffSet * $y_ratio), 0x2C1B14,1)
$MiddleOfCell = PixelSearch(Round($CellMiddleTopX + $i * $CellMiddleO * $x_ratio), Round($CellMiddleTopY + $j * $CellMiddleO * $y_ratio), Round($CellMiddleBotX+ $i * $CellMiddleO * $x_ratio), Round($CellMiddleBotY + $j * $CellMiddleO * $y_ratio), 0x130C08)
You will need to have the correct starting values in the code below.
Code:
;New Loot Coords
$slot1x = 1434 ; first slot x coordinate
$slot1y = 607 ; first slot y coordinate
$offset = 48 ; offset for each slot
$slotLineTopX = 1414 ;First slot line x coordinate
$slotLineTopY = 632 ;First slot line y coordinate
$slotLineBotX = 1458 ;First slot line x coordinate
$slotLineBotY = 634 ;First slot line y coordinate
$slotLineOffSet = 48 ;offset for each line
$CellMiddleTopX = 1429
$CellMiddleTopY = 604
$CellMiddleBotX = 1435
$CellMiddleBotY =609
$CellMiddleO = 48
Even tho these are named pretty well, its still very difficult to know exactly where Chancity started without a 1920x1080 resolution. Would love to get a color coded picture of where these values are exactly, to make porting over simple. Such as:
$slot1x = 1434, the green dot is my best guess at the left starting point.
$slot1y = 607, the yellow dot is my best guess at top starting point.
$offset = 48, this is my best guess at the offset space.
These are just my guesses. Not sure how to get the exact starting points without a 1920x1080 screen. Maybe taking a screenshot and saving it as a 1920x1080 image would work, never tried.