I have a looped banking function, so it will retry after it fails this first time sometimes, but how is this even possible?
The first part of the function:
Simba Code:
function S_WithdrawItem(Item, Amount: Integer; InStack: Boolean): Boolean;
var
Start, Tries, TrueAmount, StartInv: Integer;
begin
if not(LoggedIn or R_BankScreen) then Exit;
if(Amount = 0)then TrueAmount := (28 - InvCount)
else TrueAmount := Amount;
StartInv := R_CountItemID(Item);
Debug('Amount: ' + IntToStr(Amount) + '. TrueAmount: ' + IntToStr(TrueAmount));
Debug('Withdrawing (ID: ' + IntToStr(Item) + ') (Amount: ' + IntToStr(TrueAmount) + ')');
Output:
Simba Code:
Activity[0]: Amount: 0. TrueAmount: 0
Activity[0]: Withdrawing (ID: 444) (Amount: 0)
I basically send it:
S_WithdrawItem(444, 0, False);
When Amount comes in as 0 (which will withdraw via 'Withdraw-All'), the TrueAmount somehow doesn't get updated sometimes even though I have that block right in front.
Edit: This is right after a R_DepositAllButID(NatureRune)... I just watched it and I think I need to add a wait because the withdraw still detects the bars immediately after being deposited and InvCount still shows as 28.




Reply With Quote









