Class BankSession
java.lang.Object
privbot.hooks.bank.BankSession
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe Close button'sparam0: child index 11 ofCLOSE_WIDGET.static final intPacked widget id of the Close button on Orion, Roat Pkz and SpawnPK.static final intThe Deposit-All identifier onINVENTORY_ITEMS_WIDGETwhile the bank's default quantity is All.static final intPacked widget id of the Deposit worn items button on Orion, Roat Pkz and SpawnPK.static final intPacked widget id of the Deposit inventory button on Orion, Roat Pkz and SpawnPK.static final intstatic final intImpact's Close button: its menu action, with the identifier and params below.static final intstatic final intstatic final intstatic final intImpact's Deposit inventory button: its menu action, with the identifier and params below.static final intstatic final intstatic final intThe bank-side inventory's packed widget id on Orion, Roat Pkz and SpawnPK (15:3).static final intThe bank item grid's packed widget id on Orion, Roat Pkz and SpawnPK (12:13).static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringPer-item "Store-All" on the bank-side inventory widget (Elorin).static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intThe Withdraw-All identifier (CC_OP_LOW_PRIORITY) on Orion, Roat Pkz and SpawnPK. -
Method Summary
-
Field Details
-
ITEM_CONTAINER_WIDGET
public static final int ITEM_CONTAINER_WIDGETThe 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_WIDGETThe 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_WIDGETPacked widget id of the Deposit inventory button on Orion, Roat Pkz and SpawnPK.- See Also:
-
DEPOSIT_EQUIPMENT_WIDGET
public static final int DEPOSIT_EQUIPMENT_WIDGETPacked widget id of the Deposit worn items button on Orion, Roat Pkz and SpawnPK.- See Also:
-
CLOSE_WIDGET
public static final int CLOSE_WIDGETPacked widget id of the Close button on Orion, Roat Pkz and SpawnPK.- See Also:
-
CLOSE_PARAM0
public static final int CLOSE_PARAM0The Close button'sparam0: child index 11 ofCLOSE_WIDGET.param0=-1is accepted by the client and does nothing.- See Also:
-
WITHDRAW_ALL_IDENTIFIER
public static final int WITHDRAW_ALL_IDENTIFIERThe Withdraw-All identifier (CC_OP_LOW_PRIORITY) on Orion, Roat Pkz and SpawnPK.Bankreads 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_IDENTIFIERThe Deposit-All identifier onINVENTORY_ITEMS_WIDGETwhile the bank's default quantity is All. Not a fixed value:Bankresolves it by name (BankWidgetOps).- See Also:
-
IMPACT_DEPOSIT_INVENTORY_OP
public static final int IMPACT_DEPOSIT_INVENTORY_OPImpact'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_OPImpact'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
- See Also:
-
PIN_DEPOSIT_INVENTORY_ID
- See Also:
-
PIN_DEPOSIT_INVENTORY_P0
- See Also:
-
PIN_DEPOSIT_INVENTORY_WIDGET
- See Also:
-
PIN_DEPOSIT_EQUIPMENT
- See Also:
-
PIN_DEPOSIT_EQUIPMENT_ID
- See Also:
-
PIN_DEPOSIT_EQUIPMENT_P0
- See Also:
-
PIN_DEPOSIT_EQUIPMENT_WIDGET
- See Also:
-
PIN_CLOSE
- See Also:
-
PIN_CLOSE_ID
- See Also:
-
PIN_CLOSE_P0
- See Also:
-
PIN_CLOSE_WIDGET
- See Also:
-
PIN_DEPOSIT_ALL
Per-item "Store-All" on the bank-side inventory widget (Elorin).- See Also:
-
PIN_DEPOSIT_1
- See Also:
-
PIN_INVENTORY_WIDGET
- See Also:
-