Class BankWidgetOps
Why (Orion, 2026-11-04): Orion's bundled unethicalite Bank used fixed identifiers, and two were wrong. Withdraw-10 sent identifier 7,
which is Withdraw-All: the Orion capture of 2026-09-14 records "Withdraw-All" as CC_OP_LOW_PRIORITY id 7, and
both tables in Orion's own client jar agree (RuneLite's ShiftWithdrawMode: Withdraw-1 2, -5 3, -10 4, -All 7;
unethicalite's Bank.WithdrawOption: ONE 2, FIVE 3, TEN 4, ALL 7). So every withdraw10 (Builder flows,
Rule Engine) emptied the stack. Withdraw-1 sent identifier 1, which is "Withdraw-ShiftDepositMode puts Deposit-1 at 3 and Deposit-All at 8: identifier 2 is not a fixed Deposit-All.
Bank.withdraw does what this class does: it finds the option by NAME on the
slot's actions (Item.getActionIndex) and dispatches that index. An identifier is the action index + 1, and ops
above 5 are CC_OP_LOW_PRIORITY (the captured Withdraw-All). When the actions cannot be read the caller refuses:
an unreadable menu is not a reason to guess an op.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe actions were read and none is the wanted option.static final intThe slot's actions could not be read (no client, container not loaded, no child at that slot). -
Method Summary
Modifier and TypeMethodDescriptionstatic intidentifier(String[] actions, String option) Pure: index + 1 of the first action equal tooption(tags, case and padding ignored), elseABSENT.static intidentifier(net.runelite.api.Client client, int packedContainer, int slot, String option) The 1-based menu identifier ofoptionon childslotofpackedContainer.static net.runelite.api.MenuActionmenuAction(int identifier) RuneLite's convention for widget ops: 1-5 areCC_OP, 6-10CC_OP_LOW_PRIORITY.
-
Field Details
-
UNREADABLE
public static final int UNREADABLEThe slot's actions could not be read (no client, container not loaded, no child at that slot).- See Also:
-
ABSENT
public static final int ABSENTThe actions were read and none is the wanted option.- See Also:
-
-
Method Details
-
identifier
public static int identifier(net.runelite.api.Client client, int packedContainer, int slot, String option) The 1-based menu identifier ofoptionon childslotofpackedContainer. -
identifier
-