Herbs N Tea
2013-05-22 09:36:52
I've only discovered simba about a week ago, started botting and wanted to start making my own scripts. So I read some guides and started making my own script two days ago. It's really really basic, has no antibans or antirandoms nothing like that.
My script seems to work, but when it starts his second run through the main loop he just skips the first procedure wich is banking;
( the script should withdraw supplies from the pest control bank, then make prayer potions and bank them - repeat )
My main loop:
My banking procedure:
So what happens is, the script succesfully logs in, opens the bank and withdraws supplies from 1st and 2nd bank slot, it closes the bank and makes the pots. Than when it should bank again, it doesn't and skips to procedure ClickHerb; OR it opens the bank and than skips to procedure Clickpot/Clickherb.
I'm not sure what to do, any help or tips would be greatly appreciated
My script seems to work, but when it starts his second run through the main loop he just skips the first procedure wich is banking;
( the script should withdraw supplies from the pest control bank, then make prayer potions and bank them - repeat )
My main loop:
var
t : Integer;
begin
Setup;
repeat
Banking;
ClickPot;
ClickHerb;
Mixing;
MarkTime(t);
while ExistsItem(28) do
begin
wait(100);
if TimeFromMark(t) > 20000 then
begin
writeln('Took to much time to complete inv. Breaking out of loop');
Break;
end;
end;
writeln('We made potions!');
until not (LoggedIn);
Terminatescript;
end. My banking procedure:
procedure Banking;
var
I : Integer;
begin
MakeObj('bank', 5599869, 2, 0.22, 0.53, [ 'ank', 'ank', 'ooth'], ['ank']);
if (ExistsItem(27)) then
begin
Writeln('Starting to make potions');
end else
begin
SmartColors('bank');
wait(400 + random(100));
if (BankScreen = True) then
begin
DepositAll;
wait(150 + random(63));
Withdraw(0, 0, 14);
wait(150 + random(67));
Withdraw(1, 0, 0);
wait(100 + random(95));
CloseBank;
end else
I := 1;
repeat
SmartColors('bank');
I := (I + 1);
wait(1000 + random(224));
until (I = 5);
end;
end; So what happens is, the script succesfully logs in, opens the bank and withdraws supplies from 1st and 2nd bank slot, it closes the bank and makes the pots. Than when it should bank again, it doesn't and skips to procedure ClickHerb; OR it opens the bank and than skips to procedure Clickpot/Clickherb.
I'm not sure what to do, any help or tips would be greatly appreciated