Vendor
@experimental The Vendor class allow you to read the list items purchased last.
TODO: Vendor Constructors
Properties
Vendor.LastBuyListList[Item]
Vendor.LastBuyListList[Item]
Vendor.LastResellListList[Item]
Vendor.LastResellListList[Item]
Methods
Vendor.Buy(vendorSerial, itemName, amount, maxPrice)
Vendor.Buy(vendorSerial, itemName, amount, maxPrice)
Attempts to buy the item from the vendor specified. The Vendor to buy from the name of the item to buy (can be partial) amount to attempt to buy Don't buy them if the cost exceeds this price. default value = -1 means don't check price Returns True if a purchase is made, False otherwise Attempts to buy the item from the vendor specified. The Vendor to buy from the itemID of the type of item to buy amount to attempt to buy Don't buy them if the cost exceeds this price. default value = -1 means don't check price Returns True if a purchase is made, False otherwise
Parameters
vendorSerialInt32
The Vendor to buy from
itemNameInt32 String
the itemID of the type of item to buy the name of the item to buy (can be partial)
amountInt32
amount to attempt to buy
maxPriceInt32
Don't buy them if the cost exceeds this price. default value = -1 means don't check price
Return
Boolean
Vendor.BuyList(vendorSerial)
Vendor.BuyList(vendorSerial)
Get the list of items purchased in the last trade, with a specific Vendor.
Parameters
vendorSerialInt32
Serial of the Vendor (default: -1 - most recent trade)
Return
List[Vendor.BuyItem]
A list of BuyItem
Vendor.StoreSellList(p, args)
Vendor.StoreSellList(p, args)
Parameters
pPacketReader argsPacketHandlerEventArgs
Return
Void