Func GoldItemsIntoStorage ($x, $y)
MouseMove ($x, $y)
$color = PixelSearch ($Inv_Left, $Inv_Top, $InvRight, $InvBottom, $golden_letters)
if not @error Then
$GoldItems = $GoldItems + 1
if $GoldItems <= 20 Then
MouseClickDrag ("left", $x, $y, $storage_slot1_x, $storage_slot1_y, $MouseSpeed)
EndIf
if $GoldItems > 20 Then
MouseClickDrag ("left", $x, $y, $storage_slot2_x, $storage_slot2_y, $MouseSpeed)
EndIf
EndIf
EndFunc
func CheckGoldItems()
GoldItemsIntoStorage ($slot01_x, $slot01_y) ;01
GoldItemsIntoStorage ($slot02_x, $slot02_y) ;02
GoldItemsIntoStorage ($slot03_x, $slot03_y) ;03
....
EndFunc
so mach ichs immer
hat mir bisher keine probleme gemacht