Vendor

@experimental The Vendor class allow you to read list items purchased last.

Table of Contents

Properties

LastBuyList

Syntax: Vendor.LastBuyList
Returns: List[Item]

LastResellList

Syntax: Vendor.LastResellList
Returns: List[Item]

Methods

Buy

Syntax: Vendor.Buy(vendorSerial, itemName, amount, maxPrice)

Attempts to buy item from; vendor specified. The Vendor to buy from the name of; item to buy; (can be partial) amount to attempt to; buy Don't buy; them if; cost exceeds this price. default value = -1 means don't check price Returns True if a purchase is made, False otherwise Attempts to buy; item from; vendor specified. The Vendor to buy from the itemID of; type of; item to buy amount to attempt to; buy Don't buy; them if; cost exceeds this price. default value = -1 means don't check price Returns True if a purchase is made, False otherwise

Parameters:
  • vendorSerial (Int32): The Vendor to buy from
  • itemName (String): the name of; item to buy; (can be partial)
  • amount (Int32): amount to attempt to; buy
  • maxPrice (Int32): Don't buy; them if; cost exceeds this price. default value = -1 means don't check price
Returns: Boolean

BuyList

Syntax: Vendor.BuyList(vendorSerial)

Get; list of; items purchased in; last trade, with a specific Vendor.

Parameters:
  • vendorSerial (Int32): Serial of; Vendor (default: -1 - most recent trade)
Returns: List[Vendor.BuyItem]