| tags |
|
|---|
This is the type for your bank (not including shared bank or other bank features).
: How many bag slots (base slots for bags/items) your bank has.
: How many free (empty) slots your bank has. This includes slots where you have a bag and the bag has empty slots. It accepts an index specifying one of the case insensitive bag sizes (tiny, small, medium, large, giant) or the corresponding number (0, 1, 2, 3, 4). An invalid string specifying size will return NULL. Specifying a numeric value less than 0 will use 0 and a value greater than 4 will use 4.
: How many total slots your bank has. This includes slots where you have a bag and the bag has items in. It accepts an index specifying one of the bag sizes or the corresponding number (see FreeSlots for a longer explanation).
: How much platinum you have in your bank.
: How much gold you have in your bank.
: How much silver you have in your bank.
: How much copper you have in your bank.
!!! Example
=== "MQScript"
How many giant items can I add to my bank?
```
/echo ${Inventory.Bank.FreeSlots[giant]}
```
or
```
/echo ${Inventory.Bank.FreeSlots[4]}
```
How many total slots are there in my bank?
```
/echo ${Inventory.Bank.TotalSlots}
```
How many large slots are there in my bank (used and unused)?
```
/echo ${Inventory.Bank.TotalSlots[large]}
```
or
```
/echo ${Inventory.Bank.TotalSlots[3]}
```
=== "Lua"
How many giant items can I add to my bank?
```lua
print(mq.TLO.Inventory.Bank.FreeSlots('giant')())
```
or
```lua
print(mq.TLO.Inventory.Bank.FreeSlots(4)())
```
How many total slots are there in my bank?
```lua
print(mq.TLO.Inventory.Bank.TotalSlots())
```
How many large slots are there in my bank (used and unused)?
```lua
print(mq.TLO.Inventory.Bank.TotalSlots('large')())
```
or
```lua
print(mq.TLO.Inventory.Bank.TotalSlots(3)())
```