Tribot SDK
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Tribot SDK
script-sdk
/
org.tribot.script.sdk
/
TradeScreen
Trade
Screen
open
class
TradeScreen
Utilities for interacting with the "trading" interface that appears for player-to-player trades.
Members
Constructors
Trade
Screen
Link copied to clipboard
constructor
(
)
Types
My
Player
Link copied to clipboard
open
class
MyPlayer
My player's trade screen information
Other
Player
Link copied to clipboard
open
class
OtherPlayer
The other player's trade screen information
Stage
Link copied to clipboard
enum
Stage
The trade window stage
Functions
accept
Link copied to clipboard
open
fun
accept
(
)
:
Boolean
Clicks the accept button on either the first or second trade window, and will wait for the trade interface to change.
close
Link copied to clipboard
open
fun
close
(
)
:
Boolean
Closes the trading window, and waits for the window to close.
get
Stage
Link copied to clipboard
open
fun
getStage
(
)
:
Optional
<
TradeScreen.Stage
>
Gets the stage of the current trade.
is
Delayed
Link copied to clipboard
open
fun
isDelayed
(
)
:
Boolean
Checks accepting is delayed because something was changed recently in the trade
offer
Link copied to clipboard
open
fun
offer
(
itemId
:
Int
,
amount
:
Int
)
:
Boolean
Offers the items whose ID matches the specified ID to the first trade window.
offer
All
Link copied to clipboard
open
fun
offerAll
(
itemId
:
Int
)
:
Boolean
Offers the items whose ID matches the specified ID to the first trade window.
remove
Link copied to clipboard
open
fun
remove
(
itemId
:
Int
,
amount
:
Int
)
:
Boolean
Removes the offered items whose ID matches the specified ID to the first trade window.
remove
All
Link copied to clipboard
open
fun
removeAll
(
itemId
:
Int
)
:
Boolean
Removes the items whose ID matches the specified ID to the first trade window.