Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin
- while Color.At coordinate is not (RGB)("0", "186", "255", "573", "156")
- begin
- Function.Execute with timeout("Mod", "1500")
- end
- if Color.At coordinate is (RGB)("0", "186", "255", "573", "156")
- begin
- while Color.Pixel pattern can not be located on screen("231,186,49,9,0,198,36,123,-3,-31,239,239,239", "0")
- begin
- Mouse.Click at coordinate("806", "144", "left")
- Macro.Pause("100")
- end
- Color.Find pixel pattern("231,186,49,9,0,198,36,123,-3,-31,239,239,239", "0", "yes", "varX", "varY")
- Macro.Pause("100")
- Mouse.Drag("{varX}", "{varY}", "506", "300", "left")
- Macro.Pause("100")
- Mouse.Click at coordinate("588", "483", "left")
- Color.Wait for color at coordinate to be (RGB)("1", "1", "1", "665", "290")
- Mouse.Click at coordinate("453", "386", "left")
- Macro.Pause("300")
- Color.Find pixel pattern("0,4,74,8,-29,206,203,206,3,27,255,247,123", "0", "yes", "varMEX", "varMEY")
- Macro.Pause("100")
- Mouse.Drag("{varMEX}", "{varMEY}", "506", "300", "left")
- Macro.Pause("100")
- end
- end
- function("Mod")
- begin
- Mouse.Click at coordinate("588", "483", "left")
- Macro.Pause("500")
- Color.Wait for color at coordinate to be within (RGB range)("187", "187", "185", "20", "670", "285")
- Mouse.Click at coordinate("453", "386", "left")
- // Color.Wait for color at coordinate not to be within (RGB range)("58", "40", "0", "10", "420", "489")
- Color.Wait for color at coordinate not to be (RGB)("61", "40", "0", "423", "489")
- end
- function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement