Posting the script I wrote for 1920x1080 (autohotkey), based on some other script some guy posted earlier. Handles random msg boxes and getting stuck in the wrong screen etc, uses pixel searching and such to avoid lagging and getting stuck. Not providing any technical support but you may want to look at how abilities are handled (it will pause and try to cast abilities left mouse/right mouse with a delay between each - assuming there is a cast time)
Code:
;If diablo is active, proceed
WinWait, Diablo III, WinWaitActive, Diablo III,
f1::
;Turn bot on
settimer, farm, 1
return
f2::
;Turn bot off
settimer, farm, off
return
actions:
;Detected nothing happening, hitting ESC
;Likely a menu or something obstructing gameplay
Send, {ESC}
return
farm:
;Farming process
;Check for resume game option
Sleep, 1500
PixelGetColor, Menu, 242, 207
if Menu = 0x372801
{
Sleep 750
;Resume game
MouseClick, left, 237, 410
Sleep 4000
;Update action timer
SetTimer, actions, off
SetTimer, actions, 20000
}
;Check for in game interface
Sleep, 1000
PixelGetColor, Menu, 1310, 1050
if Menu = 0x081C48
{
;Beginning run, skip quest text
Sleep 500
Send, {SPACE}
;Move towards the mobs, wait
MouseClick, left, 1842, 1076, D
Sleep 1500
MouseClick, left, 1842, 1076, U
Sleep 2500
;Use all abilities
Send, 4
Send, 3
Send, 1
Sleep, 500
MouseMove, 1184, 312
Send {LShift Down}
Sleep 50
Send {LButton}
Sleep 600
Send {RButton}
Sleep 50
Send {LShift Up}
Sleep 100
;Run away from the mobs
MouseClick, left, 198, 6, D
Sleep 4500
;Use door
MouseClick, left, 760, 219
Sleep 1000
;If unable to use door, try again
;Solves shrine, mob blocking
MouseClick, left, 966, 376
Sleep 2000
;Successful run, back to menu
Send, {ESC}
Sleep 1000
MouseClick, left, 948, 587
;Update action timer
SetTimer, actions, off
SetTimer, actions, 20000
}
;Check for leave game screen (flagged by actiontimer)
Sleep, 1000
PixelGetColor, Menu, 934, 274
if Menu = 0x00A3FF
{
;LEAVE GAME
Sleep 2000
MouseClick, left, 948, 587
SetTimer, actions, off
SetTimer, actions, 20000
}
return