stopkiller
2014-12-01 01:00:29
So I have the skeleton of my mist rune making script up and running but its pretty dirty. One thing I wanted to ask is, I have my procedure for finding the alter and the exit portal set up at such
Obviously this is not the most efficient way to do things. During the repeat until loop, how can I get it to move on to the next step if it successfully finds what its looking for? In TheMayor's tutorial he has it like this for opening a bank deposit box
what is the equivalent of "depositBox.isOpen()" for successfully finding the object i'm using ACA to look for?
procedure clickwater();
var
x, y, i: integer;
begin
repeat
mainscreen.findObject(x, y, 6511456, 3, colorSetting(2, 0.90, 0.55), mainscreen.playerpoint, 50, 50, 10, ['alisman', 'ltar'], MOUSE_MOVE);
wait(randomRange(1000, 2000));
inc(i);
until (i >= 3);
fastClick(MOUSE_LEFT)
end;Obviously this is not the most efficient way to do things. During the repeat until loop, how can I get it to move on to the next step if it successfully finds what its looking for? In TheMayor's tutorial he has it like this for opening a bank deposit box
repeat
mainscreen.findObject(x, y, 5270142, 5, colorSetting(2, 0.07, 0.15), mainscreen.playerPoint, 30, 50, 50, ['eposit', 'box'], MOUSE_LEFT);
wait(randomRange(1000, 2000));
inc(i);
until depositBox.isOpen() or (i >= 15);what is the equivalent of "depositBox.isOpen()" for successfully finding the object i'm using ACA to look for?