Trade

Table of Contents

Methods

Accept

Syntax: Trade.Accept(TradeID, accept)

Set the accept state of the trade

Parameters:
  • TradeID (Int32): ID of the Trade (Default = -1: Pick a random active trade)
  • accept (Boolean): Set the state ofthe checkbox
Returns: Boolean

Cancel

Syntax: Trade.Cancel(TradeID)

Set the accept state of the trade

Parameters:
  • TradeID (Int32): ID of the Trade (Default = -1: Pick a random active trade)
Returns: Boolean

Offer

Syntax: Trade.Offer(TradeID, gold, platinum, quiet)

Update the amount of gold and platinum in the trade. ( client view dosen't update )

Parameters:
  • TradeID (Int32): ID of the Trade (Default = -1: Pick latest active trade)
  • gold (Int32): Amount of Gold to offer
  • platinum (Int32): Amount of Platinum to offer
  • quiet (Boolean): Suppress output (Default: false - Show warning)
Returns: Boolean

TradeList

Syntax: Trade.TradeList()

Returns the list of currently active Secure Trading gumps, sorted by LastUpdate.

Returns: List[Trade.TradeData]