joelster134
2008-09-19 08:39:24
Hey this is my first attempt at a willow woodcutter and banker (In DRAYNOR) please psot what im doing wrong /suggestions. and alos please tell me what i should start wth scripting first. and if im trying to hard to early :)
HERE IT IS:
program joelster134_v1;
var
G, F, X, Y, Z, A, B, C, E, S: Integer;
begin
if (findcolor(X, Y, 346525, 235, 235, 255, 236))then
begin
movemousesmooth(X, Y);
ClickMouse(X, Y, True);
wait(1000+random(7500)); //walking to trees procedure
end;
begin;
if (findcolor(G, F, 234556, 463, 346, 346, 767)) then
movemousesmooth(G, F);
Clickmouse(G, F, True);
wait(15000)
clickmouse(G, F, True);
wait(10000)
end; //cutting tree first time
begin;
if (findcolor(Z, A, 32546, 345, 767, 867, 453)) then
movemousesmooth(Z, A,);
clickmouse(Z, A, True);
wait(15000)// cutting tree second time
end;
begin;
if (findcolor(B, C, 2562634, 463 ,346, 634, 342))then
movemousesmooth(B, C);
Clickmouse(B, C, True);
wait(15000) //move to bank
movemousesmooth(325, 235);
clickmouse(325, 235, True); //right click on banker
wait(1500)
movemousesmooth(255, 234);
clickmouse(255, 234, True);//opens bank window
end;
begin;
if (find(E, S, 2352456, 234, 235, 657, 346))then
movemousesmooth(E, S);
Clickmouse(E, S, True);//stores logs
wait(1500)
movemousesmooth(214, 235);
clickmouse(214, 235, True);
wait(2500)
movemousesmooth(235, 266);
clickmouse(235, 266, True); //exits bank
end;
repeat
until false;
end;
begin;
writel('Thank you for using joelster134''s'' cutter and banker')
end;
end.
HERE IT IS:
program joelster134_v1;
var
G, F, X, Y, Z, A, B, C, E, S: Integer;
begin
if (findcolor(X, Y, 346525, 235, 235, 255, 236))then
begin
movemousesmooth(X, Y);
ClickMouse(X, Y, True);
wait(1000+random(7500)); //walking to trees procedure
end;
begin;
if (findcolor(G, F, 234556, 463, 346, 346, 767)) then
movemousesmooth(G, F);
Clickmouse(G, F, True);
wait(15000)
clickmouse(G, F, True);
wait(10000)
end; //cutting tree first time
begin;
if (findcolor(Z, A, 32546, 345, 767, 867, 453)) then
movemousesmooth(Z, A,);
clickmouse(Z, A, True);
wait(15000)// cutting tree second time
end;
begin;
if (findcolor(B, C, 2562634, 463 ,346, 634, 342))then
movemousesmooth(B, C);
Clickmouse(B, C, True);
wait(15000) //move to bank
movemousesmooth(325, 235);
clickmouse(325, 235, True); //right click on banker
wait(1500)
movemousesmooth(255, 234);
clickmouse(255, 234, True);//opens bank window
end;
begin;
if (find(E, S, 2352456, 234, 235, 657, 346))then
movemousesmooth(E, S);
Clickmouse(E, S, True);//stores logs
wait(1500)
movemousesmooth(214, 235);
clickmouse(214, 235, True);
wait(2500)
movemousesmooth(235, 266);
clickmouse(235, 266, True); //exits bank
end;
repeat
until false;
end;
begin;
writel('Thank you for using joelster134''s'' cutter and banker')
end;
end.