Код:

HotKeySet("{PAUSE}", "Pause")
Global $Paused
While 1
$Click = _FindMonster()
MouseClick('left', $click[0], $click[1], 1, 0)
Attack()
WEnd
Func _FindMonster()
Dim $iCoord
While 1
$iCoord = PixelSearch(250, 225, 374, 274, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(375, 225, 474, 274, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(415, 275, 474, 359, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(375, 360, 474, 399, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(250, 225, 374, 399, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(250, 175, 474, 224, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(475, 175, 574, 399, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(0, 400, 424, 474, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(0, 175, 259, 399, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
$iCoord = PixelSearch(0, 100, 664, 174, 0xFF00FF, 25, 1)
If @error <> 1 Then ExitLoop
; The sleep is there to prevent the PixelSearches
; from lagging the script a lot if a monster is not found
; in the first loop
Sleep(250)
WEnd
$iCoord[0] = $iCoord[0] + 4
$iCoord[1] = $iCoord[1] + 4
Return $iCoord
EndFunc ;==>_FindMonster
Func Attack()
While 1
If WinActive("SRO_Client") And PixelGetColor(77, 47) = 3947324 Then;IF ACTIVE AND INGAME
; USE SKILL 1 (mine is sword attack, strike and smash) UNLESS MONSTER IS CLOSE TO DYING
if (PixelGetColor(605, 23) = 14077580 And PixelGetColor(442, 45) = 16762566) Then
Send("2")
Sleep(1000)
EndIf
; USE SKILL 7 (mine is combo sword attack (5hits)) UNLESS MONSTER IS ALMOST DOWN
if (PixelGetColor(605, 23) = 14077580 And PixelGetColor(475, 45) = 16743291) Then
Send("1")
Sleep(1000)
EndIf
; USE IMBUE SKILL (mine is skill 2) UNLESS MONSTER IS ALMOST DOWN
if (PixelGetColor(605, 23) = 14077580 And PixelGetColor(475, 45) = 16743291) Then
Send("3")
Sleep(1000)
EndIf
; USE SKILL 5 (mine is sword attack, stab and smash)UNLESS MONSTER IS CLOSE TO DYING
if (PixelGetColor(605, 23) = 14077580 And PixelGetColor(442, 45) = 16762566) Then
Send("4")
Sleep(1000)
EndIf
;THIS WILL TRY AND PICK UP ANYTHING EVEN IF YOU WALK PASSED SOME GOLD
Send("g"); CHECK WICH KEY TO USE IN SILKROAD OPTIONS !!
Sleep(1000); DEFAULT GRABKEY IN SILKROAD IS "G"
EndIf
WEnd
EndFunc ;==>attack
Func Pause()
$Paused = Not $Paused
While $Paused
Sleep(100)
WEnd
EndFunc ;==>Pause
нужно подправить скриптик, после нахождения монстра-клика-атаки - почему-то не происходит возврат на поиск монстра =\