John
05-18-2012, 08:26 AM
I need to simplifiy this procedure, it looks way to messy as it is.
procedure RepairPouches;
var
x, y: integer;
begin
OpenBankCw;
if Withdraw(AstralCollum, AstralRow, 1) then
if Withdraw(CosmicCollum, CosmicRow, 1) then
if Withdraw(AirCollum, AirRow, 2) then
begin
CloseBank;
if GameTab(tab_magic) then
begin
MouseBox(680, 310, 694, 318, MOUSE_LEFT);
Wait(500+random(250));
MouseBox(407, 309, 459, 317, MOUSE_LEFT);
Wait(7000+random(1000));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
SendKeys('1', 300);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
end;
end;
end;
procedure RepairPouches;
var
x, y: integer;
begin
OpenBankCw;
if Withdraw(AstralCollum, AstralRow, 1) then
if Withdraw(CosmicCollum, CosmicRow, 1) then
if Withdraw(AirCollum, AirRow, 2) then
begin
CloseBank;
if GameTab(tab_magic) then
begin
MouseBox(680, 310, 694, 318, MOUSE_LEFT);
Wait(500+random(250));
MouseBox(407, 309, 459, 317, MOUSE_LEFT);
Wait(7000+random(1000));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
SendKeys('1', 300);
Wait(800+random(250));
ClickContinue(False, True);
Wait(800+random(250));
ClickContinue(False, True);
end;
end;
end;