Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin
- if Color.Pixel pattern can be located on screen("207,173,0,5,0,207,173,0,0,5,198,163,7,0,5,235,192,32,0,5,253,241,50,-5,0,253,241,50,0,-5,235,192,32,0,-5,198,163,7", "0")
- begin
- Function.Execute("AntiAutoCheck")
- end
- end
- begin loop()
- Keyboard.Hold keys("{<tab>}4")
- Keyboard.Release keys("{<tab>}4")
- Function.Execute("Heal")
- Function.Execute("AntiAutoCheck")
- // RGB of the digi you want to attack
- if Color.At coordinate is (RGB)("178", "184", "60", "871", "51")
- begin loop()
- Keyboard.Release keys("1")
- Keyboard.Release keys("{<f2>}")
- Keyboard.Release keys("{<f1>}")
- Keyboard.Hold keys("4")
- Keyboard.Release keys("4")
- Function.Execute("Heal")
- Function.Execute("AntiAutoCheck")
- // Same co ordinates of the previous check
- if Color.At coordinate is not (RGB)("178", "184", "60", "871", "51")
- begin
- Macro.Restart("yes")
- end
- end
- // Pumokinmon
- if Color.At coordinate is (RGB)("72", "70", "79", "874", "41")
- begin loop()
- Keyboard.Release keys("1")
- Keyboard.Release keys("{<f2>}")
- Keyboard.Release keys("{<f1>}")
- Keyboard.Hold keys("4")
- Keyboard.Release keys("4")
- Function.Execute("Heal")
- Function.Execute("AntiAutoCheck")
- // Same co ordinates of the previous check
- if Color.At coordinate is not (RGB)("72", "70", "79", "874", "41")
- begin
- Macro.Restart("yes")
- end
- end
- // RGB of the red square of aggro monsters around the fist
- if Color.At coordinate is (RGB)("164", "0", "29", "410", "67")
- begin loop()
- Keyboard.Hold keys("4")
- Keyboard.Hold keys("{<f2>}")
- Keyboard.Release keys("4")
- Keyboard.Hold keys("1")
- Keyboard.Release keys("1")
- Function.Execute("Heal")
- Function.Execute("AntiAutoCheck")
- // Same RGB from above
- if Color.At coordinate is not (RGB)("164", "0", "29", "410", "67")
- begin
- Macro.Restart("yes")
- end
- end
- // Same RGB from above
- if Color.At coordinate is not (RGB)("164", "0", "29", "410", "67")
- begin
- Macro.Restart("yes")
- end
- end
- function("Human Pause")
- begin
- Variable.Set random number("HumanTime", "300", "600")
- Macro.Pause("{HumanTime}")
- end
- function
- function("Heal")
- // RGB of a part of digimon hp , preferable about 25% of your digimon HP , this uses Hp DISK in slot F4
- if Color.At coordinate is not (RGB)("216", "65", "54", "128", "128")
- begin
- Keyboard.Hold keys("{<f4>}")
- Keyboard.Release keys("{<f4>}")
- end
- // RGB of a part of digimon hp to use FOOD in slot F6 , preferably specify about 50% of digimon HP
- if Color.At coordinate is not (RGB)("216", "65", "54", "192", "128")
- begin
- Keyboard.Hold keys("{<f6>}")
- Function.Execute("Human Pause")
- Keyboard.Release keys("{<f6>}")
- end
- // RGB for Digimon DS to use DS DISK in slot F3
- if Color.At coordinate is not (RGB)("28", "239", "255", "127", "143")
- begin
- Keyboard.Hold keys("{<f3>}")
- Macro.Pause("50")
- Keyboard.Release keys("{<f3>}")
- end
- // RGB for TAMER DS , slot F5
- if Color.At coordinate is not (RGB)("15", "241", "255", "115", "68")
- begin
- Keyboard.Hold keys("{<f5>}")
- Macro.Pause("50")
- Keyboard.Release keys("{<f5>}")
- end
- function
- begin
- Function.Execute("AntiAutoCheck")
- end
- function("AntiAutoCheck")
- begin
- if System.Process is not running("MADCATZMP")
- begin
- Function.Execute("OpenMP")
- end
- // Here is the Pixel Pattern for Yellow time Progress Bar
- if Color.Pixel pattern can be located on screen("207,173,0,5,0,207,173,0,0,5,198,163,7,0,5,235,192,32,0,5,253,241,50,-5,0,253,241,50,0,-5,235,192,32,0,-5,198,163,7", "0")
- begin
- // Here is the Pixel Pattern for Yellow time Progress Bar
- Color.Wait for and locate pixel pattern("207,173,0,5,0,207,173,0,0,5,198,163,7,0,5,235,192,32,0,5,253,241,50,-5,0,253,241,50,0,-5,235,192,32,0,-5,198,163,7","0", "CoX", "CoY")
- File.Read first line("C:\GDMO\MADCATZMPID.txt", "MADCATZMPID2")
- Window.Restore("{MADCATZMPID2}", "no")
- File.Write text("C:\GDMO\Spots.txt", "no", "{CoX}")
- File.Write text("C:\GDMO\Spots.txt", "yes", "{CoY}")
- Window.Set always on top("{MADCATZMPID2}", "no", "yes")
- Macro.Pause("200")
- Window.Bring to front("{MADCATZMPID2}", "no")
- // Variables to Calculate
- Variable.Evaluate (Math)("{CoX}+8", "StartX")
- Variable.Evaluate (Math)("{CoY}-57", "StartY")
- Variable.Evaluate (Math)("{CoX}+49", "EndX")
- Variable.Evaluate (Math)("{CoY}-16", "EndY")
- Variable.Evaluate (Math)("{CoX}-3", "AllX")
- Variable.Evaluate (Math)("{CoY}+35", "AllY")
- Variable.Evaluate (Math)("{CoX}+243", "AllEndX")
- Variable.Evaluate (Math)("{CoY}+131", "AllEndY")
- // Select Mouse Coordinates to Mark Target Button
- Window.Bring to front("{MADCATZMPID2}", "no")
- Window.Get location("{MADCATZMPID2}", "no", "no", "MPX", "MPY")
- Variable.Evaluate (Math)("{MPX}+30", "MPX2")
- Variable.Evaluate (Math)("{MPY}+5", "MPY2")
- Mouse.Move to coordinate("{MPX2}", "{MPY2}")
- Mouse.Click("left")
- Window.Send mouse click("{MADCATZMPID2}", "no", "2", "0", "0", "Left")
- Macro.Pause("500")
- Mouse.Drag("{StartX}", "{StartY}", "{EndX}", "{EndY}", "Left")
- Macro.Pause("100")
- // Select Mouse Coordinates to Mark Area Button
- Window.Send mouse click("{MADCATZMPID2}", "no", "8", "0", "0", "Left")
- Macro.Pause("500")
- Mouse.Drag("{AllX}", "{AllY}", "{AllEndX}", "{AllEndY}", "Left")
- Macro.Pause("100")
- Window.Bring to front("{MADCATZMPID2}", "no")
- Window.Get location("{MADCATZMPID2}", "no", "no", "MPX", "MPY")
- Variable.Evaluate (Math)("{MPX}+30", "MPX3")
- Variable.Evaluate (Math)("{MPY}+7", "MPY3")
- Mouse.Move to coordinate("{MPX3}", "{MPY3}")
- Mouse.Click("left")
- // Here is the Pixel Pattern for Yellow time Progress Bar
- if Color.Pixel pattern can be located on screen("207,173,0,5,0,207,173,0,0,5,198,163,7,0,5,235,192,32,0,5,253,241,50,-5,0,253,241,50,0,-5,235,192,32,0,-5,198,163,7", "0")
- begin loop()
- Macro.Pause("200")
- Keyboard.Press keys("{<f9>}")
- Macro.Pause("500")
- if Mouse.Coordinates are not equal to("{MPX3}", "{MPY3}")
- begin
- Mouse.Click("left")
- end
- // Here is the Pixel Pattern for Yellow time Progress Bar
- if Color.Pixel pattern can not be located on screen("207,173,0,5,0,207,173,0,0,5,198,163,7,0,5,235,192,32,0,5,253,241,50,-5,0,253,241,50,0,-5,235,192,32,0,-5,198,163,7", "0")
- begin
- Keyboard.Press keys("{<f10>}")
- Window.Set always on top("{MADCATZMPID2}", "no", "no")
- Macro.Restart("no")
- end
- end
- end
- end
- function
- function("OpenMP")
- if System.Process is not running("MADCATZMP")
- begin
- // in here the path of the Program
- System.Launch application("C:\GDMO\MADCATZMP.exe", "no")
- Window.Wait for window to appear("MadCatz MP", "no")
- Window.Get window id("MadCatz MP", "no", "0", "MADCATZMPID")
- Window.Set always on top("{MADCATZMPID}", "no", "yes")
- Macro.Pause("200")
- when Window.Is visible("{MADCATZMPID}", "no")
- begin
- Window.Bring to front("{MADCATZMPID}", "no")
- Window.Get location("{MADCATZMPID}", "no", "no", "MPX", "MPY")
- Variable.Evaluate (Math)("{MPX}+30", "MPX2")
- Variable.Evaluate (Math)("{MPY}+5", "MPY2")
- Mouse.Move to coordinate("{MPX2}", "{MPY2}")
- Mouse.Click("left")
- Macro.Pause("100")
- Window.Close("{MADCATZMPID}", "no")
- Macro.Pause("100")
- Window.Get window id("MadCatz MP", "no", "0", "MADCATZMPID4")
- Window.Bring to front("{MADCATZMPID4}", "no")
- Window.Get location("{MADCATZMPID4}", "no", "no", "MPX", "MPY")
- Macro.Pause("200")
- Variable.Evaluate (Math)("{MPX}+30", "MPX2")
- Variable.Evaluate (Math)("{MPY}+5", "MPY2")
- Mouse.Move to coordinate("{MPX2}", "{MPY2}")
- Mouse.Click("left")
- Window.Get text("{MADCATZMPID4}", "yes", "18", "no", "Seconds")
- Window.Set selected text("{MADCATZMPID4}", "Yes", "18", "{Seconds}")
- Window.Send press keys("{MADCATZMPID4}", "yes", "18", "0")
- Macro.Pause("100")
- Window.Get text("{MADCATZMPID4}", "yes", "20", "no", "Second")
- Window.Set selected text("{MADCATZMPID4}", "Yes", "20", "{Second}")
- Window.Send press keys("{MADCATZMPID4}", "yes", "20", "1")
- Macro.Pause("100")
- Window.Get text("{MADCATZMPID4}", "yes", "29", "no", "Percentage")
- Window.Set selected text("{MADCATZMPID4}", "Yes", "29", "{Percentage}")
- Window.Send press keys("{MADCATZMPID4}", "yes", "29", "60")
- end
- Macro.Pause("200")
- Function.Execute("MovingMP")
- end
- function
- function("MovingMP")
- // this place is the icon in the title bar so it will move it the the end of the screen to not interfere with the game if macro is appeard
- if Window.Is visible("{MADCATZMPID4}", "no")
- begin
- Window.Get location("{MADCATZMPID4}", "no", "no", "MPX", "MPY")
- Variable.Evaluate (Math)("{MPX}+30", "MPX2")
- Variable.Evaluate (Math)("{MPY}+7", "MPY2")
- Mouse.Move to coordinate("{MPX2}", "{MPY2}")
- System.Get combined screen resolution("ResoX", "ResoY")
- Variable.Evaluate (Math)("{ResoX}-25", "ResX")
- Variable.Divide (Math)("ResoY", "2")
- Variable.Evaluate (Math)("{ResoY}-100", "ResY")
- Mouse.Hold button("left")
- Mouse.Move to coordinate("{ResX}", "{ResY}")
- Mouse.Release button("left")
- Mouse.Save coordinate to variable("MouseX", "MouseY")
- File.Write text("C:\GDMO\MADCATZMPID.txt", "No", "{MADCATZMPID4}")
- File.Write text("C:\GDMO\Macro.txt", "No", "{MouseX}")
- File.Write text("C:\GDMO\\Macro.txt", "Yes", "{MouseY}")
- Window.Set always on top("{MADCATZMPID4}", "no", "yes")
- Window.Bring to front("{MADCATZMPID4}", "no")
- end
- function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement