Jump to content

Having trouble starting a trade


gerudolock

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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