Struct MerchantPurchaseBroadcast
Broadcast for purchasing an item from a merchant. Contains the interactable object's ID, item ID, index, and tab type.
public struct MerchantPurchaseBroadcast : IBroadcast
- Implements
-
IBroadcast
- Inherited Members
Fields
ID
ID of the item to purchase.
public int ID
Field Value
Index
Index of the item in the merchant's inventory.
public int Index
Field Value
InteractableID
ID of the merchant object.
public long InteractableID
Field Value
Quantity
How many of the item to buy. Clamped server-side; only ever a quantity, never a price.
public int Quantity
Field Value
Remarks
The unit price is looked up from the merchant's own template on the server and the total is multiplied there. Nothing about cost travels on this message — a client that asks for a thousand of something simply gets its request clamped to what the stack and its purse allow.
Type
Type of merchant tab (e.g., buy, sell).
public MerchantTabType Type