Jump to content

Having trouble starting a trade


Recommended Posts

Posted

When I attempt to interact with another player and respond to a trade request, interacting with "Trade with" silently stops my script (Player messages stop being logged). It will also not start a trade.

		Player tradedPlayer = getTrade().getLastRequestingPlayer();
			if (tradedPlayer != null) {
				if (tradedPlayer.interact("Trade with")) {
					log("Trade initiated");
				} else {
					log("Trade failed");
				}
			}

If I change the interaction to "Trade", then the interaction will fail. What am I doing wrong?

Posted
1 hour ago, smy said:

Osbot hooks are broken, because of the new osrs update, stay tuned for fixes. And you should use "Trade with" rather than just "Trade".

They are fixed as of now

2 hours ago, gerudolock said:

When I attempt to interact with another player and respond to a trade request, interacting with "Trade with" silently stops my script (Player messages stop being logged). It will also not start a trade.


		Player tradedPlayer = getTrade().getLastRequestingPlayer();
			if (tradedPlayer != null) {
				if (tradedPlayer.interact("Trade with")) {
					log("Trade initiated");
				} else {
					log("Trade failed");
				}
			}

If I change the interaction to "Trade", then the interaction will fail. What am I doing wrong?

You should consider looking at the logger and see what is wrong.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...