philowns
2007-07-30 09:21:16
Could someone have a look over it and tell me what i could do to improve it?
(if you can understand it, its messy)
Thanks! :)
(if you can understand it, its messy)
program Fletcher;
{.include SRL/SRL.scar}
Var
Oak: Integer;
OakLong: Integer;
Procedure LoadOak;
begin;
Oak := DTMFromString('78DA639CCBC0C050C180022615BA806946289' +
'F712990286040038CA86A5601896A026A40E63410503307483413' +
'50339908353D40A296809A5E4CBF63A801854F3E0356005303006' +
'D020B24');
end;
Procedure LoadOakLong;
begin
OakLong := DTMFromString('78DA633CC9C4C0B08B910119CCAC1502D3305' +
'1C69D4035EB50D5C064E16A7601D5AC25A0E61050CD46026ACE00' +
'D51C24A0E60250CD4922D41CC5AF0600CFA80BD1');
end;
Procedure WithdrawOaks;
begin
if (FindDTM(Oak,x,y,56, 49,474, 310)) then
begin
Mouse(x,y,0,0,false);
ChooseOption(x, y, 'All');
end;
end;
Procedure CloseTheBank;
begin
Mouse(459,41,0,0,true);
Wait(400);
end;
Procedure Fletch;
begin
Mouse(585,229,0,0,true);
Wait(150);
Mouse(625,228,0,0,true);
Wait(200);
Mouse(375,414,0,0,false);
ChooseOption(x, y, 'X,');
If(FindDTM(OakLong, 688, 421,736, 468)) then
end;
Procedure BankLongBows;
begin
If(FindDTM(OakLong,688, 421,736, 468)); then
begin
Mouse(x,y,0,0,false);
Wait(500);
ChooseOption(x,y, 'All');
end;
end;
begin
LoadOak;
LoadOakLong;
Repeat
OpenBank;
WithdrawOaks;
CloseTheBank;
Fletch;
OpenBank;
BankLongBows;
Until(false);
end.Thanks! :)