Vendor
Fields:
BuyPriceModifier number
This vendor's buy price modifier. (for items the vendor is buying) (rate * itemValue)
Category ObjectType
The type of items this vendor will buy
CurrencyName string
The name of the currency this vendor accepts
CurrencyType number
The weenie class id of the currency this vendor accepts
IsOpen boolean
Returns true if a vendor window is open
Items ItemProfile[]
The items the vendor has for sale
Magic number
Magic ?? (I think this is a flag for if the vendor sells magical items, why do we care?)
MaxBuyValue number
The maximum value item this vendor will buy
MinBuyValue number
The lowest value item this vendor will buy
PlayerCurrencyAmount number
The amount of vendor currency the current character has
SellPriceModifier number
This vendor's sell price modifier. (for items the vendor is selling) (rate * itemValue)
VendorId number
The objectId of the currently opened vendor
Events:
Methods:
AddToBuyList() : nil
GetPropertyKeys() : string[]
Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts
ToString() : string
Returns a string that represents the current object.