Machu
07-23-2014, 06:39 PM
Okay, i want my bot to click a runecrafting portal so he will exit, but the problem is because he change of color my bot has some problems detecting the right color.
I would like to know if someone could help me to add more color to find so he wont have to wait 30 sec to click because he cannot find the color.
repeat
mainscreen.findObject(x, y, 7379868, 10, colorSetting(2, 0.00, 0.11), mainscreen.playerPoint, 30, 30, 10, ['nter', 'Portal'], MOUSE_LEFT);
mouse(x+gaussRangeInt(50,270),y-gaussRangeInt(70,230),8,8,MOUSE_MOVE);
wait(gaussRangeInt(1500,3500));
if not IsInAltar() then
exit;
inc(i);
until (i > 12);
P.S Sorry for my grammar.
I would like to know if someone could help me to add more color to find so he wont have to wait 30 sec to click because he cannot find the color.
repeat
mainscreen.findObject(x, y, 7379868, 10, colorSetting(2, 0.00, 0.11), mainscreen.playerPoint, 30, 30, 10, ['nter', 'Portal'], MOUSE_LEFT);
mouse(x+gaussRangeInt(50,270),y-gaussRangeInt(70,230),8,8,MOUSE_MOVE);
wait(gaussRangeInt(1500,3500));
if not IsInAltar() then
exit;
inc(i);
until (i > 12);
P.S Sorry for my grammar.