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

Trade

Cancels the selected exchange and closes its window.

UO.ClearShopList

Shops & Vendors

Removes the rules for automatic buying and selling of the active profile.

UO.ConfirmTrade

Trade

Sets the custom consent flag on the selected exchange.

UO.GetShopList

Shops & Vendors

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

Trade

Returns the numeric serial of one of the two exchange containers.

UO.GetTradeOpponent

Trade

Returns the numeric serial of the partner character.

UO.GetTradeOpponentName

Trade

Returns the partner name received along with the exchange window.

UO.IsTrade

Trade

Checks for an open secure exchange window.

UO.SendShopReply

Shops & Vendors

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

Shops & Vendors

Prints a local list of trade lines.

UO.TradeCheck

Trade

Reads consent flags; the three-parameter form also modifies its own checkbox.

UO.TradeContainer

Trade

Returns serial of its exchange container as a hex string.

UO.TradeCount

Trade

Returns the number of open exchange windows.

UO.TradeName

Trade

Returns the partner's name from the exchange window by index from zero.

UO.TradeOpponent

Trade

Returns serial of the partner container as a hex string; this is not a ID character.

UO.VendorMenu

Shops & Vendors

Uses a seller or registers a permanent menu hook.