Table of Contents

Struct MerchantPurchaseBroadcast

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

int

Index

Index of the item in the merchant's inventory.

public int Index

Field Value

int

InteractableID

ID of the merchant object.

public long InteractableID

Field Value

long

Quantity

How many of the item to buy. Clamped server-side; only ever a quantity, never a price.

public int Quantity

Field Value

int

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

Field Value

MerchantTabType