Trade
TODO: Trade Constructors
Methods
Trade.Accept(TradeID, accept)
Trade.Accept(TradeID, accept)
Set the accept state of the trade
Parameters
TradeIDBoolean Int32
ID of the Trade (Default = -1: Pick a random active trade)
acceptBoolean
Set the state ofthe checkbox
Return
Boolean
True: Trade found, False: Trade not found
Trade.Cancel(TradeID)
Trade.Cancel(TradeID)
Set the accept state of the trade
Parameters
TradeIDInt32
ID of the Trade (Default = -1: Pick a random active trade)
Return
Boolean
True: Trade found, False: Trade not found
Trade.Offer(TradeID, gold, platinum, quiet)
Trade.Offer(TradeID, gold, platinum, quiet)
Update the amount of gold and platinum in the trade. ( client view dosen't update )
Parameters
TradeIDInt32
ID of the Trade (Default = -1: Pick latest active trade)
goldInt32
Amount of Gold to offer
platinumBoolean Int32
Amount of Platinum to offer
quietBoolean
Suppress output (Default: false - Show warning)
Return
Boolean
True: Trade found, False: Trade not found
Trade.TradeList()
Trade.TradeList()
Returns the list of currently active Secure Trading gumps, sorted by LastUpdate.
Return
List[Trade.TradeData]
A list of Player.SecureTrade objects. Each containing the details of each trade window.