Merchant¶
Object that interacts with the currently active merchant.
Forms¶
merchant Merchant¶
Associated DataTypes¶
merchant¶
- This contains information related to the active merchant.
-
Members
This type inherits members from spawn if a merchant is active.
bool
Full¶- Returns True if the merchant's inventory is full.
item
Item[#]¶- Item number # on the merchant's list.
item
Item[name]¶- Find an item by partial name on the merchant's list. Prefix with "=" for an exact match.
int
Items¶- Number of items on the merchant.
bool
ItemsReceived¶- True if the merchant's item list has been populated.
float
Markup¶-
The number used to calculate the buy and sell value for an item. (This is what is changed by charisma and faction). This value is capped at 1.05.
- Amount you buy item for = Item Value * Markup
- Amount you sell item for = Item Value * (1/Markup)
bool
Open¶- Returns True if the merchant window is open.
item
SelectedItem¶- The currently selected item in the merchant window. Items can be selected by using /selectitem or the
SelectItemmethod
string
(To String)¶- Same as Open
Usage¶
/echo ${Merchant.Name}
Echos the name of the currently open merchant.