DepositBox

object DepositBox

DepositBox A utility class for depositing items, opening and closing a deposit box, and finding the closest usable bank deposit box.

Types

Amount
Link copied to clipboard
enum Amount : Enum<DepositBox.Amount>

Functions

close
Link copied to clipboard
fun close(): Boolean

Attempts to close the deposit box using mouse.

deposit
Link copied to clipboard
fun deposit(id: Int, amount: Int): Boolean
fun deposit(id: Int, amount: DepositBox.Amount): Boolean

Attempts to deposit the specified item into the deposit box.

depositAllExcept
Link copied to clipboard
fun depositAllExcept(vararg names: String?): Boolean

Deposits the players inventory excluding the specified item names.

fun depositAllExcept(vararg ids: Int): Boolean

Deposits the players inventory excluding the specified ids.

fun depositAllExcept(filter: Filter<Item>): Boolean

Deposits the players inventory excluding the items that match the provided filter.

depositInventory
Link copied to clipboard
fun depositInventory(): Boolean

Attempts to deposit the inventory into the deposit box.

depositLoot
Link copied to clipboard
fun depositLoot(): Boolean

Attempts to deposit loot into the deposit box.

depositWornItems
Link copied to clipboard
fun depositWornItems(): Boolean

Attempts to deposit the player's equipment into the deposit box.

get
Link copied to clipboard
fun get(predicate: Predicate<Item>? = null): List<Item>

{@inheritDoc}

nil
Link copied to clipboard
fun nil(): Item
opened
Link copied to clipboard
fun opened(): Boolean

Whether or not the deposit box is currently opened.

stream
Link copied to clipboard
fun stream(): DepositBoxItemStream

{@inheritDoc}