Lua API
On this page

Vendor

Inherits from

Fields:

BuyPriceModifier number

read only

This vendor's buy price modifier. (for items the vendor is buying) (rate * itemValue)

Category ObjectType

read only

The type of items this vendor will buy

CurrencyName string

read only

The name of the currency this vendor accepts

CurrencyType number

read only

The weenie class id of the currency this vendor accepts

IsOpen boolean

read only

Returns true if a vendor window is open

Items ItemProfile[]

read only

The items the vendor has for sale

Magic number

read only

Magic ?? (I think this is a flag for if the vendor sells magical items, why do we care?)

MaxBuyValue number

read only

The maximum value item this vendor will buy

MinBuyValue number

read only

The lowest value item this vendor will buy

PlayerCurrencyAmount number

read only

The amount of vendor currency the current character has

SellPriceModifier number

read only

This vendor's sell price modifier. (for items the vendor is selling) (rate * itemValue)

VendorId number

read only

The objectId of the currently opened vendor

Events:

OnClosed EventArgs

Raised when a vendor window is closed.

OnOpened EventArgs

Raised when a vendor window is opened.

Methods:

AddToBuyList() : nil

Returns:nil

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string