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

    Archived

    This topic is now archived and is closed to further replies.

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