armthehomeless
2013-06-04 01:39:46
Having some issues banking. This function can open up the bank but instead of depositing it just finishes. I had some 'luck' by putting in a writeln before and after the Deposit(1, 27, False); Line and it seemed to work a few times then went back to not working. No idea if this is a bug or the more likely cause of something with my crap code..Any help would be very nice :)
Also please let me know if anything isn't as clear as it should be!
Also please let me know if anything isn't as clear as it should be!
function BankItems(): Boolean;
var
x, y:Integer;
begin
result:= false;
if FindObjCustom(x, y, ['xxx'],[xxxxxx], 20) then
begin
MMouse(x, y, 7, 7);
if IsUpText('xxx') then
Mouse(x, y, 1, 1, false);
ChooseOption('Bank');
/////////Fails here?\\\\\\\\\\\\
Deposit(1, 27, False);
closeBank();
result:= true;
end;
end;