VoodooHD 1 Share Posted May 3, 2019 How could I get the amount of coins the other person in a trade is offering? Link to comment Share on other sites More sharing options...
VoodooHD 1 Author Share Posted May 4, 2019 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 More sharing options...
VoodooHD 1 Author Share Posted May 4, 2019 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.