You are on page 1of 7

begin loop()

Function.Execute("Anti Macro Protector")


Keyboard.Hold keys("{<tab>}")
Keyboard.Release keys("{<tab>}")
Function.Execute("Heal")
Function.Execute("Loot")
// RGB of the digi you want to attack
if Color.At coordinate is (RGB)("34", "119", "181", "786", "122")
begin loop()
Keyboard.Hold keys("1")
Keyboard.Release keys("1")
Keyboard.Hold keys("{<f2>}")
Keyboard.Release keys("{<f2>}")
Keyboard.Hold keys("{<f1>}")
Keyboard.Release keys("{<f1>}")
Function.Execute("Loot")
Function.Execute("Heal")
Function.Execute("TAB")
Function.Execute("Anti Macro Protector")
// Same co ordinates of the previous check
if Color.At coordinate is not (RGB)("34", "119", "181", "786", "
122")
begin
Macro.Restart("no")
end
end
// RGB of the red square of aggro monsters around the fist
if Color.At coordinate is (RGB)("164", "0", "29", "571", "122")
begin loop()
Function.Execute("Loot")
Keyboard.Hold keys("1")
Keyboard.Release keys("1")
Keyboard.Hold keys("{<f2>}")
Keyboard.Release keys("{<f2>}")
Keyboard.Hold keys("{<f1>}")
Keyboard.Release keys("{<f1>}")
Function.Execute("Heal")
Function.Execute("TAB")
Function.Execute("Anti Macro Protector")
// Same RGB from above
if Color.At coordinate is not (RGB)("164", "0", "29", "571", "12
2")
begin
Macro.Restart("no")
end
end
// Same RGB from above
if Color.At coordinate is not (RGB)("164", "0", "29", "571", "122")
begin
Macro.Restart("no")
end
end
function("Heal")
// RGB of a part of digimon hp , preferable about 25% of your digimon HP ,
this uses Hp DISK in slot F7
if Color.At coordinate is not (RGB)("132", "29", "18", "201", "166")
begin
Keyboard.Hold keys("{<f7>}")
Keyboard.Release keys("{<f7>}")

end
// RGB of a part of digimon hp to use FOOD in slot 7 , preferably specify a
bout 50% of digimon HP
if Color.At coordinate is not (RGB)("148", "44", "31", "231", "167")
begin
Keyboard.Hold keys("7")
Keyboard.Release keys("7")
end
// RGB for Digimon DS to use DS DISK in slot F8
if Color.At coordinate is not (RGB)("0", "162", "179", "206", "181")
begin
Keyboard.Hold keys("{<f8>}")
Keyboard.Release keys("{<f8>}")
end
// RGB for TAMER DS , slot 8
if Color.At coordinate is not (RGB)("0", "206", "220", "205", "108")
begin
Keyboard.Hold keys("8")
Keyboard.Release keys("8")
end
function
function("Loot")
begin
Keyboard.Hold keys("4")
Keyboard.Release keys("4")
end
function
function("TAB")
// If target doesnt have HP, tab to next one.
if Color.At coordinate is not (RGB)("133", "26", "19", "576", "95")
and
Color.At coordinate is not (RGB)("165", "43", "34", "401", "55")
begin
Keyboard.Hold keys("{<tab>}")
Keyboard.Release keys("{<tab>}")
Function.Execute("Heal")
end
function
function("Anti Macro Protector")
begin
// Locate time progression bar when the Anti-Auto window pops up
if Color.Pixel pattern can be located on screen("207,172,0,5,0,207,17
2,0,-5,10,235,192,32,5,0,235,192,32,-5,3,249,219,45,5,0,249,219,45,-5,10,224,185
,0,5,0,224,185,0", "5")
begin
// On the time progression bar, picks automatically the (X,
Y) coordinates of the first point of the bar
Color.Wait for and locate pixel pattern("207,172,0,5,0,207,1
72,0,-5,10,235,192,32,5,0,235,192,32,-5,3,249,219,45,5,0,249,219,45,-5,10,224,18
5,0,5,0,224,185,0", "5", "X", "Y")
// Set the Xs and Ys axis on the face of the digimon to iden
tify
Variable.Evaluate (Math)("{X} + 23", "X1")
Variable.Evaluate (Math)("{X} + 33", "X2")
Variable.Evaluate (Math)("{X} + 43", "X3")
Variable.Evaluate (Math)("{Y} - 41", "Y1")
Variable.Evaluate (Math)("{Y} - 31", "Y2")

Variable.Evaluate (Math)("{Y} - 21", "Y3")


// Set the Xs and Ys axis to locates each icon
Variable.Evaluate (Math)("{X} + 20", "Xicon1")
Variable.Evaluate (Math)("{X} +70", "Xicon2")
Variable.Evaluate (Math)("{X} + 120", "Xicon3")
Variable.Evaluate (Math)("{X} + 170", "Xicon4")
Variable.Evaluate (Math)("{X} + 220", "Xicon5")
Variable.Evaluate (Math)("{Y} + 58", "Yrow1")
Variable.Evaluate (Math)("{Y} + 108", "Yrow2")
// Pick the RGB at 5 points on the face of the digimon to i
dentify
Color.Get color at coordinate (RGB)("{X1}", "{Y1}", "R1", "G
1", "B1")
Color.Get color at coordinate (RGB)("{X3}", "{Y1}", "R2", "G
2", "B2")
Color.Get color at coordinate (RGB)("{X2}", "{Y2}", "R3", "G
3", "B3")
Color.Get color at coordinate (RGB)("{X1}", "{Y3}", "R4", "G
4", "B4")
Color.Get color at coordinate (RGB)("{X3}", "{Y3}", "R5", "G
5", "B5")
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 1 ro
w 1
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon1}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon1}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon1}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon1}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon1}", "{Yrow1}", "13")
begin
Mouse.Move to coordinate("{Xicon1}", "{Yrow1}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon1}", "{Yrow1}", "
left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 2 ro
w 1
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon2}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon2}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon2}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon2}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G

5}", "{B5}", "5", "{Xicon2}", "{Yrow1}", "13")


begin
Mouse.Move to coordinate("{Xicon2}", "{Yrow1}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon2}", "{Yrow1}", "
left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 3 ro
w 1
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon3}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon3}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon3}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon3}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon3}", "{Yrow1}", "13")
begin
Mouse.Move to coordinate("{Xicon3}", "{Yrow1}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon3}", "{Yrow1}", "
left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 4 ro
w 1
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon4}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon4}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon4}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon4}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon4}", "{Yrow1}", "13")
begin
Mouse.Move to coordinate("{Xicon4}", "{Yrow1}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon4}", "{Yrow1}", "
left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 5 ro
w 1
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon5}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G

2}", "{B2}", "5", "{Xicon5}", "{Yrow1}", "13")


and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon5}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon5}", "{Yrow1}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon5}", "{Yrow1}", "13")
begin
Mouse.Move to coordinate("{Xicon5}", "{Yrow1}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon5}", "{Yrow1}", "
left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the [size=150
]icon 1 row 2[/size]
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon1}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon1}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon1}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon1}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon1}", "{Yrow2}", "13")
begin
Mouse.Move to coordinate("{Xicon1}", "{Yrow2}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon1}", "{Yrow2}", "
left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 2 ro
w 2
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon2}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon2}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon2}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon2}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon2}", "{Yrow2}", "13")
begin
Mouse.Move to coordinate("{Xicon2}", "{Yrow2}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon2}", "{Yrow2}", "

left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 3 ro
w 2
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon3}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon3}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon3}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon3}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon3}", "{Yrow2}", "13")
begin
Mouse.Move to coordinate("{Xicon3}", "{Yrow2}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon3}", "{Yrow2}", "
left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 4 ro
w 2
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon4}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon4}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon4}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R4}", "{G
4}", "{B4}", "5", "{Xicon4}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon4}", "{Yrow2}", "13")
begin
Mouse.Move to coordinate("{Xicon4}", "{Yrow2}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon4}", "{Yrow2}", "
left")
end
Macro.Pause("100")
// If the RBG picked on the face matches with the icon 5 ro
w 2
if Color.Near coordinate is within (RGB range)("{R1}", "{G1
}", "{B1}", "5", "{Xicon5}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R2}", "{G
2}", "{B2}", "5", "{Xicon5}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R3}", "{G
3}", "{B3}", "5", "{Xicon5}", "{Yrow2}", "13")
and

Color.Near coordinate is within (RGB range)("{R4}", "{G


4}", "{B4}", "5", "{Xicon5}", "{Yrow2}", "13")
and
Color.Near coordinate is within (RGB range)("{R5}", "{G
5}", "{B5}", "5", "{Xicon5}", "{Yrow2}", "13")
begin
Mouse.Move to coordinate("{Xicon5}", "{Yrow2}")
Macro.Pause("2000")
Mouse.Click at coordinate("{Xicon5}", "{Yrow2}", "
left")
end
Macro.Pause("100")
end
end
function

You might also like