Hello, Im a guy with very basic script knowledge and tried to modify Flight's ZMI script so I could use it for Astral runes instead. Ive used alot of hes fucntion/procedures and I managed to get it do a run. Im trying to add hes function and stuff that detects and repairs broken pouches, im getting this error however
Simba Code:
Function WithdrawRunes(Method: String): Boolean;
var
ABMP,CBMP,X,Y: Integer;
begin
Result := False;
if not LoggedIn then Exit;
if InvFull then
begin
if not BankScreen then
OpenBank
if BankScreen then //Invalid number of parameters!!!
DepositEss;
Wait(RandomRange(350, 625));
end;
end;
OpenBank looks like this
Simba Code:
procedure OpenBank;
var
X, Y, eX, eY: integer;
begin
if FindTheBank(X, Y)then
begin
GetMousePos(eX, eY);
Mouse(eX, eY, 0, 0, false);
ChooseOption('uickly');
Wait(1500 + random(100));
end;
end;
And DepositEss like this
Simba Code:
Function DepositEss: Boolean;
var
T,Slot: Integer;
begin
if not BankScreen then exit;
Slot := RandomRange(9, 20);
MouseItem(Slot, mouse_right);
Wait(RandomRange(50, 115));
WaitOption('Deposit-5', 300);
MarkTime(T);
repeat
FindNormalRandoms;
if (TimeFromMark(T) > 3000) then
Result := False;
if not InvFull then
break;
until(False)
Result := (not InvFull);
end;
Any help/suggestions or tips would be very nice!!