Hi, i'm not a denv but I like to write some bots for my mmo's just to make the boring part and farm, I found a script to find a color and click then I maked it a little bit more usable, my problem: I want him to start all again when he cant find the color.
If the color are there then he can go for the rest of the script but if the color not there he will loop it until he find.
send I
set #startX 619
set #startY 453
set #endX 650
set #endY 482
set %color[1] 16746206 //courage
set #size size(%color)
hint #size
for #i 1 #size 2
set #a findcolor (#startX #startY #endX #endY (%color[#i])%arr workwindow)
if #a > 0
double_right %arr[1 1] %arr[1 2]
wait 1s
end_if
send I
wait 1s
End_for
(would have a sequel)
Thanks for it guys!







