Store

object Store

Functions

buy
Link copied to clipboard
fun buy(itemId: Int, buyAction: Int): Boolean

Attempts to buy items from the store using increments of 1,5,10,50 corresponding to the buy action

close
Link copied to clipboard
fun close(): Boolean

Closes the store by pressing the top right button

getItem
Link copied to clipboard
fun getItem(itemId: Int): Component

Gets the component of a specific item in the store

items
Link copied to clipboard
fun items(): Array<Component>

Gets the list of items in the store

open
Link copied to clipboard
fun open(vararg npcNames: String): Boolean

Opens the store by talking to a nearby NPC

opened
Link copied to clipboard
fun opened(): Boolean

Checks if a store if currently open

setBuyQuantity
Link copied to clipboard
fun setBuyQuantity(quantity: Int): Boolean

Sets the buy quantity in the store

shopName
Link copied to clipboard
fun shopName(): String?

Returns the name of the store currently open

Properties

buyQuantity
Link copied to clipboard
val buyQuantity: Int

Gets the buy quantity current selected in the store.