Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Amount of Item in a Trade


    VoodooHD

    Recommended Posts

    16 hours ago, Infidel said:

    Resource: https://dreambot.org/javadocs/org/dreambot/api/methods/trade/Trade.html

    Step 1: Use a loop to scan the trade screen items for correct item ids and amounts.

            Item[] items;
            items = getTrade().getTheirItems();   
            for(int i = 0; i < items.length; i++) {
                //Do something.
            }

    That's all there is to it pretty much. Good luck!

    I appreciate this a bunch! Semi-related question: is it possible to get the other person's name while in a trade window? Thanks again!

    Link to comment
    Share on other sites

    9 minutes ago, VoodooHD said:

    I appreciate this a bunch! Semi-related question: is it possible to get the other person's name while in a trade window? Thanks again!

    Nevermind. I see it on the API.

    Link to comment
    Share on other sites

    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
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.