EN Runtime API 35 Trade and Vendors - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki
Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
Runtime API - Trade and Vendors
Home · C# · IDE · UO API · A–Z · Examples · Languages
Each team opens a card with C#-signatures, parameters and several independent examples.
UO.CancelTrade
Cancels the selected exchange and closes its window.
UO.ClearShopList
Removes the rules for automatic buying and selling of the active profile.
UO.ConfirmTrade
Sets the custom consent flag on the selected exchange.
UO.GetShopList
Reads the products of the last active offer of the NPC-seller. Allows you to check the type, quantity and price before buying or selling.
UO.GetTradeContainer
Returns the numeric serial of one of the two exchange containers.
UO.GetTradeOpponent
Returns the numeric serial of the partner character.
UO.GetTradeOpponentName
Returns the partner name received along with the exchange window.
UO.IsTrade
Checks for an open secure exchange window.
UO.SendShopReply
Sends the product selection to the last active offer of the NPC-seller. The direction of the transaction is determined by the offer: buying from NPC or selling to him.
UO.Shop
Prints a local list of trade lines.
UO.TradeCheck
Reads consent flags; the three-parameter form also modifies its own checkbox.
UO.TradeContainer
Returns serial of its exchange container as a hex string.
UO.TradeCount
Returns the number of open exchange windows.
UO.TradeName
Returns the partner's name from the exchange window by index from zero.
UO.TradeOpponent
Returns serial of the partner container as a hex string; this is not a ID character.
UO.VendorMenu
Uses a seller or registers a permanent menu hook.