File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed
osrs/interfaces/mainscreen Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -707,8 +707,7 @@ begin
707707 Result := Self.ClearSearch() and
708708 Chat.AnswerQuery('Show items', '', Random(2000, 2500));
709709end;
710-
711-
710+
712711(*
713712## Bank.HasIncinerator
714713```pascal
@@ -1135,6 +1134,37 @@ begin
11351134 if Inventory.Items.Find(item, slot) then
11361135 Result := Self._InteractionHelper(ERSBankInteraction.DEPOSIT, slot, 1, useQuantityButton);
11371136end;
1137+ (*
1138+ ##Bank.DepositInventory
1139+ ```pascal
1140+ function TRSbank.DepositInventory: Boolean;
1141+ ```
1142+ Deposits All Items In Inventory into the bank. Doesn't close bank after depositing.
1143+ Example:
1144+ ```pascal
1145+ Procedure Test;
1146+
1147+ begin
1148+ Map.Setup([ERSChunk.VARROCK]);
1149+ bank.DepositInventory;
1150+ end;
1151+ ```
1152+ *)
1153+
1154+ function TRSBank.DepositInventory: Boolean;
1155+ begin
1156+ begin
1157+ If bank.open Then
1158+ Bank.DynamicButtons[ERSBankDynamicButtons.DEPOSIT_INVENTORY].Click(EMouseButton.LEFT)
1159+ Else Bank.open;
1160+ Result:=True;
1161+ end;
1162+ begin
1163+ If not Inventory.slots.CountEmpty then
1164+ Bank.DynamicButtons[ERSBankDynamicButtons.DEPOSIT_INVENTORY].Click(EMouseButton.LEFT);
1165+ Result:=True;
1166+ end;
1167+ end;
11381168
11391169
11401170(*
You can’t perform that action at this time.
0 commit comments