Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

TradeCount

Returns the number of currently active secure trade windows.

Returns 0 if no trades are active or the character is not connected.

Возвращает количество активных окон безопасной торговли.

Возвращает 0, если торговых окон нет или персонаж не подключён.

Pascal

function TradeCount: Byte;

Python

def TradeCount() -> int: ...

Pascal Example

begin
  AddToSystemJournal('Active trades: ' + IntToStr(TradeCount));
end.

Python Example

AddToSystemJournal(f'Active trades: {TradeCount()}')

See Also

IsTrade, GetTradeContainer, GetTradeOpponent