So trojan ich habe mal diesen Bot von dir Koüiert und habe die Koordinaten geändert.
Nachdem ich den Bot gestartet habe und F1 und F2 gedrückt habe kam ein Error aber ich weis ned warum. Ich zeige dir den skribt mit meinen Koordinaten:
PHP Code:
#RequireAdmin
#include <file.au3>
#include <array.au3>
#include <String.au3>
#include <GuiConstantsEX.au3>
#include <Staticconstants.au3>
;Hotkeys
#Region "HotKeys"
HotKeySet("{F1}", "SetMiningStuff")
HotKeySet("{F2}", "MiningWithTori")
HotKeySet("{ESC}","Close")
#EndRegion
;Globals
#Region "Globals"
Global $LeftCritter, $RightCritter, $LCPixel, $RCPixel, $pos, $hWnd, $LPixel, $RPixel, $miner
Global $LeftCritter_X, $LeftCritter_Y, $RightCritter_X, $RightCritter_Y
#EndRegion
$LeftCritter = StringSplit("512, 467",",")
$RightCritter = StringSplit("506, 570",",")
;Self Explainitory
$LeftCritter_X = $LeftCritter[1]
$LeftCritter_Y = $LeftCritter[2]
$RightCritter_X = $RightCritter[1]
$RightCritter_Y = $RightCritter[2]
while 1
sleep(100)
WEnd
Func SetMiningStuff()
$hWnd = WinGetHandle("NosTale")
$RCPixel = PixelGetColor($RightCritter_X, $RightCritter_Y, $hWnd)
$LCPixel = PixelGetColor($LeftCritter_X, $LeftCritter_Y, $hWnd)
EndFunc
Func MiningWithTori()
$miner = NOT $miner
While $miner
$hWnd = WinGetHandle("NosTale")
$noBomb = 1
;This Sets new Variables as the Constant Pixel Color within ths given coords
$RPixel = PixelGetColor($RightCritter_X, $RightCritter_Y, $hWnd)
$LPixel = PixelGetColor($LeftCritter_X, $LeftCritter_Y, $hWnd)
;If the Constant Pixel color changes
Sleep(40)
If $RPixel or $LPixel = 0x070B24 Then
$noBomb = 0
EndIf
If $RPixel <> $RCPixel and $noBomb = 1 then
Send("{Right}",0)
Sleep(300)
EndIf
If $LPixel <> $LCPixel $noBomb = 1 then
Send("{Left}",0)
Sleep(300)
EndIf
WEnd
EndFunc
Func Close()
Exit 0
EndFunc
Hoffe du kannst mir helfen