Class BankSession

java.lang.Object
privbot.hooks.bank.BankSession

public final class BankSession extends Object
Bank chrome buttons: deposit-inventory, deposit-worn, close.

On Orion, Roat Pkz and SpawnPK these click the buttons by their OSRS widget ids; on Impact and Elorin, which do not use those ids, they click the server's own buttons as a player's click sends them.

Closing is never gated on isOpen(): Impact's bank-open read lies after the first open, and a false-negative skip is how closes used to no-op.

  • Field Details

    • ITEM_CONTAINER_WIDGET

      public static final int ITEM_CONTAINER_WIDGET
      The bank item grid's packed widget id on Orion, Roat Pkz and SpawnPK (12:13).
      See Also:
    • INVENTORY_ITEMS_WIDGET

      public static final int INVENTORY_ITEMS_WIDGET
      The bank-side inventory's packed widget id on Orion, Roat Pkz and SpawnPK (15:3).
      See Also:
    • DEPOSIT_INVENTORY_WIDGET

      public static final int DEPOSIT_INVENTORY_WIDGET
      Packed widget id of the Deposit inventory button on Orion, Roat Pkz and SpawnPK.
      See Also:
    • DEPOSIT_EQUIPMENT_WIDGET

      public static final int DEPOSIT_EQUIPMENT_WIDGET
      Packed widget id of the Deposit worn items button on Orion, Roat Pkz and SpawnPK.
      See Also:
    • CLOSE_WIDGET

      public static final int CLOSE_WIDGET
      Packed widget id of the Close button on Orion, Roat Pkz and SpawnPK.
      See Also:
    • CLOSE_PARAM0

      public static final int CLOSE_PARAM0
      The Close button's param0: child index 11 of CLOSE_WIDGET. param0=-1 is accepted by the client and does nothing.
      See Also:
    • WITHDRAW_ALL_IDENTIFIER

      public static final int WITHDRAW_ALL_IDENTIFIER
      The Withdraw-All identifier (CC_OP_LOW_PRIORITY) on Orion, Roat Pkz and SpawnPK. Bank reads the identifier from the slot's own actions there (BankWidgetOps); this is the fallback value.
      See Also:
    • DEPOSIT_ALL_IDENTIFIER

      public static final int DEPOSIT_ALL_IDENTIFIER
      The Deposit-All identifier on INVENTORY_ITEMS_WIDGET while the bank's default quantity is All. Not a fixed value: Bank resolves it by name (BankWidgetOps).
      See Also:
    • IMPACT_DEPOSIT_INVENTORY_OP

      public static final int IMPACT_DEPOSIT_INVENTORY_OP
      Impact's Deposit inventory button: its menu action, with the identifier and params below.
      See Also:
    • IMPACT_DEPOSIT_INVENTORY_ID

      public static final int IMPACT_DEPOSIT_INVENTORY_ID
      See Also:
    • IMPACT_DEPOSIT_INVENTORY_P0

      public static final int IMPACT_DEPOSIT_INVENTORY_P0
      See Also:
    • IMPACT_DEPOSIT_INVENTORY_P1

      public static final int IMPACT_DEPOSIT_INVENTORY_P1
      See Also:
    • IMPACT_CLOSE_OP

      public static final int IMPACT_CLOSE_OP
      Impact's Close button: its menu action, with the identifier and params below.
      See Also:
    • IMPACT_CLOSE_ID

      public static final int IMPACT_CLOSE_ID
      See Also:
    • IMPACT_CLOSE_P0

      public static final int IMPACT_CLOSE_P0
      See Also:
    • IMPACT_CLOSE_P1

      public static final int IMPACT_CLOSE_P1
      See Also:
    • PIN_DEPOSIT_INVENTORY

      public static final String PIN_DEPOSIT_INVENTORY
      See Also:
    • PIN_DEPOSIT_INVENTORY_ID

      public static final String PIN_DEPOSIT_INVENTORY_ID
      See Also:
    • PIN_DEPOSIT_INVENTORY_P0

      public static final String PIN_DEPOSIT_INVENTORY_P0
      See Also:
    • PIN_DEPOSIT_INVENTORY_WIDGET

      public static final String PIN_DEPOSIT_INVENTORY_WIDGET
      See Also:
    • PIN_DEPOSIT_EQUIPMENT

      public static final String PIN_DEPOSIT_EQUIPMENT
      See Also:
    • PIN_DEPOSIT_EQUIPMENT_ID

      public static final String PIN_DEPOSIT_EQUIPMENT_ID
      See Also:
    • PIN_DEPOSIT_EQUIPMENT_P0

      public static final String PIN_DEPOSIT_EQUIPMENT_P0
      See Also:
    • PIN_DEPOSIT_EQUIPMENT_WIDGET

      public static final String PIN_DEPOSIT_EQUIPMENT_WIDGET
      See Also:
    • PIN_CLOSE

      public static final String PIN_CLOSE
      See Also:
    • PIN_CLOSE_ID

      public static final String PIN_CLOSE_ID
      See Also:
    • PIN_CLOSE_P0

      public static final String PIN_CLOSE_P0
      See Also:
    • PIN_CLOSE_WIDGET

      public static final String PIN_CLOSE_WIDGET
      See Also:
    • PIN_DEPOSIT_ALL

      public static final String PIN_DEPOSIT_ALL
      Per-item "Store-All" on the bank-side inventory widget (Elorin).
      See Also:
    • PIN_DEPOSIT_1

      public static final String PIN_DEPOSIT_1
      See Also:
    • PIN_INVENTORY_WIDGET

      public static final String PIN_INVENTORY_WIDGET
      See Also: