Jump to content

Getting trade requests


evert123

Recommended Posts

Hello guys,

I'm working on a selling script, my player stands at Lumby bank and is selling Varrock teleports.
Now I got stuck at how to know if someone is trading my player and how to prevent trading someone after selling them runes.

I was thinking something like this:

Get first line in chatbox
If contains trade requests
     get name
     trade player

My problems are:

1. I have very little knowledge of Java, working with lists is kinda new for me (do have some Python exp)

2. I don't know how the chat API of OSBot will return the messages (Will it only return trade message if i put public off? Will it return every message? Is the first message at the top or at the bottom of this list)

If someone knows anything on this subject I would really appreciate some explanation on the topics.


 

 

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...