So, here is my current script, I know it's probably sloppy as hell and not the best way to do what I'm trying to do, but my current goal is to get it to do a full inventory of potions(I'm making a herblore script)
So far it can open the bank, empty inventory, withdraw 14 vials of water and 14 herbs, close bank, then use the vial of water on herb. What's the best way of clicking the make all button? And maybe a better way of withdrawing from the bank?
Simba Code:
program New;
{$DEFINE SMART}
{$i srl/srl.simba}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
end;
Procedure BankChest;
var
x, y: Integer;
begin
begin
OpenBankChest(SRL_BANK_SW);
Wait(1000+random(200));
DepositAll;
Wait(1000+random(200));
if FindObj(x, y, 'ithdraw-1', 11763319, 5) then
Mouse(x, y, 3, 3, false);
ChooseOption('ithdraw-14');
Wait(500+random(100));
if FindObj(x, y, 'ithdraw-1', 607786, 1) then
Mouse(x, y, 3, 3, false);
ChooseOption('ithdraw-14')
CloseBank;
Wait(1000+random(200));
InvMouse(1, 1);
Wait(20+random(200));
InvMouse(15, 1);
end;
end;
begin
SetUpSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
BankChest;
end.