
Originally Posted by
Deadly Serious
Thanks Failure and Cruizing.
I wanted a more complex withdrawing system but I suck at coding and need a lot of help.
I'll test it out now, hopefully it works. Then all I have to worry about is the walking.
Simba Code:
Procedure Banking;
var
EssDTM: Integer;
x, y:Integer;
begin;
if not openbanknpc then exit;
begin
OpenBankNpc;
DepositAll;
end;
begin
EssDTM := DTMFromString('m5wEAAHictc47CoAwEEXRuAoXFHADioUavyj+UBRF3b03MIWVXQInxfCYeb5SqkIoIsRIUKLFgBkL1g87m9BLrkaBVHaEn4zN7zhx4xEXDmyyf0SHRu7nMMiEkb42E2jN7zni7rlq/NP6BUcFE2U=');
If FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2) then //Changed it here used MainScreen for example but you need those coords for where to find the DTM.)
begin
WriteLn('Found the essence DTM');
Mouse(x, y, 5, 5, False);
Wait(50+random(300));
ChooseOption('All');
end;
end;
FreeDTM(EssDTM);
end;
This is my latest version with all your changes. I'm using it in Varrock West Bank.
It opens the bank, deposits all and then just says: Successfully executed.
Without finding the ess or even right clicking it.
first thing i see is this
Simba Code:
if not openbanknpc then exit;
begin
OpenBankNpc;
DepositAll;
end;
i would do
Simba Code:
if not openbanknpc then
begin
exit;
end else
OpenBankNpc;
DepositAll;
end;
and for this the first begin is not needed
Simba Code:
begin
EssDTM := DTMFromString('m5wEAAHictc47CoAwEEXRuAoXFHADioUavyj+UBRF3b03MIWVXQInxfCYeb5SqkIoIsRIUKLFgBkL1g87m9BLrkaBVHaEn4zN7zhx4xEXDmyyf0SHRu7nMMiEkb42E2jN7zni7rlq/NP6BUcFE2U=');
If FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2) then //Changed it here used MainScreen for example but you need those coords for where to find the DTM.)
begin
WriteLn('Found the essence DTM');
Mouse(x, y, 5, 5, False);
Wait(50+random(300));
ChooseOption('All');
end;
end;
FreeDTM(EssDTM);
end;
Again i would do it like so...
Simba Code:
EssDTM := DTMFromString('m5wEAAHictc47CoAwEEXRuAoXFHADioUavyj+UBRF3b03MIWVXQInxfCYeb5SqkIoIsRIUKLFgBkL1g87m9BLrkaBVHaEn4zN7zhx4xEXDmyyf0SHRu7nMMiEkb42E2jN7zni7rlq/NP6BUcFE2U=');
If FindDTM(EssDTM, x, y, MIX1, MIY1, MIX2, MIY2) then //Changed it here used MainScreen for example but you need those coords for where to find the DTM.)
begin
WriteLn('Found the essence DTM');
Mouse(x, y, 5, 5, False);
Wait(50+random(300));
ChooseOption('All');
end;
FreeDTM(EssDTM);
end;
it all seems ok for me just a extra begin you didn't need
let me know how it goes