Vous êtes sur la page 1sur 7

begin loop()

Function.Execute("Anti Macro Protector")


Keyboard.Hold keys("{<tab>}4")
Function.Execute("Human Pause")
Keyboard.Release keys("{<tab>}4")
Function.Execute("Human Pause")
Function.Execute("Heal")
Function.Execute("Party Check")
// RGB of the digi you want to attack
if Color.At coordinate is (RGB)("0", "141", "91", "580", "69")
begin loop()
Keyboard.Hold keys("1")
Keyboard.Release keys("1")
Keyboard.Hold keys("{<f1>}")
Keyboard.Release keys("{<f1>}")
Keyboard.Hold keys("4")
Keyboard.Release keys("4")
Function.Execute("Heal")
Function.Execute("Anti Macro Protector")
// Same co ordinates of the previous check
if Color.At coordinate is not (RGB)("0", "141", "91", "580", "69
")
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", "581", "68")
begin loop()
Keyboard.Hold keys("1")
Keyboard.Release keys("1")
Keyboard.Hold keys("{<f1>}")
Keyboard.Release keys("{<f1>}")
Keyboard.Hold keys("4")
Keyboard.Release keys("4")
Function.Execute("Heal")
Function.Execute("Anti Macro Protector")
// Same RGB from above
if Color.At coordinate is not (RGB)("164", "0", "29", "581", "68
")
begin
Macro.Restart("no")
end
end
// Same RGB from above
if Color.At coordinate is not (RGB)("164", "0", "29", "581", "68")
begin
Macro.Restart("no")
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 F7
if Color.At coordinate is not (RGB)("216", "65", "54", "110", "128")
begin
Keyboard.Hold keys("{<f7>}")
Function.Execute("Human Pause")
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)("216", "65", "54", "145", "128")
begin
Keyboard.Hold keys("7")
Function.Execute("Human Pause")
Keyboard.Release keys("7")
end
// RGB for Digimon DS to use DS DISK in slot F8
if Color.At coordinate is not (RGB)("4", "228", "243", "108", "141")
begin
Keyboard.Hold keys("{<f8>}")
Macro.Pause("50")
Keyboard.Release keys("{<f8>}")
end
// RGB for TAMER DS , slot 8
if Color.At coordinate is not (RGB)("4", "228", "243", "104", "67")
begin
Keyboard.Hold keys("8")
Macro.Pause("50")
Keyboard.Release keys("8")
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

Vous aimerez peut-être aussi