quando o if targert > 0 ele da break e continuar de onde parou tem como ?
Code: Select all
loop{
if (target = 0){
if (cave=1)
If (t = 0)
x=%house_pos_x1%
y=%house_pos_y1%
GuiControl,, andando, 1
t:= 1
gosub, show_it ;~1
}
if (target = 0) {
if (cave2 = 1)
If (t = 1)
x= %house_pos_x2%
y= %house_pos_y2%
GuiControl,, andando, 2
t:= 2
gosub, show_it ;~2
}
if (target = 0){
if (cave3 = 1)
If (t = 2)
x= %house_pos_x3%
y= %house_pos_y3%
GuiControl,, andando, 3
t:= 3
gosub, show_it ;~3
}
if (target = 0){
if (cave4 = 1)
If (t = 3)
x= %house_pos_x4%
y= %house_pos_y4%
GuiControl,, andando, 4
t:= 4
gosub, show_it ;~4
}
if (target = 0){
if (cave5 = 1)
If (t = 4)
x= %house_pos_x5%
y= %house_pos_y5%
GuiControl,, andando, 5
t:= 5
gosub, show_it ;~5
}
if (target = 0){
if (cave6 = 1)
If (t = 5)
x= %house_pos_x6%
y= %house_pos_y6%
GuiControl,, andando, 6
t:= 6
gosub, show_it ;~6
}
if (target = 0){
if (cave7 = 1)
If (t = 6)
x= %house_pos_x7%
y= %house_pos_y7%
GuiControl,, andando, 7
t:= 7
gosub, show_it ;~7
}
if (target = 0){
if (cave8 = 1)
If (t = 7)
x= %house_pos_x8%
y= %house_pos_y8%
GuiControl,, andando, 8
t:= 0
gosub, show_it ;~8
}
}}}
return
show_it:
{
posx := mem.write(addressmana + 0x154 ,x, "int")
posy := mem.write(addressmana + 0x15c ,y, "int")
settimer, clicar, 300
sleep, 400
settimer, clicar, off
Sleep, %tempo%
}
return