Skip to content

Commit b0d216f

Browse files
authored
Merge pull request #1675 from irkedMATT/feat-Adds-newbankIDs-emptyContainers
feat: Added bank IDs and container emptying utility
2 parents 10bf3b8 + 8a87c55 commit b0d216f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/bank/Rs2Bank.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,25 @@ public static boolean depositAll(String name) {
10911091
return depositAll(name, false);
10921092
}
10931093

1094+
/**
1095+
* Empty containers using the "Empty containers" button
1096+
* This button empties all containers like log baskets, herb sacks, etc. directly to the bank
1097+
*
1098+
* @return true if containers were emptied successfully, false otherwise
1099+
*/
1100+
public static boolean emptyContainers() {
1101+
Microbot.status = "Empty containers";
1102+
if (!Rs2Bank.isOpen()) return false;
1103+
1104+
Widget widget = Rs2Widget.getWidget(786471); // Empty containers button ID
1105+
if (widget == null) return false;
1106+
1107+
Rs2Widget.clickWidget(widget);
1108+
sleep(1000, 2000); // Wait for containers to be emptied
1109+
1110+
return true;
1111+
}
1112+
10941113
/**
10951114
* deposit all items
10961115
*/

runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/gameobject/Rs2BankID.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class Rs2BankID {
4141
49558, 49559, 49560, 49612, 49613, 49614, 49615, 49616, 49617, 49618, 50061, 50530, 50531, 50741, 50748, 50863, 50864, 50865,
4242
50866, 50867, 50868, 50869, 50895, 50896, 50901, 50902, 51346, 51347, 51515, 51516, 51616, 51617, 52003, 52005, 52006, 52007,
4343
52008, 52396, 52397, 52813, 52814, 52915, 53014, 53015, 53260, 53950, 53951, 53952, 53953, 54117, 54372, 54373, 54374, 54375,
44-
54376, 54377, 54515, 54516, 54672, 54736, 54737, 54741, 54742, 54773, 54774, 54933, 54934, 55085, 55199, 55235, 55236, 57330
44+
54376, 54377, 54515, 54516, 54672, 54736, 54737, 54741, 54742, 54773, 54774, 54933, 54934, 55085, 55199, 55235, 55236, 57330,
45+
58627, 58628, 58629, 58630, 58128 // Charred Island, Sunbleak, and Deepfin bank chests
4546
};
4647
}

0 commit comments

Comments
 (0)