so is fertig und läuft soweit auch backround bis auf die ident func die raff ich net wenn da wer helfen könnte
PHP Code:
Global $invslot_x1 = 34
Global $invslot_x2 = 71
Global $invslot_x3 = 106
Global $invslot_x4 = 140
Global $invslot_x5 = 177
Global $invslot_y1 = 543
Global $invslot_y2 = 583
Global $invslot_y3 = 633
Global $invslot_y4 = 683
$gold_color = 0xFFCC55
Func Check_Gold_Item ($x, $y)
Sleep(Random(200,400))
$x = $x + Random (-5, 5)
$y = $y + Random (-5, 5)
MouseMove ($x, $y)
$color = Pixelsearch(0,403,249,663, $gold_color, 1)
If not @error Then
MouseClick("left", Random(32,36),random(975,980),2)
RandomSleep(200,300)
MouseClick("left", $x, $y, 1)
RandomSleep(1400,1500)
MouseClickDrag ("left", $x, $y, random(270,300), random(540,600))
elseif @error Then
MouseClickDrag ("left", $x, $y, random(270,300), random(540,600))
EndIf
EndFunc