Почему бот в игре не едет
Код:
Opt("MouseCoordMode", 2)
Opt("PixelCoordMode", 2)
opt("SendAttachMode", 0)
Opt("MouseClickDelay", 2000)
Opt("SendKeyDelay", 1500)
Opt("SendKeyDownDelay", 1500)
Opt("CaretCoordMode", 2)
opt("colormode", 0)
WinActivate( "W.o.T. Client")
While WinActive( "W.o.T. Client")
If PixelGetColor(705, 302) == 0x030202 Then MouseClick("left", 667, 369)
If PixelGetColor(728, 443) == 0x010101 Then MouseClick("left", 722, 439)
If PixelGetColor(673, 75) And PixelGetColor(702, 486) == 0x487012 then MouseClick("left", 672, 44, 2)
If PixelGetColor(639, 482) == 0x990202 and PixelGetColor(134, 662) == 0xCFC8A9 then MouseClick("left",322, 663,1)
If PixelGetColor(639, 482) == 0x990202 and PixelGetColor(304, 662) == 0xCFC8A9 Then MouseClick("left", 166,663, 1)
If pixelGetColor(218, 23) == 0x6BB807 Then
If PixelGetColor(121, 560) == 0xFC0A08 or PixelGetColor(137, 560) == 0xEC0D0B Then Send( "{ESC}" )
EndIf
Select
Case PixelGetColor(638, 456) == 0x949485
Sleep(2000)
If PixelGetColor(638, 456) == 0x949485 then send ("{enter}")
Case PixelGetColor( 304, 149) == 0xFEFBE0
If PixelGetColor( 304, 149) == 0xFEFBE0 Then Send("{Esc}")
Case PixelGetColor(217, 24) == 0x68B407
If PixelGetColor(217, 24) == 0x68B407 Then
Sleep(300000)
MouseClick("left")
EndIf
Case PixelGetColor(549, 318) == 0x020201
If PixelGetColor(549, 318) == 0x020201 Then MouseClick("left", 821, 440,4)
Case PixelGetColor(155, 560) == 0x312F27
Sleep(1000)
If PixelGetColor(155, 560) == 0x312F27 or PixelGetColor(153, 576) == 0x3A382F then
Send("ккккаа")
send("{left 4}" )
send("{right 5}" )
Send("w")
EndIf
EndSelect
WEnd