Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ScanMob1= PixelSearch($xBattle_Mob_Left_1, $yBattle_Mob, $xBattle_Mob_Left_1 + 30, $yBattle_Mob + 30, 0xFFFFFF, 255) ; scanning a box to find a not black color
- If Not @error Then
- MouseMove($ScanMob1[0], $ScanMob1[1]) ; if we find a not black color, move there
- ToolTip( "1" , 0, 25 )
- ; MsgBox(0, "X and Y are:", $ScanMob1 & "," & $ScanMob1)
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- return
- EndIf
- $ScanMob2= PixelSearch($xBattle_Mob_Left_2, $yBattle_Mob, $xBattle_Mob_Left_2 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "2" , 0, 25 )
- ; MsgBox(0, "X and Y are:", $ScanMob2[0] & "," & $ScanMob2[1])
- MouseMove($ScanMob2[0], $ScanMob2[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- return
- EndIf
- $ScanMob3= PixelSearch($xBattle_Mob_Left_3, $yBattle_Mob, $xBattle_Mob_Left_3 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "3" , 0, 25 )
- MouseMove($ScanMob3[0], $ScanMob3[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- return
- EndIf
- $ScanMob4= PixelSearch($xBattle_Mob_Left_4, $yBattle_Mob, $xBattle_Mob_Left_4 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "4" , 0, 25 )
- MouseMove($ScanMob4[0], $ScanMob4[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- return
- EndIf
- $ScanMob5= PixelSearch($xBattle_Mob_Left_5, $yBattle_Mob, $xBattle_Mob_Left_5 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "5" , 0, 25 )
- MouseMove($ScanMob5[0], $ScanMob5[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- return
- EndIf
- $ScanMob6= PixelSearch($xBattle_Mob_Mid, $yBattle_Mob, $xBattle_Mob_Mid + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "6" , 0, 25 )
- MouseMove($ScanMob6[0], $ScanMob6[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- return
- EndIf
- $ScanMob7= PixelSearch($xBattle_Mob_Right_1, $yBattle_Mob, $xBattle_Mob_Right_1 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "7" , 0, 25 )
- MouseMove($ScanMob7[0], $ScanMob7[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- return
- EndIf
- $ScanMob8= PixelSearch($xBattle_Mob_Right_2, $yBattle_Mob, $xBattle_Mob_Right_2 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "8" , 0, 25 )
- MouseMove($ScanMob8[0], $ScanMob8[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- EndIf
- $ScanMob9= PixelSearch($xBattle_Mob_Right_3, $yBattle_Mob, $xBattle_Mob_Right_3 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "9" , 0, 25 )
- MouseMove($ScanMob9[0], $ScanMob9[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- EndIf
- $ScanMob10= PixelSearch($xBattle_Mob_Right_4, $yBattle_Mob, $xBattle_Mob_Right_4 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "10" , 0, 25 )
- MouseMove($ScanMob10[0], $ScanMob10[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- Sleep (100)
- EndIf
- $ScanMob11= PixelSearch($xBattle_Mob_Right_5, $yBattle_Mob, $xBattle_Mob_Right_5 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
- If Not @error Then
- ToolTip( "11" , 0, 25 )
- MouseMove($ScanMob11[0], $ScanMob11[1]) ; if we find a not black color, move there
- MouseDown("left")
- MouseUp("left")
- EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement