Bank

open class Bank

Utilities for interacting with the Runescape bank.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun close(): Boolean
Closes the banking interface.
Link copied to clipboard
open fun contains(itemId: Array<Int>): Boolean
Determines if the bank contains the given itemId by looking through the banking interface.
open fun contains(name: Array<String>): Boolean
Checks if any bank item exists with the specified name
open fun contains(filter: Predicate<Item>): Boolean
Checks if any bank item exists matching the specified filter
Link copied to clipboard
open fun deposit(itemId: Int, amount: Int): Boolean
Deposits the specified amount of an item with the specified id
open fun deposit(itemName: String, amount: Int): Boolean
Deposits the specified amount of an item with the specified name
open fun deposit(item: InventoryItem, amount: Int): Boolean
Deposits the specified quantity of the specified item
Link copied to clipboard
open fun depositAll(itemId: Int): Boolean
Deposits all of an item with the specified id
open fun depositAll(itemName: String): Boolean
Deposits all of an item with the specified name
Deposits all of the specified item
Link copied to clipboard
open fun depositAllExcept(ids: Array<Int>): Int
open fun depositAllExcept(names: Array<String>): Int
Deposits all of the inventory items.
Link copied to clipboard
Deposits all equipment
Link copied to clipboard
Deposits the entire inventory
Link copied to clipboard
open fun ensureOpen(): Boolean
Ensures the bank is open.
Link copied to clipboard
open fun getAll(): List<Item>
Gets all the items from the banking interface.
Link copied to clipboard
open fun getCount(itemId: Array<Int>): Int
Sums the item stacks of the bank items with the specified item ids
open fun getCount(name: Array<String>): Int
Sums the item stacks of the bank items with the specified item names
open fun getCount(filter: Predicate<Item>): Int
Sums the item stacks of the bank items matching the specified filter
Link copied to clipboard
Determines if the deposit box interface is open.
Link copied to clipboard
open fun isNearby(): Boolean
Determines if the player character is in a bank by looking for Bank objects/npcs within 15 tiles.
Link copied to clipboard
open fun isOpen(): Boolean
Determines if the banking interface is open.
Link copied to clipboard
open fun open(): Boolean
Finds the best banking object/npc in the 15 tile area and interacts with it to open the banking interface.
Link copied to clipboard
open fun withdraw(itemId: Int, amount: Int): Boolean
Withdraws the specified amount of an item with the specified id
open fun withdraw(itemName: String, amount: Int): Boolean
Withdraws the specified amount of an item with the specified name
open fun withdraw(item: Item, amount: Int): Boolean
Withdraws the specified amount of the specified item
Link copied to clipboard
open fun withdrawAll(itemId: Int): Boolean
Withdraws all of an item with the specified id
open fun withdrawAll(itemName: String): Boolean
Withdraws all of an item with the specified name
open fun withdrawAll(item: Item): Boolean
Withdraws all of the specified item